*Update dist
This commit is contained in:
parent
7f6bd96b33
commit
d3ee633a5c
|
@ -60,14 +60,16 @@ export declare abstract class RpcQueryBase {
|
|||
run(): this;
|
||||
}
|
||||
export declare class SimpleRpcQuery extends RpcQueryBase {
|
||||
private _relay;
|
||||
constructor(
|
||||
network: RpcNetwork,
|
||||
relay: string | Buffer,
|
||||
query: RPCRequest,
|
||||
options: RpcQueryOptions
|
||||
);
|
||||
run(): this;
|
||||
}
|
||||
export declare class StreamingRpcQuery extends RpcQueryBase {
|
||||
export declare class StreamingRpcQuery extends SimpleRpcQuery {
|
||||
protected _options: StreamingRpcQueryOptions;
|
||||
constructor(
|
||||
network: RpcNetwork,
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAsBhC,qBAAa,UAAU;IACrB,OAAO,CAAC,YAAY,CAAuB;IAC3C,OAAO,CAAC,SAAS,CAAgB;IACjC,OAAO,CAAC,YAAY,CAAgB;IACpC,OAAO,CAAC,IAAI,CAAU;gBAEV,GAAG,GAAE,OAAc;IAI/B,OAAO,CAAC,UAAU,CAAa;IAE/B,IAAI,SAAS,IAAI,MAAM,CAEtB;IAED,IAAI,KAAK,IAAI,OAAO,CAAC,QAAQ,CAAC,CAc7B;IAED,OAAO,CAAC,MAAM,CAAC,UAAU;IAQlB,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAM9B,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAMjC,WAAW,IAAI,IAAI;IAInB,WAAW,CAChB,MA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EAAE,wBAAwB;IAO5B,GAAG,IAAI,IAAI;CAgBnB;AAED,qBAAa,cAAe,SAAQ,YAAY;gBAE5C,OAAO,EAAE,UAAU,EACnB,KAAK,EAAE,UAAU,EACjB,OAAO,GAAE,eAAoB;CAIhC"}
|
|
@ -131,15 +131,27 @@ export class RpcQueryBase {
|
|||
}
|
||||
}
|
||||
export class SimpleRpcQuery extends RpcQueryBase {
|
||||
_relay;
|
||||
constructor(network, relay, query, options) {
|
||||
super(network, query, options, "simpleQuery");
|
||||
this._relay = relay;
|
||||
}
|
||||
run() {
|
||||
this._promise = this._network.processQueue().then(() => callModule(RPC_MODULE, this._queryType, {
|
||||
relay: this._relay,
|
||||
query: this._query,
|
||||
options: this._options,
|
||||
network: this._network.networkId,
|
||||
}));
|
||||
return this;
|
||||
}
|
||||
}
|
||||
export class StreamingRpcQuery extends RpcQueryBase {
|
||||
export class StreamingRpcQuery extends SimpleRpcQuery {
|
||||
_options;
|
||||
constructor(network, relay, query, options) {
|
||||
super(network, query, options, "streamingQuery");
|
||||
super(network, relay, query, options);
|
||||
this._options = options;
|
||||
this._queryType = "streamingQuery";
|
||||
}
|
||||
run() {
|
||||
this._promise = this._network.processQueue().then(() => connectModule(RPC_MODULE, this._queryType, {
|
||||
|
|
Loading…
Reference in New Issue