Skip to content

Commit

Permalink
Cosmos to cosmos hub
Browse files Browse the repository at this point in the history
  • Loading branch information
adairrr committed Oct 7, 2024
1 parent fc9095b commit 2abefa3
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ Cw-orchestrator supports the following chains natively:
🟥 LocalNet, 🟦 Testnet, 🟩 Mainnet

- Archway 🟦🟩
- Cosmos 🟩
- Cosmos Hub 🟩
- Injective 🟦🟩
- Juno 🟥🟦🟩
- Kujira 🟦
Expand Down
2 changes: 1 addition & 1 deletion docs/src/chains/cosmos.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ The Cosmos Hub is the first of thousands of interconnected blockchains that will

## Usage

See how to setup your main function in the [main function](../contracts/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::COSMOS_TESTNET`.
See how to setup your main function in the [main function](../contracts/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::COSMOS_HUB_TESTNET`.
## References

- [Cosmos Hub Documentation](https://hub.cosmos.network/main)
Expand Down
2 changes: 1 addition & 1 deletion docs/src/chains/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
cw-orchestrator currently explicitly supports the chains in this section:

- [Archway](./archway.md)
- [Cosmos](./cosmos.md)
- [Cosmos Hub](./cosmos.md)
- [Injective](./injective.md)
- [Juno](./juno.md)
- [Kujira](./kujira.md)
Expand Down
6 changes: 3 additions & 3 deletions packages/cw-orch-networks/src/networks/cosmos.rs
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo};

// ANCHOR: cosmos
pub const COSMOS_NETWORK: NetworkInfo = NetworkInfo {
pub const COSMOS_HUB_NETWORK: NetworkInfo = NetworkInfo {
chain_name: "cosmoshub",
pub_address_prefix: "cosmos",
coin_type: 118,
};

pub const COSMOS_TESTNET: ChainInfo = THETA_TESTNET_001;
pub const COSMOS_HUB_TESTNET: ChainInfo = THETA_TESTNET_001;

pub const THETA_TESTNET_001: ChainInfo = ChainInfo {
kind: ChainKind::Testnet,
chain_id: "theta-testnet-001",
gas_denom: "uatom",
gas_price: 0.0025,
grpc_urls: &["https://grpc-t.cosmos.nodestake.top:443"],
network_info: COSMOS_NETWORK,
network_info: COSMOS_HUB_NETWORK,
lcd_url: None,
fcd_url: None,
};
Expand Down

0 comments on commit 2abefa3

Please sign in to comment.