Skip to content

Commit

Permalink
bridge_ui: terra2 mainnet beta
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-gray committed Jun 22, 2022
1 parent 3a20c77 commit e6bbf58
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 21 deletions.
14 changes: 7 additions & 7 deletions bridge_ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion bridge_ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
17 changes: 12 additions & 5 deletions bridge_ui/src/utils/consts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ export const CHAINS: ChainInfo[] =
name: "Terra Classic",
logo: terraIcon,
},
{
id: CHAIN_ID_TERRA2,
name: "Terra",
logo: terra2Icon,
},
]
: CLUSTER === "testnet"
? [
Expand Down Expand Up @@ -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 ||
Expand Down Expand Up @@ -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"
Expand Down
14 changes: 7 additions & 7 deletions clients/js/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit e6bbf58

Please sign in to comment.