Skip to content

feat(prepareMigration): add post-pre-migration role-swap script#271

Draft
hiddentao wants to merge 4 commits intomainfrom
feature/bet-593-prepare-migration-script-to-be-run-after-all-pre-migrations
Draft

feat(prepareMigration): add post-pre-migration role-swap script#271
hiddentao wants to merge 4 commits intomainfrom
feature/bet-593-prepare-migration-script-to-be-run-after-all-pre-migrations

Conversation

@hiddentao
Copy link
Copy Markdown
Collaborator

Introduces prepareMigration.ts to revoke BatchRegistrar's seeding roles on the .eth PermissionedRegistry and grant registration roles to ETHRegistrar and the Unlocked/Locked migration controllers. Extracts shared viem client/artifact helpers into scriptUtils.ts and refactors preMigration.ts to consume them. Adds e2e coverage plus a test helper that reverts the devnet into a true pre-prepareMigration state.

Introduces `prepareMigration.ts` to revoke BatchRegistrar's seeding roles
on the .eth PermissionedRegistry and grant registration roles to
ETHRegistrar and the Unlocked/Locked migration controllers. Extracts
shared viem client/artifact helpers into `scriptUtils.ts` and refactors
`preMigration.ts` to consume them. Adds e2e coverage plus a test helper
that reverts the devnet into a true pre-prepareMigration state.
Add contracts/docs/prepareMigration.md covering the script's role changes,
prerequisites, CLI flags, workflow, and dry-run/execute examples. Link both
the pre-migration and prepare-migration docs from the contracts README
Migration Controllers section.
…HRegistrar

Fully decommissions BatchRegistrar by also revoking ROLE_RENEW and
ROLE_RENEW_ADMIN, and grants ROLE_RENEW to ETHRegistrar so renewals
flow through the live registrar after hand-off. Updates docs and e2e
tests to reflect the new post-state where BatchRegistrar holds no roles.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant