*Move to use @lumeweb/relay-types
This commit is contained in:
parent
ac53e5833a
commit
951a7e3426
|
@ -8,7 +8,7 @@
|
|||
"build": "rimraf dist && tsc"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@lumeweb/relay": "https://github.com/LumeWeb/relay.git",
|
||||
"@lumeweb/relay-types": "https://github.com/LumeWeb/relay-types.git",
|
||||
"@types/json-stable-stringify": "^1.0.34",
|
||||
"@types/node": "^18.0.0",
|
||||
"prettier": "^2.7.1",
|
||||
|
|
|
@ -4,7 +4,7 @@ import { Buffer } from "buffer";
|
|||
import { isPromise } from "../util.js";
|
||||
import RpcNetwork from "../network.js";
|
||||
import { RpcQueryOptions } from "../types.js";
|
||||
import type { RPCRequest, RPCResponse } from "@lumeweb/relay";
|
||||
import type { RPCRequest, RPCResponse } from "@lumeweb/relay-types";
|
||||
|
||||
export default abstract class RpcQueryBase {
|
||||
protected _network: RpcNetwork;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import RpcQueryBase from "./base.js";
|
||||
import RpcNetwork from "../network.js";
|
||||
import type { RPCRequest } from "@lumeweb/relay";
|
||||
import type { RPCRequest } from "@lumeweb/relay-types";
|
||||
import { RpcQueryOptions } from "../types.js";
|
||||
import type { Buffer } from "buffer";
|
||||
|
||||
|
|
|
@ -3,8 +3,7 @@ import { Buffer } from "buffer";
|
|||
import { isPromise } from "../util.js";
|
||||
import { clearTimeout, setTimeout } from "timers";
|
||||
import { pack, unpack } from "msgpackr";
|
||||
import type { RPCRequest } from "@lumeweb/relay";
|
||||
import { RPCResponse } from "@lumeweb/relay";
|
||||
import type { RPCRequest, RPCResponse } from "@lumeweb/relay-types";
|
||||
import RpcNetwork from "../network.js";
|
||||
import { StreamingRpcQueryOptions } from "../types.js";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import RpcQueryBase from "./base.js";
|
||||
import { flatten } from "../util.js";
|
||||
import { Buffer } from "buffer";
|
||||
import type { RPCResponse } from "@lumeweb/relay";
|
||||
import type { RPCResponse } from "@lumeweb/relay-types";
|
||||
import { blake2b } from "libskynet";
|
||||
import { ERR_MAX_TRIES_HIT } from "../error.js";
|
||||
|
||||
|
|
Loading…
Reference in New Issue