pub struct CreateEscrowAccountCpi<'a, 'b> {
pub __program: &'b AccountInfo<'a>,
pub escrow: &'b AccountInfo<'a>,
pub metadata: &'b AccountInfo<'a>,
pub mint: &'b AccountInfo<'a>,
pub token_account: &'b AccountInfo<'a>,
pub edition: &'b AccountInfo<'a>,
pub payer: &'b AccountInfo<'a>,
pub system_program: &'b AccountInfo<'a>,
pub sysvar_instructions: &'b AccountInfo<'a>,
pub authority: Option<&'b AccountInfo<'a>>,
}
Expand description
create_escrow_account
CPI instruction.
Fields§
§__program: &'b AccountInfo<'a>
The program to invoke.
escrow: &'b AccountInfo<'a>
Escrow account
metadata: &'b AccountInfo<'a>
Metadata account
mint: &'b AccountInfo<'a>
Mint account
token_account: &'b AccountInfo<'a>
Token account of the token
edition: &'b AccountInfo<'a>
Edition account
payer: &'b AccountInfo<'a>
Wallet paying for the transaction and new account
system_program: &'b AccountInfo<'a>
System program
sysvar_instructions: &'b AccountInfo<'a>
Instructions sysvar account
Authority/creator of the escrow account
Implementations§
source§impl<'a, 'b> CreateEscrowAccountCpi<'a, 'b>
impl<'a, 'b> CreateEscrowAccountCpi<'a, 'b>
pub fn new( program: &'b AccountInfo<'a>, accounts: CreateEscrowAccountCpiAccounts<'a, 'b> ) -> Self
pub fn invoke(&self) -> ProgramResult
pub fn invoke_with_remaining_accounts( &self, remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
pub fn invoke_signed(&self, signers_seeds: &[&[&[u8]]]) -> ProgramResult
pub fn invoke_signed_with_remaining_accounts( &self, signers_seeds: &[&[&[u8]]], remaining_accounts: &[(&'b AccountInfo<'a>, bool, bool)] ) -> ProgramResult
Auto Trait Implementations§
impl<'a, 'b> !RefUnwindSafe for CreateEscrowAccountCpi<'a, 'b>
impl<'a, 'b> !Send for CreateEscrowAccountCpi<'a, 'b>
impl<'a, 'b> !Sync for CreateEscrowAccountCpi<'a, 'b>
impl<'a, 'b> Unpin for CreateEscrowAccountCpi<'a, 'b>
impl<'a, 'b> !UnwindSafe for CreateEscrowAccountCpi<'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
Mutably borrows from an owned value. Read more