UNPKG

hyjs-test

Version:
23 lines 1.15 kB
import { BundleItem, Config, MessageItem, HMInfo, HyMatrixBase, SendMessageParams, Response, HMNodeMap, HMNode, MessageItemMap } from './types'; export * from './types'; declare class HyMatrix extends HyMatrixBase { constructor(config?: Config); private readonly _apiHost; private readonly _config; info(): Promise<HMInfo>; getResult(msgId: string): Promise<MessageItem>; getResults(processId: string, limit: number): Promise<MessageItemMap>; getMessage(msgId: string): Promise<BundleItem>; getMessageByNonce(processId: string, nonce: number): Promise<BundleItem>; getAssignByNonce(processId: string, nonce: number): Promise<BundleItem>; getAssignByMessage(msgId: string): Promise<BundleItem>; getNodes(): Promise<HMNodeMap>; getNode(accid?: string): Promise<HMNode>; getNodesByProcess(processId: string): Promise<HMNode[]>; getProcesses(accid?: string): Promise<string[]>; balanceOf(accid?: string): Promise<string>; stakeOf(accid?: string): Promise<string>; sendMessage(params: SendMessageParams): Promise<Response>; } export default HyMatrix; //# sourceMappingURL=index.d.ts.map