hyjs-test
Version:
first hymatrix-js sdk
18 lines • 1.61 kB
TypeScript
import { AxiosRequestConfig, AxiosResponse } from 'axios';
import { MessageItem, BundleItem, ResponseResult, HMInfo, HMNodeMap, HMNode, MessageItemMap } from '../types/index';
export declare const sendRequest: (config: AxiosRequestConfig) => Promise<AxiosResponse>;
export declare const getInfo: (apiHost: string) => Promise<HMInfo>;
export declare const getResult: (apiHost: string, msgId: string) => Promise<MessageItem>;
export declare const getResults: (apiHost: string, processId: string, limit: number) => Promise<MessageItemMap>;
export declare const getMessage: (apiHost: string, msgId: string) => Promise<BundleItem>;
export declare const getMessageByNonce: (apiHost: string, processId: string, nonce: number) => Promise<BundleItem>;
export declare const getAssignByNonce: (apiHost: string, processId: string, nonce: number) => Promise<BundleItem>;
export declare const getAssignByMessage: (apiHost: string, msgId: string) => Promise<BundleItem>;
export declare const getNodes: (apiHost: string) => Promise<HMNodeMap>;
export declare const getNode: (apiHost: string, accid: string) => Promise<HMNode>;
export declare const getNodesByProcess: (apiHost: string, processId: string) => Promise<HMNode[]>;
export declare const getProcesses: (apiHost: string, accid: string) => Promise<string[]>;
export declare const getBalanceOfByAccid: (apiHost: string, accid: string) => Promise<string>;
export declare const getStakeOfByAccid: (apiHost: string, accid: string) => Promise<string>;
export declare const send: (apiHost: string, data: ArrayBuffer) => Promise<ResponseResult>;
//# sourceMappingURL=api.d.ts.map