/** * 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 type { WhirlpoolBumps, WhirlpoolBumpsArgs } from "../types/index.js"; import { WHIRLPOOL_PROGRAM_ADDRESS } from "../programs/index.js"; export declare const INITIALIZE_POOL_DISCRIMINATOR: ReadonlyUint8Array; export declare function getInitializePoolDiscriminatorBytes(): ReadonlyUint8Array; export type InitializePoolInstruction = Instruction & InstructionWithData & InstructionWithAccounts<[ TAccountWhirlpoolsConfig extends string ? ReadonlyAccount : TAccountWhirlpoolsConfig, TAccountTokenMintA extends string ? ReadonlyAccount : TAccountTokenMintA, TAccountTokenMintB extends string ? ReadonlyAccount : TAccountTokenMintB, 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, TAccountTokenProgram extends string ? ReadonlyAccount : TAccountTokenProgram, TAccountSystemProgram extends string ? ReadonlyAccount : TAccountSystemProgram, TAccountRent extends string ? ReadonlyAccount : TAccountRent, ...TRemainingAccounts ]>; export interface InitializePoolInstructionData { discriminator: ReadonlyUint8Array; bumps: WhirlpoolBumps; tickSpacing: number; initialSqrtPrice: bigint; } export interface InitializePoolInstructionDataArgs { bumps: WhirlpoolBumpsArgs; tickSpacing: number; initialSqrtPrice: number | bigint; } export declare function getInitializePoolInstructionDataEncoder(): FixedSizeEncoder; export declare function getInitializePoolInstructionDataDecoder(): FixedSizeDecoder; export declare function getInitializePoolInstructionDataCodec(): FixedSizeCodec; export interface InitializePoolInput { whirlpoolsConfig: Address; tokenMintA: Address; tokenMintB: Address; funder: TransactionSigner; whirlpool: Address; tokenVaultA: TransactionSigner; tokenVaultB: TransactionSigner; feeTier: Address; tokenProgram?: Address; systemProgram?: Address; rent?: Address; bumps: InitializePoolInstructionDataArgs["bumps"]; tickSpacing: InitializePoolInstructionDataArgs["tickSpacing"]; initialSqrtPrice: InitializePoolInstructionDataArgs["initialSqrtPrice"]; } export declare function getInitializePoolInstruction(input: InitializePoolInput, config?: { programAddress?: TProgramAddress; }): InitializePoolInstruction; export interface ParsedInitializePoolInstruction { programAddress: Address; accounts: { whirlpoolsConfig: TAccountMetas[0]; tokenMintA: TAccountMetas[1]; tokenMintB: TAccountMetas[2]; funder: TAccountMetas[3]; whirlpool: TAccountMetas[4]; tokenVaultA: TAccountMetas[5]; tokenVaultB: TAccountMetas[6]; feeTier: TAccountMetas[7]; tokenProgram: TAccountMetas[8]; systemProgram: TAccountMetas[9]; rent: TAccountMetas[10]; }; data: InitializePoolInstructionData; } export declare function parseInitializePoolInstruction(instruction: Instruction & InstructionWithAccounts & InstructionWithData): ParsedInitializePoolInstruction; //# sourceMappingURL=initializePool.d.ts.map