Skip to content

Commit a8df5cf

Browse files
authored
Merge pull request #192 from kakucodes/update/add-migaloo
Add migaloo network config
2 parents f588874 + a73f925 commit a8df5cf

File tree

3 files changed

+67
-0
lines changed

3 files changed

+67
-0
lines changed
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
use crate::daemon::networks::{ChainInfo, ChainKind, NetworkInfo};
2+
3+
// ANCHOR: migaloo
4+
pub const MIGALOO_NETWORK: NetworkInfo = NetworkInfo {
5+
id: "migaloo-1",
6+
pub_address_prefix: "migaloo",
7+
coin_type: 118u32,
8+
};
9+
10+
pub const LOCAL_MIGALOO: ChainInfo = ChainInfo {
11+
kind: ChainKind::Local,
12+
chain_id: "migaloo-chain",
13+
gas_denom: "uwhale",
14+
gas_price: 0.1,
15+
grpc_urls: &["http://localhost:9090"],
16+
network_info: MIGALOO_NETWORK,
17+
lcd_url: None,
18+
fcd_url: None,
19+
};
20+
21+
/// <https://docs.migaloo.zone/validators/testnet>
22+
pub const NARWHAL_1: ChainInfo = ChainInfo {
23+
kind: ChainKind::Testnet,
24+
chain_id: "narwhal-1",
25+
gas_denom: "uwhale",
26+
gas_price: 0.1,
27+
grpc_urls: &["migaloo-testnet-grpc.polkachu.com:20790"],
28+
network_info: MIGALOO_NETWORK,
29+
lcd_url: None,
30+
fcd_url: None,
31+
};
32+
33+
/// <https://docs.migaloo.zone/validators/mainnet>
34+
pub const MIGALOO_1: ChainInfo = ChainInfo {
35+
kind: ChainKind::Mainnet,
36+
chain_id: "migaloo-1",
37+
gas_denom: "uwhale",
38+
gas_price: 0.1,
39+
grpc_urls: &["migaloo-grpc.polkachu.com:20790"],
40+
network_info: MIGALOO_NETWORK,
41+
lcd_url: None,
42+
fcd_url: None,
43+
};
44+
// ANCHOR_END: migaloo

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

+5
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, MIGALOO_1, NARWHAL_1};
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,12 +44,15 @@ pub fn parse_network(net_id: &str) -> ChainInfo {
4244
CONSTANTINE_3,
4345
ARCHWAY_1,
4446
PION_1,
47+
NARWHAL_1,
4548
NEUTRON_1,
4649
INJECTIVE_1,
4750
HARPOON_4,
4851
OSMO_5,
4952
LOCAL_OSMO,
53+
LOCAL_MIGALOO,
5054
LOCAL_NEUTRON,
55+
MIGALOO_1,
5156
];
5257
for net in networks {
5358
if net.chain_id == net_id {

docs/src/chains/migaloo.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Migaloo
2+
3+
Migaloo is a permission-less, open source network for decentralized interoperable applications running the latest tech.
4+
5+
[Visit Migaloo's Docs](https://docs.migaloo.zone/)
6+
7+
## Usage
8+
9+
See how to setup your main function in the [main function](../single_contract/scripting.md#main-function) section. Update the network passed into the `Daemon` builder to be `networks::MIGALOO_1`.
10+
11+
```rust,ignore
12+
{{#include ../../../cw-orch/src/daemon/networks/migaloo.rs:migaloo}}
13+
```
14+
15+
## References
16+
17+
- [Migaloo Documentation](https://docs.migaloo.zone/intro)
18+
- [White Whale Discord](https://discord.gg/pc5EXCBfEwa)

0 commit comments

Comments
 (0)