pub struct CpmmPoolInfoIdl {Show 29 fields
pub discriminator: [u8; 8],
pub amm_config: Pubkey,
pub pool_creator: Pubkey,
pub token_0_vault: Pubkey,
pub token_1_vault: Pubkey,
pub lp_mint: Pubkey,
pub token_0_mint: Pubkey,
pub token_1_mint: Pubkey,
pub token_0_program: Pubkey,
pub token_1_program: Pubkey,
pub observation_key: Pubkey,
pub auth_bump: u8,
pub status: u8,
pub lp_mint_decimals: u8,
pub mint_0_decimals: u8,
pub mint_1_decimals: u8,
pub lp_supply: u64,
pub protocol_fees_token_0: u64,
pub protocol_fees_token_1: u64,
pub fund_fees_token_0: u64,
pub fund_fees_token_1: u64,
pub open_time: u64,
pub recent_epoch: u64,
pub creator_fee_on: u8,
pub enable_creator_fee: bool,
pub padding1: [u8; 6],
pub creator_fees_token_0: u64,
pub creator_fees_token_1: u64,
pub padding: [u64; 28],
}Fields§
§discriminator: [u8; 8]§amm_config: PubkeyWhich config the pool belongs
pool_creator: Pubkeypool creator
token_0_vault: PubkeyToken A
token_1_vault: PubkeyToken B
lp_mint: PubkeyPool tokens are issued when A or B tokens are deposited. Pool tokens can be withdrawn back to the original A or B token.
token_0_mint: PubkeyMint information for token A
token_1_mint: PubkeyMint information for token B
token_0_program: Pubkeytoken_0 program
token_1_program: Pubkeytoken_1 program
observation_key: Pubkeyobservation account to store oracle data
auth_bump: u8§status: u8Bitwise representation of the state of the pool bit0, 1: disable deposit(value is 1), 0: normal bit1, 1: disable withdraw(value is 2), 0: normal bit2, 1: disable swap(value is 4), 0: normal
lp_mint_decimals: u8§mint_0_decimals: u8mint0 and mint1 decimals
mint_1_decimals: u8§lp_supply: u64True circulating supply without burns and lock ups
protocol_fees_token_0: u64The amounts of token_0 and token_1 that are owed to the liquidity provider.
protocol_fees_token_1: u64§fund_fees_token_0: u64§fund_fees_token_1: u64§open_time: u64The timestamp allowed for swap in the pool.
recent_epoch: u64recent epoch
creator_fee_on: u8Creator fee collect mode 0: both token_0 and token_1 can be used as trade fees. It depends on what the input token is when swapping 1: only token_0 as trade fee 2: only token_1 as trade fee
enable_creator_fee: bool§padding1: [u8; 6]§creator_fees_token_0: u64§creator_fees_token_1: u64§padding: [u64; 28]padding for future updates
Trait Implementations§
Source§impl BorshDeserialize for CpmmPoolInfoIdl
impl BorshDeserialize for CpmmPoolInfoIdl
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Auto Trait Implementations§
impl Freeze for CpmmPoolInfoIdl
impl RefUnwindSafe for CpmmPoolInfoIdl
impl Send for CpmmPoolInfoIdl
impl Sync for CpmmPoolInfoIdl
impl Unpin for CpmmPoolInfoIdl
impl UnwindSafe for CpmmPoolInfoIdl
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more