CreatePurchaseOrderV2Builder

Struct CreatePurchaseOrderV2Builder 

Source
pub struct CreatePurchaseOrderV2Builder { /* private fields */ }
Expand description

Instruction builder for CreatePurchaseOrderV2.

§Accounts:

  1. [] kyc_account
  2. [writable, signer] user_wallet
  3. [] bond_account
  4. [] issuance_account
  5. [writable] payment_account
  6. [writable] payment_token_account
  7. [writable] user_payment_token_account
  8. [writable] user_nft_token_account
  9. [writable, signer] nft_mint_account
  10. [writable] nft_metadata_account
  11. [writable] nft_master_edition_account
  12. [writable] purchase_order_vault_account
  13. [] nft_collection_mint
  14. [writable] nft_collection_metadata_account
  15. [] nft_collection_master_edition_account
  16. [] payment_mint_account
  17. [] payment_feed_account
  18. [] payment_base_price_feed_account
  19. [] config_account
  20. [] associated_token_program
  21. [] token2022_program
  22. [optional] token_program (default to TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA)
  23. [optional] system_program (default to 11111111111111111111111111111111)
  24. [] metadata_program
  25. [optional] sysvar_instructions (default to Sysvar1nstructions1111111111111111111111111)
  26. [optional] payment_quote_price_feed_account

Implementations§

Source§

impl CreatePurchaseOrderV2Builder

Source

pub fn new() -> Self

Source

pub fn kyc_account(&mut self, kyc_account: Pubkey) -> &mut Self

Source

pub fn user_wallet(&mut self, user_wallet: Pubkey) -> &mut Self

Source

pub fn bond_account(&mut self, bond_account: Pubkey) -> &mut Self

Source

pub fn issuance_account(&mut self, issuance_account: Pubkey) -> &mut Self

Source

pub fn payment_account(&mut self, payment_account: Pubkey) -> &mut Self

Source

pub fn payment_token_account( &mut self, payment_token_account: Pubkey, ) -> &mut Self

Source

pub fn user_payment_token_account( &mut self, user_payment_token_account: Pubkey, ) -> &mut Self

Source

pub fn user_nft_token_account( &mut self, user_nft_token_account: Pubkey, ) -> &mut Self

Source

pub fn nft_mint_account(&mut self, nft_mint_account: Pubkey) -> &mut Self

Source

pub fn nft_metadata_account( &mut self, nft_metadata_account: Pubkey, ) -> &mut Self

Source

pub fn nft_master_edition_account( &mut self, nft_master_edition_account: Pubkey, ) -> &mut Self

Source

pub fn purchase_order_vault_account( &mut self, purchase_order_vault_account: Pubkey, ) -> &mut Self

Source

pub fn nft_collection_mint(&mut self, nft_collection_mint: Pubkey) -> &mut Self

Source

pub fn nft_collection_metadata_account( &mut self, nft_collection_metadata_account: Pubkey, ) -> &mut Self

Source

pub fn nft_collection_master_edition_account( &mut self, nft_collection_master_edition_account: Pubkey, ) -> &mut Self

Source

pub fn payment_mint_account( &mut self, payment_mint_account: Pubkey, ) -> &mut Self

Source

pub fn payment_feed_account( &mut self, payment_feed_account: Pubkey, ) -> &mut Self

Source

pub fn payment_base_price_feed_account( &mut self, payment_base_price_feed_account: Pubkey, ) -> &mut Self

Source

pub fn config_account(&mut self, config_account: Pubkey) -> &mut Self

Source

pub fn associated_token_program( &mut self, associated_token_program: Pubkey, ) -> &mut Self

Source

pub fn token2022_program(&mut self, token2022_program: Pubkey) -> &mut Self

Source

pub fn token_program(&mut self, token_program: Pubkey) -> &mut Self

[optional account, default to 'TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA']

Source

pub fn system_program(&mut self, system_program: Pubkey) -> &mut Self

[optional account, default to '11111111111111111111111111111111']

Source

pub fn metadata_program(&mut self, metadata_program: Pubkey) -> &mut Self

Source

pub fn sysvar_instructions(&mut self, sysvar_instructions: Pubkey) -> &mut Self

[optional account, default to 'Sysvar1nstructions1111111111111111111111111']

Source

pub fn payment_quote_price_feed_account( &mut self, payment_quote_price_feed_account: Option<Pubkey>, ) -> &mut Self

[optional account]

Source

pub fn amount(&mut self, amount: u64) -> &mut Self

Source

pub fn add_remaining_account(&mut self, account: AccountMeta) -> &mut Self

Add an aditional account to the instruction.

Source

pub fn add_remaining_accounts(&mut self, accounts: &[AccountMeta]) -> &mut Self

Add additional accounts to the instruction.

Source

pub fn instruction(&self) -> Instruction

Trait Implementations§

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> AbiExample for T

Source§

default fn example() -> T

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V