Skip to content

Commit

Permalink
Add testnet config
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenkhong committed Apr 4, 2022
1 parent 7d95623 commit 899d7f1
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/chains/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,24 @@
- **api** the rest api endpoint.(make sure that CORS is enabled: `Allow-Control-Allow-Origin: *`)
- **rpc** the rpc endpoint, make sure that the port is added. rpc endpoint is only used for state sync. it's optional.
- **assets** Native Assets on blockchain.

# Additional Signing Configuration
```json
{
"chain_name": "cosmos",
...
"sign_opts": {
"keplr": {
"preferNoSetFee": true,
"preferNoSetMemo": true
}
},
...
}
```
- **sign_opts** (optional) configuration for sign requests, only Keplr is supported at the moment.
- **sign_opts.keplr** (optional) KeplrSignOptions - See Keplr [documentation](https://docs.keplr.app/api/#interaction-options).

# Test

please add these check points in comments with your PR, and adding your test result by clicking the checkbox of each line
Expand Down
24 changes: 24 additions & 0 deletions src/chains/testnet/carbon.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"chain_name": "carbon",
"coingecko": "switcheo",
"api": "https://test-api.carbon.network",
"rpc": ["https://test-tm-api.carbon.network"],
"snapshot_provider": "",
"sdk_version": "0.45.2",
"coin_type": "118",
"min_tx_fee": "100000000",
"addr_prefix": "swth",
"logo": "/logos/carbon.svg",
"sign_opts": {
"keplr": {
"preferNoSetFee": true
}
},
"assets": [{
"base": "swth",
"symbol": "SWTH",
"exponent": "8",
"coingecko_id": "switcheo",
"logo": "/logos/carbon.svg"
}]
}

0 comments on commit 899d7f1

Please sign in to comment.