diff --git a/README.md b/README.md index 7e02162..41c2417 100644 --- a/README.md +++ b/README.md @@ -1 +1,9 @@ -# public-chain-configs \ No newline at end of file +# public-chain-configs + +## Validation + +To ensure the chain configs you added will be approved, you can first run this validation script: + +```python +python3 scripts/validateInputs.py --network {mainnet | testnet} +``` diff --git a/images/tokens/eth.logo.svg b/images/chains/ethereum.svg similarity index 100% rename from images/tokens/eth.logo.svg rename to images/chains/ethereum.svg diff --git a/images/tokens/ftm.logo.svg b/images/chains/fantom.svg similarity index 100% rename from images/tokens/ftm.logo.svg rename to images/chains/fantom.svg diff --git a/images/tokens/aave-wei.logo.svg b/images/tokens/aave.svg similarity index 100% rename from images/tokens/aave-wei.logo.svg rename to images/tokens/aave.svg diff --git a/images/tokens/ape-wei.logo.svg b/images/tokens/ape.svg similarity index 100% rename from images/tokens/ape-wei.logo.svg rename to images/tokens/ape.svg diff --git a/images/tokens/arb-wei.logo.svg b/images/tokens/arb.svg similarity index 100% rename from images/tokens/arb-wei.logo.svg rename to images/tokens/arb.svg diff --git a/images/tokens/uatom.logo.svg b/images/tokens/atom.svg similarity index 100% rename from images/tokens/uatom.logo.svg rename to images/tokens/atom.svg diff --git a/images/tokens/avalanche-uusdc.logo.svg b/images/tokens/ausdc.svg similarity index 100% rename from images/tokens/avalanche-uusdc.logo.svg rename to images/tokens/ausdc.svg diff --git a/images/tokens/avax.logo.svg b/images/tokens/avax.svg similarity index 100% rename from images/tokens/avax.logo.svg rename to images/tokens/avax.svg diff --git a/images/tokens/uaxl.logo.svg b/images/tokens/axl.svg similarity index 100% rename from images/tokens/uaxl.logo.svg rename to images/tokens/axl.svg diff --git a/images/tokens/axs-wei.logo.svg b/images/tokens/axs.svg similarity index 100% rename from images/tokens/axs-wei.logo.svg rename to images/tokens/axs.svg diff --git a/images/tokens/bnb.logo.svg b/images/tokens/bnb.svg similarity index 100% rename from images/tokens/bnb.logo.svg rename to images/tokens/bnb.svg diff --git a/images/tokens/busd-wei.logo.svg b/images/tokens/busd.svg similarity index 100% rename from images/tokens/busd-wei.logo.svg rename to images/tokens/busd.svg diff --git a/images/tokens/cbeth-wei.logo.svg b/images/tokens/cbeth.svg similarity index 100% rename from images/tokens/cbeth-wei.logo.svg rename to images/tokens/cbeth.svg diff --git a/images/tokens/celo-wei.logo.svg b/images/tokens/celo.svg similarity index 100% rename from images/tokens/celo-wei.logo.svg rename to images/tokens/celo.svg diff --git a/images/tokens/cusd-wei.logo.svg b/images/tokens/cusd.svg similarity index 100% rename from images/tokens/cusd-wei.logo.svg rename to images/tokens/cusd.svg diff --git a/images/tokens/dai-wei.logo.svg b/images/tokens/dai-wei.logo.svg deleted file mode 100644 index 31f5584..0000000 --- a/images/tokens/dai-wei.logo.svg +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - - - - - - diff --git a/images/tokens/axl-dai.logo.svg b/images/tokens/dai.svg similarity index 100% rename from images/tokens/axl-dai.logo.svg rename to images/tokens/dai.svg diff --git a/images/tokens/default.logo.svg b/images/tokens/default.logo.svg deleted file mode 100644 index 3a84e9d..0000000 --- a/images/tokens/default.logo.svg +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/images/tokens/deus-wei.logo.svg b/images/tokens/deus.svg similarity index 100% rename from images/tokens/deus-wei.logo.svg rename to images/tokens/deus.svg diff --git a/images/tokens/dev.logo.svg b/images/tokens/dev.svg similarity index 100% rename from images/tokens/dev.logo.svg rename to images/tokens/dev.svg diff --git a/images/tokens/dot-planck.logo.svg b/images/tokens/dot-planck.svg similarity index 100% rename from images/tokens/dot-planck.logo.svg rename to images/tokens/dot-planck.svg diff --git a/images/tokens/eeur.logo.svg b/images/tokens/eeur.svg similarity index 100% rename from images/tokens/eeur.logo.svg rename to images/tokens/eeur.svg diff --git a/images/tokens/ern-wei.logo.svg b/images/tokens/ern.svg similarity index 100% rename from images/tokens/ern-wei.logo.svg rename to images/tokens/ern.svg diff --git a/images/tokens/eth-wei.logo.svg b/images/tokens/eth.svg similarity index 100% rename from images/tokens/eth-wei.logo.svg rename to images/tokens/eth.svg diff --git a/images/tokens/fil.logo.svg b/images/tokens/fil.svg similarity index 100% rename from images/tokens/fil.logo.svg rename to images/tokens/fil.svg diff --git a/images/tokens/frax-wei.logo.svg b/images/tokens/frax.svg similarity index 100% rename from images/tokens/frax-wei.logo.svg rename to images/tokens/frax.svg diff --git a/images/tokens/frxeth-wei.logo.svg b/images/tokens/frxeth.svg similarity index 100% rename from images/tokens/frxeth-wei.logo.svg rename to images/tokens/frxeth.svg diff --git a/testnet/fantom/images/logo.svg b/images/tokens/ftm.svg similarity index 100% rename from testnet/fantom/images/logo.svg rename to images/tokens/ftm.svg diff --git a/images/tokens/gdx-wei.logo.svg b/images/tokens/gdx.svg similarity index 100% rename from images/tokens/gdx-wei.logo.svg rename to images/tokens/gdx.svg diff --git a/images/tokens/glmr-wei.logo.svg b/images/tokens/glmr.svg similarity index 100% rename from images/tokens/glmr-wei.logo.svg rename to images/tokens/glmr.svg diff --git a/images/tokens/hzn-wei.logo.svg b/images/tokens/hzn.svg similarity index 100% rename from images/tokens/hzn-wei.logo.svg rename to images/tokens/hzn.svg diff --git a/images/tokens/knc-wei.logo.svg b/images/tokens/knc.svg similarity index 100% rename from images/tokens/knc-wei.logo.svg rename to images/tokens/knc.svg diff --git a/images/tokens/ukuji.logo.svg b/images/tokens/kuji.svg similarity index 100% rename from images/tokens/ukuji.logo.svg rename to images/tokens/kuji.svg diff --git a/images/tokens/link-wei.logo.svg b/images/tokens/link.svg similarity index 100% rename from images/tokens/link-wei.logo.svg rename to images/tokens/link.svg diff --git a/images/tokens/lqdr-wei.logo.svg b/images/tokens/lqdr.svg similarity index 100% rename from images/tokens/lqdr-wei.logo.svg rename to images/tokens/lqdr.svg diff --git a/images/tokens/uluna.logo.svg b/images/tokens/luna.svg similarity index 100% rename from images/tokens/uluna.logo.svg rename to images/tokens/luna.svg diff --git a/images/tokens/matic.logo.svg b/images/tokens/matic.svg similarity index 100% rename from images/tokens/matic.logo.svg rename to images/tokens/matic.svg diff --git a/images/tokens/mkr-wei.logo.svg b/images/tokens/mkr.svg similarity index 100% rename from images/tokens/mkr-wei.logo.svg rename to images/tokens/mkr.svg diff --git a/images/tokens/mpx-wei.logo.svg b/images/tokens/mpx.svg similarity index 100% rename from images/tokens/mpx-wei.logo.svg rename to images/tokens/mpx.svg diff --git a/images/tokens/ungm.logo.svg b/images/tokens/ngm.svg similarity index 100% rename from images/tokens/ungm.logo.svg rename to images/tokens/ngm.svg diff --git a/images/tokens/oath-wei.logo.svg b/images/tokens/oath.svg similarity index 100% rename from images/tokens/oath-wei.logo.svg rename to images/tokens/oath.svg diff --git a/images/tokens/orbs-wei.logo.svg b/images/tokens/orbs.svg similarity index 100% rename from images/tokens/orbs-wei.logo.svg rename to images/tokens/orbs.svg diff --git a/images/tokens/uosmo.logo.svg b/images/tokens/osmo.svg similarity index 100% rename from images/tokens/uosmo.logo.svg rename to images/tokens/osmo.svg diff --git a/images/tokens/pax-wei.logo.svg b/images/tokens/pax.svg similarity index 100% rename from images/tokens/pax-wei.logo.svg rename to images/tokens/pax.svg diff --git a/images/tokens/pepe-wei.logo.svg b/images/tokens/pepe.svg similarity index 100% rename from images/tokens/pepe-wei.logo.svg rename to images/tokens/pepe.svg diff --git a/images/tokens/rai-wei.logo.svg b/images/tokens/rai.svg similarity index 100% rename from images/tokens/rai-wei.logo.svg rename to images/tokens/rai.svg diff --git a/images/tokens/reth-wei.logo.svg b/images/tokens/reth.svg similarity index 100% rename from images/tokens/reth-wei.logo.svg rename to images/tokens/reth.svg diff --git a/images/tokens/ring-wei.logo.svg b/images/tokens/ring.svg similarity index 100% rename from images/tokens/ring-wei.logo.svg rename to images/tokens/ring.svg diff --git a/images/tokens/sfrxeth-wei.logo.svg b/images/tokens/sfrxeth.svg similarity index 100% rename from images/tokens/sfrxeth-wei.logo.svg rename to images/tokens/sfrxeth.svg diff --git a/images/tokens/shib-wei.logo.svg b/images/tokens/shib.svg similarity index 100% rename from images/tokens/shib-wei.logo.svg rename to images/tokens/shib.svg diff --git a/images/tokens/usomm.logo.svg b/images/tokens/somm.svg similarity index 100% rename from images/tokens/usomm.logo.svg rename to images/tokens/somm.svg diff --git a/images/tokens/sonne-wei.logo.svg b/images/tokens/sonne.svg similarity index 100% rename from images/tokens/sonne-wei.logo.svg rename to images/tokens/sonne.svg diff --git a/images/tokens/stern-wei.logo.svg b/images/tokens/stern.svg similarity index 100% rename from images/tokens/stern-wei.logo.svg rename to images/tokens/stern.svg diff --git a/images/tokens/stkbnb-wei.logo.svg b/images/tokens/stkbnb.svg similarity index 100% rename from images/tokens/stkbnb-wei.logo.svg rename to images/tokens/stkbnb.svg diff --git a/images/tokens/ustrd.logo.svg b/images/tokens/strd.svg similarity index 100% rename from images/tokens/ustrd.logo.svg rename to images/tokens/strd.svg diff --git a/images/tokens/stuatom.logo.svg b/images/tokens/stuatom.svg similarity index 100% rename from images/tokens/stuatom.logo.svg rename to images/tokens/stuatom.svg diff --git a/images/tokens/uumee.logo.svg b/images/tokens/umee.svg similarity index 100% rename from images/tokens/uumee.logo.svg rename to images/tokens/umee.svg diff --git a/images/tokens/uni-wei.logo.svg b/images/tokens/uni.svg similarity index 100% rename from images/tokens/uni-wei.logo.svg rename to images/tokens/uni.svg diff --git a/images/tokens/polygon-uusdc.logo.svg b/images/tokens/usdc-avalanche.svg similarity index 100% rename from images/tokens/polygon-uusdc.logo.svg rename to images/tokens/usdc-avalanche.svg diff --git a/images/tokens/uausdc.logo.svg b/images/tokens/usdc-polygon.svg similarity index 100% rename from images/tokens/uausdc.logo.svg rename to images/tokens/usdc-polygon.svg diff --git a/images/tokens/uusdc.logo.svg b/images/tokens/usdc.svg similarity index 100% rename from images/tokens/uusdc.logo.svg rename to images/tokens/usdc.svg diff --git a/images/tokens/uusdt.logo.svg b/images/tokens/usdt.svg similarity index 100% rename from images/tokens/uusdt.logo.svg rename to images/tokens/usdt.svg diff --git a/images/tokens/uusd.logo.svg b/images/tokens/ust.svg similarity index 100% rename from images/tokens/uusd.logo.svg rename to images/tokens/ust.svg diff --git a/images/tokens/wavax-wei.logo.svg b/images/tokens/wavax.svg similarity index 100% rename from images/tokens/wavax-wei.logo.svg rename to images/tokens/wavax.svg diff --git a/images/tokens/wbnb-wei.logo.svg b/images/tokens/wbnb.svg similarity index 100% rename from images/tokens/wbnb-wei.logo.svg rename to images/tokens/wbnb.svg diff --git a/images/tokens/wbtc-satoshi.logo.svg b/images/tokens/wbtc.svg similarity index 100% rename from images/tokens/wbtc-satoshi.logo.svg rename to images/tokens/wbtc.svg diff --git a/images/tokens/wdev-wei.logo.svg b/images/tokens/wdev.svg similarity index 100% rename from images/tokens/wdev-wei.logo.svg rename to images/tokens/wdev.svg diff --git a/images/tokens/wdoge-wei.logo.png b/images/tokens/wdode_1x.png similarity index 100% rename from images/tokens/wdoge-wei.logo.png rename to images/tokens/wdode_1x.png diff --git a/images/tokens/wdoge-wei.logo.svg b/images/tokens/wdoge.svg similarity index 100% rename from images/tokens/wdoge-wei.logo.svg rename to images/tokens/wdoge.svg diff --git a/images/tokens/weth-wei.logo.svg b/images/tokens/weth.svg similarity index 100% rename from images/tokens/weth-wei.logo.svg rename to images/tokens/weth.svg diff --git a/images/tokens/wfil-wei.logo.svg b/images/tokens/wfil.svg similarity index 100% rename from images/tokens/wfil-wei.logo.svg rename to images/tokens/wfil.svg diff --git a/images/tokens/wftm-wei.logo.svg b/images/tokens/wftm.svg similarity index 100% rename from images/tokens/wftm-wei.logo.svg rename to images/tokens/wftm.svg diff --git a/images/tokens/wglmr-wei.logo.svg b/images/tokens/wglmr.svg similarity index 100% rename from images/tokens/wglmr-wei.logo.svg rename to images/tokens/wglmr.svg diff --git a/images/tokens/wmai-wei.logo.svg b/images/tokens/wmai.svg similarity index 100% rename from images/tokens/wmai-wei.logo.svg rename to images/tokens/wmai.svg diff --git a/images/tokens/wmai-wei.logo.png b/images/tokens/wmai_1x.png similarity index 100% rename from images/tokens/wmai-wei.logo.png rename to images/tokens/wmai_1x.png diff --git a/images/tokens/wmatic-wei.logo.svg b/images/tokens/wmatic.svg similarity index 100% rename from images/tokens/wmatic-wei.logo.svg rename to images/tokens/wmatic.svg diff --git a/images/tokens/wsteth-wei.logo.svg b/images/tokens/wsteth.svg similarity index 100% rename from images/tokens/wsteth-wei.logo.svg rename to images/tokens/wsteth.svg diff --git a/images/tokens/xcn-wei.logo.svg b/images/tokens/xcn.svg similarity index 100% rename from images/tokens/xcn-wei.logo.svg rename to images/tokens/xcn.svg diff --git a/images/tokens/yieldeth-wei.logo.svg b/images/tokens/yieldeth.svg similarity index 100% rename from images/tokens/yieldeth-wei.logo.svg rename to images/tokens/yieldeth.svg diff --git a/images/tokens/yieldeth-wei.logo.png b/images/tokens/yieldeth_1x.png similarity index 100% rename from images/tokens/yieldeth-wei.logo.png rename to images/tokens/yieldeth_1x.png diff --git a/images/tokens/yieldusd-wei.logo.svg b/images/tokens/yieldusd.svg similarity index 100% rename from images/tokens/yieldusd-wei.logo.svg rename to images/tokens/yieldusd.svg diff --git a/images/tokens/yieldusd-wei.logo.png b/images/tokens/yieldusd_1x.png similarity index 100% rename from images/tokens/yieldusd-wei.logo.png rename to images/tokens/yieldusd_1x.png diff --git a/images/tokens/zyb-wei.logo.svg b/images/tokens/zyb.svg similarity index 100% rename from images/tokens/zyb-wei.logo.svg rename to images/tokens/zyb.svg diff --git a/scripts/validateInputs.py b/scripts/validateInputs.py new file mode 100644 index 0000000..69fae70 --- /dev/null +++ b/scripts/validateInputs.py @@ -0,0 +1,21 @@ +import json +import argparse + +parser = argparse.ArgumentParser( + description="Validate chain configs" +) +parser.add_argument( + "--network", + dest="network", + choices=["testnet", "mainnet"], + help="select network", +) + +args = parser.parse_args() +environment = args.network + +f = open(f'{environment}/inputs.json') +chains = json.load(f) + +for chain in chains: + ##todo: validate inputs here \ No newline at end of file diff --git a/testnet/.DS_Store b/testnet/.DS_Store index 2732a08..5008ddf 100644 Binary files a/testnet/.DS_Store and b/testnet/.DS_Store differ diff --git a/testnet/ethereum-2/images/logo.svg b/testnet/ethereum-2/images/logo.svg deleted file mode 100644 index 8f9f1b9..0000000 --- a/testnet/ethereum-2/images/logo.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/testnet/ethereum-2/inputs/chain.json b/testnet/ethereum-2/inputs/chain.json deleted file mode 100644 index 05ddbd6..0000000 --- a/testnet/ethereum-2/inputs/chain.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "rpc": ["https://rpc.ankr.com/eth_goerli"], - "nativeCurrency": { - "name": "Ethereum", - "symbol": "ETH", - "decimals": 18, - "iconUrls": { - "png_1x": "https://tokens.1inch.io/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.png", - "png_2x": "", - "png_3x": "", - "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/main/images/tokens/eth-wei.logo.svg" - } - }, - "iconUrls": { - "png_1x": "https://tokens.1inch.io/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.png", - "png_2x": "", - "png_3x": "", - "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/main/testnet/ethereum-2/images/logo.svg" - }, - "blockExplorerUrls": ["https://goerli.etherscan.io/"] -} diff --git a/testnet/fantom/inputs/chain.json b/testnet/fantom/inputs/chain.json deleted file mode 100644 index e8184ef..0000000 --- a/testnet/fantom/inputs/chain.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "chainName": "Fantom", - "rpc": ["https://rpc.testnet.fantom.network"], - "networkName": "Fantom Testnet", - "chainId": 4002, - "nativeCurrency": { - "name": "FTM", - "symbol": "FTM", - "decimals": 18, - "icon": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/main/testnet/fantom/images/logo.svg" - }, - "iconUrls": { - "png_1x": "", - "png_2x": "", - "png_3x": "", - "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/main/testnet/fantom/images/logo.svg" - }, - "blockExplorerUrls": ["https://testnet.ftmscan.com/"] -} diff --git a/testnet/inputs.json b/testnet/inputs.json new file mode 100644 index 0000000..01a3363 --- /dev/null +++ b/testnet/inputs.json @@ -0,0 +1,40 @@ +[ + { + "rpc": ["https://rpc.ankr.com/eth_goerli"], + "nativeCurrency": { + "name": "Ethereum", + "symbol": "ETH", + "decimals": 18, + "iconUrls": { + "png_1x": "https://tokens.1inch.io/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.png", + "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/images/chains/ethereum.svg" + } + }, + "iconUrls": { + "png_1x": "https://tokens.1inch.io/0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.png", + "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/main/testnet/ethereum-2/images/logo.svg" + }, + "blockExplorerUrls": ["https://goerli.etherscan.io/"], + "chainId": 5, + "chainType": "evm" + }, + { + "chainName": "Fantom", + "rpc": ["https://rpc.testnet.fantom.network"], + "networkName": "Fantom Testnet", + "chainId": 4002, + "nativeCurrency": { + "name": "FTM", + "symbol": "FTM", + "decimals": 18, + "iconUrls": { + "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/images/chains/ethereum.svg" + } + }, + "iconUrls": { + "svg": "https://raw.githubusercontent.com/axelarnetwork/public-chain-configs/images/chains/fantom.svg" + }, + "blockExplorerUrls": ["https://testnet.ftmscan.com/"], + "chainType": "evm" + } +]