rpc-client/dist/query/simple.d.ts

25 lines
704 B
TypeScript
Raw Normal View History

2023-03-18 16:24:07 +00:00
/// <reference types="node" />
2022-08-28 06:33:49 +00:00
import RpcNetwork from "../network.js";
2023-03-23 16:48:48 +00:00
import { ClientRPCRequest } from "@lumeweb/interface-relay";
2022-08-28 06:33:49 +00:00
import { RpcQueryOptions } from "../types.js";
2022-12-04 07:42:04 +00:00
import RpcQueryBase from "./base.js";
2022-08-28 06:33:49 +00:00
export default class SimpleRpcQuery extends RpcQueryBase {
2023-03-18 16:11:41 +00:00
protected _relay?: string | any;
2022-12-04 11:37:24 +00:00
protected _query: ClientRPCRequest;
2023-03-18 16:11:41 +00:00
constructor({
network,
relay,
query,
options,
}: {
network: RpcNetwork;
2023-03-18 16:24:07 +00:00
relay?: string | Buffer | any;
2023-03-18 16:11:41 +00:00
query: ClientRPCRequest;
options: RpcQueryOptions;
});
2022-12-04 07:42:04 +00:00
protected _run(): Promise<void>;
protected queryRelay(): Promise<any>;
protected checkResponses(): Promise<void>;
2022-08-28 06:33:49 +00:00
}
//# sourceMappingURL=simple.d.ts.map