Skip to content

Commit 5f9e78c

Browse files
authored
feat(remote_executor): update eclipse_mainnet (#1813)
* update xc-admin-frontend to show eclipse_mainnet proposals * fix test * precommit * revert specific files to match main * dont show text if targetNetwork is not resolved
1 parent e73fff2 commit 5f9e78c

File tree

5 files changed

+16
-2
lines changed

5 files changed

+16
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pythnet = []
2323
pythtest = []
2424
eclipse_devnet = []
2525
eclipse_testnet = []
26+
eclipse_mainnet = []
2627

2728
[dependencies]
2829
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
@@ -19,6 +19,7 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
1919
("pythtest", 26),
2020
("eclipse_devnet", 40001),
2121
("eclipse_testnet", 40002),
22+
("eclipse_mainnet", 40003),
2223
];
2324

2425
#[cfg(any(feature = "pythnet", feature = "pythtest"))]
@@ -30,6 +31,9 @@ pub const CHAIN_ID: u16 = 40001;
3031
#[cfg(feature = "eclipse_testnet")]
3132
pub const CHAIN_ID: u16 = 40002;
3233

34+
#[cfg(feature = "eclipse_mainnet")]
35+
pub const CHAIN_ID: u16 = 40003;
36+
3337
#[derive(AnchorDeserialize, AnchorSerialize, Debug, PartialEq, Eq)]
3438
pub struct ExecutorPayload {
3539
pub header: GovernanceHeader,

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ impl Owner for AnchorVaa {
2020
Pubkey::from_str("EUrRARh92Cdc54xrDn6qzaqjA77NRrCcfbr8kPwoTL4z").unwrap()
2121
}
2222

23-
#[cfg(any(feature = "eclipse_devnet", feature = "eclipse_testnet"))]
23+
#[cfg(any(
24+
feature = "eclipse_devnet",
25+
feature = "eclipse_testnet",
26+
feature = "eclipse_mainnet"
27+
))]
2428
fn owner() -> Pubkey {
2529
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()
2630
}

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ export const RECEIVER_CHAINS = {
2323
arbitrum: 23,
2424
optimism: 24,
2525

26+
// SVM chains
27+
eclipse_devnet: 40001,
28+
eclipse_testnet: 40002,
29+
eclipse_mainnet: 40003,
30+
2631
cronos: 60001,
2732
kcc: 60002,
2833
zksync: 60003,

governance/xc_admin/packages/xc_admin_frontend/components/tabs/Proposals/Proposal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ export const Proposal = ({
377377
{uniqueTargetCluster
378378
? `Target network: ${targetClusters[0]}`
379379
: targetClusters.length == 0
380-
? 'No target network detected'
380+
? ''
381381
: `Multiple target networks detected ${targetClusters.join(' ')}`}
382382
</h4>
383383
</div>

0 commit comments

Comments
 (0)