Skip to content

Commit 31058a7

Browse files
committed
added migaloo
1 parent f588874 commit 31058a7

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
2+
3+
pub const MIGALOO_NETWORK: NetworkInfo = NetworkInfo {
4+
id: "migaloo-1",
5+
pub_address_prefix: "migaloo",
6+
coin_type: 118u32,
7+
};
8+
9+
pub const LOCAL_MIGALOO: ChainInfo = ChainInfo {
10+
kind: ChainKind::Local,
11+
chain_id: "migaloo-chain",
12+
gas_denom: "uwhale",
13+
gas_price: 0.1,
14+
grpc_urls: &["http://localhost:9090"],
15+
network_info: MIGALOO_NETWORK,
16+
lcd_url: None,
17+
fcd_url: None,
18+
};
19+
20+
pub const NARWHAL_2: ChainInfo = ChainInfo {
21+
kind: ChainKind::Testnet,
22+
chain_id: "narwhal-1",
23+
gas_denom: "uwhale",
24+
gas_price: 0.1,
25+
grpc_urls: &["migaloo-testnet-grpc.polkachu.com:20790"],
26+
network_info: MIGALOO_NETWORK,
27+
lcd_url: None,
28+
fcd_url: None,
29+
};

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ pub mod archway;
66
pub mod injective;
77
pub mod juno;
88
pub mod kujira;
9+
pub mod migaloo;
910
pub mod neutron;
1011
pub mod osmosis;
1112
pub mod sei;
@@ -16,6 +17,7 @@ pub use archway::{ARCHWAY_1, CONSTANTINE_3};
1617
pub use injective::{INJECTIVE_1, INJECTIVE_888};
1718
pub use juno::{JUNO_1, LOCAL_JUNO, UNI_6};
1819
pub use kujira::HARPOON_4;
20+
pub use migaloo::{LOCAL_MIGALOO, NARWHAL_2};
1921
pub use neutron::{LOCAL_NEUTRON, NEUTRON_1, PION_1};
2022
pub use osmosis::{LOCAL_OSMO, OSMO_5};
2123
pub use sei::{ATLANTIC_2, LOCAL_SEI, SEI_DEVNET_3};
@@ -42,11 +44,13 @@ pub fn parse_network(net_id: &str) -> ChainInfo {
4244
CONSTANTINE_3,
4345
ARCHWAY_1,
4446
PION_1,
47+
NARWHAL_2,
4548
NEUTRON_1,
4649
INJECTIVE_1,
4750
HARPOON_4,
4851
OSMO_5,
4952
LOCAL_OSMO,
53+
LOCAL_MIGALOO,
5054
LOCAL_NEUTRON,
5155
];
5256
for net in networks {

0 commit comments

Comments
 (0)