UNPKG

@newfound8ion/newcoin.daos-js

Version:

JS Library to read data from newcoin.daos smart contract.

27 lines (26 loc) 1.48 kB
import { GetTableRowsPayload, DAOPayload, ProposalPayload, VotePayload, 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); getTableRows(payload: GetTableRowsPayload): Promise<any>; getDAOByID(opts: DAOPayload): Promise<any>; getDAOByOwner(opts: DAOPayload): Promise<any>; getDAOByDescription(opts: DAOPayload): Promise<any>; getDAOWhiteList(opts: WhitelistPayload): Promise<any>; getProposalByID(opts: ProposalPayload): Promise<any>; getProposalByProposer(opts: ProposalPayload): Promise<any>; getStakeProposal(opts: ProposalPayload): Promise<any>; getStakeProposalByProposer(opts: ProposalPayload): Promise<any>; getInflateProposal(opts: ProposalPayload): Promise<any>; getInflateProposalByProposer(opts: ProposalPayload): Promise<any>; getDeflateProposal(opts: ProposalPayload): Promise<any>; getDeflateProposalByProposer(opts: ProposalPayload): Promise<any>; getWhiteListProposal(opts: ProposalPayload): Promise<any>; getWhiteListProposalByProposer(opts: ProposalPayload): Promise<any>; getRemoveWhiteListProposal(opts: ProposalPayload): Promise<any>; getRemoveWhiteListProposalByProposer(opts: ProposalPayload): Promise<any>; getVote(opts: VotePayload): Promise<any>; getVoteBySHA256(opts: VotePayload): Promise<any>; }