pub struct InitEvent {
pub payer: Pubkey,
pub decimals: u8,
pub multiplier: u64,
pub wrapper_underlying_mint: Pubkey,
pub wrapper_underlying_tokens: Pubkey,
pub wrapper_mint: Pubkey,
}Expand description
Called when a new token wrapper is initialized.
Fields§
§payer: PubkeyUser that paid to create the token.
decimals: u8Number of decimals of the wrapped token.
multiplier: u64Amount to multiply by to wrap the token. Cached here for performance reasons, but equivalent to 10 **decimals
wrapper_underlying_mint: PubkeyMint of the underlying token.
wrapper_underlying_tokens: PubkeyToken account holding the underlying token.
wrapper_mint: PubkeyMint of the token of this wrapper.
Trait Implementations§
Source§impl BorshDeserialize for InitEvent
impl BorshDeserialize for InitEvent
Source§impl BorshSerialize for InitEvent
impl BorshSerialize for InitEvent
Source§impl Discriminator for InitEvent
impl Discriminator for InitEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for InitEvent
impl RefUnwindSafe for InitEvent
impl Send for InitEvent
impl Sync for InitEvent
impl Unpin for InitEvent
impl UnwindSafe for InitEvent
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> 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