UNPKG

@flaunch/sdk

Version:

Flaunch SDK to easily interact with the Flaunch protocol

46 lines 1.79 kB
import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift"; import { AnyBidWallAbi } from "../abi/AnyBidWall"; export type AnyBidWallABI = typeof AnyBidWallAbi; /** * Client for interacting with the AnyBidWall contract in read-only mode * Provides methods to query bid wall positions and pool information * Enhanced version of the V1 contract with additional features */ export declare class AnyBidWall { readonly contract: ReadContract<AnyBidWallABI>; /** * Creates a new ReadBidWallV1_1 instance * @param address - The address of the BidWall V1.1 contract * @param drift - Optional drift instance for contract interactions (creates new instance if not provided) * @throws Error if address is not provided */ constructor(address: Address, drift?: Drift); /** * Gets information about a bid wall position for a specific pool * @param poolId - The ID of the pool * @returns Promise<{amount0_: bigint, amount1_: bigint, pendingEth_: bigint}> - Position details including token amounts and pending ETH */ position({ poolId }: { poolId: HexString; }): Promise<{ amount0_: bigint; amount1_: bigint; pendingEth_: bigint; }>; /** * Gets configuration information about a pool's bid wall * @param poolId - The ID of the pool * @returns Promise<{tickLower: number, tickUpper: number}> - Pool configuration including tick range */ poolInfo({ poolId }: { poolId: HexString; }): Promise<{ tickLower: number; tickUpper: number; disabled: boolean; initialized: boolean; pendingETHFees: bigint; cumulativeSwapFees: bigint; }>; } //# sourceMappingURL=AnyBidWall.d.ts.map