pub struct Whirlpool {Show 20 fields
pub discriminator: [u8; 8],
pub whirlpool_config: Pubkey,
pub whirlpool_bump: u8,
pub tick_spacing: u16,
pub fee_tier_index: u16,
pub fee_rate: u16,
pub protocol_fee_rate: u16,
pub liquidity: u128,
pub sqrt_price: u128,
pub tick_current_index: i32,
pub protocol_fee_owed_a: u64,
pub protocol_fee_owed_b: u64,
pub token_a_mint: Pubkey,
pub token_a_vault: Pubkey,
pub fee_growth_global_a: u128,
pub token_b_mint: Pubkey,
pub token_b_vault: Pubkey,
pub fee_growth_global_b: u128,
pub reward_last_updated_timestamp: u64,
pub reward_infos: [WhirlpoolRewardInfo; 3],
}Fields§
§discriminator: [u8; 8]§whirlpool_config: Pubkey§whirlpool_bump: u8§tick_spacing: u16§fee_tier_index: u16§fee_rate: u16§protocol_fee_rate: u16§liquidity: u128§sqrt_price: u128§tick_current_index: i32§protocol_fee_owed_a: u64§protocol_fee_owed_b: u64§token_a_mint: Pubkey§token_a_vault: Pubkey§fee_growth_global_a: u128§token_b_mint: Pubkey§token_b_vault: Pubkey§fee_growth_global_b: u128§reward_last_updated_timestamp: u64§reward_infos: [WhirlpoolRewardInfo; 3]Trait Implementations§
Source§impl BorshDeserialize for Whirlpool
impl BorshDeserialize for Whirlpool
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>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Whirlpool
impl BorshSerialize for Whirlpool
impl StructuralPartialEq for Whirlpool
Auto Trait Implementations§
impl Freeze for Whirlpool
impl RefUnwindSafe for Whirlpool
impl Send for Whirlpool
impl Sync for Whirlpool
impl Unpin for Whirlpool
impl UnsafeUnpin for Whirlpool
impl UnwindSafe for Whirlpool
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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