-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add cosmos hub testnet * Cosmos to cosmos hub * Add theta link * Ensure lcd * Update to provider testnet * Added cosmos hub testnet --------- Co-authored-by: Kayanski <kowalski.kowalskin@gmail.com>
- Loading branch information
Showing
5 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Cosmos Hub | ||
|
||
The Cosmos Hub is the first of thousands of interconnected blockchains that will eventually comprise the Cosmos Network. The primary token of the Cosmos Hub is the ATOM, but the Hub will support many tokens in the future. | ||
|
||
[Cosmos Hub Website](https://cosmos.network/) | ||
|
||
```rust,ignore | ||
{{#include ../../../packages/cw-orch-networks/src/networks/cosmos.rs:cosmos}} | ||
``` | ||
|
||
## 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_HUB_TESTNET`. | ||
## References | ||
|
||
- [Cosmos Hub Documentation](https://hub.cosmos.network/main) | ||
- [Cosmos Hub Discord](https://discord.gg/interchain) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo}; | ||
|
||
// ANCHOR: cosmos | ||
pub const COSMOS_HUB_NETWORK: NetworkInfo = NetworkInfo { | ||
chain_name: "cosmoshub", | ||
pub_address_prefix: "cosmos", | ||
coin_type: 118, | ||
}; | ||
|
||
pub const COSMOS_HUB_TESTNET: ChainInfo = ICS_TESTNET; | ||
|
||
/// Cosmos Hub Testnet | ||
/// @see https://github.com/cosmos/testnets/blob/master/interchain-security/provider/README.md | ||
/// Use the faucet here: https://faucet.polypore.xyz | ||
pub const ICS_TESTNET: ChainInfo = ChainInfo { | ||
kind: ChainKind::Testnet, | ||
chain_id: "provider", | ||
gas_denom: "uatom", | ||
gas_price: 0.0025, | ||
grpc_urls: &["https://grpc-rs.cosmos.nodestake.top:443"], | ||
network_info: COSMOS_HUB_NETWORK, | ||
lcd_url: Some("https://api-rs.cosmos.nodestake.top:443"), | ||
fcd_url: None, | ||
}; | ||
|
||
// ANCHOR_END: cosmos |