Context
Part of AEP-76 BME migration. After the chain upgrade enables BME and the funding wallet receives pre-minted ACT, existing managed wallet users need their USDC authz grants converted to ACT authz grants.
Tasks
Cutover Sequence
Step 1: DEPLOYMENT_GRANT_DENOM=uusdc ← current state
Step 2: Chain upgrade (BME enabled, funding wallet gets ACT)
Step 3: Run this migration script
Step 4: DEPLOYMENT_GRANT_DENOM=uact, NEXT_PUBLIC_MANAGED_WALLET_DENOM=uact
Acceptance Criteria
- All managed wallets have valid ACT authz grants after migration
- USDC authz grants are revoked
- DB
deploymentAllowance values match new ACT grant amounts
- Fee allowance grants (uakt) are preserved
- Dry-run mode works for testing on sandbox/testnet
- Script is idempotent (safe to re-run)
Milestone
AEP-76: BME Migration — Phase 7 (Migration)
Reference
docs/aep-76-bme-migration-plan.md
Context
Part of AEP-76 BME migration. After the chain upgrade enables BME and the funding wallet receives pre-minted ACT, existing managed wallet users need their USDC authz grants converted to ACT authz grants.
Tasks
apps/api/src/billing/scripts/migrate-to-bme.tsdeploymentAllowanceDepositAuthorizationgrant amountDepositAuthorizationgrantDepositAuthorizationgrant with equivalent amountdeploymentAllowancein DBCutover Sequence
Acceptance Criteria
deploymentAllowancevalues match new ACT grant amountsMilestone
AEP-76: BME Migration — Phase 7 (Migration)
Reference
docs/aep-76-bme-migration-plan.md