@newfound8ion/newcoin.pools-js
Version:
js module to fetch data from the newcoin.pools smart contract
17 lines (16 loc) • 832 B
TypeScript
import { GetCurrencyStats, GetCurrencyBalance, GetTableRowsPayload, PoolPayload, WhiteListPayload } from "../interfaces";
export declare class ChainApi {
readonly nodeos_url: string;
readonly contract: string;
readonly fetch: any;
constructor(nodeos_url: string, contract: string, fetch: any);
getCurrencyStats(payload: GetCurrencyStats): Promise<any>;
getCurrencyBalance(payload: GetCurrencyBalance): Promise<any>;
getTableRows(payload: GetTableRowsPayload): Promise<any>;
getPool(opts: PoolPayload): Promise<any>;
getPoolByCode(opts: PoolPayload): Promise<any>;
getPoolByOwner(opts: PoolPayload): Promise<any>;
getPoolByDescription(opts: PoolPayload): Promise<any>;
getWhiteList(opts: WhiteListPayload): Promise<any>;
getWhiteListByUser(opts: WhiteListPayload): Promise<any>;
}