pub struct TakeBidCoreBuilder { /* private fields */ }Expand description
Instruction builder for TakeBidCore.
§Accounts:
[writable]fee_vault[writable, signer]seller[writable]bid_state[writable]owner[writable, optional]taker_broker[writable, optional]maker_broker[writable]shared_escrow[optional]whitelist (default toTCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp)[writable]asset[optional]collection[optional]mpl_core_program (default toCoREENxT6tW1HoK8ypY1SxRMZTcVPm7R94rH4PZNhX7d)[optional]system_program (default to11111111111111111111111111111111)[optional]marketplace_program (default toTCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp)[optional]escrow_program (default toTSWAPaqyCSx2KABk68Shruf4rp7CxcNi8hAsbdwmHbN)[signer, optional]cosigner[optional]mint_proof (default toTCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp)[writable]rent_destination
Implementations§
Source§impl TakeBidCoreBuilder
impl TakeBidCoreBuilder
pub fn new() -> Self
pub fn fee_vault(&mut self, fee_vault: Pubkey) -> &mut Self
pub fn seller(&mut self, seller: Pubkey) -> &mut Self
pub fn bid_state(&mut self, bid_state: Pubkey) -> &mut Self
pub fn owner(&mut self, owner: Pubkey) -> &mut Self
Sourcepub fn taker_broker(&mut self, taker_broker: Option<Pubkey>) -> &mut Self
pub fn taker_broker(&mut self, taker_broker: Option<Pubkey>) -> &mut Self
[optional account]
Sourcepub fn maker_broker(&mut self, maker_broker: Option<Pubkey>) -> &mut Self
pub fn maker_broker(&mut self, maker_broker: Option<Pubkey>) -> &mut Self
[optional account]
Sourcepub fn whitelist(&mut self, whitelist: Pubkey) -> &mut Self
pub fn whitelist(&mut self, whitelist: Pubkey) -> &mut Self
[optional account, default to 'TCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp']
pub fn asset(&mut self, asset: Pubkey) -> &mut Self
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']
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']
Sourcepub fn marketplace_program(&mut self, marketplace_program: Pubkey) -> &mut Self
pub fn marketplace_program(&mut self, marketplace_program: Pubkey) -> &mut Self
[optional account, default to 'TCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp']
Sourcepub fn escrow_program(&mut self, escrow_program: Pubkey) -> &mut Self
pub fn escrow_program(&mut self, escrow_program: Pubkey) -> &mut Self
[optional account, default to 'TSWAPaqyCSx2KABk68Shruf4rp7CxcNi8hAsbdwmHbN']
Sourcepub fn mint_proof(&mut self, mint_proof: Pubkey) -> &mut Self
pub fn mint_proof(&mut self, mint_proof: Pubkey) -> &mut Self
[optional account, default to 'TCMPhJdwDryooaGtiocG1u3xcYbRpiJzb283XfCZsDp']
intentionally not deserializing, it would be dummy in the case of VOC/FVC based verification
pub fn rent_destination(&mut self, rent_destination: Pubkey) -> &mut Self
pub fn min_amount(&mut self, min_amount: 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 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 TakeBidCoreBuilder
impl Clone for TakeBidCoreBuilder
Source§fn clone(&self) -> TakeBidCoreBuilder
fn clone(&self) -> TakeBidCoreBuilder
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 TakeBidCoreBuilder
impl Debug for TakeBidCoreBuilder
Source§impl Default for TakeBidCoreBuilder
impl Default for TakeBidCoreBuilder
Source§fn default() -> TakeBidCoreBuilder
fn default() -> TakeBidCoreBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TakeBidCoreBuilder
impl RefUnwindSafe for TakeBidCoreBuilder
impl Send for TakeBidCoreBuilder
impl Sync for TakeBidCoreBuilder
impl Unpin for TakeBidCoreBuilder
impl UnwindSafe for TakeBidCoreBuilder
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