bridge_ui: add klaytn to mainnet beta

This commit is contained in:
Evan Gray 2022-05-13 20:05:47 -04:00 committed by Evan Gray
parent bc4ce9cb86
commit ec6428ed2d
3 changed files with 43 additions and 16 deletions

View File

@ -1,14 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 24.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 2000 1975.1" style="enable-background:new 0 0 2000 1975.1;" xml:space="preserve">
<svg version="1.1" id="CIRCLE_OUTLINE_BLACK" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
x="0px" y="0px" viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
<style type="text/css">
.st0{fill:#4F473B;}
.st0{fill:#BD072F;}
.st1{fill:#FA4212;}
.st2{fill:#FF8000;}
.st3{fill:#B70C02;}
</style>
<g>
<path class="st0" d="M1047.4,982.5l683.3,678.3c359.1-380.9,359.1-975.7,0-1356.6"/>
<path class="st0" d="M997.5,1027.4l-673.3,668.3l673.3,279.3l673.3-279.3"/>
<path class="st0" d="M972.6,957.6l698.3-693.3L1027.4,0L389,1541.2L972.6,957.6z"/>
<path class="st0" d="M0,982.5c-0.5,252.3,95.9,495.1,269.3,678.3l668.3-1611"/>
</g>
<path class="st0" d="M254.8,288.1c53.9,53.8,107,106.8,160,159.7c-87.9,75.2-225.9,78.4-319.7-1.2
C148.5,393.7,201.7,340.9,254.8,288.1z"/>
<path class="st1" d="M291.5,255.9c35.2-36.2,70.9-73.2,107-109.9c15-15.3,30.5-29.9,46.1-44.6c1.2-1.1,5.2-1.3,5.9-0.4
c27.4,36,47.8,75.3,53.2,120.8c8.2,69.4-7.7,132.6-51.3,188.1c-1.2,1.5-2.3,3.2-2.9,4.1C396.3,360.7,343.1,307.6,291.5,255.9z"/>
<path class="st2" d="M139.1,337.8c5.9-15.6,11.9-31.2,17.8-46.8c24.5-64.5,49-129,73.5-193.4c7.7-20,16.4-39.7,24.3-59.7
c3-7.7,5.3-15.7,7.7-23.6c1.8-5.9,5.4-8.1,11.6-7.5c24.4,2.4,48.4,6.2,70.9,16.5c13,6,26.3,11.4,38.7,18.5
c10.1,5.8,18.9,13.7,30.1,22L140.7,339L139.1,337.8z"/>
<path class="st3" d="M200.2,47.7c-45.9,121.5-91.7,242.9-138.5,366.9c-8.8-13.4-17-24.7-23.9-36.7c-15.8-27.5-25.9-57.9-29.9-89.4
c-1.9-15-1.5-30.4-1.6-45.6c0-2.4,2.2-5.3,4.1-7.2C69.5,176.4,128.8,117.3,188,58.2c3.6-3.6,7.1-7.4,10.7-11.2L200.2,47.7z"/>
</svg>

Before

Width:  |  Height:  |  Size: 749 B

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

@ -85,6 +85,11 @@ export const CHAINS: ChainInfo[] =
name: "Karura",
logo: karuraIcon,
},
{
id: CHAIN_ID_KLAYTN,
name: "Klaytn",
logo: klaytnIcon,
},
{
id: CHAIN_ID_OASIS,
name: "Oasis",
@ -212,7 +217,9 @@ export const CHAINS: ChainInfo[] =
},
];
export const BETA_CHAINS: ChainId[] =
CLUSTER === "mainnet" ? [CHAIN_ID_KARURA, CHAIN_ID_CELO] : [];
CLUSTER === "mainnet"
? [CHAIN_ID_KARURA, CHAIN_ID_CELO, CHAIN_ID_KLAYTN]
: [];
export const CHAINS_WITH_NFT_SUPPORT = CHAINS.filter(
({ id }) =>
id === CHAIN_ID_AVAX ||
@ -599,21 +606,21 @@ export const ACALA_TOKEN_BRIDGE_ADDRESS = getAddress(
);
export const KLAYTN_BRIDGE_ADDRESS = getAddress(
CLUSTER === "mainnet"
? "0x0000000000000000000000000000000000000000"
? "0x0C21603c4f3a6387e241c0091A7EA39E43E90bb7"
: CLUSTER === "testnet"
? "0x1830CC6eE66c84D2F177B94D544967c774E624cA"
: "0xC89Ce4735882C9F0f0FE26686c53074E09B0D550"
);
export const KLAYTN_NFT_BRIDGE_ADDRESS = getAddress(
CLUSTER === "mainnet"
? "0x0000000000000000000000000000000000000000"
? "0x3c3c561757BAa0b78c5C025CdEAa4ee24C1dFfEf"
: CLUSTER === "testnet"
? "0x94c994fC51c13101062958b567e743f1a04432dE"
: "0x26b4afb60d6c903165150c6f0aa14f8016be4aec"
);
export const KLAYTN_TOKEN_BRIDGE_ADDRESS = getAddress(
CLUSTER === "mainnet"
? "0x0000000000000000000000000000000000000000"
? "0x5b08ac39EAED75c0439FC750d9FE7E1F9dD0193F"
: CLUSTER === "testnet"
? "0xC7A13BE098720840dEa132D860fDfa030884b09A"
: "0x0290FB167208Af455bB137780163b7B7a9a10C16"
@ -810,7 +817,8 @@ export const COVALENT_FANTOM =
CLUSTER === "devnet" ? 250 : FANTOM_NETWORK_CHAIN_ID;
export const COVALENT_KARURA = CLUSTER === "devnet" ? null : null;
export const COVALENT_ACALA = CLUSTER === "devnet" ? null : null;
export const COVALENT_KLAYTN = CLUSTER === "devnet" ? null : null;
export const COVALENT_KLAYTN =
CLUSTER === "mainnet" ? KLAYTN_NETWORK_CHAIN_ID : null; // Covalent only support mainnet
export const COVALENT_CELO = CLUSTER === "devnet" ? null : null;
export const COVALENT_GET_TOKENS_URL = (
chainId: ChainId,
@ -936,7 +944,7 @@ export const ACA_DECIMALS = 12;
export const WKLAY_ADDRESS =
CLUSTER === "mainnet"
? "0x0000000000000000000000000000000000000000"
? "0xe4f05a66ec68b54a58b17c22107b02e0232cc817"
: CLUSTER === "testnet"
? "0x762ac6e8183db5a8e912a66fcc1a09f5a7ac96a9"
: "0xDDb64fE46a91D46ee29420539FC25FD07c5FEa3E";

View File

@ -94,6 +94,20 @@ export const METAMASK_CHAIN_PARAMETERS: {
rpcUrls: ["https://rpc.testnet.fantom.network"],
blockExplorerUrls: ["https://testnet.ftmscan.com"],
},
8217: {
chainId: "0x2019",
chainName: "Klaytn",
nativeCurrency: { name: "Klay", symbol: "KLAY", decimals: 18 },
rpcUrls: ["https://public-node-api.klaytnapi.com/v1/cypress"],
blockExplorerUrls: ["https://scope.klaytn.com"],
},
1001: {
chainId: "0x3E9",
chainName: "Klaytn Testnet Baobab",
nativeCurrency: { name: "Klay", symbol: "KLAY", decimals: 18 },
rpcUrls: ["https://api.baobab.klaytn.net:8651"],
blockExplorerUrls: ["https://baobab.scope.klaytn.com/"],
},
42220: {
chainId: "0xa4ec",
chainName: "Celo",