pub struct BondingCurve {Show 23 fields
pub discriminator: Discriminator,
pub base_mint: Pubkey,
pub quote_mint: Pubkey,
pub creator: Pubkey,
pub start_price: u128,
pub end_price: u128,
pub control_points: [u16; 4],
pub quote_amount: u64,
pub base_amount: u64,
pub swap_fee_bps: u16,
pub quote_fee_bps: u16,
pub base_fee_bps: u16,
pub creator_reward: u64,
pub graduation_method: GraduationMethod,
pub graduation_target: u64,
pub graduation_slot: u64,
pub graduation_reward: u64,
pub buy_requires_permission: bool,
pub buy_permission_bitmap: [u8; 32],
pub max_buy_amount: u64,
pub sell_requires_permission: bool,
pub sell_permission_bitmap: [u8; 32],
pub max_sell_amount: u64,
}Fields§
§discriminator: Discriminator§base_mint: Pubkey§quote_mint: Pubkey§creator: Pubkey§start_price: u128§end_price: u128§control_points: [u16; 4]§quote_amount: u64§base_amount: u64§swap_fee_bps: u16§quote_fee_bps: u16§base_fee_bps: u16§creator_reward: u64§graduation_method: GraduationMethod§graduation_target: u64§graduation_slot: u64§graduation_reward: u64§buy_requires_permission: bool§buy_permission_bitmap: [u8; 32]§max_buy_amount: u64§sell_requires_permission: bool§sell_permission_bitmap: [u8; 32]§max_sell_amount: u64Implementations§
Trait Implementations§
Source§impl BorshDeserialize for BondingCurve
impl BorshDeserialize for BondingCurve
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 BondingCurvewhere
Discriminator: BorshSerialize,
Pubkey: BorshSerialize,
u128: BorshSerialize,
[u16; 4]: BorshSerialize,
u64: BorshSerialize,
u16: BorshSerialize,
GraduationMethod: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
impl BorshSerialize for BondingCurvewhere
Discriminator: BorshSerialize,
Pubkey: BorshSerialize,
u128: BorshSerialize,
[u16; 4]: BorshSerialize,
u64: BorshSerialize,
u16: BorshSerialize,
GraduationMethod: BorshSerialize,
bool: BorshSerialize,
[u8; 32]: BorshSerialize,
Source§impl Clone for BondingCurve
impl Clone for BondingCurve
Source§fn clone(&self) -> BondingCurve
fn clone(&self) -> BondingCurve
Returns a copy 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 PartialEq for BondingCurve
impl PartialEq for BondingCurve
Source§impl<'a> TryFrom<&AccountInfo<'a>> for BondingCurve
impl<'a> TryFrom<&AccountInfo<'a>> 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