Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update/add Sei Network #156

Merged
merged 12 commits into from Jul 18, 2023
2 changes: 2 additions & 0 deletions cw-orch/src/daemon/networks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ pub mod kujira;
pub mod neutron;
pub mod osmosis;
pub mod terra;
pub mod sei;

pub use crate::daemon::chain_info::{ChainInfo, ChainKind, NetworkInfo};
pub use archway::CONSTANTINE_1;
Expand All @@ -18,6 +19,7 @@ pub use kujira::HARPOON_4;
pub use neutron::{LOCAL_NEUTRON, NEUTRON_1, PION_1};
pub use osmosis::{LOCAL_OSMO, OSMO_5};
pub use terra::{LOCAL_TERRA, PHOENIX_1, PISCO_1};
pub use sei::{LOCAL_SEI, SEI_DEVNET_3, ATLANTIC_2};

/// A helper function to retrieve a [`ChainInfo`] struct for a given chain-id.
///
Expand Down
40 changes: 40 additions & 0 deletions cw-orch/src/daemon/networks/sei.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};

pub const SEI_NETWORK: NetworkInfo = NetworkInfo {
id: "sei",
pub_address_prefix: "sei",
coin_type: 118u32,
};

pub const LOCAL_SEI: ChainInfo = ChainInfo {
kind: ChainKind::Local,
chain_id: "sei-chain",
gas_denom: "usei",
gas_price: 0.1,
grpc_urls: &["http://localhost:9090"],
network_info: SEI_NETWORK,
lcd_url: None,
fcd_url: None,
};

pub const SEI_DEVNET_3: ChainInfo = ChainInfo {
kind: ChainKind::Testnet,
chain_id: "sei-devnet-3",
gas_denom: "usei",
gas_price: 0.1,
grpc_urls: &["http://sei_devnet-testnet-grpc.polkachu.com:11990"],
network_info: SEI_NETWORK,
lcd_url: None,
fcd_url: None,
};

pub const ATLANTIC_2: ChainInfo = ChainInfo {
kind: ChainKind::Testnet,
chain_id: "atlantic-2",
gas_denom: "usei",
gas_price: 0.1,
grpc_urls: &["http://sei-testnet-grpc.polkachu.com:11990"],
network_info: SEI_NETWORK,
lcd_url: None,
fcd_url: None,
};