/** * 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 SET_TRANSFER_FEE_DISCRIMINATOR = 26; export declare function getSetTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export declare const SET_TRANSFER_FEE_TRANSFER_FEE_DISCRIMINATOR = 5; export declare function getSetTransferFeeTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export type SetTransferFeeInstruction = string, TAccountTransferFeeConfigAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountTransferFeeConfigAuthority extends string ? ReadonlyAccount : TAccountTransferFeeConfigAuthority, ...TRemainingAccounts ]>; export type SetTransferFeeInstructionData = { discriminator: number; transferFeeDiscriminator: number; /** 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 SetTransferFeeInstructionDataArgs = { /** 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 getSetTransferFeeInstructionDataEncoder(): FixedSizeEncoder; export declare function getSetTransferFeeInstructionDataDecoder(): FixedSizeDecoder; export declare function getSetTransferFeeInstructionDataCodec(): FixedSizeCodec; export type SetTransferFeeInput = { /** The mint. */ mint: Address; /** The mint's fee account owner or its multisignature account. */ transferFeeConfigAuthority: Address | TransactionSigner; transferFeeBasisPoints: SetTransferFeeInstructionDataArgs['transferFeeBasisPoints']; maximumFee: SetTransferFeeInstructionDataArgs['maximumFee']; multiSigners?: Array; }; export declare function getSetTransferFeeInstruction(input: SetTransferFeeInput, config?: { programAddress?: TProgramAddress; }): SetTransferFeeInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountTransferFeeConfigAuthority>; export type ParsedSetTransferFeeInstruction = { programAddress: Address; accounts: { /** The mint. */ mint: TAccountMetas[0]; /** The mint's fee account owner or its multisignature account. */ transferFeeConfigAuthority: TAccountMetas[1]; }; data: SetTransferFeeInstructionData; }; export declare function parseSetTransferFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedSetTransferFeeInstruction; //# sourceMappingURL=setTransferFee.d.ts.map