From e6bbf587430297b4c50ee8f63c7a5b9f093236d0 Mon Sep 17 00:00:00 2001 From: Evan Gray Date: Wed, 22 Jun 2022 15:28:39 +0000 Subject: [PATCH] bridge_ui: terra2 mainnet beta --- bridge_ui/package-lock.json | 14 +++++++------- bridge_ui/package.json | 2 +- bridge_ui/src/utils/consts.ts | 17 ++++++++++++----- clients/js/package-lock.json | 14 +++++++------- clients/js/package.json | 2 +- 5 files changed, 28 insertions(+), 21 deletions(-) diff --git a/bridge_ui/package-lock.json b/bridge_ui/package-lock.json index 1c912f3f1..fae4eff9c 100644 --- a/bridge_ui/package-lock.json +++ b/bridge_ui/package-lock.json @@ -8,7 +8,7 @@ "name": "test_ui", "version": "0.1.0", "dependencies": { - "@certusone/wormhole-sdk": "^0.4.3", + "@certusone/wormhole-sdk": "^0.4.4", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", @@ -2132,9 +2132,9 @@ } }, "node_modules/@certusone/wormhole-sdk": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.3.tgz", - "integrity": "sha512-2rjH30gzbSWsMBcUOHT1ql9/1x5R2/WQwXFATU/9Vg3qcTKJn8z/kbvU/doHAHuX4OYeoFj3QXQ3qDuwkJl3ig==", + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.4.tgz", + "integrity": "sha512-3/7nuNEMWIZU0LnjvMqRxcoVKo34Cw9VFt/QE9fWRtVFY3PFrYGmdBSAIYjH6JZ73jQj/CawKFCoRr0SLjrPxw==", "dependencies": { "@improbable-eng/grpc-web": "^0.14.0", "@solana/spl-token": "^0.1.8", @@ -46765,9 +46765,9 @@ } }, "@certusone/wormhole-sdk": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.3.tgz", - "integrity": "sha512-2rjH30gzbSWsMBcUOHT1ql9/1x5R2/WQwXFATU/9Vg3qcTKJn8z/kbvU/doHAHuX4OYeoFj3QXQ3qDuwkJl3ig==", + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.4.tgz", + "integrity": "sha512-3/7nuNEMWIZU0LnjvMqRxcoVKo34Cw9VFt/QE9fWRtVFY3PFrYGmdBSAIYjH6JZ73jQj/CawKFCoRr0SLjrPxw==", "requires": { "@improbable-eng/grpc-web": "^0.14.0", "@solana/spl-token": "^0.1.8", diff --git a/bridge_ui/package.json b/bridge_ui/package.json index 58fadb249..ba0906172 100644 --- a/bridge_ui/package.json +++ b/bridge_ui/package.json @@ -3,7 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { - "@certusone/wormhole-sdk": "^0.4.3", + "@certusone/wormhole-sdk": "^0.4.4", "@material-ui/core": "^4.12.2", "@material-ui/icons": "^4.11.2", "@material-ui/lab": "^4.0.0-alpha.60", diff --git a/bridge_ui/src/utils/consts.ts b/bridge_ui/src/utils/consts.ts index ed1d91d1f..ef00b15fe 100644 --- a/bridge_ui/src/utils/consts.ts +++ b/bridge_ui/src/utils/consts.ts @@ -122,6 +122,11 @@ export const CHAINS: ChainInfo[] = name: "Terra Classic", logo: terraIcon, }, + { + id: CHAIN_ID_TERRA2, + name: "Terra", + logo: terra2Icon, + }, ] : CLUSTER === "testnet" ? [ @@ -244,7 +249,9 @@ export const CHAINS: ChainInfo[] = }, ]; export const BETA_CHAINS: ChainId[] = - CLUSTER === "mainnet" ? [CHAIN_ID_ACALA, CHAIN_ID_KLAYTN] : []; + CLUSTER === "mainnet" + ? [CHAIN_ID_ACALA, CHAIN_ID_KLAYTN, CHAIN_ID_TERRA2] + : []; export const CHAINS_WITH_NFT_SUPPORT = CHAINS.filter( ({ id }) => id === CHAIN_ID_AVAX || @@ -809,15 +816,15 @@ export const TERRA_TOKEN_BRIDGE_ADDRESS = : "terra10pyejy66429refv3g35g2t7am0was7ya7kz2a4"; export const TERRA2_BRIDGE_ADDRESS = CLUSTER === "mainnet" - ? "" + ? CONTRACTS.MAINNET.terra2.core : CLUSTER === "testnet" - ? "" + ? CONTRACTS.TESTNET.terra2.core : "terra14hj2tavq8fpesdwxxcu44rty3hh90vhujrvcmstl4zr3txmfvw9ssrc8au"; export const TERRA2_TOKEN_BRIDGE_ADDRESS = CLUSTER === "mainnet" - ? "" + ? CONTRACTS.MAINNET.terra2.token_bridge : CLUSTER === "testnet" - ? "" + ? CONTRACTS.TESTNET.terra2.token_bridge : "terra1nc5tatafv6eyq7llkr2gv50ff9e22mnf70qgjlv737ktmt4eswrquka9l6"; export const ALGORAND_BRIDGE_ID = BigInt( CLUSTER === "mainnet" ? "0" : CLUSTER === "testnet" ? "86525623" : "4" diff --git a/clients/js/package-lock.json b/clients/js/package-lock.json index 35edf6d10..a28cb2a46 100644 --- a/clients/js/package-lock.json +++ b/clients/js/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "dependencies": { "@celo-tools/celo-ethers-wrapper": "^0.1.0", - "@certusone/wormhole-sdk": "^0.4.3", + "@certusone/wormhole-sdk": "^0.4.4", "@solana/web3.js": "^1.22.0", "@terra-money/terra.js": "^3.1.3", "axios": "^0.24.0", @@ -542,9 +542,9 @@ } }, "node_modules/@certusone/wormhole-sdk": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.3.tgz", - "integrity": "sha512-2rjH30gzbSWsMBcUOHT1ql9/1x5R2/WQwXFATU/9Vg3qcTKJn8z/kbvU/doHAHuX4OYeoFj3QXQ3qDuwkJl3ig==", + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.4.tgz", + "integrity": "sha512-3/7nuNEMWIZU0LnjvMqRxcoVKo34Cw9VFt/QE9fWRtVFY3PFrYGmdBSAIYjH6JZ73jQj/CawKFCoRr0SLjrPxw==", "dependencies": { "@improbable-eng/grpc-web": "^0.14.0", "@solana/spl-token": "^0.1.8", @@ -10933,9 +10933,9 @@ "requires": {} }, "@certusone/wormhole-sdk": { - "version": "0.4.3", - "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.3.tgz", - "integrity": "sha512-2rjH30gzbSWsMBcUOHT1ql9/1x5R2/WQwXFATU/9Vg3qcTKJn8z/kbvU/doHAHuX4OYeoFj3QXQ3qDuwkJl3ig==", + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/@certusone/wormhole-sdk/-/wormhole-sdk-0.4.4.tgz", + "integrity": "sha512-3/7nuNEMWIZU0LnjvMqRxcoVKo34Cw9VFt/QE9fWRtVFY3PFrYGmdBSAIYjH6JZ73jQj/CawKFCoRr0SLjrPxw==", "requires": { "@improbable-eng/grpc-web": "^0.14.0", "@solana/spl-token": "^0.1.8", diff --git a/clients/js/package.json b/clients/js/package.json index 36ce095b6..0ceb8e646 100644 --- a/clients/js/package.json +++ b/clients/js/package.json @@ -3,7 +3,7 @@ "version": "1.0.0", "dependencies": { "@celo-tools/celo-ethers-wrapper": "^0.1.0", - "@certusone/wormhole-sdk": "^0.4.3", + "@certusone/wormhole-sdk": "^0.4.4", "@solana/web3.js": "^1.22.0", "@terra-money/terra.js": "^3.1.3", "axios": "^0.24.0",