#![cfg_attr(docsrs, feature(doc_auto_cfg))]
pub mod price;
pub mod fixed_map;
pub mod init_space;
pub mod flags;
pub mod fixed_str;
pub mod pubkey;
pub mod oracle;
pub mod market;
pub mod token_config;
pub mod dynamic_access;
pub mod action;
pub mod chunk_by;
pub mod swap;
pub mod order;
pub mod glv;
pub mod config;
pub mod gt;
pub mod role;
pub mod user;
#[cfg(feature = "instruction")]
pub mod instruction;
#[cfg(feature = "security-txt")]
pub mod security_txt;
pub fn to_seed(key: &str) -> [u8; 32] {
use anchor_lang::solana_program::hash::hash;
hash(key.as_bytes()).to_bytes()
}
#[anchor_lang::error_code]
pub enum GeneralError {
#[msg("Already exist")]
AlreadyExist,
#[msg("Exceed max length limit")]
ExceedMaxLengthLimit,
}
pub use self::{init_space::InitSpace, price::Price};
pub use bitmaps;
pub use paste;
pub use static_assertions;
#[cfg(feature = "security-txt")]
pub use solana_security_txt;