UNPKG

@devasher/kuru-sdk

Version:

Ethers v6 SDK to interact with Kuru (forked from @kuru-labs/kuru-sdk)

32 lines 1.76 kB
import { ethers } from 'ethers'; import { TransactionOptions } from 'src/types'; export declare class ParamCreator { static DEFAULT_PRICE_PRECISION_DECIMALS: number; static constructDeployMarketTransaction(signer: ethers.AbstractSigner, routerAddress: string, type: number, baseAssetAddress: string, quoteAssetAddress: string, sizePrecision: bigint, pricePrecision: bigint, tickSize: bigint, minSize: bigint, maxSize: bigint, takerFeeBps: number, makerFeeBps: number, kuruAmmSpread: bigint, txOptions?: TransactionOptions): Promise<ethers.TransactionRequest>; deployMarket(signer: ethers.AbstractSigner, routerAddress: string, type: number, baseAssetAddress: string, quoteAssetAddress: string, sizePrecision: bigint, pricePrecision: bigint, tickSize: bigint, minSize: bigint, maxSize: bigint, takerFeeBps: number, makerFeeBps: number, kuruAmmSpread: bigint, txOptions?: TransactionOptions): Promise<string>; calculatePrecisions(quote: number, base: number, maxPrice: number, minSize: number, tickSizeBps?: number): { pricePrecision: bigint; sizePrecision: bigint; tickSize: bigint; minSize: bigint; maxSize: bigint; }; getPricePrecision(currentPrice: number, maxPrice: number): { precision: number; } | { error: string; }; getSizePrecision(maxPriceInPricePrecision: bigint): { precision: number; } | { error: string; }; getMinAndMaxPrice(pricePrecision: number): { minPrice: number; maxPrice: number; }; getMaxSizeAtPrice(price: bigint, sizePrecision: bigint): bigint; calculateMarketCap(price: number, base: number, solPrice: number): string; private countDecimals; } //# sourceMappingURL=market.d.ts.map