Plan the shutdown before the rewrite
Governance, validator coordination, IBC cutoffs, exchange notice, and archival
strategy need to be locked before destination programs are final.
Separate token migration from product migration
Snapshot rules, claim flows, bridge mechanics, and unclaimed-token policy should
be explicit projects with their own owners, operators, and support playbooks.
Launch on Solana like a production cutover
The token mint, metadata, vault authorities, claim program, liquidity,
governance, and user comms all need to go live in a sequence you can rehearse
and defend.
Before you start
This runbook covers the halt-and-claim path: the Cosmos chain stops, and holders claim their balances on Solana. If the chain needs to keep running, follow the IBC bridge guide instead. The app chain overview compares the two paths and maps Cosmos concepts to Solana. Prerequisite: the code-level work of rewriting CosmWasm contracts and custom modules as Solana programs is covered in the CosmWasm migration guide. The phases below assume that rewrite is planned or underway. On Solana, a program is executable onchain code, an account is the durable state that programs read and write, and a transaction is the signed bundle of instructions that asks programs to do work. Sentinel is a reference implementation of this path. Its design choices appear throughout the runbook and are summarized in the case study.Phase 0: Planning & announcement
Internal alignment
Do this before any public message goes out.- Agree on a target halt window internally. Ninety days from public announcement is a sensible minimum.
- Inventory every user-held asset: liquid balances, staked balances, unbondings, LP positions, NFTs, vesting, escrow, and contract balances.
- Map every contract and module to one of three outcomes: migrate, replace, or deprecate.
- Audit every active IBC channel and identify external relayer operators and counterparty teams.
- Contact major validator operators privately before the public announcement.
- Give listed exchanges meaningful notice before the public migration window begins.
- Prepare a coordinated user communications plan: synchronized announcements across your channels plus persistent banner notifications on your site, apps, and block explorers, each linking to a canonical migration info page. The channel-by-channel communication plan in Phase 6 is the template to start filling in now.
- Draft the governance proposal and the technical shutdown runbook in parallel.
- Decide what the migration portal will need to do for identity linking and claims.
Community governance
Even if the team can coordinate a validator halt without formal governance, skipping governance usually destroys trust. The operationally clean approach is to publish a temperature-check discussion first and a binding governance action later. The proposal should explain the new Solana asset clearly. Most migrated fungible tokens become SPL tokens: tokens managed by Solana token programs rather than by your retired Cosmos chain.Recommended timeline
Phase 1: Cosmos chain shutdown (technical)
Set the halt block height
Choose a height far enough in the future that validators, exchanges, relayers, and users can act. Every validator should configure the same halt height.Terminal
Export final state
Terminal
Terminal
Compute the canonical snapshot
For a 1:1 token migration, merge bank balances, delegations, unbondings, module balances you intend to honor, and any contract-side token balances you promise to preserve.sentinel-snapshot tool is a Go reference for this step:
before it reads balances, it checks the halt header against a commit signed by
more than two-thirds of the validator set and recomputes the state root, then it
reconciles every leaf plus the treasury against total supply at the halt height.
It also flags module and IBC-escrow addresses whose balances would otherwise end
up unclaimable.
Handle IBC channels
- Pause relayers before the halt so no new packets enter the queue.
- Drain or timeout in-flight packets intentionally.
- Notify counterparty chains and relayer operators with real dates, not vague warnings.
close-init; the
transfer module rejects user-initiated closes. Wind them down by pausing
relayers and letting in-flight packets time out, then coordinate counterparties
on the halt date.
Validator offboarding
- Ask validators to archive their final node state and signing-state files.
- Pay or reconcile any final commission or support obligations before they disappear.
- Publish a formal validator offboarding memo with the halt height, export steps, and archive expectations.
Phase 2: Token migration architecture
For most chain shutdowns, the cleanest design is a snapshot-driven Merkle tree claimer on Solana. Instead of keeping a bridge alive after the Cosmos chain halts, you finalize balances off-chain, commit one Merkle root on Solana, fund a claim vault, and let each user prove their entitlement once. A Merkle root is a compact cryptographic commitment to the full claims file. A claim vault is a token account funded with the migration supply. The claim program verifies each proof, releases the right SPL token amount, and records that the claim is complete. A working reference is available in the example Merkle token claimer.Recommended architecture: Merkle tree claimer
- Take a final Cosmos snapshot and normalize the balance dataset you intend to honor.
- Convert each claim into a deterministic leaf. With pre-registration, the leaf
names the Solana recipient:
{index, recipient, amount}. With signature claims, it names the Cosmos account instead:{index, cosmos_address, amount}. See address linking. - Build the Merkle tree off-chain and publish the root plus the full snapshot artifact for community review.
- Deploy a Solana claim program that stores the Merkle root, vault authority, token mint or token-vault accounts, and claim window.
- Fund the claim vault with the full migration supply.
- Require each claimant to submit their amount, leaf index, and Merkle proof, then mark that leaf as claimed in onchain state and transfer their SPL tokens.
What the Solana claimer should own
In the Rust-style structs below,Address is the current Solana SDK type for an
address: the base58-encoded public
key of an account,
program, mint, vault, or wallet. Anchor programs still name the same 32-byte
type Pubkey, which is why the Anchor snippets in this guide use that name.
transfer_from_vault is where a Cross Program Invocation
(CPI) happens: the claim program calls the SPL Token
program to move tokens from the vault into the claimant’s token account. Because
the vault authority is a PDA, the program signs that CPI with the authority’s
seeds instead of a private key. In Anchor the transfer looks like this:
Why this architecture is usually better
- You only need one canonical balance export, not a live cross-chain relay after shutdown.
- Anyone can audit the published claims file and recompute the Merkle root before launch.
- The on-chain program stays small: proof verification, token release, and replay protection.
- Support operations get simpler because each failed claim is tied to a specific leaf, proof, and recipient address.
Unclaimed token policy
| Policy | Description | Tradeoff |
|---|---|---|
| Burn | Unclaimed balances disappear after the window. | Simple but punitive. |
| Community treasury | Unclaimed balances move to multisig or DAO control. | Flexible but politically sensitive. |
| Extended claim escrow | Hold balances for a longer claim period under a governed escrow. | User-friendly but more operational work. |
| Permanent program escrow | Leave unclaimed balances claimable in the program escrow forever, with no deadline. | The least hostile to users, but the “real” circulating supply stays permanently uncertain. |
| Decaying claims | Build a decay factor into the claim program: for example, 100% of the allocation for the first year, then decreasing linearly to zero by year two. | Creates urgency without a hard cliff, but adds program logic and still needs a destination for the decayed remainder. |
Address linking
Cosmos users usually hold Bech32-encoded account addresses backed by secp256k1 keys, while Solana wallets use base58-encoded Ed25519 public keys. Neither can be derived from the other, so every claim needs a way to prove that the person receiving tokens on Solana controls the Cosmos account in the snapshot. Keep the layers separate in your design: Bech32 is an address format, Cosmos account keys are usually secp256k1 for transaction signing, and validator consensus keys are a different identity entirely. Do not assume a validator key or node operator identity should map to a user claim. There are two ways to link addresses. Many migrations offer both.| Pre-registration | Signature claim | |
|---|---|---|
| When the holder acts | Before the snapshot, on Cosmos | After the snapshot, on Solana |
| What the leaf contains | The Solana recipient | The Cosmos address |
| What the claim program checks | The signer is the recipient in the leaf | A secp256k1 signature from the Cosmos key over the Solana recipient |
| Wallet requirement | Any Cosmos wallet before the halt | A Cosmos wallet that signs arbitrary data (ADR-036), such as Keplr’s signArbitrary |
| Holders who miss it | Need a fallback path | Can claim at any time the program allows |
Option 1: pre-registration
Before the snapshot, let users register their Solana address on Cosmos so the migration artifact already contains the intended destination. The claim program then only checks that the signer matches the recipient in the leaf.Example: pre-registration record
Option 2: signature claim with the Cosmos key
The holder signs a message with their original Cosmos key that names the Solana wallet to pay. The claim program recovers the secp256k1 public key from that signature, derives the Cosmos address from it, and checks the Merkle proof for that address. Nothing has to happen before the snapshot, and the transaction can be paid for by anyone, because the beneficiary is fixed by the signature. Use the ADR-036 format that Cosmos wallets already support for signing arbitrary data. The wallet signs the SHA-256 hash of this amino JSON sign doc:data as standard base64 with padding. Your
program must rebuild exactly those bytes before hashing, or valid wallet
signatures will fail to verify. Check your implementation against this test
vector:
sol_secp256k1_recover
syscall:
- Reject high-S signatures before recovery so each claim has exactly one valid signature.
- Try both recovery IDs when the wallet does not return one. Recovery is cheap compared to a failed claim.
- Handle accounts that never sent a transaction. Their public key is not on chain, so the snapshot cannot include it. Commit a placeholder key in the leaf and accept any recovered key whose hash matches the address.
- Accounts without a usable key, such as module accounts and IBC escrow addresses, cannot sign. Route their balances to a treasury instead of leaving them unclaimable.
sentinel-programs/programs/distributor and the
distributor_adr036 crate in
sentinel-solana.
Phase 3: Launching on Solana
Create the SPL token
An SPL token has a mint account that defines the token’s decimals, supply controls, and authorities. Match the migrated token’s precision deliberately, and decide whether you need the standard Token Program or Token Extensions for features such as transfer fees, metadata, or compliance controls.Terminal
Add metadata
Without token metadata, wallets and aggregators will show an opaque mint address. Fix this before you send users to the new chain. Attach it with the Metaplex Token Metadata program, which works with mints from both the Token Program and Token-2022, or use the built-in metadata extension if you created the mint with Token-2022. If you script the launch instead of using the CLI, Create a Token Mint walks through the same steps in code and links both metadata options at the end. Either path points to a JSON file you host:Mint supply and lock authorities deliberately
Terminal
Multisig, token lists, and liquidity
- Move treasury and migration vault control to a multisig such as Squads.
- Bridge the treasury assets you need on day one: native USDC moves from Cosmos (Noble) to Solana through Circle’s Cross-Chain Transfer Protocol, and other assets need an established bridge route you have rehearsed with a small transfer first.
- Fund operational wallets with mainnet SOL for deploys, rent, and fee payers before cutover week, and review the Solana Foundation grants and funding page for ecosystem support programs.
- Submit token metadata to the venues and registries your users will rely on.
- Seed at least one meaningful liquidity venue before the migration rush begins.
Phase 4: Smart contract / program migration
The contract rewrite itself is covered in the CosmWasm migration guide. Operationally, this phase is about deciding which live chain state must survive and how it will be represented as Solana accounts.Categorize every contract and module
Vesting migration
Financial obligations such as vesting schedules need exact treatment. Export them explicitly and initialize equivalent Solana state, not ad-hoc spreadsheets. In Anchor, a Rust framework for Solana programs,#[account] marks a struct that will be serialized into a
Solana account.
Terminal
create_new_vest: validate the schedule before writing it: amounts above zero,start_timestampbeforeend_timestamp, and a recipient that matches the exported Cosmos data. Initialize the schedule PDA from stable seeds such as[b"vesting", recipient], store the bump, setclaimed_amountto zero, and transfer the full allocation into a vault owned by the program’s PDA authority in the same transaction, so a schedule can never exist unfunded.claim_vest: require the claimant to sign and matchschedule.recipient, read the current time from the Clock sysvar, and compute the vested amount with checked math: linear interpolation between the timestamps, plus whatever cliff rules you exported. Pay outvested - claimed_amount, updateclaimed_amountbefore transferring from the vault via the PDA signer, and reject claims where nothing new has vested.
NFT migration
CW721 metadata is closer to Solana’s than it looks. A CW721 token points at off-chain JSON throughtoken_uri (or stores the same fields on-chain in its
metadata extension), and those fields follow the OpenSea-style standard.
Metaplex
JSON
shares the core fields, so name, description, image, animation_url,
external_url, and attributes usually carry over unchanged; a well-formed
existing token_uri can often be reused as-is.
Map the differences deliberately: Metaplex JSON also expects a category and a
properties.files array with a URI and MIME type per file; royalty
configuration moves out of the JSON into onchain royalty settings such as the
Metaplex Core Royalties Plugin; and CW721-only fields like background_color
and youtube_url have no direct equivalent. Re-host any metadata or media you
do not control on durable storage before the source chain halts.
- Pick the Solana NFT or digital-asset standard before writing claim logic. For large collections, Bubblegum compressed NFTs keep mass minting affordable (on the order of 5 SOL all-in for a million assets), but wallets and marketplaces read them through DAS-API indexers rather than plain account fetches, so confirm your target tooling supports them first.
- Preserve provenance and identifiers intentionally where external integrations depend on them.
- Distribute with the same Merkle pattern as the token claimer: snapshot CW721
ownership as
{contract, token_id, owner, solana_address}leaves, publish the root, and let each owner claim a mint of the corresponding Solana asset (for compressed assets, the claim instruction mints via CPI into Bubblegum).
DeFi positions
Liquidity positions: snapshot LP balances and the asset ratios you need to honor at migration time. Decide whether users receive migrated LP positions, underlying assets, or a fresh liquidity program entry on Solana. Lending and borrowing: snapshot collateral, liabilities, and risk state. Resolve bad debt and policy exceptions before migration so you do not import insolvency into a new environment. Delegation and rewards: define how staking, pending unbonding, and accrued rewards map into the Solana-side product.What usually does not migrate 1:1
- Validator operations: your app no longer owns a dedicated validator set after the move.
- IBC channels and client state: these need a new cross-chain integration plan rather than a literal port.
- Module internals: Cosmos module parameters and store layouts rarely map cleanly into Solana account layouts.
- Indexer assumptions: dashboards and support tooling usually need a new read model built around Solana accounts and logs.
Solana constraints to plan around
- Programs are stateless: durable migration data must live in accounts, not inside the executable.
- Account allocation has cost: account sizing, rent, and resize strategy affect both migration design and user experience.
- Transaction envelopes are bounded: large claims, proof payloads, or fan-out jobs may need to be chunked across multiple instructions or batches.
- Compute per transaction is finite: expensive verification or multi-program flows need budgeting and profiling before production rollout.
- Operational jobs must be restartable: large migrations should assume retries, partial completion, and resumable execution.
- Read models often move off-chain: dashboards, audits, and support tools usually depend on indexed account data rather than on-chain query entrypoints.
Phase 5: Governance migration
Realms is the main DAO and treasury-management interface for Solana. It sits on top of SPL Governance, the Solana governance program, and gives you proposal workflows, voting configuration, DAO treasuries, and governed execution for actions such as treasury transfers and program upgrades. If your Cosmos chain used on-chain governance for signaling, treasury control, or upgrade approval, the closest Solana-native destination is usually a Realm plus one or more governed treasuries. The migration is not one-to-one: Cosmos governance controls chain state, while Solana governance usually controls assets, program authorities, and operational workflows.| Cosmos model | Solana destination |
|---|---|
| Text proposals | Snapshot or other off-chain governance process |
| Parameter changes | Governed admin program or multisig-controlled program authority |
| Upgrade proposals | Squads or similar controlled upgrade-authority flow |
| Community pool | Realms or treasury multisig |
Realms vs. Squads
Both get described as treasury management, which makes them easy to confuse. They solve different problems:- Realms is token-weighted governance. Voting power
comes from community (or council) tokens deposited into the Realm, proposals
are voted on by token holders, and passed proposals execute their instructions
on-chain. It is the closest analog to the Cosmos
x/govmodule and community pool. - Squads is a multisig. A small, named set of member keys approves transactions against an M-of-N threshold; no token voting involved. It is the tool for operational custody: day-to-day treasury operations, program upgrade authority, and mint or freeze authorities.
How to migrate governance cleanly
- Create the new DAO in Realms before or alongside token launch so treasury control and program authority do not live on a temporary signer longer than necessary.
- Decide whether governance power comes from the migrated community token, a council token, or a dual structure where a smaller council handles urgent operations.
- Move treasury assets, mint authority, freeze authority, and upgrade authority into governed accounts intentionally instead of leaving them on deployer wallets.
- Rewrite recurring Cosmos proposal types as explicit Solana actions: treasury transfers, parameter updates through admin programs, and program upgrades through governed execution.
Practical mapping
An upgrade authority is the signer allowed to replace an upgradeable Solana program’s executable code. A Cosmos software-upgrade proposal usually becomes a Solana program-upgrade proposal after that authority is transferred into governance. Treasury and community-pool decisions usually become Realms treasury proposals executed by governed wallets. The main design choice is who can propose and who can veto. Many migrations start with a council-controlled Realm for safety, then expand toward broader token voting once the token, treasury, and program authorities are settled on Solana.Phase 6: User migration & communication
Communication plan
This is the plan you drafted during planning and announcement, now running against real dates. Day 0 is the public announcement.| Channel | Timing | Purpose |
|---|---|---|
| Blog post | Day 0 | Full rationale, timeline, and migration mechanics |
| Discord, Telegram, X | Day 0 | Short-form announcement and reminder cadence |
| Day 0 | Direct notice to known users and partners | |
| Site, app, and explorer banners | Day 0 to halt | Persistent countdown and a link to the canonical migration info page |
| Validator and exchange outreach | Before public launch | Operational heads-up and cutover coordination |
Migration portal requirements
- Connect Cosmos and Solana wallets in the same flow. On the Solana side, wallet-adapter is the established React integration, and the @solana/kit react-app example shows a complete connect and sign-in flow built on the newer wallet-standard hooks.
- Show eligibility and claimable amount from the canonical snapshot.
- Support your chosen address-linking option: show pre-registered destinations, or request an ADR-036 signature from the Cosmos wallet for signature claims.
- Provide status tracking, transaction signatures, and a user-visible audit trail.
Exchange coordination
Custodial platforms need the new mint address, conversion ratio, cutover date, test transaction, and a real technical contact. Large exchanges usually need more notice than your community does.Phase 7: Decommissioning Cosmos infrastructure
Inventory everything first
On Solana, RPC services expose account and transaction data to wallets, indexers, dashboards, and support tools. Keep enough Cosmos RPC, LCD, gRPC, and explorer infrastructure online for users to verify history while the Solana-side product becomes the source of truth.Archive before shutdown
Terminal
Decommissioning sequence
- Stop relayers.
- Halt validators and export final state.
- Keep read-only RPC or LCD services alive long enough for users and explorers to query history.
- Redirect old application domains to the new Solana product.
- Move old infrastructure to an explicit archive or retirement state instead of silently killing it.
Registry and DNS cleanup
- Update chain-registry and public docs to mark the chain as retired.
- Notify relayer operators and counterparties.
- Redirect or retire old RPC, LCD, and application domains on a known schedule.
- Mark old token identifiers as deprecated in market-data surfaces where possible.
Full migration checklist
Decision and planning
- Align internally on destination chain, migration scope, and halt window.
- Complete legal review and asset inventory.
- Classify contracts and modules as migrate, replace, or deprecate.
- Audit IBC channels, relayers, counterparties, validators, and exchange dependencies.
Community and communication
- Publish a forum rationale before the binding governance action.
- Coordinate exchanges, validators, relayers, and counterparties before the public rush.
- Publish a repeated reminder schedule with exact dates and heights.
Cosmos shutdown
- Set and verify the halt height across validators.
- Pause relayers and unwind IBC where needed.
- Export final state and derive the canonical balance and entitlement ledgers.
- Archive node data and state artifacts to durable storage.
SPL launch and migration mechanics
- Create the token mint, metadata, treasury accounts, and multisig control plane.
- Confirm halt and claim is the right path; compare it with the IBC bridge.
- Choose the address-linking option: pre-registration, signature claims, or both.
- Define the unclaimed-token policy before launch.
- Deploy and rehearse the claim or bridge programs.
Governance migration
- Create the new Realm, council, and governed treasury accounts before handing over critical authorities.
- Move mint authority, freeze authority, treasury control, and program upgrade authority into the chosen governance system.
- Decide which actions require token voting, council approval, or multisig execution during the transition period.
Programs and product migration
- Recreate stateful obligations such as vesting, escrow, and rewards intentionally.
- Rewrite the frontend and support tooling for Solana wallets and transaction semantics.
Post-migration operations
- Monitor claim completion rate and support queues.
- Publish a post-migration report with totals, deadlines, and leftover policy.
- Retire or archive remaining Cosmos infrastructure on a public schedule.
Learn from other teams
What worked in prior migrations
- One-way migration windows with a public deadline and exchange coordination created urgency and high completion rates.
- Public request-for-proposal or evaluation processes gave the community a real decision framework instead of a hand-wavy announcement.
- Long notice periods of 60 to 90 days reduced stranded balances and support chaos.
- Archiving chain state preserved auditability and historical support data.
What failed
- Short notice windows stranded meaningful supply.
- Skipping exchange coordination left custodial users behind.
- Teams that failed to archive state lost an authoritative record of balances and protocol history.
Case study: Sentinel
Sentinel runs a decentralized VPN on its own Cosmos SDK chain and is moving it to Solana with this path. The code is open source in sentinel-solana, a monorepo of the programs, Go SDK, client, daemon, and snapshot tooling. No mainnet deployment was published when this guide was written, so check the repository for current status.What they built
- A dVPN program that replaces the chain’s node, provider, plan, and subscription modules, with escrowed payment channels between users and nodes.
- A distributor program that pays out the final snapshot from a Token-2022 vault, with signature claims, 128 sharded Merkle roots, a claim bitmap per shard, and vesting carried in the leaves.
- A snapshot tool in Go that authenticates the halt state against the validator set and reconciles every leaf against total supply.
- A Go client generated from the programs’ IDLs on every build, used by the SDK and daemon through solana-go.
Design choices worth copying
- No pre-registration. Holders sign with their Cosmos key after the snapshot, and the signature fixes the Solana beneficiary, so someone else can pay the transaction fee.
- A setup that checks itself. The final genesis step refuses to run unless the roots match the expected commitment, the vault holds exactly the claimable total, vault plus treasury equals mint supply, and the mint and freeze authorities are already revoked.
- Corrections only before finalization. Totals and bitmaps can be fixed during setup. After the final step, no admin instruction can change the claims. The program’s upgrade authority still exists, so hold it in a multisig.