pub struct TakeBidLegacyCpiBuilder<'a, 'b> { /* private fields */ }Expand description
Instruction builder for TakeBidLegacy via CPI.
§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[writable]seller_ta[]mint[writable]metadata[writable]owner_ta[]edition[writable, optional]seller_token_record[writable, optional]owner_token_record[optional]token_metadata_program[optional]sysvar_instructions[optional]authorization_rules_program[writable]bid_ta[writable, optional]bid_token_record[optional]authorization_rules[]token_program[]associated_token_program[]system_program[]marketplace_program[]escrow_program[signer, optional]cosigner[optional]mint_proof[writable]rent_destination
Implementations§
Source§impl<'a, 'b> TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> TakeBidLegacyCpiBuilder<'a, 'b>
pub fn new(program: &'b AccountInfo<'a>) -> Self
pub fn fee_vault(&mut self, fee_vault: &'b AccountInfo<'a>) -> &mut Self
pub fn seller(&mut self, seller: &'b AccountInfo<'a>) -> &mut Self
pub fn bid_state(&mut self, bid_state: &'b AccountInfo<'a>) -> &mut Self
pub fn owner(&mut self, owner: &'b AccountInfo<'a>) -> &mut Self
Sourcepub fn taker_broker(
&mut self,
taker_broker: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn taker_broker( &mut self, taker_broker: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
Sourcepub fn maker_broker(
&mut self,
maker_broker: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn maker_broker( &mut self, maker_broker: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
Sourcepub fn whitelist(&mut self, whitelist: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn whitelist(&mut self, whitelist: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
pub fn seller_ta(&mut self, seller_ta: &'b AccountInfo<'a>) -> &mut Self
pub fn mint(&mut self, mint: &'b AccountInfo<'a>) -> &mut Self
pub fn metadata(&mut self, metadata: &'b AccountInfo<'a>) -> &mut Self
pub fn owner_ta(&mut self, owner_ta: &'b AccountInfo<'a>) -> &mut Self
pub fn edition(&mut self, edition: &'b AccountInfo<'a>) -> &mut Self
Sourcepub fn seller_token_record(
&mut self,
seller_token_record: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn seller_token_record( &mut self, seller_token_record: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
Sourcepub fn owner_token_record(
&mut self,
owner_token_record: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn owner_token_record( &mut self, owner_token_record: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
Sourcepub fn token_metadata_program(
&mut self,
token_metadata_program: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn token_metadata_program( &mut self, token_metadata_program: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
Sourcepub fn sysvar_instructions(
&mut self,
sysvar_instructions: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn sysvar_instructions( &mut self, sysvar_instructions: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
[optional account]
Sourcepub fn bid_ta(&mut self, bid_ta: &'b AccountInfo<'a>) -> &mut Self
pub fn bid_ta(&mut self, bid_ta: &'b AccountInfo<'a>) -> &mut Self
Implicitly checked via transfer. Will fail if wrong account
Sourcepub fn bid_token_record(
&mut self,
bid_token_record: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn bid_token_record( &mut self, bid_token_record: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
[optional account]
pub fn token_program(&mut self, token_program: &'b AccountInfo<'a>) -> &mut Self
pub fn associated_token_program( &mut self, associated_token_program: &'b AccountInfo<'a>, ) -> &mut Self
pub fn system_program( &mut self, system_program: &'b AccountInfo<'a>, ) -> &mut Self
pub fn marketplace_program( &mut self, marketplace_program: &'b AccountInfo<'a>, ) -> &mut Self
pub fn escrow_program( &mut self, escrow_program: &'b AccountInfo<'a>, ) -> &mut Self
Sourcepub fn cosigner(&mut self, cosigner: Option<&'b AccountInfo<'a>>) -> &mut Self
pub fn cosigner(&mut self, cosigner: Option<&'b AccountInfo<'a>>) -> &mut Self
[optional account]
Sourcepub fn mint_proof(
&mut self,
mint_proof: Option<&'b AccountInfo<'a>>,
) -> &mut Self
pub fn mint_proof( &mut self, mint_proof: Option<&'b AccountInfo<'a>>, ) -> &mut Self
[optional account]
intentionally not deserializing, it would be dummy in the case of VOC/FVC based verification
pub fn rent_destination( &mut self, rent_destination: &'b AccountInfo<'a>, ) -> &mut Self
pub fn min_amount(&mut self, min_amount: u64) -> &mut Self
Sourcepub fn optional_royalty_pct(&mut self, optional_royalty_pct: u16) -> &mut Self
pub fn optional_royalty_pct(&mut self, optional_royalty_pct: u16) -> &mut Self
[optional argument]
Sourcepub fn rules_acc_present(&mut self, rules_acc_present: bool) -> &mut Self
pub fn rules_acc_present(&mut self, rules_acc_present: bool) -> &mut Self
[optional argument, defaults to 'false']
[optional argument]
Sourcepub fn add_remaining_account(
&mut self,
account: &'b AccountInfo<'a>,
is_writable: bool,
is_signer: bool,
) -> &mut Self
pub fn add_remaining_account( &mut self, account: &'b AccountInfo<'a>, is_writable: bool, is_signer: bool, ) -> &mut Self
Add an additional account to the instruction.
Sourcepub fn add_remaining_accounts(
&mut self,
accounts: &[(&'b AccountInfo<'a>, bool, bool)],
) -> &mut Self
pub fn add_remaining_accounts( &mut self, accounts: &[(&'b AccountInfo<'a>, bool, bool)], ) -> &mut Self
Add additional accounts to the instruction.
Each account is represented by a tuple of the AccountInfo, a bool indicating whether the account is writable or not,
and a bool indicating whether the account is a signer or not.
pub fn invoke(&self) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
Trait Implementations§
Source§impl<'a, 'b> Clone for TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> Clone for TakeBidLegacyCpiBuilder<'a, 'b>
Source§fn clone(&self) -> TakeBidLegacyCpiBuilder<'a, 'b>
fn clone(&self) -> TakeBidLegacyCpiBuilder<'a, 'b>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<'a, 'b> Freeze for TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> !RefUnwindSafe for TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> !Send for TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> !Sync for TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> Unpin for TakeBidLegacyCpiBuilder<'a, 'b>
impl<'a, 'b> !UnwindSafe for TakeBidLegacyCpiBuilder<'a, 'b>
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
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>
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>
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