Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross chain Solana deployment scenario #675

Open
1 of 21 tasks
dimpar opened this issue Jul 30, 2023 · 0 comments
Open
1 of 21 tasks

Cross chain Solana deployment scenario #675

dimpar opened this issue Jul 30, 2023 · 0 comments
Assignees

Comments

@dimpar
Copy link
Contributor

dimpar commented Jul 30, 2023

Refs PR #659

Team Address
Deployment Team 9MkXjvYg9knEP1i4RJkhxtHxLBjf3ZRoFSrVRWZKPaYL
Threshold Council Squads Multisig 814TqVmhQGKB3srSLRuMcH6m8qWFHRSbNpRxC5Xnador

Package preparation

  • Change the package version of @keep-network/tbtc-v2-solana to 1.0.0

Sol on Solana for deployment

  • Fund deployment wallet with SOL.

Attest/register token

  • Register tBTC token on Solana (L1 tx: https://etherscan.io/tx/0x5d112eb10f9ea3d17ba3a5ddd26fa5c5d71478bf9577a55b934d1789dc5f1aa7, Solana tx: https://solscan.io/tx/387PdEHytCAG2jhheCjc8LP8bskPWYuTAtZUtFKnFeDKdNu8i3jQrxiNgdbztBjYByjbkHvSnGRbgkCWAxaZrhkT)
  • Confirm wormhole tBTC token address on Solana (address: 25rXTx9zDZcHyTav5sRqM6YBvTGu9pPH9yv83uAEqbgG)

Smart contracts

The Deployment Team does all the steps.

TODO: depends on #671 (deploy.sh --cluster mainnet-beta)

Tag the new version

The Deployment Team does all the steps

  • Create releases/mainnet/cross-chain/solana/v1.0.0 release branch
  • Pin mainnet versions in cross-chain/solana/package.json
  • Tag cross-chain/solana/v1.0.0
  • Sign cross-chain/solana/v1.0.0 commit hash

The following steps should be done after the mainnet smoke testing (Ethereum-Solana) is done and no issues are reported.

Update other chains with SolanaWormholeGateway address and chain id.

This will need to be executed by the Threshold Council because they have ownership of the contracts. We should give them JSONs to load into Safe. Navigate to tx builder and prepare JSON for each chain:

convert solana address to base58 - Eth address
ethers.utils.hexZeroPad(hex, 32)


The following steps should be done after the rest of mainnet testing is done including Ethereum, Arbitrum, Optimism, Polygon, and Base

Transfer ownership to Threshold Council

  • Transfer SolanaTBTC upgrade ownership (tx: tbd)
  • Transfer SolanaWormholeGateway upgrade ownership (tx: tbd)

Package publication

Done by the Deployment Team

  • Publish cross-chain/solana/v1.0.0 package to NPM
  • Publish release notes for cross-chain/solana/v1.0.0

Push deployment artifacts to version control

  • Push deployment artifacts to releases/mainnet/cross-chain/solana/v1.0.0 release branch
  • Cherry-pick deployment artifacts to the main branch

Post-deployment

  • Bump up version in cross-chain/solana/package.json to v1.1.0-dev

Update Threshold docs with new Solana addresses.

@dimpar dimpar self-assigned this Jul 30, 2023
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

No branches or pull requests

1 participant