pub struct WithdrawNftT22 {
pub owner: Pubkey,
pub pool: Pubkey,
pub whitelist: Option<Pubkey>,
pub mint_proof: Option<Pubkey>,
pub mint: Pubkey,
pub nft_receipt: Pubkey,
pub owner_ta: Pubkey,
pub pool_ta: Pubkey,
pub token_program: Pubkey,
pub associated_token_program: Pubkey,
pub system_program: Pubkey,
}Expand description
Accounts.
Fields§
§owner: PubkeyThe owner of the pool and the NFT.
pool: PubkeyThe pool the NFT is being transferred to/from.
whitelist: Option<Pubkey>The whitelist that gatekeeps which NFTs can be deposited into the pool. Must match the whitelist stored in the pool state.
mint_proof: Option<Pubkey>Optional account which must be passed in if the NFT must be verified against a merkle proof condition in the whitelist.
mint: PubkeyThe mint account of the NFT.
nft_receipt: PubkeyThe NFT deposit receipt, which ties an NFT to the pool it was deposited to.
owner_ta: PubkeyThe TA of the owner where the NFT will be withdrawn to.
pool_ta: PubkeyThe TA of the pool, where the NFT token is escrowed.
token_program: PubkeyThe SPL Token program for the Mint and ATAs.
associated_token_program: PubkeyThe SPL associated token program.
system_program: PubkeyThe Solana system program.
Implementations§
Source§impl WithdrawNftT22
impl WithdrawNftT22
pub fn instruction(&self) -> Instruction
pub fn instruction_with_remaining_accounts( &self, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for WithdrawNftT22
impl RefUnwindSafe for WithdrawNftT22
impl Send for WithdrawNftT22
impl Sync for WithdrawNftT22
impl Unpin for WithdrawNftT22
impl UnwindSafe for WithdrawNftT22
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