hermes-v2-sdk
Version:
⚒️ An SDK for building applications on top of Hermes V2
21 lines (20 loc) • 696 B
TypeScript
import { BigintIsh } from 'maia-core-sdk';
/**
* Provides information about ticks
*/
export interface TickDataProvider {
/**
* Return information corresponding to a specific tick
* @param tick the tick to load
*/
getTick(tick: number): Promise<{
liquidityNet: BigintIsh;
}>;
/**
* Return the next tick that is initialized within a single word
* @param tick The current tick
* @param lte Whether the next tick should be lte the current tick
* @param tickSpacing The tick spacing of the pool
*/
nextInitializedTickWithinOneWord(tick: number, lte: boolean, tickSpacing: number): Promise<[number, boolean]>;
}