guibescos 9 ヶ月 前
コミット
326f234a75

+ 2 - 0
governance/remote_executor/programs/remote-executor/Cargo.toml

@@ -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"]}

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

@@ -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"))]
@@ -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,

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

@@ -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()

+ 1 - 0
governance/xc_admin/packages/xc_admin_common/src/chains.ts

@@ -32,6 +32,7 @@ export const RECEIVER_CHAINS = {
   sonic_testnet: 40006,
   atlas_testnet: 40007,
   mantis_mainnet: 40008,
+  sonic_mainnet: 40009,
 
   cronos: 60001,
   kcc: 60002,