diff --git a/governance/remote_executor/programs/remote-executor/Cargo.toml b/governance/remote_executor/programs/remote-executor/Cargo.toml index 9b2fda153b..47e1ed462d 100644 --- a/governance/remote_executor/programs/remote-executor/Cargo.toml +++ b/governance/remote_executor/programs/remote-executor/Cargo.toml @@ -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"]} diff --git a/governance/remote_executor/programs/remote-executor/src/state/governance_payload.rs b/governance/remote_executor/programs/remote-executor/src/state/governance_payload.rs index 5ea9dc6056..65316d2a0b 100644 --- a/governance/remote_executor/programs/remote-executor/src/state/governance_payload.rs +++ b/governance/remote_executor/programs/remote-executor/src/state/governance_payload.rs @@ -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"))] @@ -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, diff --git a/governance/remote_executor/programs/remote-executor/src/state/posted_vaa.rs b/governance/remote_executor/programs/remote-executor/src/state/posted_vaa.rs index 0448456083..e975527391 100644 --- a/governance/remote_executor/programs/remote-executor/src/state/posted_vaa.rs +++ b/governance/remote_executor/programs/remote-executor/src/state/posted_vaa.rs @@ -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() diff --git a/governance/xc_admin/packages/xc_admin_common/src/chains.ts b/governance/xc_admin/packages/xc_admin_common/src/chains.ts index c0e6dccda8..89502bcbff 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -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,