From 315fd413a8491b84cb151c5f68d3a9ab6f3a4faf Mon Sep 17 00:00:00 2001 From: Dev Kalra Date: Wed, 24 May 2023 17:39:23 +0530 Subject: [PATCH] [cosmwasm] osmosis mainnet deployment (#833) * correct lable * osmosis mainnet deploymnent --- .../tools/src/chains-manager/chains.ts | 4 +- target_chains/cosmwasm/tools/src/helper.ts | 1 + .../cosmwasm/tools/src/instantiate-pyth.ts | 2 +- .../cosmwasm/tools/src/wormhole-stub.ts | 2 +- .../instantiate-pyth/osmosis-1.2.0.json | 22 ++++++++++ .../stable/test-contracts/osmosis-1.2.0.json | 28 +++++++++++++ .../wormhole-stub/stable/osmosis-2.14.9.json | 40 +++++++++++++++++++ 7 files changed, 95 insertions(+), 4 deletions(-) create mode 100644 target_chains/cosmwasm/tools/store/stable/instantiate-pyth/osmosis-1.2.0.json create mode 100644 target_chains/cosmwasm/tools/store/stable/test-contracts/osmosis-1.2.0.json create mode 100644 target_chains/cosmwasm/wormhole-stub/stable/osmosis-2.14.9.json diff --git a/target_chains/cosmwasm/tools/src/chains-manager/chains.ts b/target_chains/cosmwasm/tools/src/chains-manager/chains.ts index c51f9d31..7ab77c1c 100644 --- a/target_chains/cosmwasm/tools/src/chains-manager/chains.ts +++ b/target_chains/cosmwasm/tools/src/chains-manager/chains.ts @@ -115,8 +115,8 @@ export const CHAINS_NETWORK_CONFIG: Record = { [ChainId.OSMOSIS]: { chainId: ChainId.OSMOSIS, chainType: ChainType.COSMWASM, - executorEndpoint: "https://rpc.osmotest5.osmosis.zone/", - querierEndpoint: "https://rpc.osmotest5.osmosis.zone/", + executorEndpoint: "https://rpc.osmosis.zone:443", + querierEndpoint: "https://rpc.osmosis.zone:443", prefix: "osmo", gasPrice: "0.025uosmo", }, diff --git a/target_chains/cosmwasm/tools/src/helper.ts b/target_chains/cosmwasm/tools/src/helper.ts index a1216aa8..38cab47c 100644 --- a/target_chains/cosmwasm/tools/src/helper.ts +++ b/target_chains/cosmwasm/tools/src/helper.ts @@ -10,6 +10,7 @@ export function getChainIdsForStableDeployment(): ChainId[] { ChainId.INJECTIVE_TESTNET, ChainId.OSMOSIS_TESTNET_4, ChainId.OSMOSIS_TESTNET_5, + ChainId.OSMOSIS, ChainId.SEI_TESTNET_ATLANTIC_2, ChainId.NEUTRON_TESTNET_PION_1, ChainId.JUNO_TESTNET, diff --git a/target_chains/cosmwasm/tools/src/instantiate-pyth.ts b/target_chains/cosmwasm/tools/src/instantiate-pyth.ts index 264732a4..aa9ed600 100644 --- a/target_chains/cosmwasm/tools/src/instantiate-pyth.ts +++ b/target_chains/cosmwasm/tools/src/instantiate-pyth.ts @@ -122,7 +122,7 @@ async function run() { ), deploymentType: argv.deploy as DeploymentType, }), - label: "wormhole", + label: "pyth", }); }, }); diff --git a/target_chains/cosmwasm/tools/src/wormhole-stub.ts b/target_chains/cosmwasm/tools/src/wormhole-stub.ts index 74773b6e..86b66336 100644 --- a/target_chains/cosmwasm/tools/src/wormhole-stub.ts +++ b/target_chains/cosmwasm/tools/src/wormhole-stub.ts @@ -134,7 +134,7 @@ async function run() { contractAddr: instantiateContractRes.contractAddr, msg: { // @ts-ignore - submit_v_a_a: { vaa: hexToBase64(VAA_MAINNET_UPGRADES[id]) }, + submit_v_a_a: { vaa: hexToBase64(STABLE_VAA_UPGRADES[id]) }, }, }); }, diff --git a/target_chains/cosmwasm/tools/store/stable/instantiate-pyth/osmosis-1.2.0.json b/target_chains/cosmwasm/tools/store/stable/instantiate-pyth/osmosis-1.2.0.json new file mode 100644 index 00000000..46aec3a4 --- /dev/null +++ b/target_chains/cosmwasm/tools/store/stable/instantiate-pyth/osmosis-1.2.0.json @@ -0,0 +1,22 @@ +{ + "deploy-pyth-code": { + "status": "fulfilled", + "result": { + "txHash": "THIS WAS GENERATED THROUGH A PROPOSAL. CODE LINK: https://celatone.osmosis.zone/mainnet/codes/45", + "codeId": 45 + } + }, + "instantiate-contract": { + "status": "fulfilled", + "result": { + "contractAddr": "osmo13ge29x4e2s63a8ytz2px8gurtyznmue4a69n5275692v3qn3ks8q7cwck7", + "txHash": "240AA1BCA6EEF29D98691FDC23F6BA99FD6D584F0DD7289996CC961A86F840B0" + } + }, + "set-own-admin": { + "status": "fulfilled", + "result": { + "txHash": "F6C1E68454D42193A617BE0A53B9AD424DCF1839E1BE6F4AAA6E176F7E9D0D79" + } + } +} diff --git a/target_chains/cosmwasm/tools/store/stable/test-contracts/osmosis-1.2.0.json b/target_chains/cosmwasm/tools/store/stable/test-contracts/osmosis-1.2.0.json new file mode 100644 index 00000000..7e2fea9c --- /dev/null +++ b/target_chains/cosmwasm/tools/store/stable/test-contracts/osmosis-1.2.0.json @@ -0,0 +1,28 @@ +{ + "push-price-update": { + "status": "fulfilled", + "result": { + "txHash": "3741C27A656354E2ACF2CBE901F282A68AE425D77AFEE24010CB5627E77B1E24" + } + }, + "fetch-price-feed-update": { + "status": "fulfilled", + "result": { + "price_feed": { + "id": "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43", + "price": { + "price": "2738164413138", + "conf": "605476721", + "expo": -8, + "publish_time": 1684822184 + }, + "ema_price": { + "price": "2738288100000", + "conf": "610717010", + "expo": -8, + "publish_time": 1684822184 + } + } + } + } +} diff --git a/target_chains/cosmwasm/wormhole-stub/stable/osmosis-2.14.9.json b/target_chains/cosmwasm/wormhole-stub/stable/osmosis-2.14.9.json new file mode 100644 index 00000000..f7906049 --- /dev/null +++ b/target_chains/cosmwasm/wormhole-stub/stable/osmosis-2.14.9.json @@ -0,0 +1,40 @@ +{ + "deploy-wormhole-code": { + "status": "fulfilled", + "result": { + "txHash": "THIS WAS GENERATED THROUGH A PROPOSAL. CODE LINK: https://celatone.osmosis.zone/mainnet/codes/46", + "codeId": 46 + } + }, + "instantiate-contract": { + "status": "fulfilled", + "result": { + "txHash": "38CF004A945F732D4616E330B79922EF2CAEB4C13608C7878C74C21FDC6DE8F8", + "contractAddr": "osmo1t7qham5kle36rs28se2xd7cckm9mpwzgt65t40lrdf8fcq3837qqjvw80s" + } + }, + "set-own-admin": { + "status": "fulfilled", + "result": { + "txHash": "043B049A6FEBD93C00D58FC10ECE2E887553DA4FF18DB4B3D2373D6DC8247974" + } + }, + "GUARDIAN_SET_UPGRADE_1_VAA": { + "status": "fulfilled", + "result": { + "txHash": "FF1A1999088B7848A04BA132108A6638915A0260AAC667F213BA1CEEC358F288" + } + }, + "GUARDIAN_SET_UPGRADE_2_VAA": { + "status": "fulfilled", + "result": { + "txHash": "2A324FB5341DA73FF39F640987AB3E25EB197E851C898D8DA928D8A13CF83E1A" + } + }, + "GUARDIAN_SET_UPGRADE_3_VAA": { + "status": "fulfilled", + "result": { + "txHash": "E1097EF9DDF29345E375B44F48A671B9441AC7CF7DB60ECE7EC83DCBA1F885AE" + } + } +}