Skip to content

Commit

Permalink
Update/add Sei Network (#156)
Browse files Browse the repository at this point in the history
* add sei

* update grpc

* add local sei

* fix gas

* fix sei

* update gas

* fmt

* run cargo fmt

---------

Co-authored-by: cyberhoward <[email protected]>
  • Loading branch information
hoomp3 and CyberHoward authored Jul 18, 2023
1 parent 684a69b commit 9a704e2
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
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 @@ -8,6 +8,7 @@ pub mod juno;
pub mod kujira;
pub mod neutron;
pub mod osmosis;
pub mod sei;
pub mod terra;

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

/// 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,
};

0 comments on commit 9a704e2

Please sign in to comment.