Compare commits
No commits in common. "ebaa1cac25772e358497e435e8f25c15b76c1efd" and "1d61ec5e55a4202e4e03225d5c40c4ff13da54e4" have entirely different histories.
ebaa1cac25
...
1d61ec5e55
|
@ -14,17 +14,12 @@ export declare class RpcNetwork extends Client {
|
|||
private _networkId;
|
||||
get networkId(): number;
|
||||
get ready(): Promise<ErrTuple>;
|
||||
simpleQuery({
|
||||
relay,
|
||||
query,
|
||||
data,
|
||||
options,
|
||||
}: {
|
||||
relay?: Buffer | string;
|
||||
query: ClientRPCRequest;
|
||||
data: object | any[];
|
||||
options: RpcQueryOptions;
|
||||
}): SimpleRpcQuery;
|
||||
simpleQuery(
|
||||
relay: Buffer | string,
|
||||
query: ClientRPCRequest,
|
||||
data?: object | any[],
|
||||
options?: RpcQueryOptions
|
||||
): SimpleRpcQuery;
|
||||
}
|
||||
export declare abstract class RpcQueryBase extends Client {
|
||||
protected _promise?: Promise<any>;
|
||||
|
@ -42,7 +37,7 @@ export declare abstract class RpcQueryBase extends Client {
|
|||
run(): this;
|
||||
}
|
||||
export declare class SimpleRpcQuery extends RpcQueryBase {
|
||||
protected _relay?: string | Buffer;
|
||||
protected _relay: string | Buffer;
|
||||
constructor({
|
||||
network,
|
||||
relay,
|
||||
|
@ -50,7 +45,7 @@ export declare class SimpleRpcQuery extends RpcQueryBase {
|
|||
options,
|
||||
}: {
|
||||
network: RpcNetwork;
|
||||
relay?: string | Buffer;
|
||||
relay: string | Buffer;
|
||||
query: RPCRequest;
|
||||
options: RpcQueryOptions;
|
||||
});
|
||||
|
|
|
@ -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,EACV,UAAU,EACV,WAAW,EACX,gBAAgB,EACjB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EA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E,MAAM;IASnB,IAAI,MAAM,IAAI,OAAO,CAAC,WAAW,CAAC,CAQjC;IAEM,GAAG,IAAI,IAAI;CASnB;AAED,qBAAa,cAAe,SAAQ,YAAY;IAC9C,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;gBACtB,EACV,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,GACR,EAAE;QACD,OAAO,EAAE,UAAU,CAAC;QACpB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;QACvB,KAAK,EAAE,UAAU,CAAC;QAClB,OAAO,EAAE,eAAe,CAAC;KAC1B;IAIM,GAAG,IAAI,IAAI;CAUnB;AAED,eAAO,MAAM,YAAY,8BAA8C,CAAC"}
|
|
@ -23,7 +23,7 @@ export class RpcNetwork extends Client {
|
|||
network: this._networkId,
|
||||
});
|
||||
}
|
||||
simpleQuery({ relay, query, data = {}, options = {}, }) {
|
||||
simpleQuery(relay, query, data = {}, options = {}) {
|
||||
return new SimpleRpcQuery({
|
||||
network: this,
|
||||
relay,
|
||||
|
|
21
src/index.ts
21
src/index.ts
|
@ -37,17 +37,12 @@ export class RpcNetwork extends Client {
|
|||
network: this._networkId,
|
||||
});
|
||||
}
|
||||
public simpleQuery({
|
||||
relay,
|
||||
query,
|
||||
data = {},
|
||||
options = {},
|
||||
}: {
|
||||
relay?: Buffer | string;
|
||||
query: ClientRPCRequest;
|
||||
data: object | any[];
|
||||
options: RpcQueryOptions;
|
||||
}): SimpleRpcQuery {
|
||||
public simpleQuery(
|
||||
relay: Buffer | string,
|
||||
query: ClientRPCRequest,
|
||||
data: object | any[] = {},
|
||||
options: RpcQueryOptions = {}
|
||||
): SimpleRpcQuery {
|
||||
return new SimpleRpcQuery({
|
||||
network: this,
|
||||
relay,
|
||||
|
@ -99,7 +94,7 @@ export abstract class RpcQueryBase extends Client {
|
|||
}
|
||||
|
||||
export class SimpleRpcQuery extends RpcQueryBase {
|
||||
protected _relay?: string | Buffer;
|
||||
protected _relay: string | Buffer;
|
||||
constructor({
|
||||
network,
|
||||
relay,
|
||||
|
@ -107,7 +102,7 @@ export class SimpleRpcQuery extends RpcQueryBase {
|
|||
options,
|
||||
}: {
|
||||
network: RpcNetwork;
|
||||
relay?: string | Buffer;
|
||||
relay: string | Buffer;
|
||||
query: RPCRequest;
|
||||
options: RpcQueryOptions;
|
||||
}) {
|
||||
|
|
Loading…
Reference in New Issue