Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Jan 29, 2025
1 parent f954684 commit e37cbfa
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 @@ -29,6 +29,8 @@ sonic_devnet = []
sonic_testnet = []
atlas_testnet = []
mantis_mainnet = []
sonic_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 @@ -18,6 +18,7 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
("sonic_testnet", 40006),
("atlas_testnet", 40007),
("mantis_mainnet", 40008),
("sonic_mainnet", 40009),
];

#[cfg(any(feature = "pythnet", feature = "pythtest"))]
Expand Down Expand Up @@ -47,6 +48,9 @@ pub const CHAIN_ID: u16 = 40007;
#[cfg(feature = "mantis_mainnet")]
pub const CHAIN_ID: u16 = 40008;

#[cfg(feature = "sonic_mainnet")]
pub const CHAIN_ID: u16 = 40009;

#[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 @@ -25,6 +25,7 @@ impl Owner for AnchorVaa {
feature = "sonic_testnet",
feature = "atlas_testnet",
feature = "mantis_mainnet",
feature = "sonic_mainnet",
))]
fn owner() -> Pubkey {
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()
Expand Down
1 change: 1 addition & 0 deletions governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const RECEIVER_CHAINS = {
sonic_testnet: 40006,
atlas_testnet: 40007,
mantis_mainnet: 40008,
sonic_mainnet: 40009,

cronos: 60001,
kcc: 60002,
Expand Down

0 comments on commit e37cbfa

Please sign in to comment.