Skip to content

Commit f588874

Browse files
authored
Merge pull request #190 from AbstractSDK/docs/cleanSupportedChains
Clarify supported chain docs
2 parents 9988032 + 4d80497 commit f588874

File tree

12 files changed

+50
-50
lines changed

12 files changed

+50
-50
lines changed

cw-orch/src/daemon/networks/archway.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,12 @@
11
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: archway
34
pub const ARCHWAY_NETWORK: NetworkInfo = NetworkInfo {
45
id: "archway",
56
pub_address_prefix: "archway",
67
coin_type: 118u32,
78
};
89

9-
#[deprecated(
10-
since = "0.6.1",
11-
note = "Constantine-1 does not exist anymore. Use Constantine-3 instead."
12-
)]
13-
pub const CONSTANTINE_1: ChainInfo = ChainInfo {
14-
kind: ChainKind::Testnet,
15-
chain_id: "constantine-1",
16-
gas_denom: "uconst",
17-
gas_price: 0.025,
18-
grpc_urls: &["https://grpc.constantine-1.archway.tech:443"],
19-
network_info: ARCHWAY_NETWORK,
20-
lcd_url: Some("https://api.constantine-1.archway.tech"),
21-
fcd_url: None,
22-
};
23-
24-
// ANCHOR: archway
2510
/// Archway Docs: <https://docs.archway.io/resources/networks>
2611
/// Parameters: <https://testnet.mintscan.io/archway-testnet/parameters>
2712
pub const CONSTANTINE_3: ChainInfo = ChainInfo {
@@ -48,3 +33,18 @@ pub const ARCHWAY_1: ChainInfo = ChainInfo {
4833
fcd_url: None,
4934
};
5035
// ANCHOR_END: archway
36+
37+
#[deprecated(
38+
since = "0.6.1",
39+
note = "Constantine-1 does not exist anymore. Use Constantine-3 instead."
40+
)]
41+
pub const CONSTANTINE_1: ChainInfo = ChainInfo {
42+
kind: ChainKind::Testnet,
43+
chain_id: "constantine-1",
44+
gas_denom: "uconst",
45+
gas_price: 0.025,
46+
grpc_urls: &["https://grpc.constantine-1.archway.tech:443"],
47+
network_info: ARCHWAY_NETWORK,
48+
lcd_url: Some("https://api.constantine-1.archway.tech"),
49+
fcd_url: None,
50+
};

cw-orch/src/daemon/networks/injective.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: injective
34
pub const INJECTIVE_NETWORK: NetworkInfo = NetworkInfo {
45
id: "injective",
56
pub_address_prefix: "inj",
67
coin_type: 60u32,
78
};
8-
// ANCHOR: injective
99

1010
/// <https://docs.injective.network/develop/public-endpoints/#mainnet>
1111
/// <https://www.mintscan.io/injective/parameters>
@@ -33,5 +33,4 @@ pub const INJECTIVE_888: ChainInfo = ChainInfo {
3333
lcd_url: None,
3434
fcd_url: None,
3535
};
36-
3736
// ANCHOR_END: injective

cw-orch/src/daemon/networks/juno.rs

+16-16
Original file line numberDiff line numberDiff line change
@@ -2,28 +2,13 @@ use crate::daemon::chain_info::{ChainInfo, ChainKind, NetworkInfo};
22

33
// https://notional.ventures/resources/endpoints#juno
44

5+
// ANCHOR: juno
56
pub const JUNO_NETWORK: NetworkInfo = NetworkInfo {
67
id: "juno",
78
pub_address_prefix: "juno",
89
coin_type: 118u32,
910
};
1011

11-
#[deprecated(
12-
since = "0.6.1",
13-
note = "Uni-5 does not exist anymore. Use Uni-6 instead."
14-
)]
15-
pub const UNI_5: ChainInfo = ChainInfo {
16-
kind: ChainKind::Testnet,
17-
chain_id: "uni-5",
18-
gas_denom: "ujunox",
19-
gas_price: 0.025,
20-
grpc_urls: &["https://juno-testnet-grpc.polkachu.com:12690"],
21-
network_info: JUNO_NETWORK,
22-
lcd_url: None,
23-
fcd_url: None,
24-
};
25-
26-
// ANCHOR: juno
2712
pub const UNI_6: ChainInfo = ChainInfo {
2813
kind: ChainKind::Testnet,
2914
chain_id: "uni-6",
@@ -60,3 +45,18 @@ pub const LOCAL_JUNO: ChainInfo = ChainInfo {
6045
fcd_url: None,
6146
};
6247
// ANCHOR_END: juno
48+
49+
#[deprecated(
50+
since = "0.6.1",
51+
note = "Uni-5 does not exist anymore. Use Uni-6 instead."
52+
)]
53+
pub const UNI_5: ChainInfo = ChainInfo {
54+
kind: ChainKind::Testnet,
55+
chain_id: "uni-5",
56+
gas_denom: "ujunox",
57+
gas_price: 0.025,
58+
grpc_urls: &["https://juno-testnet-grpc.polkachu.com:12690"],
59+
network_info: JUNO_NETWORK,
60+
lcd_url: None,
61+
fcd_url: None,
62+
};

cw-orch/src/daemon/networks/kujira.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: kujira
34
pub const KUJIRA_NETWORK: NetworkInfo = NetworkInfo {
45
id: "kujira",
56
pub_address_prefix: "kujira",
67
coin_type: 118u32,
78
};
89

9-
// ANCHOR: kujira
10-
1110
pub const HARPOON_4: ChainInfo = ChainInfo {
1211
kind: ChainKind::Testnet,
1312
chain_id: "harpoon-4",
@@ -18,5 +17,4 @@ pub const HARPOON_4: ChainInfo = ChainInfo {
1817
lcd_url: None,
1918
fcd_url: None,
2019
};
21-
2220
// ANCHOR_END: kujira

cw-orch/src/daemon/networks/neutron.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: neutron
34
pub const NEUTRON_NETWORK: NetworkInfo = NetworkInfo {
45
id: "neutron",
56
pub_address_prefix: "neutron",
67
coin_type: 118u32,
78
};
89

9-
// ANCHOR: neutron
1010
/// <https://github.com/cosmos/chain-registry/blob/master/testnets/neutrontestnet/chain.json>
1111
pub const PION_1: ChainInfo = ChainInfo {
1212
kind: ChainKind::Testnet,
@@ -41,5 +41,4 @@ pub const LOCAL_NEUTRON: ChainInfo = ChainInfo {
4141
lcd_url: None,
4242
fcd_url: None,
4343
};
44-
4544
// ANCHOR_END: neutron

cw-orch/src/daemon/networks/osmosis.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
use crate::daemon::chain_info::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: osmosis
34
pub const OSMO_NETWORK: NetworkInfo = NetworkInfo {
45
id: "osmosis",
56
pub_address_prefix: "osmo",
67
coin_type: 118u32,
78
};
89

9-
// ANCHOR: osmosis
10-
1110
pub const OSMO_5: ChainInfo = ChainInfo {
1211
kind: ChainKind::Testnet,
1312
chain_id: "osmo-test-5",
@@ -29,5 +28,4 @@ pub const LOCAL_OSMO: ChainInfo = ChainInfo {
2928
lcd_url: None,
3029
fcd_url: None,
3130
};
32-
3331
// ANCHOR_END: osmosis

cw-orch/src/daemon/networks/sei.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: sei
34
pub const SEI_NETWORK: NetworkInfo = NetworkInfo {
45
id: "sei",
56
pub_address_prefix: "sei",
67
coin_type: 118u32,
78
};
89

9-
// ANCHOR: sei
10-
1110
pub const LOCAL_SEI: ChainInfo = ChainInfo {
1211
kind: ChainKind::Local,
1312
chain_id: "sei-chain",

cw-orch/src/daemon/networks/terra.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
use crate::daemon::chain_info::{ChainInfo, ChainKind, NetworkInfo};
22

3+
// ANCHOR: terra
34
pub const TERRA_NETWORK: NetworkInfo = NetworkInfo {
45
id: "terra2",
56
pub_address_prefix: "terra",
67
coin_type: 330u32,
78
};
89

9-
// ANCHOR: terra
1010
/// Terra testnet network.
1111
/// <https://docs.terra.money/develop/endpoints>
1212
pub const PISCO_1: ChainInfo = ChainInfo {

docs/src/SUMMARY.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727
[//]: # (- [live-chains]&#40;&#41;)
2828

29-
- [Supported Chains]()
29+
- [Supported Chains](./chains/index.md)
3030
- [Archway](./chains/archway.md)
3131
- [Injective](./chains/injective.md)
3232
- [Juno](./chains/juno.md)
@@ -35,7 +35,6 @@
3535
- [Osmosis](./chains/osmosis.md)
3636
- [Sei](./chains/sei.md)
3737
- [Terra](./chains/terra.md)
38-
- [Other](./chains/other.md)
3938

4039
# Extras
4140

docs/src/chains/archway.md

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ Archway is a smart contract platform that directly rewards developers for their
55
[Archway Website](https://archway.io/)
66

77
## Usage
8-
9-
108
See how to setup your main function in the [main function](../single_contract/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::ARCHWAY_1`.
119

1210
```rust,ignore

docs/src/chains/index.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Supported Chains
2+
3+
Cw-Orchestrator currently has support for the chains in the following subsections.
4+
5+
## Support a new CosmWasm Chain
6+
If you would like to add support for another chain, please feel free to [open a PR](https://github.com/AbstractSDK/cw-orchestrator/compare)!
7+
8+
9+
## Issues
10+
Each of the gRPC endpoints has been battle-tested for deployments. If you find any issues, please [open an issue](https://github.com/AbstractSDK/cw-orchestrator/issues/new)!

docs/src/chains/osmosis.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Osmosis is a cutting-edge decentralized exchange built on the Cosmos network, de
66

77
## Usage
88

9-
See how to setup your main function in the [main function](../single_contract/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::OSMOSIS_1`.
9+
See how to setup your main function in the [main function](../single_contract/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::OSMO_5`.
1010

1111
```rust,ignore
1212
{{#include ../../../cw-orch/src/daemon/networks/osmosis.rs:osmosis}}

0 commit comments

Comments
 (0)