pub struct Config {
pub pump_program_id: Pubkey,
pub mayhem_program_id: Pubkey,
pub token_program: TokenProgram,
}Fields§
§pump_program_id: Pubkey§mayhem_program_id: Pubkey§token_program: TokenProgramImplementations§
Source§impl Config
impl Config
Sourcepub fn mainnet_create_v2_defaults() -> Self
pub fn mainnet_create_v2_defaults() -> Self
Safe defaults for Pump create_v2 (Token-2022) on mainnet.
Sourcepub fn devnet_create_v2_defaults() -> Self
pub fn devnet_create_v2_defaults() -> Self
Devnet defaults. Pump recommends testing on devnet before mainnet. Same program IDs as mainnet (Pump deploys to both clusters).
pub fn with_program_ids( pump_program_id: Pubkey, mayhem_program_id: Pubkey, ) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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