pub use solana_instruction::{AccountMeta, Instruction};
pub use solana_pubkey::Pubkey;
solana_pubkey::declare_id!("Moook87DzJ25dELx3LXJ3dnu5a4ERVFwKo1PWWF4p7Y");
pub const PROD_ID: Pubkey = ID;
pub const BARN_ID: Pubkey = Pubkey::from_str_const("EzHqcdJssenE2R8xogJ8wpL66PRQet9M6ubpsX4QxpPb");
pub mod data;
pub mod error;
pub mod instruction;
pub mod pda;
pub mod role;
pub mod token_program;
pub use error::{parse_settlement_error, SettlementError};
pub use instruction::{recover_discriminator, SettlementInstruction};
pub use pda::SettlementAccount;
pub use role::Role;
#[cfg(any(test, feature = "test-fixtures"))]
pub mod fixtures {
use core::num::NonZeroU64;
use crate::Pubkey;
pub fn pubkey_from_seed(seed: &str) -> Pubkey {
Pubkey::new_from_array(solana_sha256_hasher::hash(seed.as_bytes()).to_bytes())
}
pub trait IntoNonZero {
fn nz(self) -> NonZeroU64;
}
impl IntoNonZero for u64 {
#[track_caller]
fn nz(self) -> NonZeroU64 {
NonZeroU64::new(self).expect("value must be non-zero")
}
}
}