@flaunch/sdk
Version:
Flaunch SDK to easily interact with the Flaunch protocol
46 lines • 1.81 kB
TypeScript
import { type ReadContract, type Address, type Drift, type HexString } from "@delvtech/drift";
import { BidWallV1_1Abi } from "../abi/BidWallV1_1";
export type BidwallV1_1ABI = typeof BidWallV1_1Abi;
/**
* Client for interacting with the BidWall V1.1 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 ReadBidWallV1_1 {
readonly contract: ReadContract<BidwallV1_1ABI>;
/**
* 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=BidWallV1_1Client.d.ts.map