Skip to content

Commit

Permalink
feat: Add Sepolia support (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
fadeev authored Mar 27, 2024
1 parent 48c45aa commit 485a869
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 129 deletions.
9 changes: 1 addition & 8 deletions data/addresses.mainnet.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"type": "uniswapV2Router02"
},
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"address": "0x1F98431c8aD98523631AE4a59f267346ea31F984",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
Expand Down Expand Up @@ -174,13 +174,6 @@
"chain_name": "zeta_mainnet",
"type": "uniswapV2Router02"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "messaging",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "uniswapV3Factory"
},
{
"address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"category": "omnichain",
Expand Down
187 changes: 96 additions & 91 deletions data/addresses.testnet.json
Original file line number Diff line number Diff line change
@@ -1,88 +1,4 @@
[
{
"address": "0x00005e3125aba53c5652f9f0ce1a4cf91d8b15ea",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "connector"
},
{
"address": "0x000047f11c6e42293f433c82473532e869ce4ec5",
"category": "omnichain",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "erc20Custody"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "pauser"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "tss"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "omnichain",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "tssUpdater"
},
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "uniswapV2Factory"
},
{
"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "uniswapV2Router02"
},
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "uniswapV3Factory"
},
{
"address": "0xE592427A0AEce92De3Edee1F18E0157C05861564",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "uniswapV3Router"
},
{
"address": "0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "weth9"
},
{
"address": "0x0000c304d2934c00db1d51995b9f6996affd17c0",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "zetaToken"
},
{
"address": "0x8eAc517b92eeE82177a83851268F13109878f8c4",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "zetaTokenConsumerUniV2"
},
{
"address": "0x0000ecb8cdd25a18f12daa23f6422e07fbf8b9e1",
"category": "messaging",
Expand Down Expand Up @@ -133,7 +49,7 @@
"type": "uniswapV2Router02"
},
{
"address": "0xB7926C0430Afb07AA7DEfDE6DA862aE0Bde767bc",
"address": "0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865",
"category": "messaging",
"chain_id": 97,
"chain_name": "bsc_testnet",
Expand Down Expand Up @@ -210,18 +126,24 @@
"type": "uniswapV2Router02"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "messaging",
"address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"type": "uniswapV3Factory"
"type": "zetaToken"
},
{
"address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"address": "0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0",
"asset": "",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"type": "zetaToken"
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 sETH-sepolia_testnet",
"foreign_chain_id": "11155111",
"symbol": "sETH.SEPOLIA",
"type": "zrc20"
},
{
"address": "0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a",
Expand Down Expand Up @@ -301,6 +223,19 @@
"symbol": "USDC",
"type": "zrc20"
},
{
"address": "0xcC683A782f4B30c138787CB5576a86AF66fdc31d",
"asset": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"category": "omnichain",
"chain_id": 7001,
"chain_name": "zeta_testnet",
"coin_type": "erc20",
"decimals": 18,
"description": "ZetaChain ZRC20 USDC on SEPOLIA",
"foreign_chain_id": "11155111",
"symbol": "USDC.SEPOLIA",
"type": "zrc20"
},
{
"address": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891",
"asset": "",
Expand Down Expand Up @@ -371,7 +306,7 @@
"type": "uniswapV2Router02"
},
{
"address": "0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",
"address": "0x1F98431c8aD98523631AE4a59f267346ea31F984",
"category": "messaging",
"chain_id": 80001,
"chain_name": "mumbai_testnet",
Expand Down Expand Up @@ -404,5 +339,75 @@
"chain_id": 80001,
"chain_name": "mumbai_testnet",
"type": "zetaTokenConsumerUniV3"
},
{
"address": "0x3963341dad121c9CD33046089395D66eBF20Fb03",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "connector"
},
{
"address": "0x84725b70a239d3Faa7C6EF0C6C8E8b6c8e28338b",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "erc20Custody"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "pauser"
},
{
"address": "0x8531a5aB847ff5B22D855633C25ED1DA3255247e",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "tss"
},
{
"address": "0x55122f7590164Ac222504436943FAB17B62F5d7d",
"category": "omnichain",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "tssUpdater"
},
{
"address": "0x0227628f3F023bb0B980b67D528571c95c6DaC1c",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "uniswapV3Factory"
},
{
"address": "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "uniswapV3Router"
},
{
"address": "0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "weth9"
},
{
"address": "0x0000c304D2934c00Db1d51995b9f6996AffD17c0",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "zetaToken"
},
{
"address": "0x301ED39771d8f1dD0b05F8C2D4327ce9C426E783",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "zetaTokenConsumerUniV3"
}
]
5 changes: 3 additions & 2 deletions lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ export type ParamSymbol =
| "BTC.BTC"
| "ETH.ETH"
| "gETH"
| "sETH.SEPOLIA"
| "tBNB"
| "tBTC"
| "tMATIC"
| "USDC.BSC"
| "USDC.ETH"
| "USDC.SEPOLIA"
| "USDC"
| "USDT.BSC"
| "USDT.ETH";
Expand All @@ -17,8 +19,8 @@ export type ParamChainName =
| "btc_mainnet"
| "btc_testnet"
| "eth_mainnet"
| "goerli_testnet"
| "mumbai_testnet"
| "sepolia_testnet"
| "zeta_mainnet"
| "zeta_testnet";
export type ParamType =
Expand All @@ -35,6 +37,5 @@ export type ParamType =
| "uniswapV3Router"
| "weth9"
| "zetaToken"
| "zetaTokenConsumerUniV2"
| "zetaTokenConsumerUniV3"
| "zrc20";
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@uniswap/v2-core": "^1.0.1",
"@uniswap/v2-periphery": "^1.1.0-beta.0",
"@uniswap/v3-periphery": "^1.4.3",
"@zetachain/networks": "4.0.0-rc1",
"@zetachain/networks": "6.0.0",
"axios": "^1.6.5",
"chai": "^4.3.6",
"cpx": "^1.5.0",
Expand All @@ -46,6 +46,7 @@
"hardhat-abi-exporter": "^2.10.1",
"hardhat-gas-reporter": "^1.0.9",
"inquirer": "^8.2.4",
"lodash": "^4.17.21",
"mocha": "^10.2.0",
"solidity-coverage": "^0.8.2",
"ts-mocha": "^10.0.0",
Expand Down
35 changes: 14 additions & 21 deletions tasks/addresses.testnet.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
[
{
"address": "0x8eAc517b92eeE82177a83851268F13109878f8c4",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "zetaTokenConsumerUniV2"
},
{
"address": "0x7e792f3736751e168864106AdbAC50152641A927",
"category": "messaging",
Expand All @@ -20,6 +13,13 @@
"chain_name": "bsc_testnet",
"type": "zetaTokenConsumerUniV3"
},
{
"address": "0x301ED39771d8f1dD0b05F8C2D4327ce9C426E783",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "zetaTokenConsumerUniV3"
},
{
"address": "0x8954AfA98594b838bda56FE4C12a09D7739D179b",
"category": "messaging",
Expand All @@ -34,6 +34,13 @@
"chain_name": "mumbai_testnet",
"type": "uniswapV3Router"
},
{
"address": "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
"category": "messaging",
"chain_id": 11155111,
"chain_name": "sepolia_testnet",
"type": "uniswapV3Router"
},
{
"address": "0x9Ac64Cc6e4415144C455BD8E4837Fea55603e5c3",
"category": "messaging",
Expand All @@ -47,19 +54,5 @@
"chain_id": 97,
"chain_name": "bsc_testnet",
"type": "uniswapV3Router"
},
{
"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "uniswapV2Router02"
},
{
"address": "0xE592427A0AEce92De3Edee1F18E0157C05861564",
"category": "messaging",
"chain_id": 5,
"chain_name": "goerli_testnet",
"type": "uniswapV3Router"
}
]
Loading

0 comments on commit 485a869

Please sign in to comment.