Skip to content

Commit

Permalink
chore: formatting updates
Browse files Browse the repository at this point in the history
  • Loading branch information
canhtrinh committed Aug 9, 2023
1 parent 2fb5c92 commit a152e61
Show file tree
Hide file tree
Showing 90 changed files with 70 additions and 85 deletions.
10 changes: 9 additions & 1 deletion README.md
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
11 changes: 0 additions & 11 deletions images/tokens/dai-wei.logo.svg

This file was deleted.

File renamed without changes
26 changes: 0 additions & 26 deletions images/tokens/default.logo.svg

This file was deleted.

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
21 changes: 21 additions & 0 deletions scripts/validateInputs.py
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 modified testnet/.DS_Store
Binary file not shown.
7 changes: 0 additions & 7 deletions testnet/ethereum-2/images/logo.svg
Diff not rendered.
21 changes: 0 additions & 21 deletions testnet/ethereum-2/inputs/chain.json

This file was deleted.

19 changes: 0 additions & 19 deletions testnet/fantom/inputs/chain.json

This file was deleted.

40 changes: 40 additions & 0 deletions testnet/inputs.json
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"
}
]

0 comments on commit a152e61

Please sign in to comment.