/** * 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'; import { type DecryptableBalance, type DecryptableBalanceArgs } from '../types'; export declare const APPLY_CONFIDENTIAL_PENDING_BALANCE_DISCRIMINATOR = 27; export declare function getApplyConfidentialPendingBalanceDiscriminatorBytes(): ReadonlyUint8Array; export declare const APPLY_CONFIDENTIAL_PENDING_BALANCE_CONFIDENTIAL_TRANSFER_DISCRIMINATOR = 8; export declare function getApplyConfidentialPendingBalanceConfidentialTransferDiscriminatorBytes(): ReadonlyUint8Array; export type ApplyConfidentialPendingBalanceInstruction = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountToken extends string ? WritableAccount : TAccountToken, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type ApplyConfidentialPendingBalanceInstructionData = { discriminator: number; confidentialTransferDiscriminator: number; /** * The expected number of pending balance credits since the last successful * `ApplyPendingBalance` instruction */ expectedPendingBalanceCreditCounter: bigint; /** * The new decryptable balance if the pending balance is applied * successfully */ newDecryptableAvailableBalance: DecryptableBalance; }; export type ApplyConfidentialPendingBalanceInstructionDataArgs = { /** * The expected number of pending balance credits since the last successful * `ApplyPendingBalance` instruction */ expectedPendingBalanceCreditCounter: number | bigint; /** * The new decryptable balance if the pending balance is applied * successfully */ newDecryptableAvailableBalance: DecryptableBalanceArgs; }; export declare function getApplyConfidentialPendingBalanceInstructionDataEncoder(): FixedSizeEncoder; export declare function getApplyConfidentialPendingBalanceInstructionDataDecoder(): FixedSizeDecoder; export declare function getApplyConfidentialPendingBalanceInstructionDataCodec(): FixedSizeCodec; export type ApplyConfidentialPendingBalanceInput = { /** The SPL Token account. */ token: Address; /** The source account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; expectedPendingBalanceCreditCounter: ApplyConfidentialPendingBalanceInstructionDataArgs['expectedPendingBalanceCreditCounter']; newDecryptableAvailableBalance: ApplyConfidentialPendingBalanceInstructionDataArgs['newDecryptableAvailableBalance']; multiSigners?: Array; }; export declare function getApplyConfidentialPendingBalanceInstruction(input: ApplyConfidentialPendingBalanceInput, config?: { programAddress?: TProgramAddress; }): ApplyConfidentialPendingBalanceInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedApplyConfidentialPendingBalanceInstruction = { programAddress: Address; accounts: { /** The SPL Token account. */ token: TAccountMetas[0]; /** The source account's owner/delegate or its multisignature account. */ authority: TAccountMetas[1]; }; data: ApplyConfidentialPendingBalanceInstructionData; }; export declare function parseApplyConfidentialPendingBalanceInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedApplyConfidentialPendingBalanceInstruction; //# sourceMappingURL=applyConfidentialPendingBalance.d.ts.map