pub struct DepositNftCoreBuilder { /* private fields */ }Expand description
Instruction builder for DepositNftCore.
§Accounts:
[writable, signer]owner[writable]pool[]whitelist[optional]mint_proof[writable]asset[optional]collection[optional]mpl_core_program (default toCoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d)[writable]nft_receipt[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl DepositNftCoreBuilder
impl DepositNftCoreBuilder
pub fn new() -> Self
Sourcepub fn pool(&mut self, pool: Pubkey) -> &mut Self
pub fn pool(&mut self, pool: Pubkey) -> &mut Self
The pool the NFT is being transferred to/from.
Sourcepub fn whitelist(&mut self, whitelist: Pubkey) -> &mut Self
pub fn whitelist(&mut self, whitelist: Pubkey) -> &mut Self
The whitelist that gatekeeps which NFTs can be deposited into the pool. Must match the whitelist stored in the pool state.
Sourcepub fn mint_proof(&mut self, mint_proof: Option<Pubkey>) -> &mut Self
pub fn mint_proof(&mut self, mint_proof: Option<Pubkey>) -> &mut Self
[optional account]
Optional account which must be passed in if the NFT must be verified against a
merkle proof condition in the whitelist.
Sourcepub fn collection(&mut self, collection: Option<Pubkey>) -> &mut Self
pub fn collection(&mut self, collection: Option<Pubkey>) -> &mut Self
[optional account]
Sourcepub fn mpl_core_program(&mut self, mpl_core_program: Pubkey) -> &mut Self
pub fn mpl_core_program(&mut self, mpl_core_program: Pubkey) -> &mut Self
[optional account, default to 'CoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d']
The MPL Core program.
Sourcepub fn nft_receipt(&mut self, nft_receipt: Pubkey) -> &mut Self
pub fn nft_receipt(&mut self, nft_receipt: Pubkey) -> &mut Self
The NFT deposit receipt, which ties an NFT to the pool it was deposited to.
Sourcepub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
The Solana system program.
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self
Add additional accounts to the instruction.
pub fn instruction(&self) -> Instruction
Trait Implementations§
Source§impl Clone for DepositNftCoreBuilder
impl Clone for DepositNftCoreBuilder
Source§fn clone(&self) -> DepositNftCoreBuilder
fn clone(&self) -> DepositNftCoreBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DepositNftCoreBuilder
impl Debug for DepositNftCoreBuilder
Source§impl Default for DepositNftCoreBuilder
impl Default for DepositNftCoreBuilder
Source§fn default() -> DepositNftCoreBuilder
fn default() -> DepositNftCoreBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DepositNftCoreBuilder
impl RefUnwindSafe for DepositNftCoreBuilder
impl Send for DepositNftCoreBuilder
impl Sync for DepositNftCoreBuilder
impl Unpin for DepositNftCoreBuilder
impl UnwindSafe for DepositNftCoreBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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