cosmos-explorer/src/chains/README.md

48 lines
1.5 KiB
Markdown
Raw Normal View History

2021-12-13 06:25:24 +00:00
# Directory Layout
**We accept all blockchains which have 10+ independent validators.**
- Submit configs for mainnet, go to https://github.com/ping-pub/explorer/tree/master/src/chains/mainnet
- Submit configs for testnet, go to https://github.com/ping-pub/explorer/tree/testnet/src/chains/testnet
# Sample of Config
```json
{
"chain_name": "cosmos",
2022-01-10 11:08:11 +00:00
"api": ["https://cosmos.api.ping.pub"],
2022-03-22 12:32:32 +00:00
"rpc": ["https://cosmos.rpc.ping.pub:443","http://your-host:26657"]
2021-12-13 06:25:24 +00:00
"sdk_version": "0.42.6",
2022-01-06 03:10:46 +00:00
"coin_type": "118",
"min_tx_fee": "800",
2022-01-10 11:08:11 +00:00
"assets": [{
"base": "uatom",
"symbol": "ATOM",
"exponent": "6",
"coingecko_id": "cosmos",
"logo": "https://dl.airtable.com/.attachments/e54f814bba8c0f9af8a3056020210de0/2d1155fb/cosmos-hub.svg"
}],
2021-12-13 06:25:24 +00:00
"addr_prefix": "cosmos",
"logo": "https://dl.airtable.com/.attachments/e54f814bba8c0f9af8a3056020210de0/2d1155fb/cosmos-hub.svg"
}
```
- **chain_name** the name to identify the chain on ping.pub
2022-01-13 07:32:06 +00:00
- **api** the rest api endpoint.(make sure that CORS is enabled: `Allow-Control-Allow-Origin: *`)
2022-03-22 12:32:32 +00:00
- **rpc** the rpc endpoint, make sure that the port is added.
2022-01-13 07:32:06 +00:00
- **assets** Native Assets on blockchain.
2021-12-22 01:38:48 +00:00
# Test
2021-12-13 06:25:24 +00:00
2021-12-22 01:38:48 +00:00
please add these check points in comments with your PR, and adding your test result by clicking the checkbox of each line
```
Test Result:
- [ ] Connect wallet, check if address is correct?
- [ ] Transfer
2022-01-13 07:32:06 +00:00
- [ ] Delegate
- [ ] Redelegate
- [ ] Unbond
2021-12-22 01:38:48 +00:00
- [ ] withdraw Validator's Commission
- [ ] withdraw Rewards
```
Test is very important for us and our users.