/** * 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 Codec, type Decoder, type Encoder, 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_TRANSFER_FEE_CONFIG_DISCRIMINATOR = 26; export declare function getInitializeTransferFeeConfigDiscriminatorBytes(): ReadonlyUint8Array; export declare const INITIALIZE_TRANSFER_FEE_CONFIG_TRANSFER_FEE_DISCRIMINATOR = 0; export declare function getInitializeTransferFeeConfigTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export type InitializeTransferFeeConfigInstruction = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, ...TRemainingAccounts ]>; export type InitializeTransferFeeConfigInstructionData = { discriminator: number; transferFeeDiscriminator: number; /** Pubkey that may update the fees. */ transferFeeConfigAuthority: Option
; /** Withdraw instructions must be signed by this key. */ withdrawWithheldAuthority: Option
; /** Amount of transfer collected as fees, expressed as basis points of the transfer amount. */ transferFeeBasisPoints: number; /** Maximum fee assessed on transfers. */ maximumFee: bigint; }; export type InitializeTransferFeeConfigInstructionDataArgs = { /** Pubkey that may update the fees. */ transferFeeConfigAuthority: OptionOrNullable
; /** Withdraw instructions must be signed by this key. */ withdrawWithheldAuthority: OptionOrNullable
; /** Amount of transfer collected as fees, expressed as basis points of the transfer amount. */ transferFeeBasisPoints: number; /** Maximum fee assessed on transfers. */ maximumFee: number | bigint; }; export declare function getInitializeTransferFeeConfigInstructionDataEncoder(): Encoder; export declare function getInitializeTransferFeeConfigInstructionDataDecoder(): Decoder; export declare function getInitializeTransferFeeConfigInstructionDataCodec(): Codec; export type InitializeTransferFeeConfigInput = { /** The mint to initialize. */ mint: Address; transferFeeConfigAuthority: InitializeTransferFeeConfigInstructionDataArgs['transferFeeConfigAuthority']; withdrawWithheldAuthority: InitializeTransferFeeConfigInstructionDataArgs['withdrawWithheldAuthority']; transferFeeBasisPoints: InitializeTransferFeeConfigInstructionDataArgs['transferFeeBasisPoints']; maximumFee: InitializeTransferFeeConfigInstructionDataArgs['maximumFee']; }; export declare function getInitializeTransferFeeConfigInstruction(input: InitializeTransferFeeConfigInput, config?: { programAddress?: TProgramAddress; }): InitializeTransferFeeConfigInstruction; export type ParsedInitializeTransferFeeConfigInstruction = { programAddress: Address; accounts: { /** The mint to initialize. */ mint: TAccountMetas[0]; }; data: InitializeTransferFeeConfigInstructionData; }; export declare function parseInitializeTransferFeeConfigInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializeTransferFeeConfigInstruction; //# sourceMappingURL=initializeTransferFeeConfig.d.ts.map