pub struct BondingCurve {Show 30 fields
pub discriminator: AccountDiscriminator,
pub base_mint: Pubkey,
pub quote_mint: Pubkey,
pub creator: Pubkey,
pub retain_mint_authority: bool,
pub buy_requires_permission: bool,
pub buy_permission_bitmap: [u8; 32],
pub sell_requires_permission: bool,
pub sell_permission_bitmap: [u8; 32],
pub quote_fee_bps: u16,
pub base_fee_bps: u16,
pub control_points: [u16; 4],
pub start_price: u128,
pub end_price: u128,
pub quote_amount: u64,
pub base_amount: u64,
pub launch_slot: u64,
pub creator_reward: u64,
pub graduation_target: u64,
pub graduation_slot: u64,
pub graduation_reward: u64,
pub max_buy_amount: u64,
pub max_sell_amount: u64,
pub swap_fee_bps: u16,
pub base_allocation_bps: u16,
pub graduation_methods: [GraduationMethodData; 8],
pub min_reserve_bps: u16,
pub padding1: [u8; 2],
pub preminted_supply: u64,
pub padding2: [u8; 728],
}
Fields§
§discriminator: AccountDiscriminator
§base_mint: Pubkey
§quote_mint: Pubkey
§creator: Pubkey
§buy_requires_permission: bool
§buy_permission_bitmap: [u8; 32]
§sell_requires_permission: bool
§sell_permission_bitmap: [u8; 32]
§quote_fee_bps: u16
§base_fee_bps: u16
§control_points: [u16; 4]
§start_price: u128
§end_price: u128
§quote_amount: u64
§base_amount: u64
§launch_slot: u64
§creator_reward: u64
§graduation_target: u64
§graduation_slot: u64
§graduation_reward: u64
§max_buy_amount: u64
§max_sell_amount: u64
§swap_fee_bps: u16
§base_allocation_bps: u16
§graduation_methods: [GraduationMethodData; 8]
§min_reserve_bps: u16
§padding1: [u8; 2]
§preminted_supply: u64
§padding2: [u8; 728]
Trait Implementations§
Source§impl BorshDeserialize for BondingCurvewhere
AccountDiscriminator: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
u16: BorshDeserialize,
[u16; 4]: BorshDeserialize,
u128: BorshDeserialize,
u64: BorshDeserialize,
[GraduationMethodData; 8]: BorshDeserialize,
[u8; 2]: BorshDeserialize,
[u8; 728]: BorshDeserialize,
impl BorshDeserialize for BondingCurvewhere
AccountDiscriminator: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
[u8; 32]: BorshDeserialize,
u16: BorshDeserialize,
[u16; 4]: BorshDeserialize,
u128: BorshDeserialize,
u64: BorshDeserialize,
[GraduationMethodData; 8]: BorshDeserialize,
[u8; 2]: BorshDeserialize,
[u8; 728]: BorshDeserialize,
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 CarbonDeserialize for BondingCurve
impl CarbonDeserialize for BondingCurve
const DISCRIMINATOR: &'static [u8]
fn deserialize(data: &[u8]) -> Option<Self>
Source§impl Clone for BondingCurve
impl Clone for BondingCurve
Source§fn clone(&self) -> BondingCurve
fn clone(&self) -> BondingCurve
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BondingCurve
impl Debug for BondingCurve
Source§impl<'de> Deserialize<'de> for BondingCurve
impl<'de> Deserialize<'de> for BondingCurve
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BondingCurve
impl Hash for BondingCurve
Source§impl PartialEq for BondingCurve
impl PartialEq for BondingCurve
Source§impl Serialize for BondingCurve
impl Serialize for BondingCurve
impl Eq for BondingCurve
impl StructuralPartialEq for BondingCurve
Auto Trait Implementations§
impl Freeze for BondingCurve
impl RefUnwindSafe for BondingCurve
impl Send for BondingCurve
impl Sync for BondingCurve
impl Unpin for BondingCurve
impl UnwindSafe for BondingCurve
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