@gearbox-protocol/sdk 9.0.3 → 9.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cjs/dev/index.js
CHANGED
|
@@ -26,6 +26,7 @@ __reExport(dev_exports, require("./detectChain.js"), module.exports);
|
|
|
26
26
|
__reExport(dev_exports, require("./EthCallSpy.js"), module.exports);
|
|
27
27
|
__reExport(dev_exports, require("./ltUtils.js"), module.exports);
|
|
28
28
|
__reExport(dev_exports, require("./migrateFaucet.js"), module.exports);
|
|
29
|
+
__reExport(dev_exports, require("./types.js"), module.exports);
|
|
29
30
|
// Annotate the CommonJS export names for ESM import in node:
|
|
30
31
|
0 && (module.exports = {
|
|
31
32
|
...require("./AccountOpener.js"),
|
|
@@ -38,5 +39,6 @@ __reExport(dev_exports, require("./migrateFaucet.js"), module.exports);
|
|
|
38
39
|
...require("./detectChain.js"),
|
|
39
40
|
...require("./EthCallSpy.js"),
|
|
40
41
|
...require("./ltUtils.js"),
|
|
41
|
-
...require("./migrateFaucet.js")
|
|
42
|
+
...require("./migrateFaucet.js"),
|
|
43
|
+
...require("./types.js")
|
|
42
44
|
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
var types_exports = {};
|
|
16
|
+
module.exports = __toCommonJS(types_exports);
|
package/dist/esm/dev/index.js
CHANGED
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { EIP1193Parameters, Hex, HttpTransportConfig, PublicRpcSchema, RequiredBy } from "viem";
|
|
2
|
-
import type { RpcResponse } from "viem/_types/types/rpc.js";
|
|
3
2
|
import type { ILogger } from "../sdk/index.js";
|
|
3
|
+
import type { RpcResponse } from "./types.js";
|
|
4
4
|
export type EthCallMethod = Extract<PublicRpcSchema[number], {
|
|
5
5
|
Method: "eth_call";
|
|
6
6
|
}>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export type RpcSuccessResult<result> = {
|
|
2
|
+
method?: undefined;
|
|
3
|
+
result: result;
|
|
4
|
+
error?: undefined;
|
|
5
|
+
};
|
|
6
|
+
export type RpcErrorResult<error> = {
|
|
7
|
+
method?: undefined;
|
|
8
|
+
result?: undefined;
|
|
9
|
+
error: error;
|
|
10
|
+
};
|
|
11
|
+
export type RpcResponse<result = any, error = any> = {
|
|
12
|
+
jsonrpc: `${number}`;
|
|
13
|
+
id: number;
|
|
14
|
+
} & (RpcSuccessResult<result> | RpcErrorResult<error>);
|