pub struct MintStrategy2Builder { /* private fields */ }Expand description
Instruction builder for MintStrategy2.
§Accounts:
[writable, signer]user[optional]admin_permissions[writable]main[writable]strategy_controller[writable]receipt_mint[writable]user_receipt_ata[writable]user_earn_ata[writable]strategy_controller_earn_token_account[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[]associated_token_program[optional]instruction_sysvar_account (default toSysvar1nstructions1111111111111111111111111)[optional]system_program (default to11111111111111111111111111111111)
Implementations§
Source§impl MintStrategy2Builder
impl MintStrategy2Builder
pub fn new() -> Self
pub fn user(&mut self, user: Pubkey) -> &mut Self
Sourcepub fn admin_permissions(
&mut self,
admin_permissions: Option<Pubkey>,
) -> &mut Self
pub fn admin_permissions( &mut self, admin_permissions: Option<Pubkey>, ) -> &mut Self
[optional account]
pub fn main(&mut self, main: Pubkey) -> &mut Self
pub fn strategy_controller(&mut self, strategy_controller: Pubkey) -> &mut Self
pub fn receipt_mint(&mut self, receipt_mint: Pubkey) -> &mut Self
pub fn user_receipt_ata(&mut self, user_receipt_ata: Pubkey) -> &mut Self
pub fn user_earn_ata(&mut self, user_earn_ata: Pubkey) -> &mut Self
pub fn strategy_controller_earn_token_account( &mut self, strategy_controller_earn_token_account: Pubkey, ) -> &mut Self
Sourcepub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self
[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']
pub fn associated_token_program( &mut self, associated_token_program: Pubkey, ) -> &mut Self
Sourcepub fn instruction_sysvar_account(
&mut self,
instruction_sysvar_account: Pubkey,
) -> &mut Self
pub fn instruction_sysvar_account( &mut self, instruction_sysvar_account: Pubkey, ) -> &mut Self
[optional account, default to 'Sysvar1nstructions1111111111111111111111111']
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']
pub fn usdt_deposit_amount(&mut self, usdt_deposit_amount: u64) -> &mut Self
pub fn min_receipt_receive(&mut self, min_receipt_receive: u64) -> &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 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 MintStrategy2Builder
impl Clone for MintStrategy2Builder
Source§fn clone(&self) -> MintStrategy2Builder
fn clone(&self) -> MintStrategy2Builder
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 MintStrategy2Builder
impl Debug for MintStrategy2Builder
Source§impl Default for MintStrategy2Builder
impl Default for MintStrategy2Builder
Source§fn default() -> MintStrategy2Builder
fn default() -> MintStrategy2Builder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MintStrategy2Builder
impl RefUnwindSafe for MintStrategy2Builder
impl Send for MintStrategy2Builder
impl Sync for MintStrategy2Builder
impl Unpin for MintStrategy2Builder
impl UnsafeUnpin for MintStrategy2Builder
impl UnwindSafe for MintStrategy2Builder
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