Skip to content

feat: migrate token policies on zone enablement#697

Draft
legion2002 wants to merge 7 commits into
mainfrom
agent/require-token-policy-binding
Draft

feat: migrate token policies on zone enablement#697
legion2002 wants to merge 7 commits into
mainfrom
agent/require-token-policy-binding

Conversation

@legion2002

@legion2002 legion2002 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

requires 1092 to be live in the environment, only merge after testnet redeployment

Makes ZonePortal migrate a TIP-20 policy binding before enabling the token once TIP-1092 is active, then fail closed unless TIP-403 reports isSet == true. Before activation, it recognizes the gated UnknownFunctionSelector response and preserves existing token enablement.

Covers both initial zone creation and later admin enablement. Uses the canonical (bool isSet, uint64 policyId) interface from tempoxyz/tempo-std#132 and complements tempoxyz/tempo#6846.

Validated with forge fmt --check, forge build --sizes, focused migration, pre-activation, and gas-limit tests, the ZonePortal storage-layout check, cargo test -p tempo-zone-contracts, and the previously failing zone-node restart integration test.

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