-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
90 changed files
with
70 additions
and
85 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
# public-chain-configs | ||
# 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} | ||
``` |
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
This file was deleted.
Oops, something went wrong.
File renamed without changes
This file was deleted.
Oops, something went wrong.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
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,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 |
Binary file not shown.
Diff not rendered.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,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" | ||
} | ||
] |