Skip to content

Commit d7612ef

Browse files
authored
feat(svm): update svm chain ids (#2058)
1 parent 85dfc36 commit d7612ef

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

governance/remote_executor/programs/remote-executor/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ eclipse_devnet = []
2525
eclipse_testnet = []
2626
eclipse_mainnet = []
2727
mantis_testnet = []
28+
sonic_devnet = []
29+
sonic_testnet = []
2830

2931
[dependencies]
3032
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}

governance/remote_executor/programs/remote-executor/src/state/governance_payload.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
2121
("eclipse_testnet", 40002),
2222
("eclipse_mainnet", 40003),
2323
("mantis_testnet", 40004),
24+
("sonic_devnet", 40005),
25+
("sonic_testnet", 40006),
2426
];
2527

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

43+
#[cfg(feature = "sonic_devnet")]
44+
pub const CHAIN_ID: u16 = 40005;
45+
46+
#[cfg(feature = "sonic_testnet")]
47+
pub const CHAIN_ID: u16 = 40006;
48+
4149
#[derive(AnchorDeserialize, AnchorSerialize, Debug, PartialEq, Eq)]
4250
pub struct ExecutorPayload {
4351
pub header: GovernanceHeader,

governance/remote_executor/programs/remote-executor/src/state/posted_vaa.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ impl Owner for AnchorVaa {
2525
feature = "eclipse_testnet",
2626
feature = "eclipse_mainnet",
2727
feature = "mantis_testnet",
28+
feature = "sonic_devnet",
29+
feature = "sonic_testnet",
2830
))]
2931
fn owner() -> Pubkey {
3032
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()

governance/xc_admin/packages/xc_admin_common/src/chains.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ export const RECEIVER_CHAINS = {
2727
eclipse_devnet: 40001,
2828
eclipse_testnet: 40002,
2929
eclipse_mainnet: 40003,
30+
mantis_testnet: 40004,
31+
sonic_devnet: 40005,
32+
sonic_testnet: 40006,
3033

3134
cronos: 60001,
3235
kcc: 60002,

0 commit comments

Comments
 (0)