Skip to main content

TokenInstruction

Trait TokenInstruction 

Source
pub trait TokenInstruction<'a> {
    // Required method
    fn emit(
        &self,
        multisig_signers: &[&'a AccountView<'a>],
        sink: &mut impl TokenSink<'a>,
    ) -> Result<(), ProgramError>;
}
Expand description

An SPL Token / Token-2022 instruction builder: something that can encode itself into a TokenSink.

multisig_signers are the signer accounts of a multisig authority (at most MAX_TOKEN_MULTISIG_SIGNERS); builders without an authority ignore the slice.

Required Methods§

Source

fn emit( &self, multisig_signers: &[&'a AccountView<'a>], sink: &mut impl TokenSink<'a>, ) -> Result<(), ProgramError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<'a, 'x> TokenInstruction<'a> for AmountToUiAmount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ApplyPendingConfidentialBalance<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ApproveChecked<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ApproveConfidentialAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for BurnChecked<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for CloseAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ConfidentialDeposit<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ConfidentialTransfer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ConfidentialTransferWithFee<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ConfidentialWithdraw<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ConfigureConfidentialAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ConfigureConfidentialAccountWithRegistry<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for CreateNativeMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for DisableConfidentialCredits<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for DisableCpiGuard<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for DisableMemoTransfer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for DisableNonConfidentialCredits<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for EmitTokenMetadata<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for EmptyConfidentialAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for EnableConfidentialCredits<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for EnableCpiGuard<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for EnableMemoTransfer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for EnableNonConfidentialCredits<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for FreezeAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for GetAccountDataSize<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for HarvestWithheldTokensToMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeAccount2<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeAccount3<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeConfidentialTransferMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeDefaultAccountState<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeGroupMemberPointer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeGroupPointer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeImmutableOwner<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeInterestBearingMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeMetadataPointer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeMintCloseAuthority<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeMultisig2<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeMultisig<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeNonTransferableMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializePausable<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializePermanentDelegate<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializePermissionedBurn<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeScaledUiAmount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeTokenGroup<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeTokenGroupMember<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeTokenMetadata<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeTransferFeeConfig<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for InitializeTransferHook<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for MintToChecked<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for Pause<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for PermissionedBurn<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for PermissionedBurnChecked<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for Reallocate<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for RemoveMetadataKey<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for Resume<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for Revoke<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for SetAuthority<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for SetTransferFee<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for SyncNative<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for ThawAccount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for TransferChecked<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for TransferCheckedWithFee<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UiAmountToAmount<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UnwrapLamports<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateConfidentialTransferMint<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateDefaultAccountState<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateGroupMemberPointer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateGroupPointer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateInterestRate<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateMetadataAuthority<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateMetadataField<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateMetadataPointer<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateScaledUiAmountMultiplier<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateTokenGroupAuthority<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateTokenGroupMaxSize<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for UpdateTransferHook<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for WithdrawExcessLamports<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for WithdrawWithheldTokensFromAccounts<'x>
where 'x: 'a,

Source§

impl<'a, 'x> TokenInstruction<'a> for WithdrawWithheldTokensFromMint<'x>
where 'x: 'a,