tenjin-cli 0.1.0-alpha.1 → 0.1.0-alpha.11
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/NOTICE.md +33 -0
- package/README.md +596 -79
- package/dist/{_esm-ZH2J4QEH.js → _esm-C5CRWCYU.js} +2 -2
- package/dist/_esm-N4KAVXQR.js +881 -0
- package/dist/buy-THMVOPUH.js +44 -0
- package/dist/ccip-RPPPKTJR.js +19 -0
- package/dist/{ccip-UCLT5VOW.js → ccip-ZGGWQN4X.js} +6 -5
- package/dist/chunk-2I4QTOLB.js +11 -0
- package/dist/chunk-2I4QTOLB.js.map +1 -0
- package/dist/chunk-2SDUV6MQ.js +352 -0
- package/dist/chunk-2SDUV6MQ.js.map +1 -0
- package/dist/chunk-3GSZUADW.js +199 -0
- package/dist/chunk-3GSZUADW.js.map +1 -0
- package/dist/{chunk-BRJHUQSY.js → chunk-47PP7TAG.js} +908 -812
- package/dist/chunk-47PP7TAG.js.map +1 -0
- package/dist/chunk-4NTZETIL.js +158 -0
- package/dist/chunk-4NTZETIL.js.map +1 -0
- package/dist/chunk-4TCU3YRD.js +130 -0
- package/dist/chunk-4TCU3YRD.js.map +1 -0
- package/dist/chunk-6BGYHARE.js +14620 -0
- package/dist/chunk-6BGYHARE.js.map +1 -0
- package/dist/chunk-6UY2UQMY.js +213 -0
- package/dist/chunk-6UY2UQMY.js.map +1 -0
- package/dist/{chunk-IPOWB3G3.js → chunk-7FK2UN2T.js} +3515 -507
- package/dist/chunk-7FK2UN2T.js.map +1 -0
- package/dist/chunk-ALUNME53.js +306 -0
- package/dist/chunk-ALUNME53.js.map +1 -0
- package/dist/{chunk-EXBMF5X7.js → chunk-CNUXRXI2.js} +526 -79
- package/dist/chunk-CNUXRXI2.js.map +1 -0
- package/dist/chunk-E6YOODH7.js +913 -0
- package/dist/chunk-E6YOODH7.js.map +1 -0
- package/dist/chunk-EDVI7RRD.js +317 -0
- package/dist/chunk-EDVI7RRD.js.map +1 -0
- package/dist/chunk-FKSAUOJU.js +137 -0
- package/dist/chunk-FKSAUOJU.js.map +1 -0
- package/dist/chunk-GKV6VZSZ.js +125 -0
- package/dist/chunk-GKV6VZSZ.js.map +1 -0
- package/dist/chunk-GUUAYR3K.js +175 -0
- package/dist/chunk-GUUAYR3K.js.map +1 -0
- package/dist/chunk-IAFYUFIC.js +1408 -0
- package/dist/chunk-IAFYUFIC.js.map +1 -0
- package/dist/chunk-IB63U6BM.js +185 -0
- package/dist/chunk-IB63U6BM.js.map +1 -0
- package/dist/chunk-IXTENA2H.js +235 -0
- package/dist/chunk-IXTENA2H.js.map +1 -0
- package/dist/chunk-JTYIX6OD.js +161 -0
- package/dist/chunk-JTYIX6OD.js.map +1 -0
- package/dist/chunk-KYQVEKP5.js +209 -0
- package/dist/chunk-KYQVEKP5.js.map +1 -0
- package/dist/chunk-KZAAWQNP.js +6199 -0
- package/dist/chunk-KZAAWQNP.js.map +1 -0
- package/dist/{chunk-T4LKNY7T.js → chunk-M2O56UK7.js} +225 -70
- package/dist/chunk-M2O56UK7.js.map +1 -0
- package/dist/chunk-MJZZTKCC.js +323 -0
- package/dist/chunk-MJZZTKCC.js.map +1 -0
- package/dist/chunk-NUF2PKJO.js +207 -0
- package/dist/chunk-NUF2PKJO.js.map +1 -0
- package/dist/chunk-O25VWJCG.js +1357 -0
- package/dist/chunk-O25VWJCG.js.map +1 -0
- package/dist/chunk-OCN27NJV.js +612 -0
- package/dist/chunk-OCN27NJV.js.map +1 -0
- package/dist/chunk-OZHJ3FLR.js +105 -0
- package/dist/chunk-OZHJ3FLR.js.map +1 -0
- package/dist/chunk-P74I3WH4.js +204 -0
- package/dist/chunk-P74I3WH4.js.map +1 -0
- package/dist/chunk-POJRB2AE.js +83 -0
- package/dist/chunk-POJRB2AE.js.map +1 -0
- package/dist/{chunk-YG2DO46P.js → chunk-PZRAAAY2.js} +107 -22
- package/dist/chunk-PZRAAAY2.js.map +1 -0
- package/dist/chunk-PZSUWDF2.js +35 -0
- package/dist/chunk-PZSUWDF2.js.map +1 -0
- package/dist/chunk-QW2Q2KAH.js +27 -0
- package/dist/chunk-QW2Q2KAH.js.map +1 -0
- package/dist/{chunk-CUWUHTIL.js → chunk-RBJPAZFI.js} +16 -202
- package/dist/chunk-RBJPAZFI.js.map +1 -0
- package/dist/chunk-RSBN67PA.js +152 -0
- package/dist/chunk-RSBN67PA.js.map +1 -0
- package/dist/chunk-S5RYMCV6.js +70 -0
- package/dist/chunk-S5RYMCV6.js.map +1 -0
- package/dist/chunk-SFGXAZ3M.js +316 -0
- package/dist/chunk-SFGXAZ3M.js.map +1 -0
- package/dist/chunk-SGK2B724.js +67 -0
- package/dist/chunk-SGK2B724.js.map +1 -0
- package/dist/chunk-TDDN5GXR.js +145 -0
- package/dist/chunk-TDDN5GXR.js.map +1 -0
- package/dist/{chunk-LPRVHM7P.js → chunk-U5S527PP.js} +1655 -114
- package/dist/chunk-U5S527PP.js.map +1 -0
- package/dist/chunk-UFPJBS4C.js +242 -0
- package/dist/chunk-UFPJBS4C.js.map +1 -0
- package/dist/chunk-UHTVXQ2O.js +140 -0
- package/dist/chunk-UHTVXQ2O.js.map +1 -0
- package/dist/chunk-UY6CGULW.js +83 -0
- package/dist/chunk-UY6CGULW.js.map +1 -0
- package/dist/chunk-VWY3U732.js +674 -0
- package/dist/chunk-VWY3U732.js.map +1 -0
- package/dist/{chunk-Q53IYV2G.js → chunk-W6R3HAAG.js} +20 -17
- package/dist/{chunk-Q53IYV2G.js.map → chunk-W6R3HAAG.js.map} +1 -1
- package/dist/chunk-XJN5WUKL.js +204 -0
- package/dist/chunk-XJN5WUKL.js.map +1 -0
- package/dist/chunk-XWHXX2BI.js +149 -0
- package/dist/chunk-XWHXX2BI.js.map +1 -0
- package/dist/{chunk-DXPYFVKG.js → chunk-Y7ERTA7D.js} +35 -15
- package/dist/chunk-Y7ERTA7D.js.map +1 -0
- package/dist/chunk-YLYINX2H.js +7806 -0
- package/dist/chunk-YLYINX2H.js.map +1 -0
- package/dist/chunk-ZE7KOO7A.js +233 -0
- package/dist/chunk-ZE7KOO7A.js.map +1 -0
- package/dist/chunk-ZQIQ55KK.js +51 -0
- package/dist/chunk-ZQIQ55KK.js.map +1 -0
- package/dist/{chunk-3IMLRUZE.js → chunk-ZXTAQYNA.js} +6 -2
- package/dist/{cli-WA65NP4Y.js → cli-Y2HBOSGK.js} +437 -175
- package/dist/cli-Y2HBOSGK.js.map +1 -0
- package/dist/config-WDGMZKHU.js +26 -0
- package/dist/config-WDGMZKHU.js.map +1 -0
- package/dist/dist-U4M6QCKE.js +2842 -0
- package/dist/dist-U4M6QCKE.js.map +1 -0
- package/dist/doctor-CSIWKWM2.js +27 -0
- package/dist/doctor-CSIWKWM2.js.map +1 -0
- package/dist/edit-E7N6F3OY.js +38 -0
- package/dist/edit-E7N6F3OY.js.map +1 -0
- package/dist/ethersCompat-Df4a6QIZ-WHYKB6HA.js +18 -0
- package/dist/ethersCompat-Df4a6QIZ-WHYKB6HA.js.map +1 -0
- package/dist/fund-OKK627GL.js +38 -0
- package/dist/fund-OKK627GL.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/inspect-573WHEV4.js +35 -0
- package/dist/inspect-573WHEV4.js.map +1 -0
- package/dist/install-SQAYMNQC.js +1134 -0
- package/dist/install-SQAYMNQC.js.map +1 -0
- package/dist/{mine.wasm-GQECMSGN.js → mine.wasm-6PIT3DK6.js} +2 -2
- package/dist/outcome-W3KYGF23.js +22 -0
- package/dist/outcome-W3KYGF23.js.map +1 -0
- package/dist/publish-N5U4XYVA.js +40 -0
- package/dist/publish-N5U4XYVA.js.map +1 -0
- package/dist/read-PJ7Z6UGF.js +158 -0
- package/dist/read-PJ7Z6UGF.js.map +1 -0
- package/dist/run-FSO3MMXN.js +16883 -0
- package/dist/run-FSO3MMXN.js.map +1 -0
- package/dist/search-ZWOP4EGK.js +23 -0
- package/dist/search-ZWOP4EGK.js.map +1 -0
- package/dist/{secp256k1-BEZS642W.js → secp256k1-XRPVBC6V.js} +5 -4
- package/dist/secp256k1-XRPVBC6V.js.map +1 -0
- package/dist/send-F34ZDXDZ.js +223 -0
- package/dist/send-F34ZDXDZ.js.map +1 -0
- package/dist/session-4N4ZT3AH.js +88 -0
- package/dist/session-4N4ZT3AH.js.map +1 -0
- package/dist/skill-heal-XBEK272G.js +85 -0
- package/dist/skill-heal-XBEK272G.js.map +1 -0
- package/dist/uninstall-BTKPHPDL.js +68 -0
- package/dist/uninstall-BTKPHPDL.js.map +1 -0
- package/dist/usdc-4VCDHFWX.js +38 -0
- package/dist/usdc-4VCDHFWX.js.map +1 -0
- package/dist/viemAdapter-By13KInL-TUQJBMHM.js +14 -0
- package/dist/viemAdapter-By13KInL-TUQJBMHM.js.map +1 -0
- package/dist/wallet-UL4P2JRO.js +42 -0
- package/dist/wallet-UL4P2JRO.js.map +1 -0
- package/dist/wallet-WJ6UP5OU.js +32 -0
- package/dist/wallet-WJ6UP5OU.js.map +1 -0
- package/docs/agent-permissions.md +294 -0
- package/package.json +25 -18
- package/skills/tenjin/SKILL.md +364 -0
- package/skills/tenjin-publish/SKILL.md +232 -0
- package/skills/tenjin-search/SKILL.md +341 -0
- package/dist/chunk-BRJHUQSY.js.map +0 -1
- package/dist/chunk-CUWUHTIL.js.map +0 -1
- package/dist/chunk-DXPYFVKG.js.map +0 -1
- package/dist/chunk-EXBMF5X7.js.map +0 -1
- package/dist/chunk-EZROUI5U.js +0 -135
- package/dist/chunk-EZROUI5U.js.map +0 -1
- package/dist/chunk-IPOWB3G3.js.map +0 -1
- package/dist/chunk-LPRVHM7P.js.map +0 -1
- package/dist/chunk-T4LKNY7T.js.map +0 -1
- package/dist/chunk-YBMMV4Y4.js +0 -51
- package/dist/chunk-YBMMV4Y4.js.map +0 -1
- package/dist/chunk-YG2DO46P.js.map +0 -1
- package/dist/chunk-ZPZFPVDN.js +0 -67
- package/dist/chunk-ZPZFPVDN.js.map +0 -1
- package/dist/cli-WA65NP4Y.js.map +0 -1
- package/dist/config-CEFTL5ZL.js +0 -164
- package/dist/config-CEFTL5ZL.js.map +0 -1
- package/dist/doctor-3QBYN46N.js +0 -338
- package/dist/doctor-3QBYN46N.js.map +0 -1
- package/dist/usdc-44R6XZF2.js +0 -18
- package/dist/wallet-ELBTBMXO.js +0 -20
- package/dist/wallet-XD576HF3.js +0 -173
- package/dist/wallet-XD576HF3.js.map +0 -1
- /package/dist/{_esm-ZH2J4QEH.js.map → _esm-C5CRWCYU.js.map} +0 -0
- /package/dist/{ccip-UCLT5VOW.js.map → _esm-N4KAVXQR.js.map} +0 -0
- /package/dist/{chunk-3IMLRUZE.js.map → buy-THMVOPUH.js.map} +0 -0
- /package/dist/{secp256k1-BEZS642W.js.map → ccip-RPPPKTJR.js.map} +0 -0
- /package/dist/{usdc-44R6XZF2.js.map → ccip-ZGGWQN4X.js.map} +0 -0
- /package/dist/{wallet-ELBTBMXO.js.map → chunk-ZXTAQYNA.js.map} +0 -0
- /package/dist/{mine.wasm-GQECMSGN.js.map → mine.wasm-6PIT3DK6.js.map} +0 -0
|
@@ -1,22 +1,10 @@
|
|
|
1
1
|
import { createRequire as __tenjinCreateRequire } from 'node:module'; const require = __tenjinCreateRequire(import.meta.url);
|
|
2
2
|
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
clean,
|
|
9
|
-
createHasher,
|
|
10
|
-
equalBytes,
|
|
11
|
-
rotlBH,
|
|
12
|
-
rotlBL,
|
|
13
|
-
rotlSH,
|
|
14
|
-
rotlSL,
|
|
15
|
-
split,
|
|
16
|
-
swap32IfBE,
|
|
17
|
-
toBytes,
|
|
18
|
-
u32
|
|
19
|
-
} from "./chunk-CUWUHTIL.js";
|
|
3
|
+
keccak_256
|
|
4
|
+
} from "./chunk-XJN5WUKL.js";
|
|
5
|
+
import {
|
|
6
|
+
equalBytes
|
|
7
|
+
} from "./chunk-RBJPAZFI.js";
|
|
20
8
|
|
|
21
9
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/isHex.js
|
|
22
10
|
function isHex(value, { strict = true } = {}) {
|
|
@@ -27,47 +15,6 @@ function isHex(value, { strict = true } = {}) {
|
|
|
27
15
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
28
16
|
}
|
|
29
17
|
|
|
30
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/concat.js
|
|
31
|
-
function concat(values) {
|
|
32
|
-
if (typeof values[0] === "string")
|
|
33
|
-
return concatHex(values);
|
|
34
|
-
return concatBytes(values);
|
|
35
|
-
}
|
|
36
|
-
function concatBytes(values) {
|
|
37
|
-
let length = 0;
|
|
38
|
-
for (const arr of values) {
|
|
39
|
-
length += arr.length;
|
|
40
|
-
}
|
|
41
|
-
const result = new Uint8Array(length);
|
|
42
|
-
let offset = 0;
|
|
43
|
-
for (const arr of values) {
|
|
44
|
-
result.set(arr, offset);
|
|
45
|
-
offset += arr.length;
|
|
46
|
-
}
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
function concatHex(values) {
|
|
50
|
-
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
54
|
-
function formatAbiItem(abiItem, { includeName = false } = {}) {
|
|
55
|
-
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
56
|
-
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
57
|
-
return `${abiItem.name}(${formatAbiParams(abiItem.inputs, { includeName })})`;
|
|
58
|
-
}
|
|
59
|
-
function formatAbiParams(params, { includeName = false } = {}) {
|
|
60
|
-
if (!params)
|
|
61
|
-
return "";
|
|
62
|
-
return params.map((param) => formatAbiParam(param, { includeName })).join(includeName ? ", " : ",");
|
|
63
|
-
}
|
|
64
|
-
function formatAbiParam(param, { includeName }) {
|
|
65
|
-
if (param.type.startsWith("tuple")) {
|
|
66
|
-
return `(${formatAbiParams(param.components, { includeName })})${param.type.slice("tuple".length)}`;
|
|
67
|
-
}
|
|
68
|
-
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
69
|
-
}
|
|
70
|
-
|
|
71
18
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/size.js
|
|
72
19
|
function size(value) {
|
|
73
20
|
if (isHex(value, { strict: false }))
|
|
@@ -83,6 +30,9 @@ var errorConfig = {
|
|
|
83
30
|
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
84
31
|
version: `viem@${version}`
|
|
85
32
|
};
|
|
33
|
+
function setErrorConfig(config) {
|
|
34
|
+
errorConfig = config;
|
|
35
|
+
}
|
|
86
36
|
var BaseError = class _BaseError extends Error {
|
|
87
37
|
constructor(shortMessage, args = {}) {
|
|
88
38
|
const details = (() => {
|
|
@@ -162,6 +112,24 @@ function walk(err, fn) {
|
|
|
162
112
|
return fn ? null : err;
|
|
163
113
|
}
|
|
164
114
|
|
|
115
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
116
|
+
function formatAbiItem(abiItem, { includeName = false } = {}) {
|
|
117
|
+
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
118
|
+
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
119
|
+
return `${abiItem.name}(${formatAbiParams(abiItem.inputs, { includeName })})`;
|
|
120
|
+
}
|
|
121
|
+
function formatAbiParams(params, { includeName = false } = {}) {
|
|
122
|
+
if (!params)
|
|
123
|
+
return "";
|
|
124
|
+
return params.map((param) => formatAbiParam(param, { includeName })).join(includeName ? ", " : ",");
|
|
125
|
+
}
|
|
126
|
+
function formatAbiParam(param, { includeName }) {
|
|
127
|
+
if (param.type.startsWith("tuple")) {
|
|
128
|
+
return `(${formatAbiParams(param.components, { includeName })})${param.type.slice("tuple".length)}`;
|
|
129
|
+
}
|
|
130
|
+
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
131
|
+
}
|
|
132
|
+
|
|
165
133
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/abi.js
|
|
166
134
|
var AbiConstructorNotFoundError = class extends BaseError {
|
|
167
135
|
constructor({ docsPath }) {
|
|
@@ -185,6 +153,17 @@ var AbiConstructorParamsNotFoundError = class extends BaseError {
|
|
|
185
153
|
});
|
|
186
154
|
}
|
|
187
155
|
};
|
|
156
|
+
var AbiDecodingDataSizeInvalidError = class extends BaseError {
|
|
157
|
+
constructor({ data, size: size4 }) {
|
|
158
|
+
super([
|
|
159
|
+
`Data size of ${size4} bytes is invalid.`,
|
|
160
|
+
"Size must be in increments of 32 bytes (size % 32 === 0)."
|
|
161
|
+
].join("\n"), {
|
|
162
|
+
metaMessages: [`Data: ${data} (${size4} bytes)`],
|
|
163
|
+
name: "AbiDecodingDataSizeInvalidError"
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
};
|
|
188
167
|
var AbiDecodingDataSizeTooSmallError = class extends BaseError {
|
|
189
168
|
constructor({ data, params, size: size4 }) {
|
|
190
169
|
super([`Data size of ${size4} bytes is too small for given parameters.`].join("\n"), {
|
|
@@ -464,74 +443,11 @@ var InvalidDefinitionTypeError = class extends BaseError {
|
|
|
464
443
|
].join("\n"), { name: "InvalidDefinitionTypeError" });
|
|
465
444
|
}
|
|
466
445
|
};
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
super(`Address "${address}" is invalid.`, {
|
|
472
|
-
metaMessages: [
|
|
473
|
-
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
474
|
-
"- Address must match its checksum counterpart."
|
|
475
|
-
],
|
|
476
|
-
name: "InvalidAddressError"
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
|
-
|
|
481
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/encoding.js
|
|
482
|
-
var IntegerOutOfRangeError = class extends BaseError {
|
|
483
|
-
constructor({ max, min, signed, size: size4, value }) {
|
|
484
|
-
super(`Number "${value}" is not in safe ${size4 ? `${size4 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
485
|
-
}
|
|
486
|
-
};
|
|
487
|
-
var InvalidBytesBooleanError = class extends BaseError {
|
|
488
|
-
constructor(bytes) {
|
|
489
|
-
super(`Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
490
|
-
name: "InvalidBytesBooleanError"
|
|
491
|
-
});
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
var InvalidHexBooleanError = class extends BaseError {
|
|
495
|
-
constructor(hex) {
|
|
496
|
-
super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
var SizeOverflowError = class extends BaseError {
|
|
500
|
-
constructor({ givenSize, maxSize }) {
|
|
501
|
-
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
502
|
-
}
|
|
503
|
-
};
|
|
504
|
-
|
|
505
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/lru.js
|
|
506
|
-
var LruMap = class extends Map {
|
|
507
|
-
constructor(size4) {
|
|
508
|
-
super();
|
|
509
|
-
Object.defineProperty(this, "maxSize", {
|
|
510
|
-
enumerable: true,
|
|
511
|
-
configurable: true,
|
|
512
|
-
writable: true,
|
|
513
|
-
value: void 0
|
|
446
|
+
var UnsupportedPackedAbiType = class extends BaseError {
|
|
447
|
+
constructor(type) {
|
|
448
|
+
super(`Type "${type}" is not supported for packed encoding.`, {
|
|
449
|
+
name: "UnsupportedPackedAbiType"
|
|
514
450
|
});
|
|
515
|
-
this.maxSize = size4;
|
|
516
|
-
}
|
|
517
|
-
get(key) {
|
|
518
|
-
const value = super.get(key);
|
|
519
|
-
if (super.has(key)) {
|
|
520
|
-
super.delete(key);
|
|
521
|
-
super.set(key, value);
|
|
522
|
-
}
|
|
523
|
-
return value;
|
|
524
|
-
}
|
|
525
|
-
set(key, value) {
|
|
526
|
-
if (super.has(key))
|
|
527
|
-
super.delete(key);
|
|
528
|
-
super.set(key, value);
|
|
529
|
-
if (this.maxSize && this.size > this.maxSize) {
|
|
530
|
-
const firstKey = super.keys().next().value;
|
|
531
|
-
if (firstKey !== void 0)
|
|
532
|
-
super.delete(firstKey);
|
|
533
|
-
}
|
|
534
|
-
return this;
|
|
535
451
|
}
|
|
536
452
|
};
|
|
537
453
|
|
|
@@ -587,6 +503,52 @@ function padBytes(bytes, { dir, size: size4 = 32 } = {}) {
|
|
|
587
503
|
return paddedBytes;
|
|
588
504
|
}
|
|
589
505
|
|
|
506
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/encoding.js
|
|
507
|
+
var IntegerOutOfRangeError = class extends BaseError {
|
|
508
|
+
constructor({ max, min, signed, size: size4, value }) {
|
|
509
|
+
super(`Number "${value}" is not in safe ${size4 ? `${size4 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
var InvalidBytesBooleanError = class extends BaseError {
|
|
513
|
+
constructor(bytes) {
|
|
514
|
+
super(`Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
515
|
+
name: "InvalidBytesBooleanError"
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
var InvalidHexBooleanError = class extends BaseError {
|
|
520
|
+
constructor(hex) {
|
|
521
|
+
super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
522
|
+
}
|
|
523
|
+
};
|
|
524
|
+
var InvalidHexValueError = class extends BaseError {
|
|
525
|
+
constructor(value) {
|
|
526
|
+
super(`Hex value "${value}" is an odd length (${value.length}). It must be an even length.`, { name: "InvalidHexValueError" });
|
|
527
|
+
}
|
|
528
|
+
};
|
|
529
|
+
var RlpDepthLimitExceededError = class extends BaseError {
|
|
530
|
+
constructor({ limit }) {
|
|
531
|
+
super(`RLP depth limit of \`${limit}\` exceeded.`, {
|
|
532
|
+
name: "RlpDepthLimitExceededError"
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
};
|
|
536
|
+
var RlpListBoundaryExceededError = class extends BaseError {
|
|
537
|
+
constructor({ consumed, declared }) {
|
|
538
|
+
super(`RLP list items consumed \`${consumed}\` bytes but the list declared a length of \`${declared}\`.`, { name: "RlpListBoundaryExceededError" });
|
|
539
|
+
}
|
|
540
|
+
};
|
|
541
|
+
var RlpTrailingBytesError = class extends BaseError {
|
|
542
|
+
constructor({ count }) {
|
|
543
|
+
super(`RLP payload encodes a single item, but \`${count}\` trailing ${count === 1 ? "byte remains" : "bytes remain"}.`, { name: "RlpTrailingBytesError" });
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
var SizeOverflowError = class extends BaseError {
|
|
547
|
+
constructor({ givenSize, maxSize }) {
|
|
548
|
+
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
549
|
+
}
|
|
550
|
+
};
|
|
551
|
+
|
|
590
552
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/trim.js
|
|
591
553
|
function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
592
554
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
@@ -606,53 +568,6 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
|
606
568
|
return data;
|
|
607
569
|
}
|
|
608
570
|
|
|
609
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
610
|
-
function assertSize(hexOrBytes, { size: size4 }) {
|
|
611
|
-
if (size(hexOrBytes) > size4)
|
|
612
|
-
throw new SizeOverflowError({
|
|
613
|
-
givenSize: size(hexOrBytes),
|
|
614
|
-
maxSize: size4
|
|
615
|
-
});
|
|
616
|
-
}
|
|
617
|
-
function hexToBigInt(hex, opts = {}) {
|
|
618
|
-
const { signed } = opts;
|
|
619
|
-
if (opts.size)
|
|
620
|
-
assertSize(hex, { size: opts.size });
|
|
621
|
-
const value = BigInt(hex);
|
|
622
|
-
if (!signed)
|
|
623
|
-
return value;
|
|
624
|
-
const size4 = (hex.length - 2) / 2;
|
|
625
|
-
const max = (1n << BigInt(size4) * 8n - 1n) - 1n;
|
|
626
|
-
if (value <= max)
|
|
627
|
-
return value;
|
|
628
|
-
return value - BigInt(`0x${"f".padStart(size4 * 2, "f")}`) - 1n;
|
|
629
|
-
}
|
|
630
|
-
function hexToBool(hex_, opts = {}) {
|
|
631
|
-
let hex = hex_;
|
|
632
|
-
if (opts.size) {
|
|
633
|
-
assertSize(hex, { size: opts.size });
|
|
634
|
-
hex = trim(hex);
|
|
635
|
-
}
|
|
636
|
-
if (trim(hex) === "0x00")
|
|
637
|
-
return false;
|
|
638
|
-
if (trim(hex) === "0x01")
|
|
639
|
-
return true;
|
|
640
|
-
throw new InvalidHexBooleanError(hex);
|
|
641
|
-
}
|
|
642
|
-
function hexToNumber(hex, opts = {}) {
|
|
643
|
-
const value = hexToBigInt(hex, opts);
|
|
644
|
-
const number = Number(value);
|
|
645
|
-
if (!Number.isSafeInteger(number))
|
|
646
|
-
throw new IntegerOutOfRangeError({
|
|
647
|
-
max: `${Number.MAX_SAFE_INTEGER}`,
|
|
648
|
-
min: `${Number.MIN_SAFE_INTEGER}`,
|
|
649
|
-
signed: opts.signed,
|
|
650
|
-
size: opts.size,
|
|
651
|
-
value: `${value}n`
|
|
652
|
-
});
|
|
653
|
-
return number;
|
|
654
|
-
}
|
|
655
|
-
|
|
656
571
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
657
572
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
658
573
|
function toHex(value, opts = {}) {
|
|
@@ -721,7 +636,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
721
636
|
|
|
722
637
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
723
638
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
724
|
-
function
|
|
639
|
+
function toBytes(value, opts = {}) {
|
|
725
640
|
if (typeof value === "number" || typeof value === "bigint")
|
|
726
641
|
return numberToBytes(value, opts);
|
|
727
642
|
if (typeof value === "boolean")
|
|
@@ -790,222 +705,129 @@ function stringToBytes(value, opts = {}) {
|
|
|
790
705
|
return bytes;
|
|
791
706
|
}
|
|
792
707
|
|
|
793
|
-
// node_modules/.pnpm
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
var SHA3_PI = [];
|
|
801
|
-
var SHA3_ROTL = [];
|
|
802
|
-
var _SHA3_IOTA = [];
|
|
803
|
-
for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
|
|
804
|
-
[x, y] = [y, (2 * x + 3 * y) % 5];
|
|
805
|
-
SHA3_PI.push(2 * (5 * y + x));
|
|
806
|
-
SHA3_ROTL.push((round + 1) * (round + 2) / 2 % 64);
|
|
807
|
-
let t = _0n;
|
|
808
|
-
for (let j = 0; j < 7; j++) {
|
|
809
|
-
R = (R << _1n ^ (R >> _7n) * _0x71n) % _256n;
|
|
810
|
-
if (R & _2n)
|
|
811
|
-
t ^= _1n << (_1n << /* @__PURE__ */ BigInt(j)) - _1n;
|
|
812
|
-
}
|
|
813
|
-
_SHA3_IOTA.push(t);
|
|
814
|
-
}
|
|
815
|
-
var IOTAS = split(_SHA3_IOTA, true);
|
|
816
|
-
var SHA3_IOTA_H = IOTAS[0];
|
|
817
|
-
var SHA3_IOTA_L = IOTAS[1];
|
|
818
|
-
var rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
|
|
819
|
-
var rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
|
|
820
|
-
function keccakP(s, rounds = 24) {
|
|
821
|
-
const B = new Uint32Array(5 * 2);
|
|
822
|
-
for (let round = 24 - rounds; round < 24; round++) {
|
|
823
|
-
for (let x = 0; x < 10; x++)
|
|
824
|
-
B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40];
|
|
825
|
-
for (let x = 0; x < 10; x += 2) {
|
|
826
|
-
const idx1 = (x + 8) % 10;
|
|
827
|
-
const idx0 = (x + 2) % 10;
|
|
828
|
-
const B0 = B[idx0];
|
|
829
|
-
const B1 = B[idx0 + 1];
|
|
830
|
-
const Th = rotlH(B0, B1, 1) ^ B[idx1];
|
|
831
|
-
const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1];
|
|
832
|
-
for (let y = 0; y < 50; y += 10) {
|
|
833
|
-
s[x + y] ^= Th;
|
|
834
|
-
s[x + y + 1] ^= Tl;
|
|
835
|
-
}
|
|
836
|
-
}
|
|
837
|
-
let curH = s[2];
|
|
838
|
-
let curL = s[3];
|
|
839
|
-
for (let t = 0; t < 24; t++) {
|
|
840
|
-
const shift = SHA3_ROTL[t];
|
|
841
|
-
const Th = rotlH(curH, curL, shift);
|
|
842
|
-
const Tl = rotlL(curH, curL, shift);
|
|
843
|
-
const PI = SHA3_PI[t];
|
|
844
|
-
curH = s[PI];
|
|
845
|
-
curL = s[PI + 1];
|
|
846
|
-
s[PI] = Th;
|
|
847
|
-
s[PI + 1] = Tl;
|
|
848
|
-
}
|
|
849
|
-
for (let y = 0; y < 50; y += 10) {
|
|
850
|
-
for (let x = 0; x < 10; x++)
|
|
851
|
-
B[x] = s[y + x];
|
|
852
|
-
for (let x = 0; x < 10; x++)
|
|
853
|
-
s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];
|
|
854
|
-
}
|
|
855
|
-
s[0] ^= SHA3_IOTA_H[round];
|
|
856
|
-
s[1] ^= SHA3_IOTA_L[round];
|
|
857
|
-
}
|
|
858
|
-
clean(B);
|
|
708
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
709
|
+
function assertSize(hexOrBytes, { size: size4 }) {
|
|
710
|
+
if (size(hexOrBytes) > size4)
|
|
711
|
+
throw new SizeOverflowError({
|
|
712
|
+
givenSize: size(hexOrBytes),
|
|
713
|
+
maxSize: size4
|
|
714
|
+
});
|
|
859
715
|
}
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
this.enableXOF = enableXOF;
|
|
873
|
-
this.rounds = rounds;
|
|
874
|
-
anumber(outputLen);
|
|
875
|
-
if (!(0 < blockLen && blockLen < 200))
|
|
876
|
-
throw new Error("only keccak-f1600 function is supported");
|
|
877
|
-
this.state = new Uint8Array(200);
|
|
878
|
-
this.state32 = u32(this.state);
|
|
879
|
-
}
|
|
880
|
-
clone() {
|
|
881
|
-
return this._cloneInto();
|
|
882
|
-
}
|
|
883
|
-
keccak() {
|
|
884
|
-
swap32IfBE(this.state32);
|
|
885
|
-
keccakP(this.state32, this.rounds);
|
|
886
|
-
swap32IfBE(this.state32);
|
|
887
|
-
this.posOut = 0;
|
|
888
|
-
this.pos = 0;
|
|
889
|
-
}
|
|
890
|
-
update(data) {
|
|
891
|
-
aexists(this);
|
|
892
|
-
data = toBytes(data);
|
|
893
|
-
abytes(data);
|
|
894
|
-
const { blockLen, state } = this;
|
|
895
|
-
const len = data.length;
|
|
896
|
-
for (let pos = 0; pos < len; ) {
|
|
897
|
-
const take = Math.min(blockLen - this.pos, len - pos);
|
|
898
|
-
for (let i = 0; i < take; i++)
|
|
899
|
-
state[this.pos++] ^= data[pos++];
|
|
900
|
-
if (this.pos === blockLen)
|
|
901
|
-
this.keccak();
|
|
902
|
-
}
|
|
903
|
-
return this;
|
|
904
|
-
}
|
|
905
|
-
finish() {
|
|
906
|
-
if (this.finished)
|
|
907
|
-
return;
|
|
908
|
-
this.finished = true;
|
|
909
|
-
const { state, suffix, pos, blockLen } = this;
|
|
910
|
-
state[pos] ^= suffix;
|
|
911
|
-
if ((suffix & 128) !== 0 && pos === blockLen - 1)
|
|
912
|
-
this.keccak();
|
|
913
|
-
state[blockLen - 1] ^= 128;
|
|
914
|
-
this.keccak();
|
|
915
|
-
}
|
|
916
|
-
writeInto(out) {
|
|
917
|
-
aexists(this, false);
|
|
918
|
-
abytes(out);
|
|
919
|
-
this.finish();
|
|
920
|
-
const bufferOut = this.state;
|
|
921
|
-
const { blockLen } = this;
|
|
922
|
-
for (let pos = 0, len = out.length; pos < len; ) {
|
|
923
|
-
if (this.posOut >= blockLen)
|
|
924
|
-
this.keccak();
|
|
925
|
-
const take = Math.min(blockLen - this.posOut, len - pos);
|
|
926
|
-
out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
|
|
927
|
-
this.posOut += take;
|
|
928
|
-
pos += take;
|
|
929
|
-
}
|
|
930
|
-
return out;
|
|
931
|
-
}
|
|
932
|
-
xofInto(out) {
|
|
933
|
-
if (!this.enableXOF)
|
|
934
|
-
throw new Error("XOF is not possible for this instance");
|
|
935
|
-
return this.writeInto(out);
|
|
936
|
-
}
|
|
937
|
-
xof(bytes) {
|
|
938
|
-
anumber(bytes);
|
|
939
|
-
return this.xofInto(new Uint8Array(bytes));
|
|
940
|
-
}
|
|
941
|
-
digestInto(out) {
|
|
942
|
-
aoutput(out, this);
|
|
943
|
-
if (this.finished)
|
|
944
|
-
throw new Error("digest() was already called");
|
|
945
|
-
this.writeInto(out);
|
|
946
|
-
this.destroy();
|
|
947
|
-
return out;
|
|
948
|
-
}
|
|
949
|
-
digest() {
|
|
950
|
-
return this.digestInto(new Uint8Array(this.outputLen));
|
|
951
|
-
}
|
|
952
|
-
destroy() {
|
|
953
|
-
this.destroyed = true;
|
|
954
|
-
clean(this.state);
|
|
955
|
-
}
|
|
956
|
-
_cloneInto(to) {
|
|
957
|
-
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
958
|
-
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
|
959
|
-
to.state32.set(this.state32);
|
|
960
|
-
to.pos = this.pos;
|
|
961
|
-
to.posOut = this.posOut;
|
|
962
|
-
to.finished = this.finished;
|
|
963
|
-
to.rounds = rounds;
|
|
964
|
-
to.suffix = suffix;
|
|
965
|
-
to.outputLen = outputLen;
|
|
966
|
-
to.enableXOF = enableXOF;
|
|
967
|
-
to.destroyed = this.destroyed;
|
|
968
|
-
return to;
|
|
969
|
-
}
|
|
970
|
-
};
|
|
971
|
-
var gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
972
|
-
var keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
|
|
973
|
-
|
|
974
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
975
|
-
function keccak256(value, to_) {
|
|
976
|
-
const to = to_ || "hex";
|
|
977
|
-
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
|
|
978
|
-
if (to === "bytes")
|
|
979
|
-
return bytes;
|
|
980
|
-
return toHex(bytes);
|
|
716
|
+
function fromHex(hex, toOrOpts) {
|
|
717
|
+
const opts = typeof toOrOpts === "string" ? { to: toOrOpts } : toOrOpts;
|
|
718
|
+
const to = opts.to;
|
|
719
|
+
if (to === "number")
|
|
720
|
+
return hexToNumber(hex, opts);
|
|
721
|
+
if (to === "bigint")
|
|
722
|
+
return hexToBigInt(hex, opts);
|
|
723
|
+
if (to === "string")
|
|
724
|
+
return hexToString(hex, opts);
|
|
725
|
+
if (to === "boolean")
|
|
726
|
+
return hexToBool(hex, opts);
|
|
727
|
+
return hexToBytes(hex, opts);
|
|
981
728
|
}
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
const
|
|
990
|
-
const
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
729
|
+
function hexToBigInt(hex, opts = {}) {
|
|
730
|
+
const { signed } = opts;
|
|
731
|
+
if (opts.size)
|
|
732
|
+
assertSize(hex, { size: opts.size });
|
|
733
|
+
const value = BigInt(hex);
|
|
734
|
+
if (!signed)
|
|
735
|
+
return value;
|
|
736
|
+
const size4 = (hex.length - 2) / 2;
|
|
737
|
+
const max = (1n << BigInt(size4) * 8n - 1n) - 1n;
|
|
738
|
+
if (value <= max)
|
|
739
|
+
return value;
|
|
740
|
+
return value - BigInt(`0x${"f".padStart(size4 * 2, "f")}`) - 1n;
|
|
741
|
+
}
|
|
742
|
+
function hexToBool(hex_, opts = {}) {
|
|
743
|
+
let hex = hex_;
|
|
744
|
+
if (opts.size) {
|
|
745
|
+
assertSize(hex, { size: opts.size });
|
|
746
|
+
hex = trim(hex);
|
|
998
747
|
}
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
748
|
+
if (trim(hex) === "0x00")
|
|
749
|
+
return false;
|
|
750
|
+
if (trim(hex) === "0x01")
|
|
751
|
+
return true;
|
|
752
|
+
throw new InvalidHexBooleanError(hex);
|
|
1002
753
|
}
|
|
1003
|
-
function
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
754
|
+
function hexToNumber(hex, opts = {}) {
|
|
755
|
+
const value = hexToBigInt(hex, opts);
|
|
756
|
+
const number = Number(value);
|
|
757
|
+
if (!Number.isSafeInteger(number))
|
|
758
|
+
throw new IntegerOutOfRangeError({
|
|
759
|
+
max: `${Number.MAX_SAFE_INTEGER}`,
|
|
760
|
+
min: `${Number.MIN_SAFE_INTEGER}`,
|
|
761
|
+
signed: opts.signed,
|
|
762
|
+
size: opts.size,
|
|
763
|
+
value: `${value}n`
|
|
764
|
+
});
|
|
765
|
+
return number;
|
|
766
|
+
}
|
|
767
|
+
function hexToString(hex, opts = {}) {
|
|
768
|
+
let bytes = hexToBytes(hex);
|
|
769
|
+
if (opts.size) {
|
|
770
|
+
assertSize(bytes, { size: opts.size });
|
|
771
|
+
bytes = trim(bytes, { dir: "right" });
|
|
772
|
+
}
|
|
773
|
+
return new TextDecoder().decode(bytes);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
777
|
+
function keccak256(value, to_) {
|
|
778
|
+
const to = to_ || "hex";
|
|
779
|
+
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
780
|
+
if (to === "bytes")
|
|
781
|
+
return bytes;
|
|
782
|
+
return toHex(bytes);
|
|
1007
783
|
}
|
|
1008
784
|
|
|
785
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/address.js
|
|
786
|
+
var InvalidAddressError = class extends BaseError {
|
|
787
|
+
constructor({ address }) {
|
|
788
|
+
super(`Address "${address}" is invalid.`, {
|
|
789
|
+
metaMessages: [
|
|
790
|
+
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
791
|
+
"- Address must match its checksum counterpart."
|
|
792
|
+
],
|
|
793
|
+
name: "InvalidAddressError"
|
|
794
|
+
});
|
|
795
|
+
}
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/lru.js
|
|
799
|
+
var LruMap = class extends Map {
|
|
800
|
+
constructor(size4) {
|
|
801
|
+
super();
|
|
802
|
+
Object.defineProperty(this, "maxSize", {
|
|
803
|
+
enumerable: true,
|
|
804
|
+
configurable: true,
|
|
805
|
+
writable: true,
|
|
806
|
+
value: void 0
|
|
807
|
+
});
|
|
808
|
+
this.maxSize = size4;
|
|
809
|
+
}
|
|
810
|
+
get(key) {
|
|
811
|
+
const value = super.get(key);
|
|
812
|
+
if (super.has(key)) {
|
|
813
|
+
super.delete(key);
|
|
814
|
+
super.set(key, value);
|
|
815
|
+
}
|
|
816
|
+
return value;
|
|
817
|
+
}
|
|
818
|
+
set(key, value) {
|
|
819
|
+
if (super.has(key))
|
|
820
|
+
super.delete(key);
|
|
821
|
+
super.set(key, value);
|
|
822
|
+
if (this.maxSize && this.size > this.maxSize) {
|
|
823
|
+
const firstKey = super.keys().next().value;
|
|
824
|
+
if (firstKey !== void 0)
|
|
825
|
+
super.delete(firstKey);
|
|
826
|
+
}
|
|
827
|
+
return this;
|
|
828
|
+
}
|
|
829
|
+
};
|
|
830
|
+
|
|
1009
831
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/address/isAddress.js
|
|
1010
832
|
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
1011
833
|
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
@@ -1027,6 +849,55 @@ function isAddress(address, options) {
|
|
|
1027
849
|
return result;
|
|
1028
850
|
}
|
|
1029
851
|
|
|
852
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/address/getAddress.js
|
|
853
|
+
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
854
|
+
function checksumAddress(address_, chainId) {
|
|
855
|
+
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
856
|
+
return checksumAddressCache.get(`${address_}.${chainId}`);
|
|
857
|
+
const hexAddress = chainId ? `${chainId}${address_.toLowerCase()}` : address_.substring(2).toLowerCase();
|
|
858
|
+
const hash = keccak256(stringToBytes(hexAddress), "bytes");
|
|
859
|
+
const address = (chainId ? hexAddress.substring(`${chainId}0x`.length) : hexAddress).split("");
|
|
860
|
+
for (let i = 0; i < 40; i += 2) {
|
|
861
|
+
if (hash[i >> 1] >> 4 >= 8 && address[i]) {
|
|
862
|
+
address[i] = address[i].toUpperCase();
|
|
863
|
+
}
|
|
864
|
+
if ((hash[i >> 1] & 15) >= 8 && address[i + 1]) {
|
|
865
|
+
address[i + 1] = address[i + 1].toUpperCase();
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
const result = `0x${address.join("")}`;
|
|
869
|
+
checksumAddressCache.set(`${address_}.${chainId}`, result);
|
|
870
|
+
return result;
|
|
871
|
+
}
|
|
872
|
+
function getAddress(address, chainId) {
|
|
873
|
+
if (!isAddress(address, { strict: false }))
|
|
874
|
+
throw new InvalidAddressError({ address });
|
|
875
|
+
return checksumAddress(address, chainId);
|
|
876
|
+
}
|
|
877
|
+
|
|
878
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/concat.js
|
|
879
|
+
function concat(values) {
|
|
880
|
+
if (typeof values[0] === "string")
|
|
881
|
+
return concatHex(values);
|
|
882
|
+
return concatBytes(values);
|
|
883
|
+
}
|
|
884
|
+
function concatBytes(values) {
|
|
885
|
+
let length = 0;
|
|
886
|
+
for (const arr of values) {
|
|
887
|
+
length += arr.length;
|
|
888
|
+
}
|
|
889
|
+
const result = new Uint8Array(length);
|
|
890
|
+
let offset = 0;
|
|
891
|
+
for (const arr of values) {
|
|
892
|
+
result.set(arr, offset);
|
|
893
|
+
offset += arr.length;
|
|
894
|
+
}
|
|
895
|
+
return result;
|
|
896
|
+
}
|
|
897
|
+
function concatHex(values) {
|
|
898
|
+
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
899
|
+
}
|
|
900
|
+
|
|
1030
901
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/slice.js
|
|
1031
902
|
function slice(value, start, end, { strict } = {}) {
|
|
1032
903
|
if (isHex(value, { strict: false }))
|
|
@@ -1070,6 +941,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1070
941
|
}
|
|
1071
942
|
|
|
1072
943
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/regex.js
|
|
944
|
+
var arrayRegex = /^(.*)\[([0-9]*)\]$/;
|
|
1073
945
|
var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
1074
946
|
var integerRegex = /^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;
|
|
1075
947
|
|
|
@@ -1317,6 +1189,10 @@ var gweiUnits = {
|
|
|
1317
1189
|
ether: -9,
|
|
1318
1190
|
wei: 9
|
|
1319
1191
|
};
|
|
1192
|
+
var weiUnits = {
|
|
1193
|
+
ether: -18,
|
|
1194
|
+
gwei: -9
|
|
1195
|
+
};
|
|
1320
1196
|
|
|
1321
1197
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
1322
1198
|
function formatUnits(value, decimals) {
|
|
@@ -1353,6 +1229,14 @@ function prettyPrint(args) {
|
|
|
1353
1229
|
const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
|
|
1354
1230
|
return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
|
|
1355
1231
|
}
|
|
1232
|
+
var FeeConflictError = class extends BaseError {
|
|
1233
|
+
constructor() {
|
|
1234
|
+
super([
|
|
1235
|
+
"Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
|
|
1236
|
+
"Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."
|
|
1237
|
+
].join("\n"), { name: "FeeConflictError" });
|
|
1238
|
+
}
|
|
1239
|
+
};
|
|
1356
1240
|
var InvalidLegacyVError = class extends BaseError {
|
|
1357
1241
|
constructor({ v }) {
|
|
1358
1242
|
super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
|
|
@@ -1360,6 +1244,13 @@ var InvalidLegacyVError = class extends BaseError {
|
|
|
1360
1244
|
});
|
|
1361
1245
|
}
|
|
1362
1246
|
};
|
|
1247
|
+
var InvalidYParityError = class extends BaseError {
|
|
1248
|
+
constructor({ yParity }) {
|
|
1249
|
+
super(`Invalid \`yParity\` value "${yParity}". Expected 0 or 1.`, {
|
|
1250
|
+
name: "InvalidYParityError"
|
|
1251
|
+
});
|
|
1252
|
+
}
|
|
1253
|
+
};
|
|
1363
1254
|
var InvalidSerializableTransactionError = class extends BaseError {
|
|
1364
1255
|
constructor({ transaction }) {
|
|
1365
1256
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
@@ -1381,6 +1272,46 @@ var InvalidSerializableTransactionError = class extends BaseError {
|
|
|
1381
1272
|
});
|
|
1382
1273
|
}
|
|
1383
1274
|
};
|
|
1275
|
+
var InvalidSerializedTransactionTypeError = class extends BaseError {
|
|
1276
|
+
constructor({ serializedType }) {
|
|
1277
|
+
super(`Serialized transaction type "${serializedType}" is invalid.`, {
|
|
1278
|
+
name: "InvalidSerializedTransactionType"
|
|
1279
|
+
});
|
|
1280
|
+
Object.defineProperty(this, "serializedType", {
|
|
1281
|
+
enumerable: true,
|
|
1282
|
+
configurable: true,
|
|
1283
|
+
writable: true,
|
|
1284
|
+
value: void 0
|
|
1285
|
+
});
|
|
1286
|
+
this.serializedType = serializedType;
|
|
1287
|
+
}
|
|
1288
|
+
};
|
|
1289
|
+
var InvalidSerializedTransactionError = class extends BaseError {
|
|
1290
|
+
constructor({ attributes, serializedTransaction, type }) {
|
|
1291
|
+
const missing = Object.entries(attributes).map(([key, value]) => typeof value === "undefined" ? key : void 0).filter(Boolean);
|
|
1292
|
+
super(`Invalid serialized transaction of type "${type}" was provided.`, {
|
|
1293
|
+
metaMessages: [
|
|
1294
|
+
`Serialized Transaction: "${serializedTransaction}"`,
|
|
1295
|
+
missing.length > 0 ? `Missing Attributes: ${missing.join(", ")}` : ""
|
|
1296
|
+
].filter(Boolean),
|
|
1297
|
+
name: "InvalidSerializedTransactionError"
|
|
1298
|
+
});
|
|
1299
|
+
Object.defineProperty(this, "serializedTransaction", {
|
|
1300
|
+
enumerable: true,
|
|
1301
|
+
configurable: true,
|
|
1302
|
+
writable: true,
|
|
1303
|
+
value: void 0
|
|
1304
|
+
});
|
|
1305
|
+
Object.defineProperty(this, "type", {
|
|
1306
|
+
enumerable: true,
|
|
1307
|
+
configurable: true,
|
|
1308
|
+
writable: true,
|
|
1309
|
+
value: void 0
|
|
1310
|
+
});
|
|
1311
|
+
this.serializedTransaction = serializedTransaction;
|
|
1312
|
+
this.type = type;
|
|
1313
|
+
}
|
|
1314
|
+
};
|
|
1384
1315
|
var InvalidStorageKeySizeError = class extends BaseError {
|
|
1385
1316
|
constructor({ storageKey }) {
|
|
1386
1317
|
super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
@@ -1469,133 +1400,6 @@ var WaitForTransactionReceiptTimeoutError = class extends BaseError {
|
|
|
1469
1400
|
}
|
|
1470
1401
|
};
|
|
1471
1402
|
|
|
1472
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/constants/number.js
|
|
1473
|
-
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
1474
|
-
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
1475
|
-
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
1476
|
-
var maxInt32 = 2n ** (32n - 1n) - 1n;
|
|
1477
|
-
var maxInt40 = 2n ** (40n - 1n) - 1n;
|
|
1478
|
-
var maxInt48 = 2n ** (48n - 1n) - 1n;
|
|
1479
|
-
var maxInt56 = 2n ** (56n - 1n) - 1n;
|
|
1480
|
-
var maxInt64 = 2n ** (64n - 1n) - 1n;
|
|
1481
|
-
var maxInt72 = 2n ** (72n - 1n) - 1n;
|
|
1482
|
-
var maxInt80 = 2n ** (80n - 1n) - 1n;
|
|
1483
|
-
var maxInt88 = 2n ** (88n - 1n) - 1n;
|
|
1484
|
-
var maxInt96 = 2n ** (96n - 1n) - 1n;
|
|
1485
|
-
var maxInt104 = 2n ** (104n - 1n) - 1n;
|
|
1486
|
-
var maxInt112 = 2n ** (112n - 1n) - 1n;
|
|
1487
|
-
var maxInt120 = 2n ** (120n - 1n) - 1n;
|
|
1488
|
-
var maxInt128 = 2n ** (128n - 1n) - 1n;
|
|
1489
|
-
var maxInt136 = 2n ** (136n - 1n) - 1n;
|
|
1490
|
-
var maxInt144 = 2n ** (144n - 1n) - 1n;
|
|
1491
|
-
var maxInt152 = 2n ** (152n - 1n) - 1n;
|
|
1492
|
-
var maxInt160 = 2n ** (160n - 1n) - 1n;
|
|
1493
|
-
var maxInt168 = 2n ** (168n - 1n) - 1n;
|
|
1494
|
-
var maxInt176 = 2n ** (176n - 1n) - 1n;
|
|
1495
|
-
var maxInt184 = 2n ** (184n - 1n) - 1n;
|
|
1496
|
-
var maxInt192 = 2n ** (192n - 1n) - 1n;
|
|
1497
|
-
var maxInt200 = 2n ** (200n - 1n) - 1n;
|
|
1498
|
-
var maxInt208 = 2n ** (208n - 1n) - 1n;
|
|
1499
|
-
var maxInt216 = 2n ** (216n - 1n) - 1n;
|
|
1500
|
-
var maxInt224 = 2n ** (224n - 1n) - 1n;
|
|
1501
|
-
var maxInt232 = 2n ** (232n - 1n) - 1n;
|
|
1502
|
-
var maxInt240 = 2n ** (240n - 1n) - 1n;
|
|
1503
|
-
var maxInt248 = 2n ** (248n - 1n) - 1n;
|
|
1504
|
-
var maxInt256 = 2n ** (256n - 1n) - 1n;
|
|
1505
|
-
var minInt8 = -(2n ** (8n - 1n));
|
|
1506
|
-
var minInt16 = -(2n ** (16n - 1n));
|
|
1507
|
-
var minInt24 = -(2n ** (24n - 1n));
|
|
1508
|
-
var minInt32 = -(2n ** (32n - 1n));
|
|
1509
|
-
var minInt40 = -(2n ** (40n - 1n));
|
|
1510
|
-
var minInt48 = -(2n ** (48n - 1n));
|
|
1511
|
-
var minInt56 = -(2n ** (56n - 1n));
|
|
1512
|
-
var minInt64 = -(2n ** (64n - 1n));
|
|
1513
|
-
var minInt72 = -(2n ** (72n - 1n));
|
|
1514
|
-
var minInt80 = -(2n ** (80n - 1n));
|
|
1515
|
-
var minInt88 = -(2n ** (88n - 1n));
|
|
1516
|
-
var minInt96 = -(2n ** (96n - 1n));
|
|
1517
|
-
var minInt104 = -(2n ** (104n - 1n));
|
|
1518
|
-
var minInt112 = -(2n ** (112n - 1n));
|
|
1519
|
-
var minInt120 = -(2n ** (120n - 1n));
|
|
1520
|
-
var minInt128 = -(2n ** (128n - 1n));
|
|
1521
|
-
var minInt136 = -(2n ** (136n - 1n));
|
|
1522
|
-
var minInt144 = -(2n ** (144n - 1n));
|
|
1523
|
-
var minInt152 = -(2n ** (152n - 1n));
|
|
1524
|
-
var minInt160 = -(2n ** (160n - 1n));
|
|
1525
|
-
var minInt168 = -(2n ** (168n - 1n));
|
|
1526
|
-
var minInt176 = -(2n ** (176n - 1n));
|
|
1527
|
-
var minInt184 = -(2n ** (184n - 1n));
|
|
1528
|
-
var minInt192 = -(2n ** (192n - 1n));
|
|
1529
|
-
var minInt200 = -(2n ** (200n - 1n));
|
|
1530
|
-
var minInt208 = -(2n ** (208n - 1n));
|
|
1531
|
-
var minInt216 = -(2n ** (216n - 1n));
|
|
1532
|
-
var minInt224 = -(2n ** (224n - 1n));
|
|
1533
|
-
var minInt232 = -(2n ** (232n - 1n));
|
|
1534
|
-
var minInt240 = -(2n ** (240n - 1n));
|
|
1535
|
-
var minInt248 = -(2n ** (248n - 1n));
|
|
1536
|
-
var minInt256 = -(2n ** (256n - 1n));
|
|
1537
|
-
var maxUint8 = 2n ** 8n - 1n;
|
|
1538
|
-
var maxUint16 = 2n ** 16n - 1n;
|
|
1539
|
-
var maxUint24 = 2n ** 24n - 1n;
|
|
1540
|
-
var maxUint32 = 2n ** 32n - 1n;
|
|
1541
|
-
var maxUint40 = 2n ** 40n - 1n;
|
|
1542
|
-
var maxUint48 = 2n ** 48n - 1n;
|
|
1543
|
-
var maxUint56 = 2n ** 56n - 1n;
|
|
1544
|
-
var maxUint64 = 2n ** 64n - 1n;
|
|
1545
|
-
var maxUint72 = 2n ** 72n - 1n;
|
|
1546
|
-
var maxUint80 = 2n ** 80n - 1n;
|
|
1547
|
-
var maxUint88 = 2n ** 88n - 1n;
|
|
1548
|
-
var maxUint96 = 2n ** 96n - 1n;
|
|
1549
|
-
var maxUint104 = 2n ** 104n - 1n;
|
|
1550
|
-
var maxUint112 = 2n ** 112n - 1n;
|
|
1551
|
-
var maxUint120 = 2n ** 120n - 1n;
|
|
1552
|
-
var maxUint128 = 2n ** 128n - 1n;
|
|
1553
|
-
var maxUint136 = 2n ** 136n - 1n;
|
|
1554
|
-
var maxUint144 = 2n ** 144n - 1n;
|
|
1555
|
-
var maxUint152 = 2n ** 152n - 1n;
|
|
1556
|
-
var maxUint160 = 2n ** 160n - 1n;
|
|
1557
|
-
var maxUint168 = 2n ** 168n - 1n;
|
|
1558
|
-
var maxUint176 = 2n ** 176n - 1n;
|
|
1559
|
-
var maxUint184 = 2n ** 184n - 1n;
|
|
1560
|
-
var maxUint192 = 2n ** 192n - 1n;
|
|
1561
|
-
var maxUint200 = 2n ** 200n - 1n;
|
|
1562
|
-
var maxUint208 = 2n ** 208n - 1n;
|
|
1563
|
-
var maxUint216 = 2n ** 216n - 1n;
|
|
1564
|
-
var maxUint224 = 2n ** 224n - 1n;
|
|
1565
|
-
var maxUint232 = 2n ** 232n - 1n;
|
|
1566
|
-
var maxUint240 = 2n ** 240n - 1n;
|
|
1567
|
-
var maxUint248 = 2n ** 248n - 1n;
|
|
1568
|
-
var maxUint256 = 2n ** 256n - 1n;
|
|
1569
|
-
|
|
1570
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/chain.js
|
|
1571
|
-
var ChainDoesNotSupportContract = class extends BaseError {
|
|
1572
|
-
constructor({ blockNumber, chain, contract }) {
|
|
1573
|
-
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
1574
|
-
metaMessages: [
|
|
1575
|
-
"This could be due to any of the following:",
|
|
1576
|
-
...blockNumber && contract.blockCreated && contract.blockCreated > blockNumber ? [
|
|
1577
|
-
`- The contract "${contract.name}" was not deployed until block ${contract.blockCreated} (current block ${blockNumber}).`
|
|
1578
|
-
] : [
|
|
1579
|
-
`- The chain does not have the contract "${contract.name}" configured.`
|
|
1580
|
-
]
|
|
1581
|
-
],
|
|
1582
|
-
name: "ChainDoesNotSupportContract"
|
|
1583
|
-
});
|
|
1584
|
-
}
|
|
1585
|
-
};
|
|
1586
|
-
var ClientChainNotConfiguredError = class extends BaseError {
|
|
1587
|
-
constructor() {
|
|
1588
|
-
super("No chain was provided to the Client.", {
|
|
1589
|
-
name: "ClientChainNotConfiguredError"
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
};
|
|
1593
|
-
var InvalidChainIdError = class extends BaseError {
|
|
1594
|
-
constructor({ chainId }) {
|
|
1595
|
-
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1596
|
-
}
|
|
1597
|
-
};
|
|
1598
|
-
|
|
1599
1403
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/node.js
|
|
1600
1404
|
var ExecutionRevertedError = class extends BaseError {
|
|
1601
1405
|
constructor({ cause, message } = {}) {
|
|
@@ -1775,6 +1579,154 @@ var UnknownNodeError = class extends BaseError {
|
|
|
1775
1579
|
}
|
|
1776
1580
|
};
|
|
1777
1581
|
|
|
1582
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/constants/number.js
|
|
1583
|
+
var maxInt8 = 2n ** (8n - 1n) - 1n;
|
|
1584
|
+
var maxInt16 = 2n ** (16n - 1n) - 1n;
|
|
1585
|
+
var maxInt24 = 2n ** (24n - 1n) - 1n;
|
|
1586
|
+
var maxInt32 = 2n ** (32n - 1n) - 1n;
|
|
1587
|
+
var maxInt40 = 2n ** (40n - 1n) - 1n;
|
|
1588
|
+
var maxInt48 = 2n ** (48n - 1n) - 1n;
|
|
1589
|
+
var maxInt56 = 2n ** (56n - 1n) - 1n;
|
|
1590
|
+
var maxInt64 = 2n ** (64n - 1n) - 1n;
|
|
1591
|
+
var maxInt72 = 2n ** (72n - 1n) - 1n;
|
|
1592
|
+
var maxInt80 = 2n ** (80n - 1n) - 1n;
|
|
1593
|
+
var maxInt88 = 2n ** (88n - 1n) - 1n;
|
|
1594
|
+
var maxInt96 = 2n ** (96n - 1n) - 1n;
|
|
1595
|
+
var maxInt104 = 2n ** (104n - 1n) - 1n;
|
|
1596
|
+
var maxInt112 = 2n ** (112n - 1n) - 1n;
|
|
1597
|
+
var maxInt120 = 2n ** (120n - 1n) - 1n;
|
|
1598
|
+
var maxInt128 = 2n ** (128n - 1n) - 1n;
|
|
1599
|
+
var maxInt136 = 2n ** (136n - 1n) - 1n;
|
|
1600
|
+
var maxInt144 = 2n ** (144n - 1n) - 1n;
|
|
1601
|
+
var maxInt152 = 2n ** (152n - 1n) - 1n;
|
|
1602
|
+
var maxInt160 = 2n ** (160n - 1n) - 1n;
|
|
1603
|
+
var maxInt168 = 2n ** (168n - 1n) - 1n;
|
|
1604
|
+
var maxInt176 = 2n ** (176n - 1n) - 1n;
|
|
1605
|
+
var maxInt184 = 2n ** (184n - 1n) - 1n;
|
|
1606
|
+
var maxInt192 = 2n ** (192n - 1n) - 1n;
|
|
1607
|
+
var maxInt200 = 2n ** (200n - 1n) - 1n;
|
|
1608
|
+
var maxInt208 = 2n ** (208n - 1n) - 1n;
|
|
1609
|
+
var maxInt216 = 2n ** (216n - 1n) - 1n;
|
|
1610
|
+
var maxInt224 = 2n ** (224n - 1n) - 1n;
|
|
1611
|
+
var maxInt232 = 2n ** (232n - 1n) - 1n;
|
|
1612
|
+
var maxInt240 = 2n ** (240n - 1n) - 1n;
|
|
1613
|
+
var maxInt248 = 2n ** (248n - 1n) - 1n;
|
|
1614
|
+
var maxInt256 = 2n ** (256n - 1n) - 1n;
|
|
1615
|
+
var minInt8 = -(2n ** (8n - 1n));
|
|
1616
|
+
var minInt16 = -(2n ** (16n - 1n));
|
|
1617
|
+
var minInt24 = -(2n ** (24n - 1n));
|
|
1618
|
+
var minInt32 = -(2n ** (32n - 1n));
|
|
1619
|
+
var minInt40 = -(2n ** (40n - 1n));
|
|
1620
|
+
var minInt48 = -(2n ** (48n - 1n));
|
|
1621
|
+
var minInt56 = -(2n ** (56n - 1n));
|
|
1622
|
+
var minInt64 = -(2n ** (64n - 1n));
|
|
1623
|
+
var minInt72 = -(2n ** (72n - 1n));
|
|
1624
|
+
var minInt80 = -(2n ** (80n - 1n));
|
|
1625
|
+
var minInt88 = -(2n ** (88n - 1n));
|
|
1626
|
+
var minInt96 = -(2n ** (96n - 1n));
|
|
1627
|
+
var minInt104 = -(2n ** (104n - 1n));
|
|
1628
|
+
var minInt112 = -(2n ** (112n - 1n));
|
|
1629
|
+
var minInt120 = -(2n ** (120n - 1n));
|
|
1630
|
+
var minInt128 = -(2n ** (128n - 1n));
|
|
1631
|
+
var minInt136 = -(2n ** (136n - 1n));
|
|
1632
|
+
var minInt144 = -(2n ** (144n - 1n));
|
|
1633
|
+
var minInt152 = -(2n ** (152n - 1n));
|
|
1634
|
+
var minInt160 = -(2n ** (160n - 1n));
|
|
1635
|
+
var minInt168 = -(2n ** (168n - 1n));
|
|
1636
|
+
var minInt176 = -(2n ** (176n - 1n));
|
|
1637
|
+
var minInt184 = -(2n ** (184n - 1n));
|
|
1638
|
+
var minInt192 = -(2n ** (192n - 1n));
|
|
1639
|
+
var minInt200 = -(2n ** (200n - 1n));
|
|
1640
|
+
var minInt208 = -(2n ** (208n - 1n));
|
|
1641
|
+
var minInt216 = -(2n ** (216n - 1n));
|
|
1642
|
+
var minInt224 = -(2n ** (224n - 1n));
|
|
1643
|
+
var minInt232 = -(2n ** (232n - 1n));
|
|
1644
|
+
var minInt240 = -(2n ** (240n - 1n));
|
|
1645
|
+
var minInt248 = -(2n ** (248n - 1n));
|
|
1646
|
+
var minInt256 = -(2n ** (256n - 1n));
|
|
1647
|
+
var maxUint8 = 2n ** 8n - 1n;
|
|
1648
|
+
var maxUint16 = 2n ** 16n - 1n;
|
|
1649
|
+
var maxUint24 = 2n ** 24n - 1n;
|
|
1650
|
+
var maxUint32 = 2n ** 32n - 1n;
|
|
1651
|
+
var maxUint40 = 2n ** 40n - 1n;
|
|
1652
|
+
var maxUint48 = 2n ** 48n - 1n;
|
|
1653
|
+
var maxUint56 = 2n ** 56n - 1n;
|
|
1654
|
+
var maxUint64 = 2n ** 64n - 1n;
|
|
1655
|
+
var maxUint72 = 2n ** 72n - 1n;
|
|
1656
|
+
var maxUint80 = 2n ** 80n - 1n;
|
|
1657
|
+
var maxUint88 = 2n ** 88n - 1n;
|
|
1658
|
+
var maxUint96 = 2n ** 96n - 1n;
|
|
1659
|
+
var maxUint104 = 2n ** 104n - 1n;
|
|
1660
|
+
var maxUint112 = 2n ** 112n - 1n;
|
|
1661
|
+
var maxUint120 = 2n ** 120n - 1n;
|
|
1662
|
+
var maxUint128 = 2n ** 128n - 1n;
|
|
1663
|
+
var maxUint136 = 2n ** 136n - 1n;
|
|
1664
|
+
var maxUint144 = 2n ** 144n - 1n;
|
|
1665
|
+
var maxUint152 = 2n ** 152n - 1n;
|
|
1666
|
+
var maxUint160 = 2n ** 160n - 1n;
|
|
1667
|
+
var maxUint168 = 2n ** 168n - 1n;
|
|
1668
|
+
var maxUint176 = 2n ** 176n - 1n;
|
|
1669
|
+
var maxUint184 = 2n ** 184n - 1n;
|
|
1670
|
+
var maxUint192 = 2n ** 192n - 1n;
|
|
1671
|
+
var maxUint200 = 2n ** 200n - 1n;
|
|
1672
|
+
var maxUint208 = 2n ** 208n - 1n;
|
|
1673
|
+
var maxUint216 = 2n ** 216n - 1n;
|
|
1674
|
+
var maxUint224 = 2n ** 224n - 1n;
|
|
1675
|
+
var maxUint232 = 2n ** 232n - 1n;
|
|
1676
|
+
var maxUint240 = 2n ** 240n - 1n;
|
|
1677
|
+
var maxUint248 = 2n ** 248n - 1n;
|
|
1678
|
+
var maxUint256 = 2n ** 256n - 1n;
|
|
1679
|
+
|
|
1680
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/chain.js
|
|
1681
|
+
var ChainDoesNotSupportContract = class extends BaseError {
|
|
1682
|
+
constructor({ blockNumber, chain, contract }) {
|
|
1683
|
+
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
1684
|
+
metaMessages: [
|
|
1685
|
+
"This could be due to any of the following:",
|
|
1686
|
+
...blockNumber && contract.blockCreated && contract.blockCreated > blockNumber ? [
|
|
1687
|
+
`- The contract "${contract.name}" was not deployed until block ${contract.blockCreated} (current block ${blockNumber}).`
|
|
1688
|
+
] : [
|
|
1689
|
+
`- The chain does not have the contract "${contract.name}" configured.`
|
|
1690
|
+
]
|
|
1691
|
+
],
|
|
1692
|
+
name: "ChainDoesNotSupportContract"
|
|
1693
|
+
});
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
var ChainMismatchError = class extends BaseError {
|
|
1697
|
+
constructor({ chain, currentChainId }) {
|
|
1698
|
+
super(`The current chain of the wallet (id: ${currentChainId}) does not match the target chain for the transaction (id: ${chain.id} \u2013 ${chain.name}).`, {
|
|
1699
|
+
metaMessages: [
|
|
1700
|
+
`Current Chain ID: ${currentChainId}`,
|
|
1701
|
+
`Expected Chain ID: ${chain.id} \u2013 ${chain.name}`
|
|
1702
|
+
],
|
|
1703
|
+
name: "ChainMismatchError"
|
|
1704
|
+
});
|
|
1705
|
+
}
|
|
1706
|
+
};
|
|
1707
|
+
var ChainNotFoundError = class extends BaseError {
|
|
1708
|
+
constructor() {
|
|
1709
|
+
super([
|
|
1710
|
+
"No chain was provided to the request.",
|
|
1711
|
+
"Please provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient."
|
|
1712
|
+
].join("\n"), {
|
|
1713
|
+
name: "ChainNotFoundError"
|
|
1714
|
+
});
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
var ClientChainNotConfiguredError = class extends BaseError {
|
|
1718
|
+
constructor() {
|
|
1719
|
+
super("No chain was provided to the Client.", {
|
|
1720
|
+
name: "ClientChainNotConfiguredError"
|
|
1721
|
+
});
|
|
1722
|
+
}
|
|
1723
|
+
};
|
|
1724
|
+
var InvalidChainIdError = class extends BaseError {
|
|
1725
|
+
constructor({ chainId }) {
|
|
1726
|
+
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
|
|
1778
1730
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
1779
1731
|
function parseAccount(account) {
|
|
1780
1732
|
if (typeof account === "string")
|
|
@@ -1970,6 +1922,18 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
1970
1922
|
return cursor;
|
|
1971
1923
|
}
|
|
1972
1924
|
|
|
1925
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/block/formatBlockParameter.js
|
|
1926
|
+
function formatBlockParameter(parameters) {
|
|
1927
|
+
const { blockHash, blockNumber, blockTag, requireCanonical } = parameters;
|
|
1928
|
+
if (requireCanonical !== void 0 && !blockHash)
|
|
1929
|
+
throw new BaseError("`requireCanonical` can only be provided when `blockHash` is set.");
|
|
1930
|
+
if (blockHash)
|
|
1931
|
+
return requireCanonical ? { blockHash, requireCanonical } : { blockHash };
|
|
1932
|
+
if (typeof blockNumber === "bigint")
|
|
1933
|
+
return numberToHex(blockNumber);
|
|
1934
|
+
return blockTag ?? "latest";
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1973
1937
|
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/version.js
|
|
1974
1938
|
var version2 = "0.1.1";
|
|
1975
1939
|
|
|
@@ -2248,250 +2212,48 @@ function stringify2(value, replacer, space) {
|
|
|
2248
2212
|
}, space);
|
|
2249
2213
|
}
|
|
2250
2214
|
|
|
2251
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/
|
|
2252
|
-
var decoder = /* @__PURE__ */ new TextDecoder();
|
|
2215
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
2253
2216
|
var encoder3 = /* @__PURE__ */ new TextEncoder();
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2217
|
+
var hexes2 = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
2218
|
+
function assert(value, options = {}) {
|
|
2219
|
+
const { strict = false } = options;
|
|
2257
2220
|
if (!value)
|
|
2258
|
-
throw new
|
|
2259
|
-
if (typeof value !== "
|
|
2260
|
-
throw new
|
|
2261
|
-
if (
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2221
|
+
throw new InvalidHexTypeError(value);
|
|
2222
|
+
if (typeof value !== "string")
|
|
2223
|
+
throw new InvalidHexTypeError(value);
|
|
2224
|
+
if (strict) {
|
|
2225
|
+
if (!/^0x[0-9a-fA-F]*$/.test(value))
|
|
2226
|
+
throw new InvalidHexValueError2(value);
|
|
2227
|
+
}
|
|
2228
|
+
if (!value.startsWith("0x"))
|
|
2229
|
+
throw new InvalidHexValueError2(value);
|
|
2265
2230
|
}
|
|
2266
2231
|
function concat2(...values) {
|
|
2267
|
-
|
|
2268
|
-
for (const arr of values) {
|
|
2269
|
-
length += arr.length;
|
|
2270
|
-
}
|
|
2271
|
-
const result = new Uint8Array(length);
|
|
2272
|
-
for (let i = 0, index = 0; i < values.length; i++) {
|
|
2273
|
-
const arr = values[i];
|
|
2274
|
-
result.set(arr, index);
|
|
2275
|
-
index += arr.length;
|
|
2276
|
-
}
|
|
2277
|
-
return result;
|
|
2232
|
+
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2278
2233
|
}
|
|
2279
2234
|
function from(value) {
|
|
2280
2235
|
if (value instanceof Uint8Array)
|
|
2281
|
-
return value;
|
|
2282
|
-
if (
|
|
2283
|
-
return
|
|
2284
|
-
return
|
|
2236
|
+
return fromBytes(value);
|
|
2237
|
+
if (Array.isArray(value))
|
|
2238
|
+
return fromBytes(new Uint8Array(value));
|
|
2239
|
+
return value;
|
|
2285
2240
|
}
|
|
2286
|
-
function
|
|
2287
|
-
|
|
2241
|
+
function fromBoolean(value, options = {}) {
|
|
2242
|
+
const hex = `0x${Number(value)}`;
|
|
2243
|
+
if (typeof options.size === "number") {
|
|
2244
|
+
assertSize3(hex, options.size);
|
|
2245
|
+
return padLeft(hex, options.size);
|
|
2246
|
+
}
|
|
2247
|
+
return hex;
|
|
2288
2248
|
}
|
|
2289
|
-
function
|
|
2290
|
-
|
|
2291
|
-
let
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
if (hexString.length % 2)
|
|
2298
|
-
hexString = `0${hexString}`;
|
|
2299
|
-
const length = hexString.length / 2;
|
|
2300
|
-
const bytes = new Uint8Array(length);
|
|
2301
|
-
for (let index = 0, j = 0; index < length; index++) {
|
|
2302
|
-
const nibbleLeft = charCodeToBase162(hexString.charCodeAt(j++));
|
|
2303
|
-
const nibbleRight = charCodeToBase162(hexString.charCodeAt(j++));
|
|
2304
|
-
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
2305
|
-
throw new BaseError2(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
2306
|
-
}
|
|
2307
|
-
bytes[index] = nibbleLeft << 4 | nibbleRight;
|
|
2308
|
-
}
|
|
2309
|
-
return bytes;
|
|
2310
|
-
}
|
|
2311
|
-
function fromString(value, options = {}) {
|
|
2312
|
-
const { size: size4 } = options;
|
|
2313
|
-
const bytes = encoder3.encode(value);
|
|
2314
|
-
if (typeof size4 === "number") {
|
|
2315
|
-
assertSize2(bytes, size4);
|
|
2316
|
-
return padRight2(bytes, size4);
|
|
2317
|
-
}
|
|
2318
|
-
return bytes;
|
|
2319
|
-
}
|
|
2320
|
-
function isEqual(bytesA, bytesB) {
|
|
2321
|
-
return equalBytes(bytesA, bytesB);
|
|
2322
|
-
}
|
|
2323
|
-
function padRight2(value, size4) {
|
|
2324
|
-
return pad2(value, { dir: "right", size: size4 });
|
|
2325
|
-
}
|
|
2326
|
-
function random(length) {
|
|
2327
|
-
return crypto.getRandomValues(new Uint8Array(length));
|
|
2328
|
-
}
|
|
2329
|
-
function size2(value) {
|
|
2330
|
-
return value.length;
|
|
2331
|
-
}
|
|
2332
|
-
function slice2(value, start, end, options = {}) {
|
|
2333
|
-
const { strict } = options;
|
|
2334
|
-
assertStartOffset2(value, start);
|
|
2335
|
-
const value_ = value.slice(start, end);
|
|
2336
|
-
if (strict)
|
|
2337
|
-
assertEndOffset2(value_, start, end);
|
|
2338
|
-
return value_;
|
|
2339
|
-
}
|
|
2340
|
-
function toBigInt2(bytes, options = {}) {
|
|
2341
|
-
const { size: size4 } = options;
|
|
2342
|
-
if (typeof size4 !== "undefined")
|
|
2343
|
-
assertSize2(bytes, size4);
|
|
2344
|
-
const hex = fromBytes(bytes, options);
|
|
2345
|
-
return toBigInt(hex, options);
|
|
2346
|
-
}
|
|
2347
|
-
function toBoolean(bytes, options = {}) {
|
|
2348
|
-
const { size: size4 } = options;
|
|
2349
|
-
let bytes_ = bytes;
|
|
2350
|
-
if (typeof size4 !== "undefined") {
|
|
2351
|
-
assertSize2(bytes_, size4);
|
|
2352
|
-
bytes_ = trimLeft(bytes_);
|
|
2353
|
-
}
|
|
2354
|
-
if (bytes_.length > 1 || bytes_[0] > 1)
|
|
2355
|
-
throw new InvalidBytesBooleanError2(bytes_);
|
|
2356
|
-
return Boolean(bytes_[0]);
|
|
2357
|
-
}
|
|
2358
|
-
function toHex2(value, options = {}) {
|
|
2359
|
-
return fromBytes(value, options);
|
|
2360
|
-
}
|
|
2361
|
-
function toNumber2(bytes, options = {}) {
|
|
2362
|
-
const { size: size4 } = options;
|
|
2363
|
-
if (typeof size4 !== "undefined")
|
|
2364
|
-
assertSize2(bytes, size4);
|
|
2365
|
-
const hex = fromBytes(bytes, options);
|
|
2366
|
-
return toNumber(hex, options);
|
|
2367
|
-
}
|
|
2368
|
-
function toString(bytes, options = {}) {
|
|
2369
|
-
const { size: size4 } = options;
|
|
2370
|
-
let bytes_ = bytes;
|
|
2371
|
-
if (typeof size4 !== "undefined") {
|
|
2372
|
-
assertSize2(bytes_, size4);
|
|
2373
|
-
bytes_ = trimRight(bytes_);
|
|
2374
|
-
}
|
|
2375
|
-
return decoder.decode(bytes_);
|
|
2376
|
-
}
|
|
2377
|
-
function trimLeft(value) {
|
|
2378
|
-
return trim2(value, { dir: "left" });
|
|
2379
|
-
}
|
|
2380
|
-
function trimRight(value) {
|
|
2381
|
-
return trim2(value, { dir: "right" });
|
|
2382
|
-
}
|
|
2383
|
-
function validate(value) {
|
|
2384
|
-
try {
|
|
2385
|
-
assert(value);
|
|
2386
|
-
return true;
|
|
2387
|
-
} catch {
|
|
2388
|
-
return false;
|
|
2389
|
-
}
|
|
2390
|
-
}
|
|
2391
|
-
var InvalidBytesBooleanError2 = class extends BaseError2 {
|
|
2392
|
-
constructor(bytes) {
|
|
2393
|
-
super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
|
|
2394
|
-
metaMessages: [
|
|
2395
|
-
"The bytes array must contain a single byte of either a `0` or `1` value."
|
|
2396
|
-
]
|
|
2397
|
-
});
|
|
2398
|
-
Object.defineProperty(this, "name", {
|
|
2399
|
-
enumerable: true,
|
|
2400
|
-
configurable: true,
|
|
2401
|
-
writable: true,
|
|
2402
|
-
value: "Bytes.InvalidBytesBooleanError"
|
|
2403
|
-
});
|
|
2404
|
-
}
|
|
2405
|
-
};
|
|
2406
|
-
var InvalidBytesTypeError = class extends BaseError2 {
|
|
2407
|
-
constructor(value) {
|
|
2408
|
-
super(`Value \`${typeof value === "object" ? stringify2(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
|
|
2409
|
-
metaMessages: ["Bytes values must be of type `Bytes`."]
|
|
2410
|
-
});
|
|
2411
|
-
Object.defineProperty(this, "name", {
|
|
2412
|
-
enumerable: true,
|
|
2413
|
-
configurable: true,
|
|
2414
|
-
writable: true,
|
|
2415
|
-
value: "Bytes.InvalidBytesTypeError"
|
|
2416
|
-
});
|
|
2417
|
-
}
|
|
2418
|
-
};
|
|
2419
|
-
var SizeOverflowError2 = class extends BaseError2 {
|
|
2420
|
-
constructor({ givenSize, maxSize }) {
|
|
2421
|
-
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
2422
|
-
Object.defineProperty(this, "name", {
|
|
2423
|
-
enumerable: true,
|
|
2424
|
-
configurable: true,
|
|
2425
|
-
writable: true,
|
|
2426
|
-
value: "Bytes.SizeOverflowError"
|
|
2427
|
-
});
|
|
2428
|
-
}
|
|
2429
|
-
};
|
|
2430
|
-
var SliceOffsetOutOfBoundsError2 = class extends BaseError2 {
|
|
2431
|
-
constructor({ offset, position, size: size4 }) {
|
|
2432
|
-
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
|
|
2433
|
-
Object.defineProperty(this, "name", {
|
|
2434
|
-
enumerable: true,
|
|
2435
|
-
configurable: true,
|
|
2436
|
-
writable: true,
|
|
2437
|
-
value: "Bytes.SliceOffsetOutOfBoundsError"
|
|
2438
|
-
});
|
|
2439
|
-
}
|
|
2440
|
-
};
|
|
2441
|
-
var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
|
|
2442
|
-
constructor({ size: size4, targetSize, type }) {
|
|
2443
|
-
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
2444
|
-
Object.defineProperty(this, "name", {
|
|
2445
|
-
enumerable: true,
|
|
2446
|
-
configurable: true,
|
|
2447
|
-
writable: true,
|
|
2448
|
-
value: "Bytes.SizeExceedsPaddingSizeError"
|
|
2449
|
-
});
|
|
2450
|
-
}
|
|
2451
|
-
};
|
|
2452
|
-
|
|
2453
|
-
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
2454
|
-
var encoder4 = /* @__PURE__ */ new TextEncoder();
|
|
2455
|
-
var hexes2 = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
2456
|
-
function assert2(value, options = {}) {
|
|
2457
|
-
const { strict = false } = options;
|
|
2458
|
-
if (!value)
|
|
2459
|
-
throw new InvalidHexTypeError(value);
|
|
2460
|
-
if (typeof value !== "string")
|
|
2461
|
-
throw new InvalidHexTypeError(value);
|
|
2462
|
-
if (strict) {
|
|
2463
|
-
if (!/^0x[0-9a-fA-F]*$/.test(value))
|
|
2464
|
-
throw new InvalidHexValueError(value);
|
|
2465
|
-
}
|
|
2466
|
-
if (!value.startsWith("0x"))
|
|
2467
|
-
throw new InvalidHexValueError(value);
|
|
2468
|
-
}
|
|
2469
|
-
function concat3(...values) {
|
|
2470
|
-
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2471
|
-
}
|
|
2472
|
-
function from2(value) {
|
|
2473
|
-
if (value instanceof Uint8Array)
|
|
2474
|
-
return fromBytes(value);
|
|
2475
|
-
if (Array.isArray(value))
|
|
2476
|
-
return fromBytes(new Uint8Array(value));
|
|
2477
|
-
return value;
|
|
2478
|
-
}
|
|
2479
|
-
function fromBoolean(value, options = {}) {
|
|
2480
|
-
const hex = `0x${Number(value)}`;
|
|
2481
|
-
if (typeof options.size === "number") {
|
|
2482
|
-
assertSize3(hex, options.size);
|
|
2483
|
-
return padLeft(hex, options.size);
|
|
2484
|
-
}
|
|
2485
|
-
return hex;
|
|
2486
|
-
}
|
|
2487
|
-
function fromBytes(value, options = {}) {
|
|
2488
|
-
let string = "";
|
|
2489
|
-
for (let i = 0; i < value.length; i++)
|
|
2490
|
-
string += hexes2[value[i]];
|
|
2491
|
-
const hex = `0x${string}`;
|
|
2492
|
-
if (typeof options.size === "number") {
|
|
2493
|
-
assertSize3(hex, options.size);
|
|
2494
|
-
return padRight(hex, options.size);
|
|
2249
|
+
function fromBytes(value, options = {}) {
|
|
2250
|
+
let string = "";
|
|
2251
|
+
for (let i = 0; i < value.length; i++)
|
|
2252
|
+
string += hexes2[value[i]];
|
|
2253
|
+
const hex = `0x${string}`;
|
|
2254
|
+
if (typeof options.size === "number") {
|
|
2255
|
+
assertSize3(hex, options.size);
|
|
2256
|
+
return padRight(hex, options.size);
|
|
2495
2257
|
}
|
|
2496
2258
|
return hex;
|
|
2497
2259
|
}
|
|
@@ -2524,8 +2286,8 @@ function fromNumber(value, options = {}) {
|
|
|
2524
2286
|
return padLeft(hex, size4);
|
|
2525
2287
|
return hex;
|
|
2526
2288
|
}
|
|
2527
|
-
function
|
|
2528
|
-
return fromBytes(
|
|
2289
|
+
function fromString(value, options = {}) {
|
|
2290
|
+
return fromBytes(encoder3.encode(value), options);
|
|
2529
2291
|
}
|
|
2530
2292
|
function padLeft(value, size4) {
|
|
2531
2293
|
return pad3(value, { dir: "left", size: size4 });
|
|
@@ -2533,7 +2295,7 @@ function padLeft(value, size4) {
|
|
|
2533
2295
|
function padRight(value, size4) {
|
|
2534
2296
|
return pad3(value, { dir: "right", size: size4 });
|
|
2535
2297
|
}
|
|
2536
|
-
function
|
|
2298
|
+
function slice2(value, start, end, options = {}) {
|
|
2537
2299
|
const { strict } = options;
|
|
2538
2300
|
assertStartOffset3(value, start);
|
|
2539
2301
|
const value_ = `0x${value.replace("0x", "").slice((start ?? 0) * 2, (end ?? value.length) * 2)}`;
|
|
@@ -2544,7 +2306,7 @@ function slice3(value, start, end, options = {}) {
|
|
|
2544
2306
|
function size3(value) {
|
|
2545
2307
|
return Math.ceil((value.length - 2) / 2);
|
|
2546
2308
|
}
|
|
2547
|
-
function
|
|
2309
|
+
function trimLeft(value) {
|
|
2548
2310
|
return trim3(value, { dir: "left" });
|
|
2549
2311
|
}
|
|
2550
2312
|
function toBigInt(hex, options = {}) {
|
|
@@ -2567,10 +2329,10 @@ function toNumber(hex, options = {}) {
|
|
|
2567
2329
|
return Number(hex);
|
|
2568
2330
|
return Number(toBigInt(hex, options));
|
|
2569
2331
|
}
|
|
2570
|
-
function
|
|
2332
|
+
function validate(value, options = {}) {
|
|
2571
2333
|
const { strict = false } = options;
|
|
2572
2334
|
try {
|
|
2573
|
-
|
|
2335
|
+
assert(value, { strict });
|
|
2574
2336
|
return true;
|
|
2575
2337
|
} catch {
|
|
2576
2338
|
return false;
|
|
@@ -2600,7 +2362,7 @@ var InvalidHexTypeError = class extends BaseError2 {
|
|
|
2600
2362
|
});
|
|
2601
2363
|
}
|
|
2602
2364
|
};
|
|
2603
|
-
var
|
|
2365
|
+
var InvalidHexValueError2 = class extends BaseError2 {
|
|
2604
2366
|
constructor(value) {
|
|
2605
2367
|
super(`Value \`${value}\` is an invalid hex value.`, {
|
|
2606
2368
|
metaMessages: [
|
|
@@ -2649,51 +2411,311 @@ var SizeExceedsPaddingSizeError3 = class extends BaseError2 {
|
|
|
2649
2411
|
}
|
|
2650
2412
|
};
|
|
2651
2413
|
|
|
2414
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Bytes.js
|
|
2415
|
+
var decoder = /* @__PURE__ */ new TextDecoder();
|
|
2416
|
+
var encoder4 = /* @__PURE__ */ new TextEncoder();
|
|
2417
|
+
function assert2(value) {
|
|
2418
|
+
if (value instanceof Uint8Array)
|
|
2419
|
+
return;
|
|
2420
|
+
if (!value)
|
|
2421
|
+
throw new InvalidBytesTypeError(value);
|
|
2422
|
+
if (typeof value !== "object")
|
|
2423
|
+
throw new InvalidBytesTypeError(value);
|
|
2424
|
+
if (!("BYTES_PER_ELEMENT" in value))
|
|
2425
|
+
throw new InvalidBytesTypeError(value);
|
|
2426
|
+
if (value.BYTES_PER_ELEMENT !== 1 || value.constructor.name !== "Uint8Array")
|
|
2427
|
+
throw new InvalidBytesTypeError(value);
|
|
2428
|
+
}
|
|
2429
|
+
function concat3(...values) {
|
|
2430
|
+
let length = 0;
|
|
2431
|
+
for (const arr of values) {
|
|
2432
|
+
length += arr.length;
|
|
2433
|
+
}
|
|
2434
|
+
const result = new Uint8Array(length);
|
|
2435
|
+
for (let i = 0, index = 0; i < values.length; i++) {
|
|
2436
|
+
const arr = values[i];
|
|
2437
|
+
result.set(arr, index);
|
|
2438
|
+
index += arr.length;
|
|
2439
|
+
}
|
|
2440
|
+
return result;
|
|
2441
|
+
}
|
|
2442
|
+
function from2(value) {
|
|
2443
|
+
if (value instanceof Uint8Array)
|
|
2444
|
+
return value;
|
|
2445
|
+
if (typeof value === "string")
|
|
2446
|
+
return fromHex2(value);
|
|
2447
|
+
return fromArray(value);
|
|
2448
|
+
}
|
|
2449
|
+
function fromArray(value) {
|
|
2450
|
+
return value instanceof Uint8Array ? value : new Uint8Array(value);
|
|
2451
|
+
}
|
|
2452
|
+
function fromHex2(value, options = {}) {
|
|
2453
|
+
const { size: size4 } = options;
|
|
2454
|
+
let hex = value;
|
|
2455
|
+
if (size4) {
|
|
2456
|
+
assertSize3(value, size4);
|
|
2457
|
+
hex = padRight(value, size4);
|
|
2458
|
+
}
|
|
2459
|
+
let hexString = hex.slice(2);
|
|
2460
|
+
if (hexString.length % 2)
|
|
2461
|
+
hexString = `0${hexString}`;
|
|
2462
|
+
const length = hexString.length / 2;
|
|
2463
|
+
const bytes = new Uint8Array(length);
|
|
2464
|
+
for (let index = 0, j = 0; index < length; index++) {
|
|
2465
|
+
const nibbleLeft = charCodeToBase162(hexString.charCodeAt(j++));
|
|
2466
|
+
const nibbleRight = charCodeToBase162(hexString.charCodeAt(j++));
|
|
2467
|
+
if (nibbleLeft === void 0 || nibbleRight === void 0) {
|
|
2468
|
+
throw new BaseError2(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
|
|
2469
|
+
}
|
|
2470
|
+
bytes[index] = nibbleLeft << 4 | nibbleRight;
|
|
2471
|
+
}
|
|
2472
|
+
return bytes;
|
|
2473
|
+
}
|
|
2474
|
+
function fromString2(value, options = {}) {
|
|
2475
|
+
const { size: size4 } = options;
|
|
2476
|
+
const bytes = encoder4.encode(value);
|
|
2477
|
+
if (typeof size4 === "number") {
|
|
2478
|
+
assertSize2(bytes, size4);
|
|
2479
|
+
return padRight2(bytes, size4);
|
|
2480
|
+
}
|
|
2481
|
+
return bytes;
|
|
2482
|
+
}
|
|
2483
|
+
function isEqual(bytesA, bytesB) {
|
|
2484
|
+
return equalBytes(bytesA, bytesB);
|
|
2485
|
+
}
|
|
2486
|
+
function padRight2(value, size4) {
|
|
2487
|
+
return pad2(value, { dir: "right", size: size4 });
|
|
2488
|
+
}
|
|
2489
|
+
function random(length) {
|
|
2490
|
+
return crypto.getRandomValues(new Uint8Array(length));
|
|
2491
|
+
}
|
|
2492
|
+
function size2(value) {
|
|
2493
|
+
return value.length;
|
|
2494
|
+
}
|
|
2495
|
+
function slice3(value, start, end, options = {}) {
|
|
2496
|
+
const { strict } = options;
|
|
2497
|
+
assertStartOffset2(value, start);
|
|
2498
|
+
const value_ = value.slice(start, end);
|
|
2499
|
+
if (strict)
|
|
2500
|
+
assertEndOffset2(value_, start, end);
|
|
2501
|
+
return value_;
|
|
2502
|
+
}
|
|
2503
|
+
function toBigInt2(bytes, options = {}) {
|
|
2504
|
+
const { size: size4 } = options;
|
|
2505
|
+
if (typeof size4 !== "undefined")
|
|
2506
|
+
assertSize2(bytes, size4);
|
|
2507
|
+
const hex = fromBytes(bytes, options);
|
|
2508
|
+
return toBigInt(hex, options);
|
|
2509
|
+
}
|
|
2510
|
+
function toBoolean(bytes, options = {}) {
|
|
2511
|
+
const { size: size4 } = options;
|
|
2512
|
+
let bytes_ = bytes;
|
|
2513
|
+
if (typeof size4 !== "undefined") {
|
|
2514
|
+
assertSize2(bytes_, size4);
|
|
2515
|
+
bytes_ = trimLeft2(bytes_);
|
|
2516
|
+
}
|
|
2517
|
+
if (bytes_.length > 1 || bytes_[0] > 1)
|
|
2518
|
+
throw new InvalidBytesBooleanError2(bytes_);
|
|
2519
|
+
return Boolean(bytes_[0]);
|
|
2520
|
+
}
|
|
2521
|
+
function toHex2(value, options = {}) {
|
|
2522
|
+
return fromBytes(value, options);
|
|
2523
|
+
}
|
|
2524
|
+
function toNumber2(bytes, options = {}) {
|
|
2525
|
+
const { size: size4 } = options;
|
|
2526
|
+
if (typeof size4 !== "undefined")
|
|
2527
|
+
assertSize2(bytes, size4);
|
|
2528
|
+
const hex = fromBytes(bytes, options);
|
|
2529
|
+
return toNumber(hex, options);
|
|
2530
|
+
}
|
|
2531
|
+
function toString(bytes, options = {}) {
|
|
2532
|
+
const { size: size4 } = options;
|
|
2533
|
+
let bytes_ = bytes;
|
|
2534
|
+
if (typeof size4 !== "undefined") {
|
|
2535
|
+
assertSize2(bytes_, size4);
|
|
2536
|
+
bytes_ = trimRight(bytes_);
|
|
2537
|
+
}
|
|
2538
|
+
return decoder.decode(bytes_);
|
|
2539
|
+
}
|
|
2540
|
+
function trimLeft2(value) {
|
|
2541
|
+
return trim2(value, { dir: "left" });
|
|
2542
|
+
}
|
|
2543
|
+
function trimRight(value) {
|
|
2544
|
+
return trim2(value, { dir: "right" });
|
|
2545
|
+
}
|
|
2546
|
+
function validate2(value) {
|
|
2547
|
+
try {
|
|
2548
|
+
assert2(value);
|
|
2549
|
+
return true;
|
|
2550
|
+
} catch {
|
|
2551
|
+
return false;
|
|
2552
|
+
}
|
|
2553
|
+
}
|
|
2554
|
+
var InvalidBytesBooleanError2 = class extends BaseError2 {
|
|
2555
|
+
constructor(bytes) {
|
|
2556
|
+
super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
|
|
2557
|
+
metaMessages: [
|
|
2558
|
+
"The bytes array must contain a single byte of either a `0` or `1` value."
|
|
2559
|
+
]
|
|
2560
|
+
});
|
|
2561
|
+
Object.defineProperty(this, "name", {
|
|
2562
|
+
enumerable: true,
|
|
2563
|
+
configurable: true,
|
|
2564
|
+
writable: true,
|
|
2565
|
+
value: "Bytes.InvalidBytesBooleanError"
|
|
2566
|
+
});
|
|
2567
|
+
}
|
|
2568
|
+
};
|
|
2569
|
+
var InvalidBytesTypeError = class extends BaseError2 {
|
|
2570
|
+
constructor(value) {
|
|
2571
|
+
super(`Value \`${typeof value === "object" ? stringify2(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
|
|
2572
|
+
metaMessages: ["Bytes values must be of type `Bytes`."]
|
|
2573
|
+
});
|
|
2574
|
+
Object.defineProperty(this, "name", {
|
|
2575
|
+
enumerable: true,
|
|
2576
|
+
configurable: true,
|
|
2577
|
+
writable: true,
|
|
2578
|
+
value: "Bytes.InvalidBytesTypeError"
|
|
2579
|
+
});
|
|
2580
|
+
}
|
|
2581
|
+
};
|
|
2582
|
+
var SizeOverflowError2 = class extends BaseError2 {
|
|
2583
|
+
constructor({ givenSize, maxSize }) {
|
|
2584
|
+
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
2585
|
+
Object.defineProperty(this, "name", {
|
|
2586
|
+
enumerable: true,
|
|
2587
|
+
configurable: true,
|
|
2588
|
+
writable: true,
|
|
2589
|
+
value: "Bytes.SizeOverflowError"
|
|
2590
|
+
});
|
|
2591
|
+
}
|
|
2592
|
+
};
|
|
2593
|
+
var SliceOffsetOutOfBoundsError2 = class extends BaseError2 {
|
|
2594
|
+
constructor({ offset, position, size: size4 }) {
|
|
2595
|
+
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
|
|
2596
|
+
Object.defineProperty(this, "name", {
|
|
2597
|
+
enumerable: true,
|
|
2598
|
+
configurable: true,
|
|
2599
|
+
writable: true,
|
|
2600
|
+
value: "Bytes.SliceOffsetOutOfBoundsError"
|
|
2601
|
+
});
|
|
2602
|
+
}
|
|
2603
|
+
};
|
|
2604
|
+
var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
|
|
2605
|
+
constructor({ size: size4, targetSize, type }) {
|
|
2606
|
+
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
2607
|
+
Object.defineProperty(this, "name", {
|
|
2608
|
+
enumerable: true,
|
|
2609
|
+
configurable: true,
|
|
2610
|
+
writable: true,
|
|
2611
|
+
value: "Bytes.SizeExceedsPaddingSizeError"
|
|
2612
|
+
});
|
|
2613
|
+
}
|
|
2614
|
+
};
|
|
2615
|
+
|
|
2652
2616
|
export {
|
|
2653
|
-
|
|
2654
|
-
InvalidBytesBooleanError,
|
|
2655
|
-
InvalidBytesLengthError,
|
|
2617
|
+
formatAbiItem,
|
|
2656
2618
|
isHex,
|
|
2657
2619
|
size,
|
|
2620
|
+
setErrorConfig,
|
|
2621
|
+
BaseError,
|
|
2622
|
+
AbiConstructorNotFoundError,
|
|
2623
|
+
AbiConstructorParamsNotFoundError,
|
|
2624
|
+
AbiDecodingDataSizeInvalidError,
|
|
2625
|
+
AbiDecodingDataSizeTooSmallError,
|
|
2626
|
+
AbiDecodingZeroDataError,
|
|
2627
|
+
AbiEncodingArrayLengthMismatchError,
|
|
2628
|
+
AbiEncodingBytesSizeMismatchError,
|
|
2629
|
+
AbiEncodingLengthMismatchError,
|
|
2630
|
+
AbiErrorInputsNotFoundError,
|
|
2631
|
+
AbiErrorNotFoundError,
|
|
2632
|
+
AbiErrorSignatureNotFoundError,
|
|
2633
|
+
AbiEventSignatureEmptyTopicsError,
|
|
2634
|
+
AbiEventSignatureNotFoundError,
|
|
2635
|
+
AbiEventNotFoundError,
|
|
2636
|
+
AbiFunctionNotFoundError,
|
|
2637
|
+
AbiFunctionOutputsNotFoundError,
|
|
2638
|
+
AbiFunctionSignatureNotFoundError,
|
|
2639
|
+
AbiItemAmbiguityError,
|
|
2640
|
+
BytesSizeMismatchError,
|
|
2641
|
+
DecodeLogDataMismatch,
|
|
2642
|
+
DecodeLogTopicsMismatch,
|
|
2643
|
+
InvalidAbiEncodingTypeError,
|
|
2644
|
+
InvalidAbiDecodingTypeError,
|
|
2645
|
+
InvalidArrayError,
|
|
2646
|
+
InvalidDefinitionTypeError,
|
|
2647
|
+
UnsupportedPackedAbiType,
|
|
2648
|
+
SliceOffsetOutOfBoundsError,
|
|
2649
|
+
SizeExceedsPaddingSizeError,
|
|
2650
|
+
InvalidBytesLengthError,
|
|
2651
|
+
pad,
|
|
2652
|
+
padHex,
|
|
2653
|
+
padBytes,
|
|
2654
|
+
IntegerOutOfRangeError,
|
|
2655
|
+
InvalidBytesBooleanError,
|
|
2656
|
+
InvalidHexBooleanError,
|
|
2657
|
+
InvalidHexValueError,
|
|
2658
|
+
RlpDepthLimitExceededError,
|
|
2659
|
+
RlpListBoundaryExceededError,
|
|
2660
|
+
RlpTrailingBytesError,
|
|
2661
|
+
SizeOverflowError,
|
|
2658
2662
|
trim,
|
|
2659
|
-
toBytes2 as toBytes,
|
|
2660
|
-
hexToBytes,
|
|
2661
|
-
stringToBytes,
|
|
2662
2663
|
assertSize,
|
|
2664
|
+
fromHex,
|
|
2663
2665
|
hexToBigInt,
|
|
2664
2666
|
hexToBool,
|
|
2665
2667
|
hexToNumber,
|
|
2668
|
+
hexToString,
|
|
2666
2669
|
toHex,
|
|
2670
|
+
boolToHex,
|
|
2667
2671
|
bytesToHex,
|
|
2668
2672
|
numberToHex,
|
|
2669
2673
|
stringToHex,
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2674
|
+
toBytes,
|
|
2675
|
+
boolToBytes,
|
|
2676
|
+
hexToBytes,
|
|
2677
|
+
numberToBytes,
|
|
2678
|
+
stringToBytes,
|
|
2673
2679
|
keccak256,
|
|
2680
|
+
InvalidAddressError,
|
|
2681
|
+
LruMap,
|
|
2674
2682
|
checksumAddress,
|
|
2675
2683
|
getAddress,
|
|
2676
2684
|
isAddress,
|
|
2677
2685
|
concat,
|
|
2686
|
+
concatBytes,
|
|
2678
2687
|
concatHex,
|
|
2688
|
+
slice,
|
|
2689
|
+
sliceBytes,
|
|
2690
|
+
sliceHex,
|
|
2691
|
+
arrayRegex,
|
|
2692
|
+
bytesRegex,
|
|
2693
|
+
integerRegex,
|
|
2694
|
+
encodeAbiParameters,
|
|
2695
|
+
getArrayComponents,
|
|
2696
|
+
parseAccount,
|
|
2679
2697
|
PositionOutOfBoundsError,
|
|
2680
2698
|
createCursor,
|
|
2699
|
+
stringify,
|
|
2700
|
+
etherUnits,
|
|
2701
|
+
gweiUnits,
|
|
2702
|
+
weiUnits,
|
|
2681
2703
|
formatUnits,
|
|
2682
2704
|
formatEther,
|
|
2683
2705
|
formatGwei,
|
|
2684
2706
|
prettyPrint,
|
|
2707
|
+
FeeConflictError,
|
|
2685
2708
|
InvalidLegacyVError,
|
|
2709
|
+
InvalidYParityError,
|
|
2686
2710
|
InvalidSerializableTransactionError,
|
|
2711
|
+
InvalidSerializedTransactionTypeError,
|
|
2712
|
+
InvalidSerializedTransactionError,
|
|
2687
2713
|
InvalidStorageKeySizeError,
|
|
2688
2714
|
TransactionExecutionError,
|
|
2689
2715
|
TransactionNotFoundError,
|
|
2690
2716
|
TransactionReceiptNotFoundError,
|
|
2691
2717
|
TransactionReceiptRevertedError,
|
|
2692
2718
|
WaitForTransactionReceiptTimeoutError,
|
|
2693
|
-
maxUint256,
|
|
2694
|
-
ChainDoesNotSupportContract,
|
|
2695
|
-
ClientChainNotConfiguredError,
|
|
2696
|
-
InvalidChainIdError,
|
|
2697
2719
|
ExecutionRevertedError,
|
|
2698
2720
|
FeeCapTooHighError,
|
|
2699
2721
|
FeeCapTooLowError,
|
|
@@ -2706,64 +2728,138 @@ export {
|
|
|
2706
2728
|
TransactionTypeNotSupportedError,
|
|
2707
2729
|
TipAboveFeeCapError,
|
|
2708
2730
|
UnknownNodeError,
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2731
|
+
maxInt8,
|
|
2732
|
+
maxInt16,
|
|
2733
|
+
maxInt24,
|
|
2734
|
+
maxInt32,
|
|
2735
|
+
maxInt40,
|
|
2736
|
+
maxInt48,
|
|
2737
|
+
maxInt56,
|
|
2738
|
+
maxInt64,
|
|
2739
|
+
maxInt72,
|
|
2740
|
+
maxInt80,
|
|
2741
|
+
maxInt88,
|
|
2742
|
+
maxInt96,
|
|
2743
|
+
maxInt104,
|
|
2744
|
+
maxInt112,
|
|
2745
|
+
maxInt120,
|
|
2746
|
+
maxInt128,
|
|
2747
|
+
maxInt136,
|
|
2748
|
+
maxInt144,
|
|
2749
|
+
maxInt152,
|
|
2750
|
+
maxInt160,
|
|
2751
|
+
maxInt168,
|
|
2752
|
+
maxInt176,
|
|
2753
|
+
maxInt184,
|
|
2754
|
+
maxInt192,
|
|
2755
|
+
maxInt200,
|
|
2756
|
+
maxInt208,
|
|
2757
|
+
maxInt216,
|
|
2758
|
+
maxInt224,
|
|
2759
|
+
maxInt232,
|
|
2760
|
+
maxInt240,
|
|
2761
|
+
maxInt248,
|
|
2762
|
+
maxInt256,
|
|
2763
|
+
minInt8,
|
|
2764
|
+
minInt16,
|
|
2765
|
+
minInt24,
|
|
2766
|
+
minInt32,
|
|
2767
|
+
minInt40,
|
|
2768
|
+
minInt48,
|
|
2769
|
+
minInt56,
|
|
2770
|
+
minInt64,
|
|
2771
|
+
minInt72,
|
|
2772
|
+
minInt80,
|
|
2773
|
+
minInt88,
|
|
2774
|
+
minInt96,
|
|
2775
|
+
minInt104,
|
|
2776
|
+
minInt112,
|
|
2777
|
+
minInt120,
|
|
2778
|
+
minInt128,
|
|
2779
|
+
minInt136,
|
|
2780
|
+
minInt144,
|
|
2781
|
+
minInt152,
|
|
2782
|
+
minInt160,
|
|
2783
|
+
minInt168,
|
|
2784
|
+
minInt176,
|
|
2785
|
+
minInt184,
|
|
2786
|
+
minInt192,
|
|
2787
|
+
minInt200,
|
|
2788
|
+
minInt208,
|
|
2789
|
+
minInt216,
|
|
2790
|
+
minInt224,
|
|
2791
|
+
minInt232,
|
|
2792
|
+
minInt240,
|
|
2793
|
+
minInt248,
|
|
2794
|
+
minInt256,
|
|
2795
|
+
maxUint8,
|
|
2796
|
+
maxUint16,
|
|
2797
|
+
maxUint24,
|
|
2798
|
+
maxUint32,
|
|
2799
|
+
maxUint40,
|
|
2800
|
+
maxUint48,
|
|
2801
|
+
maxUint56,
|
|
2802
|
+
maxUint64,
|
|
2803
|
+
maxUint72,
|
|
2804
|
+
maxUint80,
|
|
2805
|
+
maxUint88,
|
|
2806
|
+
maxUint96,
|
|
2807
|
+
maxUint104,
|
|
2808
|
+
maxUint112,
|
|
2809
|
+
maxUint120,
|
|
2810
|
+
maxUint128,
|
|
2811
|
+
maxUint136,
|
|
2812
|
+
maxUint144,
|
|
2813
|
+
maxUint152,
|
|
2814
|
+
maxUint160,
|
|
2815
|
+
maxUint168,
|
|
2816
|
+
maxUint176,
|
|
2817
|
+
maxUint184,
|
|
2818
|
+
maxUint192,
|
|
2819
|
+
maxUint200,
|
|
2820
|
+
maxUint208,
|
|
2821
|
+
maxUint216,
|
|
2822
|
+
maxUint224,
|
|
2823
|
+
maxUint232,
|
|
2824
|
+
maxUint240,
|
|
2825
|
+
maxUint248,
|
|
2826
|
+
maxUint256,
|
|
2827
|
+
formatBlockParameter,
|
|
2737
2828
|
BaseError2,
|
|
2738
2829
|
stringify2,
|
|
2739
2830
|
concat3 as concat2,
|
|
2740
2831
|
from2 as from,
|
|
2741
|
-
|
|
2742
|
-
fromBytes,
|
|
2743
|
-
fromNumber,
|
|
2832
|
+
fromHex2,
|
|
2744
2833
|
fromString2 as fromString,
|
|
2745
|
-
|
|
2746
|
-
|
|
2834
|
+
isEqual,
|
|
2835
|
+
random,
|
|
2836
|
+
size2,
|
|
2747
2837
|
slice3 as slice2,
|
|
2748
|
-
|
|
2838
|
+
toBigInt2 as toBigInt,
|
|
2839
|
+
toBoolean,
|
|
2840
|
+
toHex2,
|
|
2841
|
+
toNumber2 as toNumber,
|
|
2842
|
+
toString,
|
|
2749
2843
|
trimLeft2 as trimLeft,
|
|
2750
|
-
toNumber,
|
|
2751
2844
|
validate2 as validate,
|
|
2752
|
-
IntegerOutOfRangeError2 as IntegerOutOfRangeError,
|
|
2753
2845
|
concat2 as concat3,
|
|
2754
2846
|
from as from2,
|
|
2755
|
-
|
|
2847
|
+
fromBoolean,
|
|
2848
|
+
fromBytes,
|
|
2849
|
+
fromNumber,
|
|
2756
2850
|
fromString as fromString2,
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
size2 as size3,
|
|
2851
|
+
padLeft,
|
|
2852
|
+
padRight,
|
|
2760
2853
|
slice2 as slice3,
|
|
2761
|
-
|
|
2762
|
-
toBoolean,
|
|
2763
|
-
toHex2,
|
|
2764
|
-
toNumber2,
|
|
2765
|
-
toString,
|
|
2854
|
+
size3,
|
|
2766
2855
|
trimLeft as trimLeft2,
|
|
2767
|
-
|
|
2856
|
+
toNumber as toNumber2,
|
|
2857
|
+
validate as validate2,
|
|
2858
|
+
IntegerOutOfRangeError2,
|
|
2859
|
+
ChainDoesNotSupportContract,
|
|
2860
|
+
ChainMismatchError,
|
|
2861
|
+
ChainNotFoundError,
|
|
2862
|
+
ClientChainNotConfiguredError,
|
|
2863
|
+
InvalidChainIdError
|
|
2768
2864
|
};
|
|
2769
|
-
//# sourceMappingURL=chunk-
|
|
2865
|
+
//# sourceMappingURL=chunk-47PP7TAG.js.map
|