@swaptoshi/dex-module
Version:
Klayr decentralized exchange (dex) on-chain module
28 lines (27 loc) • 791 B
TypeScript
import { Int24String, Int8String } from '../int';
export interface SVGParams {
quoteToken: string;
baseToken: string;
poolAddress: Buffer;
quoteTokenSymbol: string;
baseTokenSymbol: string;
feeTier: string;
tickLower: Int24String;
tickUpper: Int24String;
tickSpacing: Int24String;
overRange: Int8String;
tokenId: string;
color0: string;
color1: string;
color2: string;
color3: string;
x1: string;
y1: string;
x2: string;
y2: string;
x3: string;
y3: string;
}
export declare function generateSVG(params: SVGParams): string;
export declare function rangeLocation(tickLower: Int24String, tickUpper: Int24String): [string, string];
export declare function isRare(tokenId: string, poolAddress: Buffer): boolean;