UNPKG

@dahlia-labs/stableswap-sdk

Version:
27 lines 1.62 kB
import { Fraction } from "@dahlia-labs/token-utils"; import type { Multicall, ProviderOrSigner } from "@dahlia-labs/use-ethers"; import type { BigNumber, BigNumberish } from "@ethersproject/bignumber"; import JSBI from "jsbi"; import type { LPToken, LPTokenInterface } from "./generated/LPToken"; import type { Swap, SwapInterface } from "./generated/Swap"; import type { Fees } from "./index"; export declare const FEE_BASE: JSBI; export declare function getLPTokenInterface(): LPTokenInterface; export declare function getSwapInterface(): SwapInterface; export declare const lpTokenInterface: LPTokenInterface; export declare const swapInterface: SwapInterface; export declare const getLPTokenContract: (address: string, provider: ProviderOrSigner) => LPToken; export declare const getSwapContract: (address: string, provider: ProviderOrSigner) => Swap; export interface SwapStorage { swapFee: BigNumber; adminFee: BigNumber; defaultDepositFee: BigNumber; defaultWithdrawFee: BigNumber; } export declare const LPMulticall: (swapAddress: string) => Multicall<string>; export declare const ampMulticall: (swapAddress: string) => Multicall<JSBI>; export declare const pausedMulticall: (swapAddress: string) => Multicall<boolean>; export declare const feesMulticall: (swapAddress: string) => Multicall<Fees>; export declare const tokenBalanceMulticall: (swapAddress: string, index: number) => Multicall<Fraction>; export declare const calculateSwapMulticall: (swapAddress: string, fromIndex: number, toIndex: number, amountIn: BigNumberish) => Multicall<Fraction>; //# sourceMappingURL=contract.d.ts.map