Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fetch addresses from chain #10

Merged
merged 31 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions data/addresses.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": "0xFB2fCE3CCca19F0f764Ed8aa26C62181E3dA04C5"
},
"btc_testnet": {
"btc_mainnet": {
"connector": "",
"immutableCreate2Factory": "",
"tss": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur",
"tss": "bc1qm24wp577nk8aacckv8np465z3dvmu7ry45el6y",
"tssUpdater": "",
"zetaToken": "",
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": ""
},
"btc_mainnet": {
"btc_testnet": {
"connector": "",
"immutableCreate2Factory": "",
"tss": "bc1qm24wp577nk8aacckv8np465z3dvmu7ry45el6y",
"tss": "tb1qy9pqmk2pd9sv63g27jt8r657wy0d9ueeh0nqur",
"tssUpdater": "",
"zetaToken": "",
"zetaTokenConsumerUniV2": "",
Expand Down Expand Up @@ -64,20 +64,20 @@
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": "0x7e792f3736751e168864106AdbAC50152641A927"
},
"zeta_testnet": {
"zeta_mainnet": {
"connector": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67",
"immutableCreate2Factory": "",
"tss": "0x7c125C1d515b8945841b3d5144a060115C58725F",
"tssUpdater": "0x7274d1d5dddef36aac53dd45b93487ce01ef0a55",
"tss": "",
"tssUpdater": "",
"zetaToken": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": ""
},
"zeta_mainnet": {
"zeta_testnet": {
"connector": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67",
"immutableCreate2Factory": "",
"tss": "",
"tssUpdater": "",
"tss": "0x7c125C1d515b8945841b3d5144a060115C58725F",
"tssUpdater": "0x7274d1d5dddef36aac53dd45b93487ce01ef0a55",
"zetaToken": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"zetaTokenConsumerUniV2": "",
"zetaTokenConsumerUniV3": ""
Expand Down Expand Up @@ -131,26 +131,26 @@
"bsc_testnet": {
"zrc20": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891"
},
"btc_testnet": {
"zrc20": "0x65a45c57636f9BcCeD4fe193A602008578BcA90b"
},
"goerli_testnet": {
"zrc20": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4"
},
"mumbai_testnet": {
"zrc20": "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb"
},
"btc_testnet": {
"zrc20": "0x65a45c57636f9BcCeD4fe193A602008578BcA90b"
"zeta_mainnet": {
"fungibleModule": "",
"systemContract": "0x91d18e54DAf4F677cB28167158d6dd21F6aB3921",
"uniswapv2Factory": "",
"uniswapv2Router02": ""
},
"zeta_testnet": {
"fungibleModule": "0x735b14BB79463307AAcBED86DAf3322B1e6226aB",
"systemContract": "0xEdf1c3275d13489aCdC6cD6eD246E72458B8795B",
"uniswapv2Factory": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"uniswapv2Router02": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe"
},
"zeta_mainnet": {
"fungibleModule": "",
"systemContract": "0x91d18e54DAf4F677cB28167158d6dd21F6aB3921",
"uniswapv2Factory": "",
"uniswapv2Router02": ""
}
}
}
}
289 changes: 289 additions & 0 deletions data/addresses.mainnet.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,289 @@
[
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uniswap pool can be used for omnichain smart contract call as well if a ERC20 deposit reverts.

I think we should have a category: general/misc/common

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mean if a smart contract on a connected chain deposits an ERC-20 token to ZetaChain, this reverts, the contract can then use the Uniswap address to swap the token and return it to the user?

"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV2Router02"
},
{
"address": "0xE592427A0AEce92De3Edee1F18E0157C05861564",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV3Router"
},
{
"address": "0x70e967acFcC17c3941E87562161406d41676FD83",
"category": "omnichain",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "tss"
},
{
"address": "0x70e967acFcC17c3941E87562161406d41676FD83",
"category": "omnichain",
"chain_id": 56,
"chain_name": "bsc_mainnet",
"type": "tss"
},
{
"address": "0x70e967acFcC17c3941E87562161406d41676FD83",
"category": "omnichain",
"chain_id": 8332,
"chain_name": "btc_mainnet",
"type": "tss"
},
{
"address": "0x70e967acFcC17c3941E87562161406d41676FD83",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "tss"
},
{
"address": "0x91d18e54DAf4F677cB28167158d6dd21F6aB3921",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "systemContract"
},
{
"address": "0x239e96c8f17C85c30100AC26F635Ea15f23E9c67",
"category": "messaging",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "connector"
},
{
"address": "0x05BA149A7bd6dC1F937fA9046A9e05C05f3b18b0",
"asset": "0x8ac76a51cc950d9822d68b83fe1ad97b32cd580d",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "erc20",
"decimals": 18,
"description": "ZetaChain ZRC20 USDC on BSC",
"foreign_chain_id": "56",
"symbol": "USDC.BSC",
"type": "zrc20"
},
{
"address": "0x0cbe0dF132a6c6B4a2974Fa1b7Fb953CF0Cc798a",
"asset": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "erc20",
"decimals": 18,
"description": "ZetaChain ZRC20 USDC on ETH",
"foreign_chain_id": "1",
"symbol": "USDC.ETH",
"type": "zrc20"
},
{
"address": "0x13A0c5930C028511Dc02665E7285134B6d11A5f4",
"asset": "",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 BTC-btc_mainnet",
"foreign_chain_id": "8332",
"symbol": "BTC.BTC",
"type": "zrc20"
},
{
"address": "0x48f80608B672DC30DC7e3dbBd0343c5F02C738Eb",
"asset": "",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 BNB-bsc_mainnet",
"foreign_chain_id": "56",
"symbol": "BNB.BSC",
"type": "zrc20"
},
{
"address": "0x7c8dDa80bbBE1254a7aACf3219EBe1481c6E01d7",
"asset": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "erc20",
"decimals": 18,
"description": "ZetaChain ZRC20 USDT on ETH",
"foreign_chain_id": "1",
"symbol": "USDT.ETH",
"type": "zrc20"
},
{
"address": "0x91d4F0D54090Df2D81e834c3c8CE71C6c865e79F",
"asset": "0x55d398326f99059ff775485246999027b3197955",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "erc20",
"decimals": 18,
"description": "ZetaChain ZRC20 USDT on BSC",
"foreign_chain_id": "56",
"symbol": "USDT.BSC",
"type": "zrc20"
},
{
"address": "0xd97B1de3619ed2c6BEb3860147E30cA8A7dC9891",
"asset": "",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"coin_type": "gas",
"decimals": 18,
"description": "ZetaChain ZRC20 ETH-eth_mainnet",
"foreign_chain_id": "1",
"symbol": "ETH.ETH",
"type": "zrc20"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x5F0b1a82749cb4E2278EC87F8BF6B618dC71a8bf",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "zetaToken"
},
{
"address": "0x2ca7d64A7EFE2D62A725E2B35Cf7230D6677FfEe",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "uniswapV2Router02"
},
{
"address": "0x735b14BB79463307AAcBED86DAf3322B1e6226aB",
"category": "omnichain",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "fungibleModule"
},
{
"address": "0x0000028a2eB8346cd5c0267856aB7594B7a55308",
"category": "messaging",
"chain_id": 56,
"chain_name": "bsc_mainnet",
"type": "zetaToken"
},
{
"address": "0x000063A6e758D9e2f438d430108377564cf4077D",
"category": "messaging",
"chain_id": 56,
"chain_name": "bsc_mainnet",
"type": "connector"
},
{
"address": "0x00000fF8fA992424957F97688015814e707A0115",
"category": "omnichain",
"chain_id": 56,
"chain_name": "bsc_mainnet",
"type": "erc20Custody"
},
{
"address": "0xf091867EC603A6628eD83D274E835539D82e9cc8",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "zetaToken"
},
{
"address": "0x000007Cf399229b2f5A4D043F20E90C9C98B7C6a",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "connector"
},
{
"address": "0x0000030Ec64DF25301d8414eE5a29588C4B0dE10",
"category": "omnichain",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "erc20Custody"
},
{
"address": "0xaeB6dDB7708467814D557e340283248be8E43124",
"category": "omnichain",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "tssUpdater"
},
{
"address": "0xaf28a257D292e7f0E531073f70a175b57E0261a8",
"category": "omnichain",
"chain_id": 56,
"chain_name": "bsc_mainnet",
"type": "tssUpdater"
},
{
"address": "0xaeB6dDB7708467814D557e340283248be8E43124",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "pauser"
},
{
"address": "0xaf28a257D292e7f0E531073f70a175b57E0261a8",
"category": "messaging",
"chain_id": 56,
"chain_name": "bsc_mainnet",
"type": "pauser"
},
{
"address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "weth9"
},
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "messaging",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "uniswapV2Factory"
},
{
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
"category": "messaging",
"chain_id": 1,
"chain_name": "eth_mainnet",
"type": "uniswapV3Factory"
},
{
"address": "0x9fd96203f7b22bCF72d9DCb40ff98302376cE09c",
"category": "messaging",
"chain_id": 7000,
"chain_name": "zeta_mainnet",
"type": "uniswapV3Factory"
}
]
Loading
Loading