Skip to content

Commit 899d7f1

Browse files
committed
Add testnet config
1 parent 7d95623 commit 899d7f1

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

src/chains/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,24 @@
3131
- **api** the rest api endpoint.(make sure that CORS is enabled: `Allow-Control-Allow-Origin: *`)
3232
- **rpc** the rpc endpoint, make sure that the port is added. rpc endpoint is only used for state sync. it's optional.
3333
- **assets** Native Assets on blockchain.
34+
35+
# Additional Signing Configuration
36+
```json
37+
{
38+
"chain_name": "cosmos",
39+
...
40+
"sign_opts": {
41+
"keplr": {
42+
"preferNoSetFee": true,
43+
"preferNoSetMemo": true
44+
}
45+
},
46+
...
47+
}
48+
```
49+
- **sign_opts** (optional) configuration for sign requests, only Keplr is supported at the moment.
50+
- **sign_opts.keplr** (optional) KeplrSignOptions - See Keplr [documentation](https://docs.keplr.app/api/#interaction-options).
51+
3452
# Test
3553

3654
please add these check points in comments with your PR, and adding your test result by clicking the checkbox of each line

src/chains/testnet/carbon.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"chain_name": "carbon",
3+
"coingecko": "switcheo",
4+
"api": "https://test-api.carbon.network",
5+
"rpc": ["https://test-tm-api.carbon.network"],
6+
"snapshot_provider": "",
7+
"sdk_version": "0.45.2",
8+
"coin_type": "118",
9+
"min_tx_fee": "100000000",
10+
"addr_prefix": "swth",
11+
"logo": "/logos/carbon.svg",
12+
"sign_opts": {
13+
"keplr": {
14+
"preferNoSetFee": true
15+
}
16+
},
17+
"assets": [{
18+
"base": "swth",
19+
"symbol": "SWTH",
20+
"exponent": "8",
21+
"coingecko_id": "switcheo",
22+
"logo": "/logos/carbon.svg"
23+
}]
24+
}

0 commit comments

Comments
 (0)