pub struct DepositNft {Show 19 fields
pub owner: Pubkey,
pub pool: Pubkey,
pub whitelist: Pubkey,
pub mint_proof: Option<Pubkey>,
pub mint: Pubkey,
pub metadata: Pubkey,
pub edition: Pubkey,
pub user_token_record: Option<Pubkey>,
pub pool_token_record: Option<Pubkey>,
pub token_metadata_program: Option<Pubkey>,
pub sysvar_instructions: Option<Pubkey>,
pub authorization_rules: Option<Pubkey>,
pub authorization_rules_program: Option<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: PubkeyThe 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.
metadata: PubkeyThe Token Metadata metadata account of the NFT.
edition: PubkeyThe Token Metadata edition account of the NFT.
user_token_record: Option<Pubkey>The Token Metadata source token record account of the NFT.
pool_token_record: Option<Pubkey>The Token Metadata token record for the destination.
token_metadata_program: Option<Pubkey>The Token Metadata program account.
sysvar_instructions: Option<Pubkey>The sysvar instructions account.
The Metaplex Token Authority Rules account that stores royalty enforcement rules.
The Metaplex Token Authority Rules program account.
nft_receipt: PubkeyThe NFT deposit receipt, which ties an NFT to the pool it was deposited to.
owner_ta: PubkeyThe token account of the owner, where the NFT will be transferred from.
pool_ta: PubkeyThe token account of the pool, where the NFT will be 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 DepositNft
impl DepositNft
pub fn instruction(&self, args: DepositNftInstructionArgs) -> Instruction
pub fn instruction_with_remaining_accounts( &self, args: DepositNftInstructionArgs, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for DepositNft
impl RefUnwindSafe for DepositNft
impl Send for DepositNft
impl Sync for DepositNft
impl Unpin for DepositNft
impl UnwindSafe for DepositNft
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
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>
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>
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