/** * 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 CONFIDENTIAL_DEPOSIT_DISCRIMINATOR = 27; export declare function getConfidentialDepositDiscriminatorBytes(): ReadonlyUint8Array; export declare const CONFIDENTIAL_DEPOSIT_CONFIDENTIAL_TRANSFER_DISCRIMINATOR = 5; export declare function getConfidentialDepositConfidentialTransferDiscriminatorBytes(): ReadonlyUint8Array; export type ConfidentialDepositInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountToken extends string ? WritableAccount : TAccountToken, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type ConfidentialDepositInstructionData = { discriminator: number; confidentialTransferDiscriminator: number; /** The amount of tokens to deposit. */ amount: bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export type ConfidentialDepositInstructionDataArgs = { /** The amount of tokens to deposit. */ amount: number | bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; }; export declare function getConfidentialDepositInstructionDataEncoder(): FixedSizeEncoder; export declare function getConfidentialDepositInstructionDataDecoder(): FixedSizeDecoder; export declare function getConfidentialDepositInstructionDataCodec(): FixedSizeCodec; export type ConfidentialDepositInput = { /** The SPL Token account. */ token: Address; /** The corresponding SPL Token mint. */ mint: Address; /** The source account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; amount: ConfidentialDepositInstructionDataArgs['amount']; decimals: ConfidentialDepositInstructionDataArgs['decimals']; multiSigners?: Array; }; export declare function getConfidentialDepositInstruction(input: ConfidentialDepositInput, config?: { programAddress?: TProgramAddress; }): ConfidentialDepositInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedConfidentialDepositInstruction = { programAddress: Address; accounts: { /** The SPL Token account. */ token: TAccountMetas[0]; /** The corresponding SPL Token mint. */ mint: TAccountMetas[1]; /** The source account's owner/delegate or its multisignature account. */ authority: TAccountMetas[2]; }; data: ConfidentialDepositInstructionData; }; export declare function parseConfidentialDepositInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedConfidentialDepositInstruction; //# sourceMappingURL=confidentialDeposit.d.ts.map