/** * 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 MINT_TO_DISCRIMINATOR = 7; export declare function getMintToDiscriminatorBytes(): ReadonlyUint8Array; export type MintToInstruction = string, TAccountToken extends string | AccountMeta = string, TAccountMintAuthority extends string | AccountMeta = string, TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountMint extends string ? WritableAccount : TAccountMint, TAccountToken extends string ? WritableAccount : TAccountToken, TAccountMintAuthority extends string ? ReadonlyAccount : TAccountMintAuthority, ...TRemainingAccounts ]>; export type MintToInstructionData = { discriminator: number; /** The amount of new tokens to mint. */ amount: bigint; }; export type MintToInstructionDataArgs = { /** The amount of new tokens to mint. */ amount: number | bigint; }; export declare function getMintToInstructionDataEncoder(): FixedSizeEncoder; export declare function getMintToInstructionDataDecoder(): FixedSizeDecoder; export declare function getMintToInstructionDataCodec(): FixedSizeCodec; export type MintToInput = { /** The mint account. */ mint: Address; /** The account to mint tokens to. */ token: Address; /** The mint's minting authority or its multisignature account. */ mintAuthority: Address | TransactionSigner; amount: MintToInstructionDataArgs['amount']; multiSigners?: Array; }; export declare function getMintToInstruction(input: MintToInput, config?: { programAddress?: TProgramAddress; }): MintToInstruction ? ReadonlySignerAccount & AccountSignerMeta : TAccountMintAuthority>; export type ParsedMintToInstruction = { programAddress: Address; accounts: { /** The mint account. */ mint: TAccountMetas[0]; /** The account to mint tokens to. */ token: TAccountMetas[1]; /** The mint's minting authority or its multisignature account. */ mintAuthority: TAccountMetas[2]; }; data: MintToInstructionData; }; export declare function parseMintToInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedMintToInstruction; //# sourceMappingURL=mintTo.d.ts.map