Commit b6f6656
committed
feat!: target the post-audit-2 PermissionedResolver
contracts-v2 post-audit-2 (PR #417) rewrote PermissionedResolver: setters take
the DNS-encoded name instead of a node, records are inodes shared between names
via linkToNode/linkToRecord (setAlias is gone), roles are root- or
argument-scoped (grantRootRoles / grantSetterRoles; per-name grants and the
authorize*Roles family are gone), the role bit layout changed, and initialize
takes Grant[] plus an optional multicall. UserRegistry.initialize takes Grant[]
as well.
ensjs-abi: new permissionedResolver snippets (setters, multicall, resolve,
links, grantSetterRoles/decodeSetter/roleCount, initialize, events), a real
revokeRoles, eacGrantInitializeSnippet; the alias, clearRecords,
multicallWithNodeCheck and authorize*Roles snippets are removed.
ensjs: linkToNode / linkToRecord replace setAlias / deleteAlias / clearRecords;
name-based setRecords under wallet/v2; grantResolverRoles / revokeResolverRoles
take root or setter scopes (revoke also a raw resource); deployPermissionedResolver
builds the Grant[] + calls initializer; deployVerifiableProxy and
deploySubregistry default to the Grant[] initializer; resolver role constants and
computeResolverResource follow the new layout; getResolverName reads through
resolve. Devnet tests for the resolver actions are rewritten for the new API and
need a devnet with the post-audit-2 contracts; the encoders are covered by pure
tests.1 parent 4018fc9 commit b6f6656
34 files changed
Lines changed: 2025 additions & 1022 deletions
File tree
- .changeset
- packages
- ensjs-abi/src/v2
- ensjs
- src
- actions
- public
- v1/registry
- v2
- accessControl
- resolver
- wallet/v2
- resolver
- verifiableFactory
- contracts
- exports/wallet
- utils/v2
- resolver
- roles
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments