pub struct DepositNftCore {
pub owner: Pubkey,
pub pool: Pubkey,
pub whitelist: Pubkey,
pub mint_proof: Option<Pubkey>,
pub asset: Pubkey,
pub collection: Option<Pubkey>,
pub mpl_core_program: Pubkey,
pub nft_receipt: 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.
asset: PubkeyThe MPL core asset account.
collection: Option<Pubkey>§mpl_core_program: PubkeyThe MPL Core program.
nft_receipt: PubkeyThe NFT deposit receipt, which ties an NFT to the pool it was deposited to.
system_program: PubkeyThe Solana system program.
Implementations§
Source§impl DepositNftCore
impl DepositNftCore
pub fn instruction(&self) -> Instruction
pub fn instruction_with_remaining_accounts( &self, remaining_accounts: &[AccountMeta], ) -> Instruction
Auto Trait Implementations§
impl Freeze for DepositNftCore
impl RefUnwindSafe for DepositNftCore
impl Send for DepositNftCore
impl Sync for DepositNftCore
impl Unpin for DepositNftCore
impl UnwindSafe for DepositNftCore
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