/** * 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 EMPTY_CONFIDENTIAL_TRANSFER_ACCOUNT_DISCRIMINATOR = 27; export declare function getEmptyConfidentialTransferAccountDiscriminatorBytes(): ReadonlyUint8Array; export declare const EMPTY_CONFIDENTIAL_TRANSFER_ACCOUNT_CONFIDENTIAL_TRANSFER_DISCRIMINATOR = 4; export declare function getEmptyConfidentialTransferAccountConfidentialTransferDiscriminatorBytes(): ReadonlyUint8Array; export type EmptyConfidentialTransferAccountInstruction = string, TAccountInstructionsSysvarOrContextState extends string | AccountMeta = 'Sysvar1nstructions1111111111111111111111111', TAccountRecord extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountToken extends string ? WritableAccount : TAccountToken, TAccountInstructionsSysvarOrContextState extends string ? ReadonlyAccount : TAccountInstructionsSysvarOrContextState, TAccountRecord extends string ? ReadonlyAccount : TAccountRecord, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type EmptyConfidentialTransferAccountInstructionData = { discriminator: number; confidentialTransferDiscriminator: number; /** * Relative location of the `ProofInstruction::VerifyCloseAccount` * instruction to the `EmptyAccount` instruction in the transaction. If * the offset is `0`, then use a context state account for the proof. */ proofInstructionOffset: number; }; export type EmptyConfidentialTransferAccountInstructionDataArgs = { /** * Relative location of the `ProofInstruction::VerifyCloseAccount` * instruction to the `EmptyAccount` instruction in the transaction. If * the offset is `0`, then use a context state account for the proof. */ proofInstructionOffset: number; }; export declare function getEmptyConfidentialTransferAccountInstructionDataEncoder(): FixedSizeEncoder; export declare function getEmptyConfidentialTransferAccountInstructionDataDecoder(): FixedSizeDecoder; export declare function getEmptyConfidentialTransferAccountInstructionDataCodec(): FixedSizeCodec; export type EmptyConfidentialTransferAccountInput = { /** The SPL Token account. */ token: Address; /** * Instructions sysvar if `VerifyZeroCiphertext` is included in * the same transaction or context state account if * `VerifyZeroCiphertext` is pre-verified into a context state * account. */ instructionsSysvarOrContextState?: Address; /** (Optional) Record account if the accompanying proof is to be read from a record account. */ record?: Address; /** The source account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; proofInstructionOffset: EmptyConfidentialTransferAccountInstructionDataArgs['proofInstructionOffset']; multiSigners?: Array; }; export declare function getEmptyConfidentialTransferAccountInstruction(input: EmptyConfidentialTransferAccountInput, config?: { programAddress?: TProgramAddress; }): EmptyConfidentialTransferAccountInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedEmptyConfidentialTransferAccountInstruction = { programAddress: Address; accounts: { /** The SPL Token account. */ token: TAccountMetas[0]; /** * Instructions sysvar if `VerifyZeroCiphertext` is included in * the same transaction or context state account if * `VerifyZeroCiphertext` is pre-verified into a context state * account. */ instructionsSysvarOrContextState: TAccountMetas[1]; /** (Optional) Record account if the accompanying proof is to be read from a record account. */ record?: TAccountMetas[2] | undefined; /** The source account's owner/delegate or its multisignature account. */ authority: TAccountMetas[3]; }; data: EmptyConfidentialTransferAccountInstructionData; }; export declare function parseEmptyConfidentialTransferAccountInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedEmptyConfidentialTransferAccountInstruction; //# sourceMappingURL=emptyConfidentialTransferAccount.d.ts.map