Skip to content

Commit 326f234

Browse files
authored
go (#2306)
1 parent 5d8e1bb commit 326f234

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-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
@@ -29,6 +29,8 @@ sonic_devnet = []
2929
sonic_testnet = []
3030
atlas_testnet = []
3131
mantis_mainnet = []
32+
sonic_mainnet = []
33+
3234

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

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
1818
("sonic_testnet", 40006),
1919
("atlas_testnet", 40007),
2020
("mantis_mainnet", 40008),
21+
("sonic_mainnet", 40009),
2122
];
2223

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

51+
#[cfg(feature = "sonic_mainnet")]
52+
pub const CHAIN_ID: u16 = 40009;
53+
5054
#[derive(AnchorDeserialize, AnchorSerialize, Debug, PartialEq, Eq)]
5155
pub struct ExecutorPayload {
5256
pub header: GovernanceHeader,

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ impl Owner for AnchorVaa {
2525
feature = "sonic_testnet",
2626
feature = "atlas_testnet",
2727
feature = "mantis_mainnet",
28+
feature = "sonic_mainnet",
2829
))]
2930
fn owner() -> Pubkey {
3031
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const RECEIVER_CHAINS = {
3232
sonic_testnet: 40006,
3333
atlas_testnet: 40007,
3434
mantis_mainnet: 40008,
35+
sonic_mainnet: 40009,
3536

3637
cronos: 60001,
3738
kcc: 60002,

0 commit comments

Comments
 (0)