zircon-sdk
Advanced tools
Comparing version 1.0.11-rc-92 to 1.0.11-rc-94
@@ -9,2 +9,3 @@ export * from './token'; | ||
export * from './library'; | ||
export * from './library-bsc'; | ||
export * from './fractions'; |
@@ -10,2 +10,6 @@ import JSBI from 'jsbi'; | ||
export declare abstract class Library { | ||
static getKX(k: JSBI, price: JSBI, decimals: Decimals): JSBI; | ||
static getP3x(adjVAB: JSBI, reserve0: JSBI, reserve1: JSBI, decimals: Decimals): JSBI; | ||
static getPrice(decimals: Decimals, reserve0: JSBI, reserve1: JSBI): JSBI; | ||
static getAvgPrice(pylonInfo: PylonInfo, currentFloatAccumulator: JSBI, blockTimestamp: JSBI, decimals: Decimals, debug: boolean): JSBI; | ||
static getFTVForX(x: JSBI, p2x: JSBI, p2y: JSBI, reserve0: JSBI, reserve1: JSBI, adjVAB: JSBI, decimals: Decimals, debug: boolean): { | ||
@@ -12,0 +16,0 @@ ftv: JSBI; |
@@ -5,3 +5,3 @@ import { TokenAmount } from './fractions/tokenAmount'; | ||
import { Token } from './token'; | ||
import { Pair } from '../entities'; | ||
import { Library, Pair } from '../entities'; | ||
import { PylonFactory } from 'entities/pylonFactory'; | ||
@@ -15,2 +15,3 @@ import { BurnAsyncParams, BurnParams, Decimals, HealthFactorParams, MintAsyncParams, MintSyncParams, PairInfo, PylonInfo } from 'interfaces/pylonInterface'; | ||
readonly address: string; | ||
getLibrary(): typeof Library; | ||
static getAddress(tokenA: Token, tokenB: Token): string; | ||
@@ -17,0 +18,0 @@ static getMigratedAddress(tokenA: Token, tokenB: Token, address: string, bytecode: string): string; |
@@ -38,2 +38,3 @@ import { TokenAmount } from 'entities'; | ||
anchor: BigintIsh; | ||
priceMultiplier: BigintIsh; | ||
} | ||
@@ -40,0 +41,0 @@ export interface PylonInfo { |
@@ -48,4 +48,5 @@ export interface TestInput { | ||
float: string; | ||
priceMultiplier: string; | ||
}; | ||
} | ||
export declare const CASES: TestInput[]; |
{ | ||
"name": "zircon-sdk", | ||
"license": "MIT", | ||
"version": "1.0.11-rc-92", | ||
"version": "1.0.11-rc-94", | ||
"description": "The Pylon SDK for Zircon Finance Platform.", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
2836387
34
18759