Skip to content

Commit

Permalink
add mantis testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
cctdaniel committed Aug 20, 2024
1 parent 3674f60 commit 9daa9c1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ no-entrypoint = []
no-idl = []
no-log-ix-name = []
cpi = ["no-entrypoint"]
default = ["pythnet"]
default = ["mantis_testnet"]
# These features determine the network for deployment:
# - Use `pythnet` for deploying on Pythnet
# - Use `pythtest` for deploying on Pythtest
Expand All @@ -24,6 +24,7 @@ pythtest = []
eclipse_devnet = []
eclipse_testnet = []
eclipse_mainnet = []
mantis_testnet = []

[dependencies]
anchor-lang = {version = "0.25.0", features = ["init-if-needed"]}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub const CHAIN_ID_ARRAY: &[(&str, u16)] = &[
("eclipse_devnet", 40001),
("eclipse_testnet", 40002),
("eclipse_mainnet", 40003),
("mantis_testnet", 40004),
];

#[cfg(any(feature = "pythnet", feature = "pythtest"))]
Expand All @@ -34,6 +35,9 @@ pub const CHAIN_ID: u16 = 40002;
#[cfg(feature = "eclipse_mainnet")]
pub const CHAIN_ID: u16 = 40003;

#[cfg(feature = "mantis_testnet")]
pub const CHAIN_ID: u16 = 40004;

#[derive(AnchorDeserialize, AnchorSerialize, Debug, PartialEq, Eq)]
pub struct ExecutorPayload {
pub header: GovernanceHeader,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ impl Owner for AnchorVaa {
#[cfg(any(
feature = "eclipse_devnet",
feature = "eclipse_testnet",
feature = "eclipse_mainnet"
feature = "eclipse_mainnet",
feature = "mantis_testnet",
))]
fn owner() -> Pubkey {
Pubkey::from_str("HDwcJBJXjL9FpJ7UBsYBtaDjsBUhuLCUYoz3zr8SWWaQ").unwrap()
Expand Down

0 comments on commit 9daa9c1

Please sign in to comment.