Core
The core library underpins Storyhunt’s fundamental architecture and math.
Installation
npm install @storyhunt/sdk-core
Key Features
Explains Enumerations and Types.
Implement Classes and Functions.
Example Usage
Import Contracts:
import { Token, Percent } from "@storyhunt/sdk-core";
Interact with Pool:
const tokenA = new Token(1516, "0xAddressA", 18, "SYMBOLA", "TokenA"); const tokenB = new Token(1516, "0xAddressB", 18, "SYMBOLB", "TokenB");
Compute Price Ranges:
export const ALLOWED_PRICE_IMPACT_HIGH = new Percent( JSBI.BigInt(500), JSBI.BigInt(10000) );
Resources
Last updated