Migration Guide

Governance Integration

Proposal Flow

  1. Create Batch Proposal: Submit MsgMigrateContractProposal with multiple contracts

  2. Voting Period: Standard governance voting process

  3. Execution: If passed, authorizations are stored for all contracts

  4. Migration: Admin/Proxy contract can execute migrations

  5. Cleanup: Authorizations are consumed and deleted

For Contract Admins

Enable Governance for Your Contract

# Enable governance requirement (one-way operation)
secretcli tx compute set-contract-governance <your-contract> --from <admin>

Check Authorization Status

# Check if your contract has pending authorization
secretcli query compute authorized-migration <your-contract>

For Governance-Only Contracts

Setup Governance-Only Migration

For Governance Participants

Create Migration Proposal

Execute Authorized Migration

Last updated

Was this helpful?