Skip to content

Commit

Permalink
Add juno
Browse files Browse the repository at this point in the history
  • Loading branch information
keyleu committed Sep 11, 2024
1 parent a2bf8c0 commit 1bca089
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
12 changes: 12 additions & 0 deletions src/types/config.rs
Original file line number Diff line number Diff line change
@@ -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,
};

Expand Down Expand Up @@ -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)),
}
}
}

0 comments on commit 1bca089

Please sign in to comment.