From 1bca089a5140dfdc08f126b1a1c0bbcab231f218 Mon Sep 17 00:00:00 2001 From: keyne Date: Wed, 11 Sep 2024 15:20:30 +0100 Subject: [PATCH] Add juno --- src/lib.rs | 7 +++++++ src/types/config.rs | 12 ++++++++++++ 2 files changed, 19 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index da734d5..8f2966e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -43,6 +43,13 @@ pub const STRIDE_CHAIN_PREFIX: &str = "stride"; pub const STRIDE_CHAIN_ADMIN_ADDR: &str = "stride1u20df3trc2c2zdhm8qvh2hdjx9ewh00sv6eyy8"; pub const STRIDE_CHAIN_NAME: &str = "stride"; +/// Juno chain info +pub const JUNO_CHAIN_ID: &str = "localjuno-1"; +pub const JUNO_CHAIN_NAME: &str = "juno"; +pub const JUNO_CHAIN_PREFIX: &str = "juno"; +pub const JUNO_CHAIN_DENOM: &str = "ujuno"; +pub const JUNO_CHAIN_ADMIN_ADDR: &str = "juno1hj5fveer5cjtn4wd6wstzugjfdxzl0xps73ftl"; + /// File names pub const AUCTION_CONTRACT_NAME: &str = "auction"; pub const AUCTIONS_MANAGER_CONTRACT_NAME: &str = "auctions_manager"; diff --git a/src/types/config.rs b/src/types/config.rs index 97a2df9..86ab3bf 100644 --- a/src/types/config.rs +++ b/src/types/config.rs @@ -1,5 +1,6 @@ use crate::{ GAIA_CHAIN_ADMIN_ADDR, GAIA_CHAIN_DENOM, GAIA_CHAIN_ID, GAIA_CHAIN_NAME, GAIA_CHAIN_PREFIX, + JUNO_CHAIN_ADMIN_ADDR, JUNO_CHAIN_DENOM, JUNO_CHAIN_ID, JUNO_CHAIN_NAME, JUNO_CHAIN_PREFIX, NEUTRON_CHAIN_ID, }; @@ -124,4 +125,15 @@ impl ConfigChainBuilder { admin_addr: Some(String::from(STRIDE_CHAIN_ADMIN_ADDR)), } } + + pub fn default_juno() -> Self { + Self { + denom: Some(String::from(JUNO_CHAIN_DENOM)), + debugging: Some(true), + chain_id: Some(String::from(JUNO_CHAIN_ID)), + chain_name: Some(String::from(JUNO_CHAIN_NAME)), + chain_prefix: Some(String::from(JUNO_CHAIN_PREFIX)), + admin_addr: Some(String::from(JUNO_CHAIN_ADMIN_ADDR)), + } + } }