-
Notifications
You must be signed in to change notification settings - Fork 59
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
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
00f1a25
feat: fetch addresses from chain
fadeev 6385d09
fix: update to Athens 3
fadeev df10b8e
merge main
fadeev 6cfc35d
merge main
fadeev 32e4912
remove zetacore from url
fadeev c226039
remove yarn clean
fadeev 7ba85a9
update script
fadeev 2b9db52
fixes
fadeev 2be5087
refactor
fadeev c947f8f
lint
fadeev dfc0eab
added pauser address
fadeev e590bee
lint
fadeev da18a18
generate addresses script
fadeev 54306c5
remove gas token entries with empty addresses
fadeev 8d2261e
getAddress
fadeev dfc9009
remove console log
fadeev 30851e2
types
fadeev 9010907
lint
fadeev cf1d56e
fix addresses
fadeev 3284e13
lint
fadeev f34abe4
uniswap addresses
fadeev 0d61e01
zetaTokenConsumerUniV3 for bsc_testnet
fadeev 28c7141
yarn generate
fadeev 5b48d1e
auto lint
fadeev 72b277f
chain IDs to ints
fadeev e345858
merge main
fadeev bb9c5d8
merge conflicts
fadeev ef14114
fix build
fadeev 796a532
yarn generate
fadeev dc0cb11
readme
fadeev 9bf2fea
remove duplicate zetatoken
fadeev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,289 @@ | ||
[ | ||
{ | ||
"address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f", | ||
"category": "messaging", | ||
"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" | ||
} | ||
] |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?