/** * This code was AUTOGENERATED using the Codama library. * Please DO NOT EDIT THIS FILE, instead use visitors * to add features, then rerun Codama to update it. * * @see https://github.com/codama-idl/codama */ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const PERMISSIONED_BURN_CHECKED_DISCRIMINATOR = 46; export declare function getPermissionedBurnCheckedDiscriminatorBytes(): ReadonlyUint8Array; export declare const PERMISSIONED_BURN_CHECKED_PERMISSIONED_BURN_DISCRIMINATOR = 2; export declare function getPermissionedBurnCheckedPermissionedBurnDiscriminatorBytes(): ReadonlyUint8Array; export type PermissionedBurnCheckedInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountPermissionedBurnAuthority extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountAccount extends string ? WritableAccount : TAccountAccount, TAccountMint extends string ? WritableAccount : TAccountMint, TAccountPermissionedBurnAuthority extends string ? ReadonlySignerAccount & AccountSignerMeta : TAccountPermissionedBurnAuthority, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type PermissionedBurnCheckedInstructionData = { discriminator: number; permissionedBurnDiscriminator: number; /** The amount of tokens to burn. */ amount: bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export type PermissionedBurnCheckedInstructionDataArgs = { /** The amount of tokens to burn. */ amount: number | bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export declare function getPermissionedBurnCheckedInstructionDataEncoder(): FixedSizeEncoder; export declare function getPermissionedBurnCheckedInstructionDataDecoder(): FixedSizeDecoder; export declare function getPermissionedBurnCheckedInstructionDataCodec(): FixedSizeCodec; export type PermissionedBurnCheckedInput = { /** The source account to burn from. */ account: Address; /** The token mint. */ mint: Address; /** Authority configured on the mint that must sign any permissioned burn instruction. */ permissionedBurnAuthority: TransactionSigner; /** The account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; amount: PermissionedBurnCheckedInstructionDataArgs['amount']; decimals: PermissionedBurnCheckedInstructionDataArgs['decimals']; multiSigners?: Array; }; export declare function getPermissionedBurnCheckedInstruction(input: PermissionedBurnCheckedInput, config?: { programAddress?: TProgramAddress; }): PermissionedBurnCheckedInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedPermissionedBurnCheckedInstruction = { programAddress: Address; accounts: { /** The source account to burn from. */ account: TAccountMetas[0]; /** The token mint. */ mint: TAccountMetas[1]; /** Authority configured on the mint that must sign any permissioned burn instruction. */ permissionedBurnAuthority: TAccountMetas[2]; /** The account's owner/delegate or its multisignature account. */ authority: TAccountMetas[3]; }; data: PermissionedBurnCheckedInstructionData; }; export declare function parsePermissionedBurnCheckedInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedPermissionedBurnCheckedInstruction; //# sourceMappingURL=permissionedBurnChecked.d.ts.map