Loading…
| Operator | BLS pubkey (G1) | Stake weight | In aggregate |
|---|---|---|---|
| 0xd4d8…9943 | 0x1e9d3b806d85c566467df62244f7ccc456071ce747b52d5d9ab363c186fda771295fec7cbcddaffe9616bc4b4bd4454f86708685898396986c3766b4f44cc887 | 50.0% | SIGNED |
| 0xe0c3…0c1c | 0x2e9100a36e04470471b8521fb6c0a6a3dbe66e6b40bc002779c1fc7e611ffed409eceb657a8ac4bba23ddba3c50ebec3da91db131dfc8d8171d00559835c737a | 50.0% | SIGNED |
| Slot | Policy | expireAfter |
|---|---|---|
| 0 | Spend Limit Policyspend_limit.allow · 0x5aebd738…d812 | 300sets response expiry |
| 1 | 0x06f7…c10bloadtest.allow · 0x06f725e1…c10b | 300sets response expiry |
package spend_limit # ─── Spend-limit policy ───────────────────────────────────────────────────────# Deny-by-default. A transaction Intent is allowed only when every condition in# one of the `allow` blocks holds. Each `allow if { ... }` block is OR-ed; the# lines inside a block are AND-ed.## Data namespaces available to a Newton policy:# input -> the Intent. NOTE: the operator normalizes Intent fields to# strings — `input.value` is a DECIMAL STRING (e.g.# "1000000000000000"), `input.from`/`input.to` are hexnewton-cli policy-client status --registry 0x9445404e83ef6349cd11fa7645b2dcb7629a940f --client 0x2A267EE7493e2171A7b20D65dbec5B27B27Cbb77
Anyone may re-run this check, and challenge anything it disagrees with. Learn more →
# strings, `input.data` is hex. Parse numerics with# `to_number(...)` before comparing.# data.params -> owner-configured params (see params_schema.json), set# on-chain via `policy-client set-policy-params`# data.data -> runtime oracle output from policy.wasm (see oracle/app.js)## Chain scoping is NOT done here: the NewtonPolicyClient mixin already rejects a# wrong chain id on-chain ("Chain ID does not match"), and input.chain_id is not# populated during policy evaluation. default allow := false # Allow transfers at or under the configured limit, as long as the oracle does# not flag the recipient.allow if { to_number(input.value) <= data.params.max_value not recipient_flagged} # The admin address bypasses the value limit (still must clear the oracle flag).allow if { input.from == data.params.admin not recipient_flagged} # Oracle-driven risk check. `data.data.is_flagged` comes from the WASM oracle.recipient_flagged if { data.data.is_flagged == true} # A human-readable explanation, surfaced alongside the decision.reason := "transfer under configured limit" if { allow input.from != data.params.admin} reason := "admin override" if { allow input.from == data.params.admin} reason := "recipient flagged by risk oracle" if { recipient_flagged} reason := "transfer exceeds max_value" if { not allow not recipient_flagged}# Load-test policy: params-only, no WASM oracle.# Allow path is satisfied as long as the intent's chain_id appears in# data.params.allowed_chain_ids and the call is to a whitelisted contract.# Admin override: lower(input.from) == lower(data.params.admin). package loadtest default allow := false allow if user_is_admin user_is_admin if { lower(data.params.admin) == lower(input.from)} allow if { chain_allowed contract_allowed function_allowed} chain_allowed if { some cid in data.params.allowed_chain_ids cid == input.chain_id} contract_allowed if { some addr in data.params.allowed_contracts lower(addr) == lower(input.to)} function_allowed if { some name in data.params.allowed_functions name == input.function.name}