2022-06-27 19:51:51 +00:00
|
|
|
import RpcNetwork from "./rpcNetwork.js";
|
|
|
|
import { RPCRequest } from "./types";
|
|
|
|
export default class RpcQuery {
|
|
|
|
private _network;
|
|
|
|
private _query;
|
|
|
|
private _promise?;
|
|
|
|
private _timeoutTimer?;
|
|
|
|
private _timeout;
|
|
|
|
private _completed;
|
|
|
|
private _responses;
|
|
|
|
private _promiseResolve?;
|
2022-08-14 13:44:50 +00:00
|
|
|
private _maxTries;
|
|
|
|
private _tries;
|
2022-06-27 19:51:51 +00:00
|
|
|
constructor(network: RpcNetwork, query: RPCRequest);
|
2022-07-20 06:04:37 +00:00
|
|
|
get result(): Promise<any>;
|
2022-06-27 19:51:51 +00:00
|
|
|
private handeTimeout;
|
|
|
|
private resolve;
|
|
|
|
private init;
|
|
|
|
private queryRelay;
|
|
|
|
private checkResponses;
|
|
|
|
private retry;
|
|
|
|
}
|
|
|
|
//# sourceMappingURL=rpcQuery.d.ts.map
|