pub struct CreateCoinParams<'a> {Show 13 fields
pub mint: Pubkey,
pub user: Pubkey,
pub creator: Pubkey,
pub name: String,
pub symbol: String,
pub uri: String,
pub mayhem_mode: bool,
pub cashback: bool,
pub quote_mint: Pubkey,
pub global: &'a Global,
pub token_amount: u64,
pub max_quote_tokens: u64,
pub tokenized_agent_buyback_bps: Option<u16>,
}Expand description
PumpSdk::create_coin_instructions. New mint keypair must co-sign. The
initial buy is in the chosen quote_mint (Pubkey::default() → wSOL).
tokenized_agent_buyback_bps: when Some(bps), an agent_initialize
instruction (pump_agent_payments) is appended that registers creator as
the agent payment authority with the given buyback rate (basis points;
must be ≤ 10000). None skips it.
Fields§
§mint: Pubkey§user: Pubkey§creator: Pubkey§name: String§symbol: String§uri: String§mayhem_mode: bool§cashback: bool§quote_mint: Pubkey§global: &'a Global§token_amount: u64§max_quote_tokens: u64§tokenized_agent_buyback_bps: Option<u16>Trait Implementations§
Source§impl<'a> Clone for CreateCoinParams<'a>
impl<'a> Clone for CreateCoinParams<'a>
Source§fn clone(&self) -> CreateCoinParams<'a>
fn clone(&self) -> CreateCoinParams<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<'a> Freeze for CreateCoinParams<'a>
impl<'a> RefUnwindSafe for CreateCoinParams<'a>
impl<'a> Send for CreateCoinParams<'a>
impl<'a> Sync for CreateCoinParams<'a>
impl<'a> Unpin for CreateCoinParams<'a>
impl<'a> UnsafeUnpin for CreateCoinParams<'a>
impl<'a> UnwindSafe for CreateCoinParams<'a>
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