Skip to content

Commit

Permalink
feat(svm): update svm chain ids (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel authored Oct 24, 2024
1 parent 85dfc36 commit d7612ef
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ eclipse_devnet = []
eclipse_testnet = []
eclipse_mainnet = []
mantis_testnet = []
sonic_devnet = []
sonic_testnet = []

[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 @@ -21,6 +21,8 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
("eclipse_testnet", 40002),
("eclipse_mainnet", 40003),
("mantis_testnet", 40004),
("sonic_devnet", 40005),
("sonic_testnet", 40006),
];

#[cfg(any(feature = "pythnet", feature = "pythtest"))]
Expand All @@ -38,6 +40,12 @@ pub const CHAIN_ID: u16 = 40003;
#[cfg(feature = "mantis_testnet")]
pub const CHAIN_ID: u16 = 40004;

#[cfg(feature = "sonic_devnet")]
pub const CHAIN_ID: u16 = 40005;

#[cfg(feature = "sonic_testnet")]
pub const CHAIN_ID: u16 = 40006;

#[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,8 @@ impl Owner for AnchorVaa {
feature = "eclipse_testnet",
feature = "eclipse_mainnet",
feature = "mantis_testnet",
feature = "sonic_devnet",
feature = "sonic_testnet",
))]
fn owner() -> Pubkey {
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()
Expand Down
3 changes: 3 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 @@ -27,6 +27,9 @@ export const RECEIVER_CHAINS = {
eclipse_devnet: 40001,
eclipse_testnet: 40002,
eclipse_mainnet: 40003,
mantis_testnet: 40004,
sonic_devnet: 40005,
sonic_testnet: 40006,

cronos: 60001,
kcc: 60002,
Expand Down

0 comments on commit d7612ef

Please sign in to comment.