UNPKG

four-flap-meme-sdk

Version:

SDK for Flap bonding curve and four.meme TokenManager

20 lines (19 loc) 843 B
import { JsonRpcProvider } from 'ethers'; /** * Four.meme TokenManager V1 支持的链 */ export type FourChainV1 = 'BSC'; export declare class TM1 { readonly address: string; readonly provider: JsonRpcProvider; constructor(address: string, provider: JsonRpcProvider); /** * 通过链名称连接 */ static connectByChain(chain: FourChainV1, rpcUrl: string): TM1; private get c(); lastPrice(token: string): Promise<any>; purchaseToken(token: string, amount: bigint, maxFunds: bigint, origin?: bigint, to?: string): Promise<any>; purchaseTokenAMAP(token: string, funds: bigint, minAmount: bigint, origin?: bigint, to?: string): Promise<any>; saleToken(token: string, amount: bigint, origin?: bigint, from?: string, minFunds?: bigint, feeRate?: bigint, feeRecipient?: string): Promise<any>; }