/** * 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 TRANSFER_CHECKED_WITH_FEE_DISCRIMINATOR = 26; export declare function getTransferCheckedWithFeeDiscriminatorBytes(): ReadonlyUint8Array; export declare const TRANSFER_CHECKED_WITH_FEE_TRANSFER_FEE_DISCRIMINATOR = 1; export declare function getTransferCheckedWithFeeTransferFeeDiscriminatorBytes(): ReadonlyUint8Array; export type TransferCheckedWithFeeInstruction = string, TAccountMint extends string | AccountMeta = string, TAccountDestination extends string | AccountMeta = string, TAccountAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountSource extends string ? WritableAccount : TAccountSource, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountDestination extends string ? WritableAccount : TAccountDestination, TAccountAuthority extends string ? ReadonlyAccount : TAccountAuthority, ...TRemainingAccounts ]>; export type TransferCheckedWithFeeInstructionData = { discriminator: number; transferFeeDiscriminator: number; /** The amount of tokens to transfer. */ amount: bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; /** * Expected fee assessed on this transfer, calculated off-chain based * on the transfer_fee_basis_points and maximum_fee of the mint. May * be 0 for a mint without a configured transfer fee. */ fee: bigint; }; export type TransferCheckedWithFeeInstructionDataArgs = { /** The amount of tokens to transfer. */ amount: number | bigint; /** Expected number of base 10 digits to the right of the decimal place. */ decimals: number; /** * Expected fee assessed on this transfer, calculated off-chain based * on the transfer_fee_basis_points and maximum_fee of the mint. May * be 0 for a mint without a configured transfer fee. */ fee: number | bigint; }; export declare function getTransferCheckedWithFeeInstructionDataEncoder(): FixedSizeEncoder; export declare function getTransferCheckedWithFeeInstructionDataDecoder(): FixedSizeDecoder; export declare function getTransferCheckedWithFeeInstructionDataCodec(): FixedSizeCodec; export type TransferCheckedWithFeeInput = { /** The source account. May include the `TransferFeeAmount` extension. */ source: Address; /** The token mint. May include the `TransferFeeConfig` extension. */ mint: Address; /** The destination account. May include the `TransferFeeAmount` extension. */ destination: Address; /** The source account's owner/delegate or its multisignature account. */ authority: Address | TransactionSigner; amount: TransferCheckedWithFeeInstructionDataArgs['amount']; decimals: TransferCheckedWithFeeInstructionDataArgs['decimals']; fee: TransferCheckedWithFeeInstructionDataArgs['fee']; multiSigners?: Array; }; export declare function getTransferCheckedWithFeeInstruction(input: TransferCheckedWithFeeInput, config?: { programAddress?: TProgramAddress; }): TransferCheckedWithFeeInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountAuthority>; export type ParsedTransferCheckedWithFeeInstruction = { programAddress: Address; accounts: { /** The source account. May include the `TransferFeeAmount` extension. */ source: TAccountMetas[0]; /** The token mint. May include the `TransferFeeConfig` extension. */ mint: TAccountMetas[1]; /** The destination account. May include the `TransferFeeAmount` extension. */ destination: TAccountMetas[2]; /** The source account's owner/delegate or its multisignature account. */ authority: TAccountMetas[3]; }; data: TransferCheckedWithFeeInstructionData; }; export declare function parseTransferCheckedWithFeeInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedTransferCheckedWithFeeInstruction; //# sourceMappingURL=transferCheckedWithFee.d.ts.map