pub struct WithdrawCompressedBuilder { /* private fields */ }Expand description
Instruction builder for WithdrawCompressed.
§Accounts:
[writable, signer]maker[writable]order_state[writable]order_vault[]whitelist[optional]system (default to11111111111111111111111111111111)[]tlock_program[]tree_authority[writable]merkle_tree[optional]log_wrapper (default tonoopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV)[optional]compression_program (default tocmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK)[optional]bubblegum_program (default toBGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY)[writable]order_nft_receipt
Implementations§
Source§impl WithdrawCompressedBuilder
impl WithdrawCompressedBuilder
pub fn new() -> Self
pub fn maker(&mut self, maker: Pubkey) -> &mut Self
pub fn order_state(&mut self, order_state: Pubkey) -> &mut Self
pub fn order_vault(&mut self, order_vault: Pubkey) -> &mut Self
pub fn whitelist(&mut self, whitelist: Pubkey) -> &mut Self
Sourcepub fn system(&mut self, system: Pubkey) -> &mut Self
pub fn system(&mut self, system: Pubkey) -> &mut Self
[optional account, default to '11111111111111111111111111111111']
pub fn tlock_program(&mut self, tlock_program: Pubkey) -> &mut Self
pub fn merkle_tree(&mut self, merkle_tree: Pubkey) -> &mut Self
Sourcepub fn log_wrapper(&mut self, log_wrapper: Pubkey) -> &mut Self
pub fn log_wrapper(&mut self, log_wrapper: Pubkey) -> &mut Self
[optional account, default to 'noopb9bkMVfRPU8AsbpTUg8AQkHtKwMYZiFUjNRtMmV']
Sourcepub fn compression_program(&mut self, compression_program: Pubkey) -> &mut Self
pub fn compression_program(&mut self, compression_program: Pubkey) -> &mut Self
[optional account, default to 'cmtDvXumGCrqC1Age74AVPhSRVXJMd8PJS91L8KbNCK']
Sourcepub fn bubblegum_program(&mut self, bubblegum_program: Pubkey) -> &mut Self
pub fn bubblegum_program(&mut self, bubblegum_program: Pubkey) -> &mut Self
[optional account, default to 'BGUMAp9Gq7iTEuizy4pqaxsTyUCBK68MDfK752saRPUY']
pub fn order_nft_receipt(&mut self, order_nft_receipt: Pubkey) -> &mut Self
pub fn root(&mut self, root: [u8; 32]) -> &mut Self
pub fn nonce(&mut self, nonce: u64) -> &mut Self
pub fn index(&mut self, index: u32) -> &mut Self
pub fn meta_args(&mut self, meta_args: TMetadataArgs) -> &mut Self
Sourcepub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self
Add an aditional 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 WithdrawCompressedBuilder
impl Clone for WithdrawCompressedBuilder
Source§fn clone(&self) -> WithdrawCompressedBuilder
fn clone(&self) -> WithdrawCompressedBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WithdrawCompressedBuilder
impl Debug for WithdrawCompressedBuilder
Source§impl Default for WithdrawCompressedBuilder
impl Default for WithdrawCompressedBuilder
Source§fn default() -> WithdrawCompressedBuilder
fn default() -> WithdrawCompressedBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WithdrawCompressedBuilder
impl RefUnwindSafe for WithdrawCompressedBuilder
impl Send for WithdrawCompressedBuilder
impl Sync for WithdrawCompressedBuilder
impl Unpin for WithdrawCompressedBuilder
impl UnsafeUnpin for WithdrawCompressedBuilder
impl UnwindSafe for WithdrawCompressedBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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