Skip to content

Commit

Permalink
update mantis_mainnet deployment (#2135)
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel authored Nov 20, 2024
1 parent 93418aa commit 0349da4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ mantis_testnet = []
sonic_devnet = []
sonic_testnet = []
atlas_testnet = []
mantis_mainnet = []

[dependencies]
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
("sonic_devnet", 40005),
("sonic_testnet", 40006),
("atlas_testnet", 40007),
("mantis_mainnet", 40008),
];

#[cfg(any(feature = "pythnet", feature = "pythtest"))]
Expand All @@ -43,6 +44,9 @@ pub const CHAIN_ID: u16 = 40006;
#[cfg(feature = "atlas_testnet")]
pub const CHAIN_ID: u16 = 40007;

#[cfg(feature = "mantis_mainnet")]
pub const CHAIN_ID: u16 = 40008;

#[derive(AnchorDeserialize, AnchorSerialize, Debug, PartialEq, Eq)]
pub struct ExecutorPayload {
pub header: GovernanceHeader,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ impl Owner for AnchorVaa {
feature = "sonic_devnet",
feature = "sonic_testnet",
feature = "atlas_testnet",
feature = "mantis_mainnet",
))]
fn owner() -> Pubkey {
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()
Expand Down
2 changes: 2 additions & 0 deletions governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ export const RECEIVER_CHAINS = {
mantis_testnet: 40004,
sonic_devnet: 40005,
sonic_testnet: 40006,
atlas_testnet: 40007,
mantis_mainnet: 40008,

cronos: 60001,
kcc: 60002,
Expand Down

0 comments on commit 0349da4

Please sign in to comment.