/** * 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 Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type Option, type OptionOrNullable, type ReadonlyUint8Array, type WritableAccount } from '@solana/kit'; import { TOKEN_2022_PROGRAM_ADDRESS } from '../programs'; export declare const INITIALIZE_CONFIDENTIAL_TRANSFER_FEE_DISCRIMINATOR = 37; export declare function getInitializeConfidentialTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export declare const INITIALIZE_CONFIDENTIAL_TRANSFER_FEE_CONFIDENTIAL_TRANSFER_FEE_DISCRIMINATOR = 0; export declare function getInitializeConfidentialTransferFeeConfidentialTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeConfidentialTransferFeeInstruction = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, ...TRemainingAccounts ]>; export type InitializeConfidentialTransferFeeInstructionData = { discriminator: number; confidentialTransferFeeDiscriminator: number; /** Optional authority to set the withdraw withheld authority ElGamal key */ authority: Option
; /** Withheld fees from accounts must be encrypted with this ElGamal key */ withdrawWithheldAuthorityElGamalPubkey: Option
; }; export type InitializeConfidentialTransferFeeInstructionDataArgs = { /** Optional authority to set the withdraw withheld authority ElGamal key */ authority: OptionOrNullable
; /** Withheld fees from accounts must be encrypted with this ElGamal key */ withdrawWithheldAuthorityElGamalPubkey: OptionOrNullable
; }; export declare function getInitializeConfidentialTransferFeeInstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializeConfidentialTransferFeeInstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializeConfidentialTransferFeeInstructionDataCodec(): FixedSizeCodec; export type InitializeConfidentialTransferFeeInput = { /** The SPL Token mint. */ mint: Address; authority: InitializeConfidentialTransferFeeInstructionDataArgs['authority']; withdrawWithheldAuthorityElGamalPubkey: InitializeConfidentialTransferFeeInstructionDataArgs['withdrawWithheldAuthorityElGamalPubkey']; }; export declare function getInitializeConfidentialTransferFeeInstruction(input: InitializeConfidentialTransferFeeInput, config?: { programAddress?: TProgramAddress; }): InitializeConfidentialTransferFeeInstruction; export type ParsedInitializeConfidentialTransferFeeInstruction = { programAddress: Address; accounts: { /** The SPL Token mint. */ mint: TAccountMetas[0]; }; data: InitializeConfidentialTransferFeeInstructionData; }; export declare function parseInitializeConfidentialTransferFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeConfidentialTransferFeeInstruction; //# sourceMappingURL=initializeConfidentialTransferFee.d.ts.map