|
|
3 năm trước cách đây | |
|---|---|---|
| .. | ||
| artifacts | b662de4efb terra: columbus-5 contracts by default | 4 năm trước cách đây |
| contracts | e13b146dfd Abehjati/refactor-pyth-terra-contract (#195) | 3 năm trước cách đây |
| devnet | 27e8952c8b sdk/js: Updated terra dependencies | 3 năm trước cách đây |
| packages | 40837778a7 terra/nft_bridge: vendor cw721 and cw721-base (#696) | 3 năm trước cách đây |
| test | 2c56a916eb fix bytes -> string, flip arg order to be less confusing | 4 năm trước cách đây |
| tools | 352fa64653 Merge Dev.v2 into main (#181) | 3 năm trước cách đây |
| .dockerignore | e8b411107d Terra contract deployment moved to a separate k8s job (#130) | 5 năm trước cách đây |
| .gitignore | 352fa64653 Merge Dev.v2 into main (#181) | 3 năm trước cách đây |
| Cargo.lock | 60a69d3e83 Update terra contract to use new pyth sdk + new wiring format (#193) | 3 năm trước cách đây |
| Cargo.toml | 352fa64653 Merge Dev.v2 into main (#181) | 3 năm trước cách đây |
| Dockerfile.build | 99e2d4ac09 Add terra build & deploy instructions | 3 năm trước cách đây |
| README.md | 3fc065846e Add terra migrate instructions | 3 năm trước cách đây |
| README.pyth.md | 352fa64653 Merge Dev.v2 into main (#181) | 3 năm trước cách đây |
| build.sh | 352fa64653 Merge Dev.v2 into main (#181) | 3 năm trước cách đây |
| rustfmt.toml | e13b146dfd Abehjati/refactor-pyth-terra-contract (#195) | 3 năm trước cách đây |
First build the contracts
docker build -f Dockerfile.build -o artifacts .
Then, for example, to deploy token_bridge.wasm, run in the tools directory
npm ci
node deploy_single.js --network mainnet --artifact ../artifacts/token_bridge.wasm --mnemonic "..."
which will print something along the lines of
Storing WASM: ../artifacts/token_bridge.wasm (367689 bytes)
Deploy fee: 88446uluna
Code ID: 2435
Migrations on mainnet have to go through governance. Once the guardians sign the
upgrade VAA, the contract can be upgraded by submitting the signed VAA to the
appropriate contract. For example, to upgrade the token bridge on mainnet,
in wormhole/clients/token_bridge/:
node main.js terra execute_governance_vaa <signed VAA (hex)> --rpc "https://lcd.terra.dev" --chain_id "columbus-5" --mnemonic "..." --token_bridge "terra10nmmwe8r3g99a9newtqa7a75xfgs2e8z87r2sf"
For example, to migrate the token bridge to 37262, run in tools/:
node migrate_testnet.js --code_id 37262 --contract terra1pseddrv0yfsn76u4zxrjmtf45kdlmalswdv39a --mnemonic "..."