/** * 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, AccountSignerMeta, Address, FixedSizeCodec, FixedSizeDecoder, FixedSizeEncoder, Instruction, InstructionWithAccounts, InstructionWithData, ReadonlyAccount, ReadonlyUint8Array, TransactionSigner, WritableAccount, WritableSignerAccount } from "@solana/kit"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const INITIALIZE_POOL_V2_DISCRIMINATOR: ReadonlyUint8Array; export declare function getInitializePoolV2DiscriminatorBytes(): ReadonlyUint8Array; export type InitializePoolV2Instruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpoolsConfig extends string ? ReadonlyAccount : TAccountWhirlpoolsConfig, TAccountTokenMintA extends string ? ReadonlyAccount : TAccountTokenMintA, TAccountTokenMintB extends string ? ReadonlyAccount : TAccountTokenMintB, TAccountTokenBadgeA extends string ? ReadonlyAccount : TAccountTokenBadgeA, TAccountTokenBadgeB extends string ? ReadonlyAccount : TAccountTokenBadgeB, TAccountFunder extends string ? WritableSignerAccount & AccountSignerMeta : TAccountFunder, TAccountWhirlpool extends string ? WritableAccount : TAccountWhirlpool, TAccountTokenVaultA extends string ? WritableSignerAccount & AccountSignerMeta : TAccountTokenVaultA, TAccountTokenVaultB extends string ? WritableSignerAccount & AccountSignerMeta : TAccountTokenVaultB, TAccountFeeTier extends string ? ReadonlyAccount : TAccountFeeTier, TAccountTokenProgramA extends string ? ReadonlyAccount : TAccountTokenProgramA, TAccountTokenProgramB extends string ? ReadonlyAccount : TAccountTokenProgramB, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export interface InitializePoolV2InstructionData { discriminator: ReadonlyUint8Array; tickSpacing: number; initialSqrtPrice: bigint; } export interface InitializePoolV2InstructionDataArgs { tickSpacing: number; initialSqrtPrice: number | bigint; } export declare function getInitializePoolV2InstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializePoolV2InstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializePoolV2InstructionDataCodec(): FixedSizeCodec; export interface InitializePoolV2Input { whirlpoolsConfig: Address; tokenMintA: Address; tokenMintB: Address; tokenBadgeA: Address; tokenBadgeB: Address; funder: TransactionSigner; whirlpool: Address; tokenVaultA: TransactionSigner; tokenVaultB: TransactionSigner; feeTier: Address; tokenProgramA: Address; tokenProgramB: Address; systemProgram?: Address; rent?: Address; tickSpacing: InitializePoolV2InstructionDataArgs["tickSpacing"]; initialSqrtPrice: InitializePoolV2InstructionDataArgs["initialSqrtPrice"]; } export declare function getInitializePoolV2Instruction(input: InitializePoolV2Input, config?: { programAddress?: TProgramAddress; }): InitializePoolV2Instruction; export interface ParsedInitializePoolV2Instruction { programAddress: Address; accounts: { whirlpoolsConfig: TAccountMetas[0]; tokenMintA: TAccountMetas[1]; tokenMintB: TAccountMetas[2]; tokenBadgeA: TAccountMetas[3]; tokenBadgeB: TAccountMetas[4]; funder: TAccountMetas[5]; whirlpool: TAccountMetas[6]; tokenVaultA: TAccountMetas[7]; tokenVaultB: TAccountMetas[8]; feeTier: TAccountMetas[9]; tokenProgramA: TAccountMetas[10]; tokenProgramB: TAccountMetas[11]; systemProgram: TAccountMetas[12]; rent: TAccountMetas[13]; }; data: InitializePoolV2InstructionData; } export declare function parseInitializePoolV2Instruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializePoolV2Instruction; //# sourceMappingURL=initializePoolV2.d.ts.map