pub struct DepositEvent {
pub owner: Pubkey,
pub underlying_mint: Pubkey,
pub wrapped_mint: Pubkey,
pub deposit_amount: u64,
pub mint_amount: u64,
}Expand description
Called when tokens are deposited into the wrapper.
Fields§
§owner: PubkeyOwner of the account that deposited.
underlying_mint: PubkeyUnderlying token mint
wrapped_mint: PubkeyWrapped token mint
deposit_amount: u64Amount deposited.
mint_amount: u64Wrapped tokens minted.
Trait Implementations§
Source§impl BorshDeserialize for DepositEvent
impl BorshDeserialize for DepositEvent
Source§impl BorshSerialize for DepositEvent
impl BorshSerialize for DepositEvent
Source§impl Discriminator for DepositEvent
impl Discriminator for DepositEvent
fn discriminator() -> [u8; 8]
Auto Trait Implementations§
impl Freeze for DepositEvent
impl RefUnwindSafe for DepositEvent
impl Send for DepositEvent
impl Sync for DepositEvent
impl Unpin for DepositEvent
impl UnwindSafe for DepositEvent
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