/** * 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 ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from '@solana/kit'; import { ASSOCIATED_TOKEN_PROGRAM_ADDRESS } from '../programs'; export declare const CREATE_ASSOCIATED_TOKEN_DISCRIMINATOR = 0; export declare function getCreateAssociatedTokenDiscriminatorBytes(): ReadonlyUint8Array; export type CreateAssociatedTokenInstruction = string, TAccountAta extends string | AccountMeta = string, TAccountOwner extends string | AccountMeta = string, TAccountMint extends string | AccountMeta = string, TAccountSystemProgram extends string | AccountMeta = '11111111111111111111111111111111', TAccountTokenProgram extends string | AccountMeta = 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb', TRemainingAccounts extends readonly AccountMeta[] = []> = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountPayer extends string ? WritableSignerAccount & AccountSignerMeta : TAccountPayer, TAccountAta extends string ? WritableAccount : TAccountAta, TAccountOwner extends string ? ReadonlyAccount : TAccountOwner, TAccountMint extends string ? ReadonlyAccount : TAccountMint, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, ...TRemainingAccounts ]>; export type CreateAssociatedTokenInstructionData = { discriminator: number; }; export type CreateAssociatedTokenInstructionDataArgs = {}; export declare function getCreateAssociatedTokenInstructionDataEncoder(): FixedSizeEncoder; export declare function getCreateAssociatedTokenInstructionDataDecoder(): FixedSizeDecoder; export declare function getCreateAssociatedTokenInstructionDataCodec(): FixedSizeCodec; export type CreateAssociatedTokenAsyncInput = { /** Funding account (must be a system account). */ payer: TransactionSigner; /** Associated token account address to be created. */ ata?: Address; /** Wallet address for the new associated token account. */ owner: Address; /** The token mint for the new associated token account. */ mint: Address; /** System program. */ systemProgram?: Address; /** SPL Token program. */ tokenProgram?: Address; }; export declare function getCreateAssociatedTokenInstructionAsync(input: CreateAssociatedTokenAsyncInput, config?: { programAddress?: TProgramAddress; }): Promise>; export type CreateAssociatedTokenInput = { /** Funding account (must be a system account). */ payer: TransactionSigner; /** Associated token account address to be created. */ ata: Address; /** Wallet address for the new associated token account. */ owner: Address; /** The token mint for the new associated token account. */ mint: Address; /** System program. */ systemProgram?: Address; /** SPL Token program. */ tokenProgram?: Address; }; export declare function getCreateAssociatedTokenInstruction(input: CreateAssociatedTokenInput, config?: { programAddress?: TProgramAddress; }): CreateAssociatedTokenInstruction; export type ParsedCreateAssociatedTokenInstruction = { programAddress: Address; accounts: { /** Funding account (must be a system account). */ payer: TAccountMetas[0]; /** Associated token account address to be created. */ ata: TAccountMetas[1]; /** Wallet address for the new associated token account. */ owner: TAccountMetas[2]; /** The token mint for the new associated token account. */ mint: TAccountMetas[3]; /** System program. */ systemProgram: TAccountMetas[4]; /** SPL Token program. */ tokenProgram: TAccountMetas[5]; }; data: CreateAssociatedTokenInstructionData; }; export declare function parseCreateAssociatedTokenInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedCreateAssociatedTokenInstruction; //# sourceMappingURL=createAssociatedToken.d.ts.map