From 4b4ac0680facbfe2ea241a3d3fc9a7b2cc3d3967 Mon Sep 17 00:00:00 2001 From: 0xfirefist Date: Mon, 29 May 2023 18:39:17 +0530 Subject: [PATCH] sei mainnet deployment --- governance/xc_governance_sdk_js/src/chains.ts | 2 +- .../tools/src/chains-manager/chains.ts | 9 +++++ target_chains/cosmwasm/tools/src/configs.ts | 5 +++ target_chains/cosmwasm/tools/src/helper.ts | 1 + .../instantiate-pyth/sei_pacific_1-1.2.0.json | 22 ++++++++++ .../test-contracts/sei_pacific_1-1.2.0.json | 28 +++++++++++++ .../stable/sei_pacific_1-2.14.9.json | 40 +++++++++++++++++++ 7 files changed, 106 insertions(+), 1 deletion(-) create mode 100644 target_chains/cosmwasm/tools/store/stable/instantiate-pyth/sei_pacific_1-1.2.0.json create mode 100644 target_chains/cosmwasm/tools/store/stable/test-contracts/sei_pacific_1-1.2.0.json create mode 100644 target_chains/cosmwasm/wormhole-stub/stable/sei_pacific_1-2.14.9.json diff --git a/governance/xc_governance_sdk_js/src/chains.ts b/governance/xc_governance_sdk_js/src/chains.ts index 6af4941aae..5743a2e5f7 100644 --- a/governance/xc_governance_sdk_js/src/chains.ts +++ b/governance/xc_governance_sdk_js/src/chains.ts @@ -33,7 +33,7 @@ export const RECEIVER_CHAINS = { osmosis: 60014, osmosis_testnet_4: 60015, osmosis_testnet_5: 60016, - sei: 60017, + sei_pacific_1: 60017, sei_testnet_atlantic_2: 60018, neutron: 60019, neutron_testnet_pion_1: 60020, diff --git a/target_chains/cosmwasm/tools/src/chains-manager/chains.ts b/target_chains/cosmwasm/tools/src/chains-manager/chains.ts index 7ab77c1c3a..c8f2a7238d 100644 --- a/target_chains/cosmwasm/tools/src/chains-manager/chains.ts +++ b/target_chains/cosmwasm/tools/src/chains-manager/chains.ts @@ -23,6 +23,7 @@ export enum ChainId { // Below are mainnet chain ids INJECTIVE = "injective", OSMOSIS = "osmosis", + SEI_PACIFIC_1 = "sei_pacific_1", } export const ChainIds = Object.values(ChainId); @@ -120,6 +121,14 @@ export const CHAINS_NETWORK_CONFIG: Record = { prefix: "osmo", gasPrice: "0.025uosmo", }, + [ChainId.SEI_PACIFIC_1]: { + chainId: ChainId.SEI_PACIFIC_1, + chainType: ChainType.COSMWASM, + executorEndpoint: "https://sei-rpc.polkachu.com", + querierEndpoint: "https://sei-rpc.polkachu.com", + prefix: "sei", + gasPrice: "0.025usei", + }, }; /** diff --git a/target_chains/cosmwasm/tools/src/configs.ts b/target_chains/cosmwasm/tools/src/configs.ts index 6668182310..7b385f609c 100644 --- a/target_chains/cosmwasm/tools/src/configs.ts +++ b/target_chains/cosmwasm/tools/src/configs.ts @@ -51,6 +51,11 @@ export const CHAINS_CONTRACT_CONFIG: Record = { pythArtifactZipName: "osmosis", wormholeChainId: CHAINS.osmosis, }, + [ChainId.SEI_PACIFIC_1]: { + feeDenom: "usei", + pythArtifactZipName: "cosmwasm", + wormholeChainId: CHAINS.sei_pacific_1, + }, }; function getPythSources(deploymentType: DeploymentType) { diff --git a/target_chains/cosmwasm/tools/src/helper.ts b/target_chains/cosmwasm/tools/src/helper.ts index 38cab47c37..c86e19c0e2 100644 --- a/target_chains/cosmwasm/tools/src/helper.ts +++ b/target_chains/cosmwasm/tools/src/helper.ts @@ -14,6 +14,7 @@ export function getChainIdsForStableDeployment(): ChainId[] { ChainId.SEI_TESTNET_ATLANTIC_2, ChainId.NEUTRON_TESTNET_PION_1, ChainId.JUNO_TESTNET, + ChainId.SEI_PACIFIC_1, ]; } diff --git a/target_chains/cosmwasm/tools/store/stable/instantiate-pyth/sei_pacific_1-1.2.0.json b/target_chains/cosmwasm/tools/store/stable/instantiate-pyth/sei_pacific_1-1.2.0.json new file mode 100644 index 0000000000..dff8173dd4 --- /dev/null +++ b/target_chains/cosmwasm/tools/store/stable/instantiate-pyth/sei_pacific_1-1.2.0.json @@ -0,0 +1,22 @@ +{ + "deploy-pyth-code": { + "status": "fulfilled", + "result": { + "codeId": 28, + "txHash": "B15B78416FB49059E5F144A21A31A338A149CE5BCF20F77284FF2F53AD4DA36F" + } + }, + "instantiate-contract": { + "status": "fulfilled", + "result": { + "contractAddr": "sei15d2tyq2jzxmpg32y3am3w62dts32qgzmds9qnr6c87r0gwwr7ynqal0x38", + "txHash": "7628939C647068F428724A20946C6BA217729C9004D7B3D3D09219D90DB48134" + } + }, + "set-own-admin": { + "status": "fulfilled", + "result": { + "txHash": "20E9FB619BACF7B684DBF0DC04A681EDC9D47A5FA9AAEE0C15B4DE7AD0673002" + } + } +} diff --git a/target_chains/cosmwasm/tools/store/stable/test-contracts/sei_pacific_1-1.2.0.json b/target_chains/cosmwasm/tools/store/stable/test-contracts/sei_pacific_1-1.2.0.json new file mode 100644 index 0000000000..ab8b62b8f8 --- /dev/null +++ b/target_chains/cosmwasm/tools/store/stable/test-contracts/sei_pacific_1-1.2.0.json @@ -0,0 +1,28 @@ +{ + "push-price-update": { + "status": "fulfilled", + "result": { + "txHash": "CC286BC1D1CA697BEE32EF1FBCFA22401E7F34ED32AC4DBA402BE6A1ABC920D0" + } + }, + "fetch-price-feed-update": { + "status": "fulfilled", + "result": { + "price_feed": { + "id": "e62df6c8b4a85fe1a67db44dc12de5db330f7ac66b72dc658afedf0f4a415b43", + "price": { + "price": "2791547792485", + "conf": "691207514", + "expo": -8, + "publish_time": 1685365671 + }, + "ema_price": { + "price": "2789639300000", + "conf": "694481460", + "expo": -8, + "publish_time": 1685365671 + } + } + } + } +} diff --git a/target_chains/cosmwasm/wormhole-stub/stable/sei_pacific_1-2.14.9.json b/target_chains/cosmwasm/wormhole-stub/stable/sei_pacific_1-2.14.9.json new file mode 100644 index 0000000000..119134ca60 --- /dev/null +++ b/target_chains/cosmwasm/wormhole-stub/stable/sei_pacific_1-2.14.9.json @@ -0,0 +1,40 @@ +{ + "deploy-wormhole-code": { + "status": "fulfilled", + "result": { + "codeId": 27, + "txHash": "729FCDE0B848F61014B45F7AB457E980596A25F6A1CC12D3FC0AB48CE3270681" + } + }, + "instantiate-contract": { + "status": "fulfilled", + "result": { + "contractAddr": "sei12qq3cufehhsaprjfjrwpx5ltyr43lcrxvf6eaqf0p4jsjpc7semq8p6ewa", + "txHash": "A3E5EA72B0D51D31FF1F8A394C8F133D241DA3298E84DA38F40C1D5295704534" + } + }, + "set-own-admin": { + "status": "fulfilled", + "result": { + "txHash": "7DE665D160C98F9E28A27EF672E90979E3532C9A9294510793DAC9630A1DEA19" + } + }, + "GUARDIAN_SET_UPGRADE_1_VAA": { + "status": "fulfilled", + "result": { + "txHash": "40769A24638F25D1FC6F7F82053565E9BD6DABE9142C7A1380A529DE3709B064" + } + }, + "GUARDIAN_SET_UPGRADE_2_VAA": { + "status": "fulfilled", + "result": { + "txHash": "543822E19B22468A65E40478CF5792CE7D26CF30951A67286DC9F1A21BF25C22" + } + }, + "GUARDIAN_SET_UPGRADE_3_VAA": { + "status": "fulfilled", + "result": { + "txHash": "37903878FD47F0D1D273BE359962A8180F6F720AF8A95BF3EF5C426061A013F1" + } + } +}