UNPKG

@swaptoshi/dex-module

Version:

Klayr decentralized exchange (dex) on-chain module

7 lines (6 loc) 724 B
import { TickBitmapStore } from '../../tick_bitmap'; import { Int24String, Int16String, Uint8String } from '../int'; import { ImmutableContext, MutableContext } from '../../../types'; export declare function position(tick: Int24String): [wordPos: Int16String, bitPos: Uint8String]; export declare function flipTick(tickBitmapStore: TickBitmapStore, context: MutableContext, poolAddress: Buffer, tick: Int24String, tickSpacing: Int24String, simulation?: boolean): Promise<void>; export declare function nextInitializedTickWithinOneWord(tickBitmapStore: TickBitmapStore, context: ImmutableContext, poolAddress: Buffer, tick: Int24String, tickSpacing: Int24String, lte: boolean): Promise<[next: string, initialized: boolean]>;