UNPKG

@evolutionland/evolution-js

Version:

evolution evolution-js evolutionland evolution-js-sdk evolution-land metaverse

24 lines (23 loc) 1.06 kB
/** * Contains methods for constructing instances of pairs and tokens from on-chain data. */ export class Fetcher { /** * Fetch information for a given token on the given chain, using the given ethers provider. * @param chainId chain of the token * @param address address of the token on the chain * @param provider provider used to fetch the token * @param symbol optional symbol of the token * @param name optional name of the token */ static fetchTokenData(chainId: any, address: any, provider: import("@ethersproject/providers").BaseProvider | undefined, symbol: any, name: any): Promise<Token>; /** * Fetches information about a pair and constructs a pair from the given two tokens. * @param tokenA first token * @param tokenB second token * @param provider the provider to use to fetch the data */ static fetchPairData(tokenA: any, tokenB: any, provider: any): Promise<Pair>; } import { Token } from "../../libs/uniswap/entities/token"; import { Pair } from "./uniswapPair";