UNPKG

@ardier16/q-js-sdk

Version:

Typescript Library to interact with Q System Contracts

43 lines (42 loc) 1.61 kB
import Web3 from 'web3'; import { IFxPriceFeed } from '../../../web3-contracts/IFxPriceFeed'; import { SystemContractInstance } from '../../SystemContractInstance'; /** * IFxPrice instance to interact with IFxPrice contract. * See [onchain documentation](@system-contracts-repo/@network/IFxPriceFeed/) for more details. */ export declare class IFxPriceFeedInstance extends SystemContractInstance<IFxPriceFeed> { constructor(web3: Web3, address: string); /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#exchangerate) */ exchangeRate(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#pair) */ pair(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#basetokenaddr) */ baseTokenAddr(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#quotetokenaddr) */ quoteTokenAddr(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#decimalplaces) */ decimalPlaces(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#updatetime) */ updateTime(): Promise<string>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#getmaintainers) */ getMaintainers(): Promise<string[]>; /** * [External documentation](@system-contracts-repo/@network/IFxPriceFeed/#pricingtime) */ pricingTime(): Promise<string>; }