Skip to content

Commit 23ff8fb

Browse files
feat(governance,xc_admin): add fogo testnet (#2874)
1 parent b8ba98c commit 23ff8fb

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,14 @@ sonic_testnet = []
3030
atlas_testnet = []
3131
mantis_mainnet = []
3232
sonic_mainnet = []
33+
fogo_testnet = []
3334

3435

3536
[dependencies]
36-
anchor-lang = {version = "0.30.1", features = ["init-if-needed"]}
37-
wormhole-solana = { git = "https://github.com/guibescos/wormhole-solana", rev="f14b3b54c1e37e1aaf8c2ac2a5e236832ffdb3c2"}
37+
anchor-lang = { version = "0.30.1", features = ["init-if-needed"] }
38+
wormhole-solana = { git = "https://github.com/guibescos/wormhole-solana", rev = "f14b3b54c1e37e1aaf8c2ac2a5e236832ffdb3c2" }
3839
wormhole-sdk = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
39-
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1"}
40+
serde_wormhole = { git = "https://github.com/wormhole-foundation/wormhole", tag = "v2.17.1" }
4041
boolinator = "2.4.0"
4142

4243
[dev-dependencies]

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
("atlas_testnet", 40007),
2020
("mantis_mainnet", 40008),
2121
("sonic_mainnet", 40009),
22+
("fogo_testnet", 40010),
2223
];
2324

2425
#[cfg(any(feature = "pythnet", feature = "pythtest"))]
@@ -51,6 +52,9 @@ pub const CHAIN_ID: u16 = 40008;
5152
#[cfg(feature = "sonic_mainnet")]
5253
pub const CHAIN_ID: u16 = 40009;
5354

55+
#[cfg(feature = "fogo_testnet")]
56+
pub const CHAIN_ID: u16 = 40010;
57+
5458
#[derive(AnchorDeserialize, AnchorSerialize, Debug, PartialEq, Eq)]
5559
pub struct ExecutorPayload {
5660
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
@@ -26,6 +26,7 @@ impl Owner for AnchorVaa {
2626
feature = "atlas_testnet",
2727
feature = "mantis_mainnet",
2828
feature = "sonic_mainnet",
29+
feature = "fogo_testnet",
2930
))]
3031
fn owner() -> Pubkey {
3132
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
@@ -33,6 +33,7 @@ export const RECEIVER_CHAINS = {
3333
atlas_testnet: 40007,
3434
mantis_mainnet: 40008,
3535
sonic_mainnet: 40009,
36+
fogo_testnet: 40010,
3637

3738
cronos: 60001,
3839
kcc: 60002,

0 commit comments

Comments
 (0)