Closed ramilexe closed 1 month ago
Hey, thanks for adding Landslide to the cw-orch networks! Wanted to add it to docs as well, but don't have permissions to push to your branch, so here is git patch:
diff --git a/README.md b/README.md
index 292111ae..89f4b75a 100644
--- a/README.md
+++ b/README.md
@@ -242,6 +242,7 @@ Cw-orchestrator supports the following chains natively:
- Terra 🟥🟦🟩
- Rollkit 🟥🟦
- Xion 🟦
+- Landslide 🟥
Additional chains can easily be integrated by creating a new [`ChainInfo`](./packages/cw-orch-networks/src/chain_info.rs) structure. This can be done in your script directly. If you have additional time, don't hesitate to open a PR on this repository.
diff --git a/docs/src/SUMMARY.md b/docs/src/SUMMARY.md
index 66709775..ef1d20b8 100644
--- a/docs/src/SUMMARY.md
+++ b/docs/src/SUMMARY.md
@@ -46,6 +46,7 @@
- [Terra](./chains/terra.md)
- [Rollkit](./chains/rollkit.md)
- [XION](./chains/xion.md)
+ - [Landslide](./chains/landslide.md)
# Extras
diff --git a/docs/src/chains/landslide.md b/docs/src/chains/landslide.md
new file mode 100644
index 00000000..c73bbb2a
--- /dev/null
+++ b/docs/src/chains/landslide.md
@@ -0,0 +1,18 @@
+# Landslide
+
+Landslide broadens restaking and liquid staking solutions to external chain assets by making them available in customizable rollups purpose-built for these activities and asset types.
+
+[Visit Landslide's Website](https://www.landslide.network/)
+
+```rust,ignore
+{{#include ../../../packages/cw-orch-networks/src/networks/landslide.rs:landslide}}
+```
+
+## 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::LOCAL_LANDSLIDE`.
+
+## References
+
+- [Landslide Documentation](https://docs.landslide.network/)
+- [Landslide Discord](https://discord.com/invite/AQHkYmu46X)
diff --git a/packages/cw-orch-networks/src/networks/landslide.rs b/packages/cw-orch-networks/src/networks/landslide.rs
index 7b91376a..7d05fb0d 100644
--- a/packages/cw-orch-networks/src/networks/landslide.rs
+++ b/packages/cw-orch-networks/src/networks/landslide.rs
@@ -1,5 +1,6 @@
use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo};
+// ANCHOR: landslide
pub const LANDSLIDE_NETWORK: NetworkInfo = NetworkInfo {
chain_name: "landslide",
pub_address_prefix: "wasm",
@@ -10,9 +11,11 @@ pub const LOCAL_LANDSLIDE: ChainInfo = ChainInfo {
kind: ChainKind::Local,
chain_id: "landslide-test",
gas_denom: "stake",
- gas_price: 1 as f64,
+ gas_price: 1_f64,
grpc_urls: &["http://127.0.0.1:9090"],
network_info: LANDSLIDE_NETWORK,
lcd_url: None,
fcd_url: None,
-};
\ No newline at end of file
+};
+
+// ANCHOR_END: landslide
diff --git a/packages/cw-orch-networks/src/networks/mod.rs b/packages/cw-orch-networks/src/networks/mod.rs
index e41fb1fb..066be183 100644
--- a/packages/cw-orch-networks/src/networks/mod.rs
+++ b/packages/cw-orch-networks/src/networks/mod.rs
@@ -7,6 +7,7 @@ pub mod doravota;
pub mod injective;
pub mod juno;
pub mod kujira;
+pub mod landslide;
pub mod migaloo;
pub mod neutron;
pub mod nibiru;
@@ -15,7 +16,6 @@ pub mod rollkit;
pub mod sei;
pub mod terra;
pub mod xion;
-pub mod landslide;
pub use archway::{ARCHWAY_1, CONSTANTINE_3};
pub use cw_orch_core::environment::{ChainInfo, ChainKind, NetworkInfo};
@@ -23,6 +23,7 @@ pub use doravota::{VOTA_ASH, VOTA_TESTNET};
pub use injective::{INJECTIVE_1, INJECTIVE_888};
pub use juno::{JUNO_1, LOCAL_JUNO, UNI_6};
pub use kujira::HARPOON_4;
+pub use landslide::LOCAL_LANDSLIDE;
pub use migaloo::{LOCAL_MIGALOO, MIGALOO_1, NARWHAL_1};
pub use neutron::{LOCAL_NEUTRON, NEUTRON_1, PION_1};
pub use nibiru::NIBIRU_ITN_2;
@@ -31,7 +32,6 @@ pub use rollkit::{LOCAL_ROLLKIT, ROLLKIT_TESTNET};
pub use sei::{ATLANTIC_2, LOCAL_SEI, PACIFIC_1, SEI_DEVNET_3};
pub use terra::{LOCAL_TERRA, PHOENIX_1, PISCO_1};
pub use xion::XION_TESTNET_1;
-pub use landslide::LOCAL_LANDSLIDE;
/// A helper function to retrieve a [`ChainInfo`] struct for a given chain-id.
///
/// ## Example
@Buckram123 I updated the branch with your patch
Checklist