spl: Add devnet feature flag for dex (#263)
This commit is contained in:
parent
451e99418f
commit
c06ad679d3
|
@ -6,6 +6,9 @@ edition = "2018"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
description = "CPI clients for SPL programs"
|
description = "CPI clients for SPL programs"
|
||||||
|
|
||||||
|
[features]
|
||||||
|
devnet = []
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
anchor-lang = { path = "../lang", version = "0.5.0", features = ["derive"] }
|
anchor-lang = { path = "../lang", version = "0.5.0", features = ["derive"] }
|
||||||
lazy_static = "1.4.0"
|
lazy_static = "1.4.0"
|
||||||
|
|
|
@ -7,8 +7,12 @@ use std::num::NonZeroU64;
|
||||||
|
|
||||||
pub use serum_dex;
|
pub use serum_dex;
|
||||||
|
|
||||||
|
#[cfg(not(feature = "devnet"))]
|
||||||
anchor_lang::solana_program::declare_id!("9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin");
|
anchor_lang::solana_program::declare_id!("9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin");
|
||||||
|
|
||||||
|
#[cfg(feature = "devnet")]
|
||||||
|
anchor_lang::solana_program::declare_id!("DESVgJVGajEgKGXhb6XmqDHGz3VjdgP7rEVESBgxmroY");
|
||||||
|
|
||||||
pub fn new_order_v3<'info>(
|
pub fn new_order_v3<'info>(
|
||||||
ctx: CpiContext<'_, '_, '_, 'info, NewOrderV3<'info>>,
|
ctx: CpiContext<'_, '_, '_, 'info, NewOrderV3<'info>>,
|
||||||
side: Side,
|
side: Side,
|
||||||
|
|
Loading…
Reference in New Issue