@agenticprimitives/contracts 1.0.0-alpha.48 → 1.0.0-alpha.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUDIT.md +36 -4
- package/dist/abi/AccountBootstrap.json +99 -0
- package/dist/abi/AgentAccount.json +95 -56
- package/dist/abi/AgentAccountFactory.json +189 -0
- package/dist/abi/AgentNameAttributeResolver.json +188 -0
- package/dist/abi/AgentNameRegistry.json +170 -0
- package/dist/abi/AgentNameUniversalResolver.json +188 -0
- package/dist/abi/AgentProfileResolver.json +188 -0
- package/dist/abi/AgentRegistryBase.json +193 -0
- package/dist/abi/AgentRelationship.json +193 -0
- package/dist/abi/AgenticGovernance.json +123 -0
- package/dist/abi/AgreementRegistry.json +193 -0
- package/dist/abi/AllowedMethodsEnforcer.json +193 -0
- package/dist/abi/AllowedTargetsEnforcer.json +193 -0
- package/dist/abi/ApprovedHashRegistry.json +220 -0
- package/dist/abi/AttestationRegistry.json +193 -0
- package/dist/abi/CallDataHashEnforcer.json +193 -0
- package/dist/abi/CustodyPolicy.json +195 -80
- package/dist/abi/DelegationManager.json +185 -0
- package/dist/abi/DigestBindingEnforcer.json +188 -0
- package/dist/abi/Eip7702.json +13 -0
- package/dist/abi/EstateProjectionRegistry.json +193 -0
- package/dist/abi/Generation5Bridge.json +355 -0
- package/dist/abi/GeoFeatureRegistry.json +193 -0
- package/dist/abi/ICustodyEpochView.json +28 -0
- package/dist/abi/IDelegationManager.json +18 -0
- package/dist/abi/IGeneration4Reads.json +143 -0
- package/dist/abi/IGeneration5Account.json +33 -0
- package/dist/abi/IGeneration5Voucher.json +26 -0
- package/dist/abi/IMoveAccountView.json +57 -0
- package/dist/abi/IMoveCustodyView.json +169 -0
- package/dist/abi/IMoveFactoryView.json +41 -0
- package/dist/abi/ITimelockVeto.json +93 -0
- package/dist/abi/OntologyTermRegistry.json +211 -0
- package/dist/abi/PayloadClassesEnforcer.json +193 -0
- package/dist/abi/PaymentEnforcer.json +188 -0
- package/dist/abi/PaymentEscrow.json +177 -0
- package/dist/abi/PaymentReceiptRegistry.json +206 -0
- package/dist/abi/PermissionlessSubregistry.json +188 -0
- package/dist/abi/PricedSubregistry.json +215 -0
- package/dist/abi/QuorumEnforcer.json +193 -0
- package/dist/abi/ReceiptAnchorRegistry.json +193 -0
- package/dist/abi/RelationshipTypeRegistry.json +211 -0
- package/dist/abi/ShapeRegistry.json +211 -0
- package/dist/abi/SignatureVerifier.json +196 -0
- package/dist/abi/SkillDefinitionRegistry.json +193 -0
- package/dist/abi/SmartAgentPaymaster.json +236 -1
- package/dist/abi/StableProxyGoverned.json +190 -0
- package/dist/abi/StableProxyGovernedOneShot.json +172 -0
- package/dist/abi/TimestampEnforcer.json +193 -0
- package/dist/abi/TreasurySpendPolicy.json +193 -0
- package/dist/abi/UpgradeVoucher.json +156 -4
- package/dist/abi/ValueEnforcer.json +193 -0
- package/dist/abi/index.d.ts +14 -0
- package/dist/abi/index.js +14 -0
- package/package.json +1 -1
- package/src/AccountBootstrap.sol +38 -0
- package/src/AgentAccount.sol +149 -41
- package/src/AgentAccountFactory.sol +52 -13
- package/src/ApprovedHashRegistry.sol +98 -9
- package/src/SmartAgentPaymaster.sol +96 -12
- package/src/UniversalSignatureValidator.sol +7 -0
- package/src/UpgradeVoucher.sol +16 -3
- package/src/agency/DelegationManager.sol +106 -32
- package/src/agency/IDelegationManager.sol +28 -0
- package/src/agreement/AgreementRegistry.sol +16 -15
- package/src/attestation/AttestationRegistry.sol +39 -16
- package/src/custody/CustodyPolicy.sol +36 -35
- package/src/custody/TreasurySpendPolicy.sol +10 -1
- package/src/enforcers/AllowedMethodsEnforcer.sol +7 -1
- package/src/enforcers/AllowedTargetsEnforcer.sol +7 -1
- package/src/enforcers/CallDataHashEnforcer.sol +7 -1
- package/src/enforcers/DigestBindingEnforcer.sol +5 -2
- package/src/enforcers/PayloadClassesEnforcer.sol +7 -1
- package/src/enforcers/PaymentEnforcer.sol +5 -2
- package/src/enforcers/QuorumEnforcer.sol +7 -1
- package/src/enforcers/TimestampEnforcer.sol +7 -1
- package/src/enforcers/ValueEnforcer.sol +7 -1
- package/src/geo/GeoFeatureRegistry.sol +15 -1
- package/src/governance/AgenticGovernance.sol +145 -0
- package/src/governance/GovernanceManaged.sol +2 -0
- package/src/governance/StableProxyGoverned.sol +79 -0
- package/src/governance/StableProxyGovernedOneShot.sol +93 -0
- package/src/identity/AgentProfileResolver.sol +11 -2
- package/src/libraries/Eip7702.sol +36 -0
- package/src/libraries/SignatureSlotRecovery.sol +4 -0
- package/src/libraries/SignatureVerifier.sol +52 -0
- package/src/libraries/WebAuthnLib.sol +3 -0
- package/src/migration/Generation5Bridge.sol +364 -0
- package/src/naming/AgentNameAttributeResolver.sol +12 -2
- package/src/naming/AgentNameRegistry.sol +84 -10
- package/src/naming/AgentNameUniversalResolver.sol +9 -2
- package/src/naming/PermissionlessSubregistry.sol +13 -2
- package/src/naming/PricedSubregistry.sol +59 -3
- package/src/ontology/OntologyTermRegistry.sol +30 -2
- package/src/ontology/ShapeRegistry.sol +30 -2
- package/src/payments/PaymentEscrow.sol +16 -1
- package/src/payments/PaymentReceiptRegistry.sol +28 -3
- package/src/provenance/ReceiptAnchorRegistry.sol +13 -1
- package/src/registry/AgentRegistryBase.sol +21 -1
- package/src/registry/EstateProjectionRegistry.sol +15 -1
- package/src/relationships/AgentRelationship.sol +17 -1
- package/src/relationships/RelationshipTypeRegistry.sol +30 -2
- package/src/skills/SkillDefinitionRegistry.sol +15 -1
package/AUDIT.md
CHANGED
|
@@ -64,7 +64,10 @@ This package ships the **on-chain enforcement layer** for the agenticprimitives
|
|
|
64
64
|
| 2.24 | **The treasury ceiling counts what a call can commit, fails closed, and is not reachable from below the custody tier.** `TreasurySpendPolicy` counts `transfer` / `transferFrom` / `approve` / `increaseAllowance` on the budgeted token (an unlimited approval exceeds any ceiling; `approve(…,0)` / `decreaseAllowance` add nothing and credit nothing back), native value and EntryPoint `withdrawTo` for a native budget; any other selector on the budgeted token and any undecodable payload are REFUSED. An installed module is never an `execute` / `executeBatch` target from a delegation (any mode), from a non-canonical executor, or — on a custody-governed account — from a single custodian's user operation (the canonical custody policy excepted: its entry points are signature-authorized or self-defending). Hooks also run on a non-canonical executor's `executeFromModule`. `onInstall` / `onUninstall` of `TreasurySpendPolicy` and `CustodyPolicy.onInstall` verify the account's installed flag. On a governed treasury install / uninstall / raise are T5 custody actions and lower is T4. **Not bounded (stated in the contract notice):** other assets, pre-existing allowances, signature-based transfers (`permit`, EIP-3009, Permit2), gas prefund, non-standard tokens; allowances make the bound cumulative, not per-window. **A mode-0 treasury's ceiling bounds delegates only — its one key (and that key's executor modules) can remove it.** | ✅ CLOSED audit 2026-11-10 CUST-2 / CUST-3 / ACCT-3 (+ ACCT-11, ACCT-13) (spec 445 §1.5) — generation 4, source only until deployed | `custody/TreasurySpendPolicy.sol`, `AgentAccount.sol:_rejectModuleTarget` + `_isAccountTrustedTarget` + `executeFromModule`, `CustodyPolicy.sol` actions 17–20; `test/TreasuryCeilingAndModules445.t.sol` |
|
|
65
65
|
| 2.25 | **Modules are never execute targets — and the DelegationManager is not a module.** An installed module (any type) is refused as an `execute` / `executeBatch` target from a delegation, from a non-canonical executor, and on a custody-governed account from a single custodian (canonical custody policy excepted — invariant 2.24). The delegation manager is wired as `_delegationManager`, never installed, so a governed account still reaches it as a target: the ap-home revoke-through-mandate flow and a custodian's own revoke both land. | ✅ CLOSED audit 2026-11-10 ACCT-3 (spec 445 §1.5); interaction pinned at the B1 merge — generation 4, source only until deployed | `AgentAccount.sol:_rejectModuleTarget`, `_isAccountTrustedTarget`; `test/TreasuryCeilingAndModules445.t.sol`, `test/MergeInteractions445.t.sol` |
|
|
66
66
|
| 2.26 | **No self-targeted redemption.** `redeemDelegation` reverts `SelfTargetedRedemption` when the target is the ROOT delegator (the account the manager executes through); `verifyAuthorizationForCall` returns `(false, "self-target")`. Closes `execute(self, executeBatch(…))` — a batch the caveats never saw. An intermediate link's delegator stays an ordinary target. The account's own DM-3 nest guards remain as defence in depth; no legitimate flow is blocked twice (an ordinary target passes both; the self-target is refused by the manager first). | ✅ CLOSED audit 2026-11-10 DLG-2 (spec 445 B1) — generation 4, source only until deployed | `agency/DelegationManager.sol:redeemDelegation`; `test/DlgSelfTarget445B1.t.sol`, `test/MergeInteractions445.t.sol` |
|
|
67
|
-
| 2.27 |
|
|
67
|
+
| 2.27 | **A timelock seat is never a key one custodian can drive (spec 448 rule 10; audit 2026-11-10 H-5, 2026-12-02 H-3 / C2-1).** `AgentAccount.execute` validates one custodian signature in every custody mode — the M-of-N of a custody-governed account governs its custody changes only — so a timelock role held by an AgentAccount is exercised by any one of its credentials, live and under a pause (the H-3 exemption, 2.21, is that same door). Routing an account's governance calls through its custody quorum does not fit `AgentAccount`'s remaining code size (EIP-170), so the seat is REFUSED instead: the production deploy reverts `SingleKeyGovernanceRole` for a proposer / executor that is an EOA, an EIP-7702-delegated EOA, or any ERC-4337 smart account (it names an EntryPoint). It also leaves NO standing timelock admin (`StandingTimelockAdmin`: only the timelock itself holds `DEFAULT_ADMIN`), proves the delay is ≥ 24 h, and proves the guardian's veto (`UpgradeVetoNotInstalled`). **What this does not give:** the script cannot measure the quorum of the non-account contract that holds a seat — the operator declares it, `verify-governance-shape` reports a holder whose threshold it cannot read. **Development labels** (anvil, test networks, faithchain, hopechain) run none of this and may put one key in every seat (owner decision, spec 448 §0); the deploy prints that. | ✓ at the production deploy; development labels accepted | `Deploy.s.sol:_refuseSingleKeyRoleHolder`, `_releaseTimelockAdmin`, `_refuseStandingAdmin`, `_assertUpgradeVeto`, `_logDevelopmentGovernance`; `test/DeployProduction445.t.sol::test_H3_twin_*`, `test_H5_endState_refusesAnEoaRoleHolder`; still true of the account itself: `test/governance/PauseIsLiftable445.t.sol::test_H3_openRisk_oneCustodianOfARoleHoldingAccount_makesTheCallAlone` |
|
|
68
|
+
| 2.36 | **System upgrades pass one door with three limits (spec 448 rule 10; audit 2026-12-02 H-3, C5-6).** From generation 5 every system contract is a proxy whose only upgrade authority is `AgenticGovernance`, so every system upgrade is `timelock → AgenticGovernance.execute(proxy, upgradeToAndCall(...))`. There: (1) an upgrade is refused while the system is paused (`UpgradeWhilePaused`); (2) the guardian can cancel a scheduled operation that contains a system upgrade or a call to the timelock itself (`vetoOperation` / `vetoBatch`; governance holds the timelock's `CANCELLER`) — and nothing else, so it cannot cancel its own replacement or an unpause; (3) an upgrade that changes what the proxy answers for `governance()`, `custodyPolicy()`, `delegationManager()`, `approvedHashRegistry()`, `upgradeVoucher()` or `entryPoint()` is reverted whole (`UpgradeChangesSystemWiring`). **THE TRUST THIS GENERATION ADDS, STATED (spec 447 §4.3):** after the delay, governance can replace the code behind the delegation manager, the custody policy and the factory, and so ACT AS EVERY ACCOUNT of the deployment. A pause does not open an exit for accounts (a paused account executes only governance calls and removals); an unpause and an upgrade may execute in one timelock batch. The veto buys time, not immunity: a proposer and executor together can replace the guardian (one delay) and then upgrade (a second). | ✓ | `AgenticGovernance.sol:execute`, `_systemWiring`, `vetoOperation`, `vetoBatch`; `test/governance/UpgradeGuards448.t.sol` |
|
|
69
|
+
| 2.37 | **The generation-5 move runs from generation-4 bytecode, has one route, and leaves nothing approvable for a later epoch (spec 448 rule 9 and §0; audit 2026-12-02 H-1, H-2, C1-4; corrected after the second review).** One route, every account: `Generation5Bridge` (a plain vouched upgrade, then `completeMove`). The generation-5 implementation's `proxiableUUID` answers only an account already running code with its voucher, so a generation-4 account cannot upgrade to it directly — `(gen5Impl, keccak256(""))` vouched on the generation-4 voucher by mistake is still no route. The bridge refuses ENTRY to an account whose custody the stable policy cannot install or that is not of its generation-4 factory; a governed account on the bridge leaves under its own quorum (`ApplySystemUpdate(gen4Impl)` on the generation-4 policy). `migrateFactory` revokes every digest approved for the account in the generation-5 registry; that registry derives every key from the caller's CURRENT `custodyEpoch()`, so no code — including the generation-4 frame still running after the move — can approve for a later epoch (THESIS-1a). A custody-governed account completes only with a configuration vouched for THAT account; the bridge reverts unless the installed custody is the generation-4 one or stricter (same mode, trustees and T3 ceiling; every `Config` field accounted for in the bridge's header). An account on the bridge executes nothing, validates no signature and answers no epoch. The factory's install exception exists only in the transaction that initialized the account (C1-4). Tests deploy generation 4 from `test/fixtures/Gen4Bytecode.sol`. No approval is made after a custody-epoch bump in the same transaction on a custody-governed account except by the custody policy itself (`approveDigest` → `ApprovalAfterCustodyChange`; `RotateCredential`'s re-approval list still runs, and a mode-0 account still rotates in its own batch): a user operation validates before it executes, so without this the custodian being expelled could wrap the trustees' recovery or the quorum's rotation in her own batch — or a later operation of the same bundle — and approve under the NEW epoch after she is out (second review of R0-contracts). The move's own transaction is covered the same way (third review): a generation-4 custody change (rotation, trustee recovery) runs generation-4 code and sets no generation-5 flag, so `Generation5Bridge.completeMove` sets it after the move, and `ApprovedHashRegistry.approveHash` asks every account signer `approvalRefused()` (the same three-part condition `approveDigest` checks) and refuses when the answer is true or missing. Both approval routes after `[gen-4 retirement, move]` in one batch or bundle are refused: `approveDigest`, and a direct `approveHash` from the still-running generation-4 frame (`test_H2_r3_twin_*`). Generation-4 code cannot approve in the generation-5 registry at all (it does not answer). Cost: a governed account approves nothing in its move transaction except through its custody policy; it approves in the next one. **Remaining:** one custodian of a governed account can approve a digest for the CURRENT epoch (as `approveDigest` allows); it dies when the epoch moves, and a recovery also revokes it. On GENERATION 4 (deployed bytecode, pre-existing since spec 410) the wrap is still open until the account moves: `test_H2_r2_gen4_OPEN_DEFECT_expelledCustodianWrap_isLiveOnGeneration4`. | ✓ (not deployed) | `AgentAccount.sol:migrateFactory`, `proxiableUUID`, `onlySelfOrFactoryInit`, `approveDigest` (`_epochBumpedThisTx`), `approvalRefused`; `ApprovedHashRegistry.sol:_keyOf`, `approveHash`; `Generation5Bridge.completeMove`; `src/migration/Generation5Bridge.sol`; `test/Generation5Move448.t.sol`, `test/Generation5MoveFixup448.t.sol`, `test/Migration447.t.sol`, `test/Rehearsal447.t.sol` |
|
|
70
|
+
| 2.38 | **Signature arithmetic lives in a verifier each implementation creates for itself (spec 449).** `AgentAccount` and `CustodyPolicy` each create a stateless `SignatureVerifier` in their constructor (CREATE, nonce 1) and hold its address as an immutable, so it is part of the vouched implementation code and cannot be re-pointed. The account's WebAuthn check (decode, authenticator and client data, low-s, P-256) and the policy's quorum slot recovery (`SignatureSlotRecovery.recoverFromSlot`, unchanged; its errors revert through) run there by STATICCALL. Nothing that writes state or decides custody moved: key lookup, rp-ID pinning, custodian/trustee membership and every threshold stay in the callers. A revert in the verifier is "invalid" on the account path (never a revert out of validation). C1-8: an index past the client-data buffer answers false, never `Panic(0x11)`. Room after: `AgentAccount` ≥ 1,500 B, `CustodyPolicy` ≥ 1,000 B (`check:contract-size-floors`). Changed caller: a quorum slot's ERC-1271 `isValidSignature` is now called by the verifier, not the policy. | ✓ (not deployed) | `src/libraries/SignatureVerifier.sol`; `AgentAccount._verifyWebAuthn`; `CustodyPolicy._verifyQuorum`; `WebAuthnLib._checkClientData`; `test/Headroom449.t.sol`, `test/SignatureVerifier449.t.sol`, `test/ValidationGas449.t.sol` |
|
|
68
71
|
| 2.28 | **Reserved labels and host injectivity are enforced on chain.** `AgentNameRegistry.register` (every path: root owner, `PermissionlessSubregistry`, `PricedSubregistry`) refuses `ws www mtls edge api well-known` and every initialized typed root's label under ANY parent (`ReservedLabel`), and under a bare-host root a label whose segment after the last `-` is a typed root's label (`LabelReadsAsTypedName`). A root label carries no `-`. | ✅ CLOSED spec 445 NAME-8 (B2 item 7) — generation 4, source only until deployed | `naming/AgentNameRegistry.sol:register`; `test/naming/Naming445B2.t.sol::test_NAME8_*` |
|
|
69
72
|
| 2.29 | **Records belong to an owner epoch.** A change of owner (and the reclaim of an expired name) bumps `recordEpoch(node)`; `AgentNameAttributeResolver` keys every record by `(node, epoch)` and answers empty for a non-live node — the previous owner's records stop resolving in the same transaction for every reader, and transferring back resurrects nothing. Expired ⇒ empty for every record type; only the parent may renew, extension only. | ✅ CLOSED audit 2026-11-10 REG-4 / REG-6 (NAMING-RECLAIM-STALE-RESOLVER-1) — generation 4, source only until deployed | `AgentNameRegistry.sol` (`epoch`, `recordState`), `AttributeStorage._storageKey`, `AgentNameAttributeResolver`; `test/naming/Naming445B2.t.sol::test_REG4_*`, `test_REG6_*` |
|
|
70
73
|
| 2.30 | **Permissionless claims are commit-reveal.** `commit(keccak256(abi.encode(subregistry, chainId, labelhash, newOwner, secret)))`, then `register(label, newOwner, secret)` between 10 s and 1 day later; the commitment binds the OWNER, is single-use and cannot be re-committed while live. The one-claim-per-caller cap is a courtesy, not sybil resistance; production estates use `PricedSubregistry`. | ✅ CLOSED audit 2026-11-10 REG-5 (SUB-1 / SUB-2) — generation 4, source only until deployed | `naming/PermissionlessSubregistry.sol`; `test/naming/Naming445B2.t.sol::test_REG5_*` |
|
|
@@ -97,6 +100,7 @@ This package ships the **on-chain enforcement layer** for the agenticprimitives
|
|
|
97
100
|
- **Test posture:** DelegationManager 95.8% lines / 88.2% branches (post-R6 aggregator).
|
|
98
101
|
- **Generation 4 (spec 445 B1).** H-1 one root, last (2.20); DLG-2 no self-target (2.26); DLG-3 counted digest binding (2.17); DLG-7 the manager's pause read fails CLOSED when governance is configured (a codeless non-zero governance is refused at construction; a reverting / malformed `isPaused()` reverts `GovernanceReadFailed`) — unlike the account's read (§3.1), because the manager is a re-deploy-on-bug singleton; DLG-9 the delegator revokes without a verifying signature, `revokeDelegationAsUpstream` for hash-linked upstreams; DLG-10 the domain separator follows a chain split.
|
|
99
102
|
- **Generation coupling — a generation-4 `PaymentEnforcer` needs a generation-4 `DelegationManager`.** The enforcer reads the payer from `DelegationManager.redemptionRootDelegator()` (transient, set for one redemption; DLG-8c); pointed at an older manager every charge reverts. `DeployPayments.s.sol` binds an EXISTING manager by env — deploy both as one generation.
|
|
103
|
+
- **Chain depth for enforcers — `redemptionDepth()` (spec 450 §6, generation 5, source only until deployed).** While one of the manager's own hooks runs, `redemptionDepth()` returns `(links, position)`: the length of the chain being redeemed and the root-first index of the link whose caveat is checked. Two transient slots (appended after `_redemptionRoot`; the DM transient layout is now gated), set per redemption and per link's hook loop, saved and restored around a redemption (nesting is already unreachable — `nonReentrant`). Outside a hook — no redemption, chain validation, the executed call — it reverts `NotInCaveatHook()`, so no value can be read as "depth 0"; a depth-reading caveat therefore makes `verifyAuthorizationForCall` answer `(false, "caveat-failed")`. While a hook runs, both view verifiers return `(false, "in-redemption")` without evaluating, so they never judge a chain by the outer redemption's numbers (independent review, follow-up 5). An observation, never authority; existing hooks are called exactly as before. **Enforcer rule:** `maxBelow` from the signed `terms` (never `args`); revert unless `links − 1 − position ≤ maxBelow`; every carrying link is checked, so the strictest ancestor wins. The total-length fixture in the tests (`TotalLengthCapFixture450DoNotDeploy`) is NOT that rule. Pinned by `test/DelegationDepthView450.t.sol`.
|
|
100
104
|
- **QuorumEnforcer:** payload-hash binding closed in H7 (`QuorumEnforcer.sol` checks `keccak256(args) == decoded_payload_hash`). R6.9 aggregator confirms 95.5% lines / 100% branches.
|
|
101
105
|
|
|
102
106
|
### 3.3 Pause invariant for enforcers (R6.7)
|
|
@@ -165,6 +169,7 @@ Binds `address(entryPoint())` so a long-lived signed envelope CANNOT survive an
|
|
|
165
169
|
Per spec 214 SB-4. **One library function consumers call (`validateSig(signer, hash, sig)`)** that internally:
|
|
166
170
|
|
|
167
171
|
1. If `sig` looks like ERC-6492 (`0x6492...` magic suffix): execute the prefix calldata at the magic-named factory, then re-evaluate.
|
|
172
|
+
0. If `signer` is a 7702-delegated EOA: ECDSA only, before any of the below (§3.10).
|
|
168
173
|
2. If `signer` has code: call `signer.isValidSignature(hash, sig)` (ERC-1271) and check magic value.
|
|
169
174
|
3. Otherwise: ECDSA `ecrecover` against `signer`.
|
|
170
175
|
|
|
@@ -184,6 +189,33 @@ Per spec 214 SB-4. **One library function consumers call (`validateSig(signer, h
|
|
|
184
189
|
|
|
185
190
|
EXT-019 status: **experimental** — public on-chain edges leak the social graph. Production deployments where membership / participation is sensitive should NOT register relationships on this contract; the package's `AUDIT.md` makes this explicit. A future spec covers an encrypted-edge variant.
|
|
186
191
|
|
|
192
|
+
### 3.10 EIP-7702 — a delegated EOA is an EOA (spec 448 §0, 2026-12-02)
|
|
193
|
+
|
|
194
|
+
**Rule: an address whose code is a 7702 delegation designator (`0xef0100 ‖ delegate`) is an EOA for every authority
|
|
195
|
+
purpose — it signs by ECDSA or it has no voice.** Its attached code was chosen by whoever obtained ONE authorization
|
|
196
|
+
signature from the key, and anyone can make it CALL or answer calls. So it is never asked "is this signature yours?"
|
|
197
|
+
(ERC-1271), and it is never trusted as `msg.sender` where a role is decided. One check, `libraries/Eip7702.sol`
|
|
198
|
+
(`isDelegatedEOA`, `refuseDelegatedEOA` → `DelegatedEOA(address)`); EIP-3541 means no deployed contract can match it.
|
|
199
|
+
Twins: `test/Eip7702Signatures448.t.sol`, `test/Eip7702Roles448.t.sol`, and `test_7702_*` in the fixture files.
|
|
200
|
+
|
|
201
|
+
| Path | Rule now |
|
|
202
|
+
| --- | --- |
|
|
203
|
+
| `SignatureSlotRecovery` v=0 (CustodyPolicy via `SignatureVerifier`; `QuorumEnforcer`) | delegated signer refused; its vote is v=27/28 only |
|
|
204
|
+
| `SignatureSlotRecovery` v=1 / `ApprovedHashRegistry.approveHash` | delegated caller refused; keyed raw, so `revokeHash` of its pre-delegation approvals works |
|
|
205
|
+
| `DelegationManager` delegator / delegate-revocation signatures | ECDSA (EIP-191) only for a delegated EOA |
|
|
206
|
+
| `DelegationManager` redemption, named delegate == `msg.sender` | delegated EOA refused (view: `delegated-eoa-redeemer`) |
|
|
207
|
+
| `UniversalSignatureValidator` (incl. ERC-6492 wrapper) | ECDSA only for a delegated EOA |
|
|
208
|
+
| `AttestationRegistry` / `AgreementRegistry` signatures (REG-16 reversed) | ECDSA only for a delegated EOA |
|
|
209
|
+
| Governance seats: `StableProxyGoverned(OneShot)` `onlyGovernance` + `_authorizeUpgrade`, `GovernanceManaged`, `DelegationManager`/`ApprovedHashRegistry` upgrade, `SmartAgentPaymaster`, `AgenticGovernance` guardian/timelock | delegated caller refused; `setGuardian` and the DM/AHR initializers refuse a delegated address |
|
|
210
|
+
| Governors + `acceptGovernor` (Shape, OntologyTerm, RelationshipType, PricedSubregistry), `PaymentReceiptRegistry` owner, `AgentNameRegistry` initializer/admin/owner/parent, `AgentNameAttributeResolver` owner | delegated caller refused |
|
|
211
|
+
| Parties: `AgentRegistryBase` controller/admin/subject, `AgentRelationship` propose/confirm/activate/addRole/metadata, `AttestationRegistry.assertAssociation` subject, `AgentProfileResolver` agent, Geo/Skill steward, `EstateProjectionRegistry`, `ReceiptAnchorRegistry`, `PaymentEscrow` release/refund/reclaim | delegated caller refused |
|
|
212
|
+
| **Left open, by design:** revocations of the caller's own grants (`revokeDelegationByOwner`/`AsUpstream`, `revokeHash`/`revokeAll`, `revokeOwn*`, `revokeEdge`/`removeRole`, subject `revokeEntry`); spending the caller's own assets (`PaymentEscrow.deposit`, `PricedSubregistry.claim`); its own namespace (`PermissionlessSubregistry.register` quota, `TreasurySpendPolicy`) | a removal grants nothing, and attached code can already move the EOA's own assets |
|
|
213
|
+
| `AgentAccount` (custodians by ecrecover/WebAuthn only), contract-only callers (EntryPoint, factory, DelegationManager, executor) | unchanged — never exposed |
|
|
214
|
+
|
|
215
|
+
Not enforceable on chain: a role or delegate key that is an EOA can still be phished into an authorization. The
|
|
216
|
+
off-chain half is that no KMS or runtime key holding a role may sign a raw 32-byte digest or an
|
|
217
|
+
`EIP7702_AUTHORIZATION` (key-custody purposes; fix report `EIP-7702.md`).
|
|
218
|
+
|
|
187
219
|
## 4. Upgrade & governance — production posture
|
|
188
220
|
|
|
189
221
|
### 4.1 The production gate (open audit item N1)
|
|
@@ -204,14 +236,14 @@ EXT-019 status: **experimental** — public on-chain edges leak the social graph
|
|
|
204
236
|
### 4.2 Upgrade pattern
|
|
205
237
|
|
|
206
238
|
- AgentAccount: UUPSUpgradeable. `_authorizeUpgrade` gated by `onlySelf`. Per-account upgrades routed through `CustodyPolicy.ApplySystemUpdate` (T5 / 24h timelock by default). **Generation 4:** every upgrade — on every path — must also be vouched by the implementation's `UpgradeVoucher` (governance through the timelock) for the exact `(implementation, keccak256(migration data))`; invariant 2.23.
|
|
207
|
-
- UpgradeVoucher: NOT upgradeable
|
|
239
|
+
- UpgradeVoucher: generations ≤ 4 NOT upgradeable; from generation 5 a governance-upgradeable proxy (2.36). No setter for its governance. To change who vouches, deploy a new voucher and a new account implementation built around it (reaching that implementation is an upgrade the OLD voucher must vouch for).
|
|
208
240
|
- **Migrating a generation ≤ 3 account** (runbook input): (1) governance cannot constrain the account's last old-rules upgrade — review the target implementation address off-chain; (2) after the upgrade, every pre-existing non-canonical executor module and a non-canonical delegation manager are unstamped and NOT honoured until the owner re-affirms them (`reaffirmModule` / `reaffirmDelegationManager`); hooks keep working; (3) the account's factory pointer does not change, so its canonical custody policy and delegation manager remain the generation ≤ 3 ones — moving to the generation-4 DelegationManager is a `setDelegationManager` that must then be re-affirmed in every rotation, and a governed account keeps the old custody action set (no actions 17–20, no re-affirmation in `RotateCredential`); (4) migration does not clean an account that was compromised before it.
|
|
209
241
|
- AgenticGovernance: NOT upgradeable. Operator deploys a new governance instance to migrate.
|
|
210
|
-
- AgentAccountFactory + SmartAgentPaymaster + DelegationManager + CustodyPolicy + naming/* + enforcers: NOT upgradeable
|
|
242
|
+
- AgentAccountFactory + SmartAgentPaymaster + DelegationManager + CustodyPolicy + naming/* + enforcers: generations ≤ 4 NOT upgradeable (redeploy + migrate-by-naming-handle). **Generation 5: each is a UUPS proxy upgraded by `AgenticGovernance` through the timelock — invariant 2.36 states the limits and the trust.** The 2026-06-01 R6 redeploy + root re-init demonstrates the runbook.
|
|
211
243
|
|
|
212
244
|
### 4.3 TimelockController
|
|
213
245
|
|
|
214
|
-
`Deploy.s.sol` deploys an OpenZeppelin TimelockController with a 24h minimum delay.
|
|
246
|
+
`Deploy.s.sol` deploys an OpenZeppelin TimelockController with a 24h minimum delay. On a production label it has NO standing admin (the timelock administers itself; role changes take the delay), its proposer / executor are refused when one key can drive them (2.27), and `AgenticGovernance` holds its `CANCELLER` role for the guardian's veto (2.36). Production governance flows queue → wait 24h → execute.
|
|
215
247
|
|
|
216
248
|
## 5. Test posture
|
|
217
249
|
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
[
|
|
2
|
+
{
|
|
3
|
+
"type": "constructor",
|
|
4
|
+
"inputs": [
|
|
5
|
+
{
|
|
6
|
+
"name": "factory_",
|
|
7
|
+
"type": "address",
|
|
8
|
+
"internalType": "address"
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
"stateMutability": "nonpayable"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"type": "function",
|
|
15
|
+
"name": "bootstrap",
|
|
16
|
+
"inputs": [
|
|
17
|
+
{
|
|
18
|
+
"name": "implementation",
|
|
19
|
+
"type": "address",
|
|
20
|
+
"internalType": "address"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"name": "initData",
|
|
24
|
+
"type": "bytes",
|
|
25
|
+
"internalType": "bytes"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"outputs": [],
|
|
29
|
+
"stateMutability": "nonpayable"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"type": "function",
|
|
33
|
+
"name": "factory",
|
|
34
|
+
"inputs": [],
|
|
35
|
+
"outputs": [
|
|
36
|
+
{
|
|
37
|
+
"name": "",
|
|
38
|
+
"type": "address",
|
|
39
|
+
"internalType": "address"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
"stateMutability": "view"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"type": "event",
|
|
46
|
+
"name": "Upgraded",
|
|
47
|
+
"inputs": [
|
|
48
|
+
{
|
|
49
|
+
"name": "implementation",
|
|
50
|
+
"type": "address",
|
|
51
|
+
"indexed": true,
|
|
52
|
+
"internalType": "address"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"anonymous": false
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"type": "error",
|
|
59
|
+
"name": "AddressEmptyCode",
|
|
60
|
+
"inputs": [
|
|
61
|
+
{
|
|
62
|
+
"name": "target",
|
|
63
|
+
"type": "address",
|
|
64
|
+
"internalType": "address"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"type": "error",
|
|
70
|
+
"name": "AlreadyBootstrapped",
|
|
71
|
+
"inputs": []
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"type": "error",
|
|
75
|
+
"name": "ERC1967InvalidImplementation",
|
|
76
|
+
"inputs": [
|
|
77
|
+
{
|
|
78
|
+
"name": "implementation",
|
|
79
|
+
"type": "address",
|
|
80
|
+
"internalType": "address"
|
|
81
|
+
}
|
|
82
|
+
]
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"type": "error",
|
|
86
|
+
"name": "ERC1967NonPayable",
|
|
87
|
+
"inputs": []
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"type": "error",
|
|
91
|
+
"name": "FailedInnerCall",
|
|
92
|
+
"inputs": []
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"type": "error",
|
|
96
|
+
"name": "NotFactory",
|
|
97
|
+
"inputs": []
|
|
98
|
+
}
|
|
99
|
+
]
|
|
@@ -104,6 +104,19 @@
|
|
|
104
104
|
"outputs": [],
|
|
105
105
|
"stateMutability": "nonpayable"
|
|
106
106
|
},
|
|
107
|
+
{
|
|
108
|
+
"type": "function",
|
|
109
|
+
"name": "approvalRefused",
|
|
110
|
+
"inputs": [],
|
|
111
|
+
"outputs": [
|
|
112
|
+
{
|
|
113
|
+
"name": "",
|
|
114
|
+
"type": "bool",
|
|
115
|
+
"internalType": "bool"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
"stateMutability": "view"
|
|
119
|
+
},
|
|
107
120
|
{
|
|
108
121
|
"type": "function",
|
|
109
122
|
"name": "approveDigest",
|
|
@@ -188,62 +201,6 @@
|
|
|
188
201
|
],
|
|
189
202
|
"stateMutability": "view"
|
|
190
203
|
},
|
|
191
|
-
{
|
|
192
|
-
"type": "function",
|
|
193
|
-
"name": "decodeWebAuthnAssertion",
|
|
194
|
-
"inputs": [
|
|
195
|
-
{
|
|
196
|
-
"name": "payload",
|
|
197
|
-
"type": "bytes",
|
|
198
|
-
"internalType": "bytes"
|
|
199
|
-
}
|
|
200
|
-
],
|
|
201
|
-
"outputs": [
|
|
202
|
-
{
|
|
203
|
-
"name": "",
|
|
204
|
-
"type": "tuple",
|
|
205
|
-
"internalType": "struct WebAuthnLib.Assertion",
|
|
206
|
-
"components": [
|
|
207
|
-
{
|
|
208
|
-
"name": "authenticatorData",
|
|
209
|
-
"type": "bytes",
|
|
210
|
-
"internalType": "bytes"
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
"name": "clientDataJSON",
|
|
214
|
-
"type": "string",
|
|
215
|
-
"internalType": "string"
|
|
216
|
-
},
|
|
217
|
-
{
|
|
218
|
-
"name": "challengeIndex",
|
|
219
|
-
"type": "uint256",
|
|
220
|
-
"internalType": "uint256"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"name": "typeIndex",
|
|
224
|
-
"type": "uint256",
|
|
225
|
-
"internalType": "uint256"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "r",
|
|
229
|
-
"type": "uint256",
|
|
230
|
-
"internalType": "uint256"
|
|
231
|
-
},
|
|
232
|
-
{
|
|
233
|
-
"name": "s",
|
|
234
|
-
"type": "uint256",
|
|
235
|
-
"internalType": "uint256"
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
"name": "credentialIdDigest",
|
|
239
|
-
"type": "bytes32",
|
|
240
|
-
"internalType": "bytes32"
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
],
|
|
245
|
-
"stateMutability": "pure"
|
|
246
|
-
},
|
|
247
204
|
{
|
|
248
205
|
"type": "function",
|
|
249
206
|
"name": "delegationManager",
|
|
@@ -763,6 +720,24 @@
|
|
|
763
720
|
],
|
|
764
721
|
"stateMutability": "view"
|
|
765
722
|
},
|
|
723
|
+
{
|
|
724
|
+
"type": "function",
|
|
725
|
+
"name": "migrateFactory",
|
|
726
|
+
"inputs": [
|
|
727
|
+
{
|
|
728
|
+
"name": "newFactory",
|
|
729
|
+
"type": "address",
|
|
730
|
+
"internalType": "address"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"name": "custodyInit",
|
|
734
|
+
"type": "bytes",
|
|
735
|
+
"internalType": "bytes"
|
|
736
|
+
}
|
|
737
|
+
],
|
|
738
|
+
"outputs": [],
|
|
739
|
+
"stateMutability": "nonpayable"
|
|
740
|
+
},
|
|
766
741
|
{
|
|
767
742
|
"type": "function",
|
|
768
743
|
"name": "passkeyCount",
|
|
@@ -949,6 +924,19 @@
|
|
|
949
924
|
"outputs": [],
|
|
950
925
|
"stateMutability": "nonpayable"
|
|
951
926
|
},
|
|
927
|
+
{
|
|
928
|
+
"type": "function",
|
|
929
|
+
"name": "signatureVerifier",
|
|
930
|
+
"inputs": [],
|
|
931
|
+
"outputs": [
|
|
932
|
+
{
|
|
933
|
+
"name": "",
|
|
934
|
+
"type": "address",
|
|
935
|
+
"internalType": "address"
|
|
936
|
+
}
|
|
937
|
+
],
|
|
938
|
+
"stateMutability": "view"
|
|
939
|
+
},
|
|
952
940
|
{
|
|
953
941
|
"type": "function",
|
|
954
942
|
"name": "supportsExecutionMode",
|
|
@@ -1295,6 +1283,25 @@
|
|
|
1295
1283
|
],
|
|
1296
1284
|
"anonymous": false
|
|
1297
1285
|
},
|
|
1286
|
+
{
|
|
1287
|
+
"type": "event",
|
|
1288
|
+
"name": "FactoryMigrated",
|
|
1289
|
+
"inputs": [
|
|
1290
|
+
{
|
|
1291
|
+
"name": "oldFactory",
|
|
1292
|
+
"type": "address",
|
|
1293
|
+
"indexed": true,
|
|
1294
|
+
"internalType": "address"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "newFactory",
|
|
1298
|
+
"type": "address",
|
|
1299
|
+
"indexed": true,
|
|
1300
|
+
"internalType": "address"
|
|
1301
|
+
}
|
|
1302
|
+
],
|
|
1303
|
+
"anonymous": false
|
|
1304
|
+
},
|
|
1298
1305
|
{
|
|
1299
1306
|
"type": "event",
|
|
1300
1307
|
"name": "Initialized",
|
|
@@ -1546,6 +1553,11 @@
|
|
|
1546
1553
|
}
|
|
1547
1554
|
]
|
|
1548
1555
|
},
|
|
1556
|
+
{
|
|
1557
|
+
"type": "error",
|
|
1558
|
+
"name": "ApprovalAfterCustodyChange",
|
|
1559
|
+
"inputs": []
|
|
1560
|
+
},
|
|
1549
1561
|
{
|
|
1550
1562
|
"type": "error",
|
|
1551
1563
|
"name": "ApprovedHashRegistryOnlyViaAccount",
|
|
@@ -1583,6 +1595,17 @@
|
|
|
1583
1595
|
}
|
|
1584
1596
|
]
|
|
1585
1597
|
},
|
|
1598
|
+
{
|
|
1599
|
+
"type": "error",
|
|
1600
|
+
"name": "CustodyInitMismatch",
|
|
1601
|
+
"inputs": [
|
|
1602
|
+
{
|
|
1603
|
+
"name": "governed",
|
|
1604
|
+
"type": "bool",
|
|
1605
|
+
"internalType": "bool"
|
|
1606
|
+
}
|
|
1607
|
+
]
|
|
1608
|
+
},
|
|
1586
1609
|
{
|
|
1587
1610
|
"type": "error",
|
|
1588
1611
|
"name": "DelegatedGovernanceForbidden",
|
|
@@ -1681,6 +1704,11 @@
|
|
|
1681
1704
|
"name": "LegacyUpgradePathDisabled",
|
|
1682
1705
|
"inputs": []
|
|
1683
1706
|
},
|
|
1707
|
+
{
|
|
1708
|
+
"type": "error",
|
|
1709
|
+
"name": "MigrationOnly",
|
|
1710
|
+
"inputs": []
|
|
1711
|
+
},
|
|
1684
1712
|
{
|
|
1685
1713
|
"type": "error",
|
|
1686
1714
|
"name": "ModuleAlreadyInstalled",
|
|
@@ -1767,6 +1795,17 @@
|
|
|
1767
1795
|
"name": "NoPendingUpgrade",
|
|
1768
1796
|
"inputs": []
|
|
1769
1797
|
},
|
|
1798
|
+
{
|
|
1799
|
+
"type": "error",
|
|
1800
|
+
"name": "NotAFactory",
|
|
1801
|
+
"inputs": [
|
|
1802
|
+
{
|
|
1803
|
+
"name": "target",
|
|
1804
|
+
"type": "address",
|
|
1805
|
+
"internalType": "address"
|
|
1806
|
+
}
|
|
1807
|
+
]
|
|
1808
|
+
},
|
|
1770
1809
|
{
|
|
1771
1810
|
"type": "error",
|
|
1772
1811
|
"name": "NotBundler",
|
|
@@ -89,6 +89,32 @@
|
|
|
89
89
|
],
|
|
90
90
|
"stateMutability": "view"
|
|
91
91
|
},
|
|
92
|
+
{
|
|
93
|
+
"type": "function",
|
|
94
|
+
"name": "UPGRADE_INTERFACE_VERSION",
|
|
95
|
+
"inputs": [],
|
|
96
|
+
"outputs": [
|
|
97
|
+
{
|
|
98
|
+
"name": "",
|
|
99
|
+
"type": "string",
|
|
100
|
+
"internalType": "string"
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"stateMutability": "view"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"type": "function",
|
|
107
|
+
"name": "accountBootstrap",
|
|
108
|
+
"inputs": [],
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"name": "",
|
|
112
|
+
"type": "address",
|
|
113
|
+
"internalType": "contract AccountBootstrap"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "view"
|
|
117
|
+
},
|
|
92
118
|
{
|
|
93
119
|
"type": "function",
|
|
94
120
|
"name": "accountImplementation",
|
|
@@ -299,6 +325,43 @@
|
|
|
299
325
|
],
|
|
300
326
|
"stateMutability": "view"
|
|
301
327
|
},
|
|
328
|
+
{
|
|
329
|
+
"type": "function",
|
|
330
|
+
"name": "initializeFactory",
|
|
331
|
+
"inputs": [
|
|
332
|
+
{
|
|
333
|
+
"name": "bundlerSigner_",
|
|
334
|
+
"type": "address",
|
|
335
|
+
"internalType": "address"
|
|
336
|
+
},
|
|
337
|
+
{
|
|
338
|
+
"name": "sessionIssuer_",
|
|
339
|
+
"type": "address",
|
|
340
|
+
"internalType": "address"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"outputs": [],
|
|
344
|
+
"stateMutability": "nonpayable"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"type": "function",
|
|
348
|
+
"name": "isAccountFromFactory",
|
|
349
|
+
"inputs": [
|
|
350
|
+
{
|
|
351
|
+
"name": "account",
|
|
352
|
+
"type": "address",
|
|
353
|
+
"internalType": "address"
|
|
354
|
+
}
|
|
355
|
+
],
|
|
356
|
+
"outputs": [
|
|
357
|
+
{
|
|
358
|
+
"name": "",
|
|
359
|
+
"type": "bool",
|
|
360
|
+
"internalType": "bool"
|
|
361
|
+
}
|
|
362
|
+
],
|
|
363
|
+
"stateMutability": "view"
|
|
364
|
+
},
|
|
302
365
|
{
|
|
303
366
|
"type": "function",
|
|
304
367
|
"name": "paused",
|
|
@@ -312,6 +375,19 @@
|
|
|
312
375
|
],
|
|
313
376
|
"stateMutability": "view"
|
|
314
377
|
},
|
|
378
|
+
{
|
|
379
|
+
"type": "function",
|
|
380
|
+
"name": "proxiableUUID",
|
|
381
|
+
"inputs": [],
|
|
382
|
+
"outputs": [
|
|
383
|
+
{
|
|
384
|
+
"name": "",
|
|
385
|
+
"type": "bytes32",
|
|
386
|
+
"internalType": "bytes32"
|
|
387
|
+
}
|
|
388
|
+
],
|
|
389
|
+
"stateMutability": "view"
|
|
390
|
+
},
|
|
315
391
|
{
|
|
316
392
|
"type": "function",
|
|
317
393
|
"name": "relaxedT4Floor",
|
|
@@ -364,6 +440,24 @@
|
|
|
364
440
|
"outputs": [],
|
|
365
441
|
"stateMutability": "nonpayable"
|
|
366
442
|
},
|
|
443
|
+
{
|
|
444
|
+
"type": "function",
|
|
445
|
+
"name": "upgradeToAndCall",
|
|
446
|
+
"inputs": [
|
|
447
|
+
{
|
|
448
|
+
"name": "newImplementation",
|
|
449
|
+
"type": "address",
|
|
450
|
+
"internalType": "address"
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "data",
|
|
454
|
+
"type": "bytes",
|
|
455
|
+
"internalType": "bytes"
|
|
456
|
+
}
|
|
457
|
+
],
|
|
458
|
+
"outputs": [],
|
|
459
|
+
"stateMutability": "payable"
|
|
460
|
+
},
|
|
367
461
|
{
|
|
368
462
|
"type": "function",
|
|
369
463
|
"name": "upgradeVoucher",
|
|
@@ -433,6 +527,19 @@
|
|
|
433
527
|
],
|
|
434
528
|
"anonymous": false
|
|
435
529
|
},
|
|
530
|
+
{
|
|
531
|
+
"type": "event",
|
|
532
|
+
"name": "Initialized",
|
|
533
|
+
"inputs": [
|
|
534
|
+
{
|
|
535
|
+
"name": "version",
|
|
536
|
+
"type": "uint64",
|
|
537
|
+
"indexed": false,
|
|
538
|
+
"internalType": "uint64"
|
|
539
|
+
}
|
|
540
|
+
],
|
|
541
|
+
"anonymous": false
|
|
542
|
+
},
|
|
436
543
|
{
|
|
437
544
|
"type": "event",
|
|
438
545
|
"name": "SessionIssuerChanged",
|
|
@@ -452,6 +559,62 @@
|
|
|
452
559
|
],
|
|
453
560
|
"anonymous": false
|
|
454
561
|
},
|
|
562
|
+
{
|
|
563
|
+
"type": "event",
|
|
564
|
+
"name": "Upgraded",
|
|
565
|
+
"inputs": [
|
|
566
|
+
{
|
|
567
|
+
"name": "implementation",
|
|
568
|
+
"type": "address",
|
|
569
|
+
"indexed": true,
|
|
570
|
+
"internalType": "address"
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
"anonymous": false
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"type": "error",
|
|
577
|
+
"name": "AddressEmptyCode",
|
|
578
|
+
"inputs": [
|
|
579
|
+
{
|
|
580
|
+
"name": "target",
|
|
581
|
+
"type": "address",
|
|
582
|
+
"internalType": "address"
|
|
583
|
+
}
|
|
584
|
+
]
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"type": "error",
|
|
588
|
+
"name": "DelegatedEOA",
|
|
589
|
+
"inputs": [
|
|
590
|
+
{
|
|
591
|
+
"name": "account",
|
|
592
|
+
"type": "address",
|
|
593
|
+
"internalType": "address"
|
|
594
|
+
}
|
|
595
|
+
]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"type": "error",
|
|
599
|
+
"name": "ERC1967InvalidImplementation",
|
|
600
|
+
"inputs": [
|
|
601
|
+
{
|
|
602
|
+
"name": "implementation",
|
|
603
|
+
"type": "address",
|
|
604
|
+
"internalType": "address"
|
|
605
|
+
}
|
|
606
|
+
]
|
|
607
|
+
},
|
|
608
|
+
{
|
|
609
|
+
"type": "error",
|
|
610
|
+
"name": "ERC1967NonPayable",
|
|
611
|
+
"inputs": []
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
"type": "error",
|
|
615
|
+
"name": "FailedInnerCall",
|
|
616
|
+
"inputs": []
|
|
617
|
+
},
|
|
455
618
|
{
|
|
456
619
|
"type": "error",
|
|
457
620
|
"name": "InfeasibleOrgConfig",
|
|
@@ -484,6 +647,11 @@
|
|
|
484
647
|
}
|
|
485
648
|
]
|
|
486
649
|
},
|
|
650
|
+
{
|
|
651
|
+
"type": "error",
|
|
652
|
+
"name": "InvalidInitialization",
|
|
653
|
+
"inputs": []
|
|
654
|
+
},
|
|
487
655
|
{
|
|
488
656
|
"type": "error",
|
|
489
657
|
"name": "InvalidMode",
|
|
@@ -505,6 +673,11 @@
|
|
|
505
673
|
"name": "NotGovernance",
|
|
506
674
|
"inputs": []
|
|
507
675
|
},
|
|
676
|
+
{
|
|
677
|
+
"type": "error",
|
|
678
|
+
"name": "NotInitializing",
|
|
679
|
+
"inputs": []
|
|
680
|
+
},
|
|
508
681
|
{
|
|
509
682
|
"type": "error",
|
|
510
683
|
"name": "SelfPasskeyTrusteeWithoutPasskey",
|
|
@@ -579,6 +752,22 @@
|
|
|
579
752
|
}
|
|
580
753
|
]
|
|
581
754
|
},
|
|
755
|
+
{
|
|
756
|
+
"type": "error",
|
|
757
|
+
"name": "UUPSUnauthorizedCallContext",
|
|
758
|
+
"inputs": []
|
|
759
|
+
},
|
|
760
|
+
{
|
|
761
|
+
"type": "error",
|
|
762
|
+
"name": "UUPSUnsupportedProxiableUUID",
|
|
763
|
+
"inputs": [
|
|
764
|
+
{
|
|
765
|
+
"name": "slot",
|
|
766
|
+
"type": "bytes32",
|
|
767
|
+
"internalType": "bytes32"
|
|
768
|
+
}
|
|
769
|
+
]
|
|
770
|
+
},
|
|
582
771
|
{
|
|
583
772
|
"type": "error",
|
|
584
773
|
"name": "ZeroAddress",
|