pub struct MakePaymentBuilder { /* private fields */ }Expand description
Instruction builder for MakePayment.
§Accounts:
[writable, signer]payer[writable]payment[signer]operator_authority[signer]buyer[]operator[]merchant[writable]merchant_operator_config[]mint[writable]buyer_ata[writable]merchant_escrow_ata[writable]merchant_settlement_ata[optional]token_program (default toTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)[optional]system_program (default to11111111111111111111111111111111)[optional]event_authority (default to3VSJP7faqLk6MbCaNtMYc2Y8S8hMXRsZ5cBcwh1fjMH1)[optional]commerce_program (default tocommkU28d52cwo2Ma3Marxz4Qr9REtfJtuUfqnDnbhT)
Implementations§
Source§impl MakePaymentBuilder
impl MakePaymentBuilder
pub fn new() -> Self
pub fn payer(&mut self, payer: Pubkey) -> &mut Self
pub fn payment(&mut self, payment: Pubkey) -> &mut Self
pub fn buyer(&mut self, buyer: Pubkey) -> &mut Self
pub fn operator(&mut self, operator: Pubkey) -> &mut Self
pub fn merchant_operator_config( &mut self, merchant_operator_config: Pubkey, ) -> &mut Self
pub fn mint(&mut self, mint: Pubkey) -> &mut Self
pub fn buyer_ata(&mut self, buyer_ata: Pubkey) -> &mut Self
pub fn merchant_escrow_ata(&mut self, merchant_escrow_ata: Pubkey) -> &mut Self
pub fn merchant_settlement_ata( &mut self, merchant_settlement_ata: 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']
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']
[optional account, default to '3VSJP7faqLk6MbCaNtMYc2Y8S8hMXRsZ5cBcwh1fjMH1']
Event authority PDA
Sourcepub fn commerce_program(&mut self, commerce_program: Pubkey) -> &mut Self
pub fn commerce_program(&mut self, commerce_program: Pubkey) -> &mut Self
[optional account, default to 'commkU28d52cwo2Ma3Marxz4Qr9REtfJtuUfqnDnbhT']
Commerce Program ID
pub fn order_id(&mut self, order_id: u32) -> &mut Self
pub fn amount(&mut self, amount: u64) -> &mut Self
pub fn bump(&mut self, bump: u8) -> &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 MakePaymentBuilder
impl Clone for MakePaymentBuilder
Source§fn clone(&self) -> MakePaymentBuilder
fn clone(&self) -> MakePaymentBuilder
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 MakePaymentBuilder
impl Debug for MakePaymentBuilder
Source§impl Default for MakePaymentBuilder
impl Default for MakePaymentBuilder
Source§fn default() -> MakePaymentBuilder
fn default() -> MakePaymentBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MakePaymentBuilder
impl RefUnwindSafe for MakePaymentBuilder
impl Send for MakePaymentBuilder
impl Sync for MakePaymentBuilder
impl Unpin for MakePaymentBuilder
impl UnwindSafe for MakePaymentBuilder
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