pub struct InvokeInstruction<'info> {
pub fee_payer: Signer<'info>,
pub authority: Signer<'info>,
pub registered_program_pda: AccountInfo<'info>,
pub noop_program: UncheckedAccount<'info>,
pub account_compression_authority: UncheckedAccount<'info>,
pub account_compression_program: Program<'info, AccountCompression>,
pub sol_pool_pda: Option<AccountInfo<'info>>,
pub decompression_recipient: Option<AccountInfo<'info>>,
pub system_program: Program<'info, System>,
}
Expand description
These are the base accounts additionally Merkle tree and queue accounts are required. These additional accounts are passed as remaining accounts. 1 Merkle tree for each input compressed account one queue and Merkle tree account each for each output compressed account.
Fields§
§fee_payer: Signer<'info>
Fee payer needs to be mutable to pay rollover and protocol fees.
registered_program_pda: AccountInfo<'info>
CHECK: this account
noop_program: UncheckedAccount<'info>
CHECK: is checked when emitting the event.
CHECK: this account in account compression program. This pda is used to invoke the account compression program.
account_compression_program: Program<'info, AccountCompression>
CHECK: Account compression program is used to update state and address Merkle trees.
sol_pool_pda: Option<AccountInfo<'info>>
Sol pool pda is used to store the native sol that has been compressed. It’s only required when compressing or decompressing sol.
decompression_recipient: Option<AccountInfo<'info>>
Only needs to be provided for decompression as a recipient for the decompressed sol. Compressed sol originate from authority.
system_program: Program<'info, System>
Implementations§
Source§impl<'info> InvokeInstruction<'info>
impl<'info> InvokeInstruction<'info>
pub fn __anchor_private_gen_idl_accounts( accounts: &mut HashMap<String, IdlTypeDefinition>, defined_types: &mut HashMap<String, IdlTypeDefinition>, ) -> Vec<IdlAccountItem>
Trait Implementations§
Source§impl<'info> Accounts<'info, InvokeInstructionBumps> for InvokeInstruction<'info>where
'info: 'info,
impl<'info> Accounts<'info, InvokeInstructionBumps> for InvokeInstruction<'info>where
'info: 'info,
Source§fn try_accounts(
__program_id: &Pubkey,
__accounts: &mut &'info [AccountInfo<'info>],
__ix_data: &[u8],
__bumps: &mut InvokeInstructionBumps,
__reallocs: &mut BTreeSet<Pubkey>,
) -> Result<Self>
fn try_accounts( __program_id: &Pubkey, __accounts: &mut &'info [AccountInfo<'info>], __ix_data: &[u8], __bumps: &mut InvokeInstructionBumps, __reallocs: &mut BTreeSet<Pubkey>, ) -> Result<Self>
Mint
account from the SPL token program in a particular
field, then it should be impossible for this method to return Ok
if
any other account type is given–from the SPL token program or elsewhere. Read moreSource§impl<'info> AccountsExit<'info> for InvokeInstruction<'info>where
'info: 'info,
impl<'info> AccountsExit<'info> for InvokeInstruction<'info>where
'info: 'info,
Source§impl<'info> Bumps for InvokeInstruction<'info>where
'info: 'info,
impl<'info> Bumps for InvokeInstruction<'info>where
'info: 'info,
Source§type Bumps = InvokeInstructionBumps
type Bumps = InvokeInstructionBumps
Source§impl<'info> InvokeAccounts<'info> for InvokeInstruction<'info>
impl<'info> InvokeAccounts<'info> for InvokeInstruction<'info>
fn get_registered_program_pda(&self) -> &AccountInfo<'info>
fn get_noop_program(&self) -> &UncheckedAccount<'info>
fn get_account_compression_program(&self) -> &Program<'info, AccountCompression>
fn get_system_program(&self) -> &Program<'info, System>
fn get_sol_pool_pda(&self) -> Option<&AccountInfo<'info>>
fn get_decompression_recipient(&self) -> Option<&AccountInfo<'info>>
Source§impl<'info> SignerAccounts<'info> for InvokeInstruction<'info>
impl<'info> SignerAccounts<'info> for InvokeInstruction<'info>
fn get_fee_payer(&self) -> &Signer<'info>
Source§impl<'info> ToAccountInfos<'info> for InvokeInstruction<'info>where
'info: 'info,
impl<'info> ToAccountInfos<'info> for InvokeInstruction<'info>where
'info: 'info,
fn to_account_infos(&self) -> Vec<AccountInfo<'info>>
Source§impl<'info> ToAccountMetas for InvokeInstruction<'info>
impl<'info> ToAccountMetas for InvokeInstruction<'info>
Source§fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
fn to_account_metas(&self, is_signer: Option<bool>) -> Vec<AccountMeta>
is_signer
is given as an optional override for the signer meta field.
This covers the edge case when a program-derived-address needs to relay
a transaction from a client to another program but sign the transaction
before the relay. The client cannot mark the field as a signer, and so
we have to override the is_signer meta field given by the client.Auto Trait Implementations§
impl<'info> Freeze for InvokeInstruction<'info>
impl<'info> !RefUnwindSafe for InvokeInstruction<'info>
impl<'info> !Send for InvokeInstruction<'info>
impl<'info> !Sync for InvokeInstruction<'info>
impl<'info> Unpin for InvokeInstruction<'info>
impl<'info> !UnwindSafe for InvokeInstruction<'info>
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> 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