tenjin-cli 0.1.0-alpha.0 → 0.1.0-alpha.10
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 +575 -50
- package/dist/{_esm-ZH2J4QEH.js → _esm-C5CRWCYU.js} +2 -2
- package/dist/_esm-N4KAVXQR.js +881 -0
- package/dist/buy-FMDBZ4NY.js +44 -0
- package/dist/candidate-7LAELUQD.js +23 -0
- package/dist/ccip-RPPPKTJR.js +19 -0
- package/dist/{ccip-FXWZDDF5.js → ccip-ZGGWQN4X.js} +6 -5
- package/dist/chunk-2GSRYTZS.js +127 -0
- package/dist/chunk-2GSRYTZS.js.map +1 -0
- package/dist/chunk-2I4QTOLB.js +11 -0
- package/dist/chunk-2I4QTOLB.js.map +1 -0
- package/dist/chunk-36X2CA3N.js +311 -0
- package/dist/chunk-36X2CA3N.js.map +1 -0
- package/dist/{chunk-F5DZJLU3.js → chunk-47PP7TAG.js} +1441 -634
- package/dist/chunk-47PP7TAG.js.map +1 -0
- package/dist/chunk-5JMKIDMM.js +316 -0
- package/dist/chunk-5JMKIDMM.js.map +1 -0
- package/dist/chunk-5JXAZP7H.js +206 -0
- package/dist/chunk-5JXAZP7H.js.map +1 -0
- package/dist/chunk-5SE6BJRP.js +135 -0
- package/dist/chunk-5SE6BJRP.js.map +1 -0
- package/dist/chunk-6BZLSRNU.js +149 -0
- package/dist/chunk-6BZLSRNU.js.map +1 -0
- package/dist/{chunk-PAAL45FJ.js → chunk-7FK2UN2T.js} +3410 -412
- package/dist/chunk-7FK2UN2T.js.map +1 -0
- package/dist/chunk-7WDY4AXV.js +14620 -0
- package/dist/chunk-7WDY4AXV.js.map +1 -0
- package/dist/chunk-A6KCZPNQ.js +83 -0
- package/dist/chunk-A6KCZPNQ.js.map +1 -0
- package/dist/chunk-AWQ6A4CI.js +341 -0
- package/dist/chunk-AWQ6A4CI.js.map +1 -0
- package/dist/chunk-BJJ5BQO6.js +162 -0
- package/dist/chunk-BJJ5BQO6.js.map +1 -0
- package/dist/chunk-BUDHTDKL.js +612 -0
- package/dist/chunk-BUDHTDKL.js.map +1 -0
- package/dist/chunk-DKQMJTG7.js +188 -0
- package/dist/chunk-DKQMJTG7.js.map +1 -0
- package/dist/chunk-FKSAUOJU.js +137 -0
- package/dist/chunk-FKSAUOJU.js.map +1 -0
- package/dist/chunk-GECSWJ7O.js +1645 -0
- package/dist/chunk-GECSWJ7O.js.map +1 -0
- package/dist/chunk-GSDZRCGF.js +105 -0
- package/dist/chunk-GSDZRCGF.js.map +1 -0
- package/dist/chunk-JSSIMGQT.js +174 -0
- package/dist/chunk-JSSIMGQT.js.map +1 -0
- package/dist/chunk-KYH4KPE5.js +1357 -0
- package/dist/chunk-KYH4KPE5.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-SXQQ2ZSR.js → chunk-M2O56UK7.js} +243 -75
- package/dist/chunk-M2O56UK7.js.map +1 -0
- package/dist/chunk-MD7WGYYI.js +125 -0
- package/dist/chunk-MD7WGYYI.js.map +1 -0
- package/dist/chunk-MJZZTKCC.js +323 -0
- package/dist/chunk-MJZZTKCC.js.map +1 -0
- package/dist/chunk-O6CAUZGY.js +317 -0
- package/dist/chunk-O6CAUZGY.js.map +1 -0
- package/dist/chunk-P74I3WH4.js +204 -0
- package/dist/chunk-P74I3WH4.js.map +1 -0
- package/dist/chunk-POF7HPRV.js +145 -0
- package/dist/chunk-POF7HPRV.js.map +1 -0
- package/dist/chunk-POJRB2AE.js +83 -0
- package/dist/chunk-POJRB2AE.js.map +1 -0
- package/dist/{chunk-FIYZLITH.js → chunk-PZRAAAY2.js} +107 -18
- 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-R2VLGNFD.js +181 -0
- package/dist/chunk-R2VLGNFD.js.map +1 -0
- package/dist/{chunk-CPUZRZ2A.js → chunk-RBJPAZFI.js} +25 -170
- package/dist/chunk-RBJPAZFI.js.map +1 -0
- package/dist/chunk-S5RYMCV6.js +70 -0
- package/dist/chunk-S5RYMCV6.js.map +1 -0
- package/dist/chunk-SGK2B724.js +67 -0
- package/dist/chunk-SGK2B724.js.map +1 -0
- package/dist/chunk-STND72DS.js +242 -0
- package/dist/chunk-STND72DS.js.map +1 -0
- package/dist/chunk-TEL27PR5.js +124 -0
- package/dist/chunk-TEL27PR5.js.map +1 -0
- package/dist/chunk-TWRYSGAW.js +134 -0
- package/dist/chunk-TWRYSGAW.js.map +1 -0
- package/dist/{chunk-WOHCAMDQ.js → chunk-U5S527PP.js} +1887 -1029
- package/dist/chunk-U5S527PP.js.map +1 -0
- package/dist/chunk-UHTVXQ2O.js +140 -0
- package/dist/chunk-UHTVXQ2O.js.map +1 -0
- package/dist/chunk-UOJRKQTZ.js +213 -0
- package/dist/chunk-UOJRKQTZ.js.map +1 -0
- package/dist/chunk-V4WWTZHZ.js +233 -0
- package/dist/chunk-V4WWTZHZ.js.map +1 -0
- package/dist/chunk-VRRLTZ2Q.js +651 -0
- package/dist/chunk-VRRLTZ2Q.js.map +1 -0
- package/dist/{chunk-TX5T3LKJ.js → chunk-W6R3HAAG.js} +21 -17
- package/dist/{chunk-TX5T3LKJ.js.map → chunk-W6R3HAAG.js.map} +1 -1
- package/dist/chunk-X3OOVSPX.js +154 -0
- package/dist/chunk-X3OOVSPX.js.map +1 -0
- package/dist/chunk-XJN5WUKL.js +204 -0
- package/dist/chunk-XJN5WUKL.js.map +1 -0
- package/dist/chunk-Y7ERTA7D.js +146 -0
- 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-ZQIQ55KK.js +51 -0
- package/dist/chunk-ZQIQ55KK.js.map +1 -0
- package/dist/chunk-ZUAQRIVP.js +1369 -0
- package/dist/chunk-ZUAQRIVP.js.map +1 -0
- package/dist/{chunk-3IMLRUZE.js → chunk-ZXTAQYNA.js} +6 -2
- package/dist/chunk-ZXTAQYNA.js.map +1 -0
- package/dist/{cli-LMHGCZ5S.js → cli-HK2XAWNW.js} +438 -177
- package/dist/cli-HK2XAWNW.js.map +1 -0
- package/dist/config-LYCHHNAJ.js +26 -0
- package/dist/config-LYCHHNAJ.js.map +1 -0
- package/dist/dist-U4M6QCKE.js +2842 -0
- package/dist/dist-U4M6QCKE.js.map +1 -0
- package/dist/doctor-2KPUQURC.js +27 -0
- package/dist/doctor-2KPUQURC.js.map +1 -0
- package/dist/edit-TST3OCKQ.js +38 -0
- package/dist/edit-TST3OCKQ.js.map +1 -0
- package/dist/ethersCompat-Df4a6QIZ-WHYKB6HA.js +18 -0
- package/dist/ethersCompat-Df4a6QIZ-WHYKB6HA.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/inspect-TPTHVPBB.js +35 -0
- package/dist/inspect-TPTHVPBB.js.map +1 -0
- package/dist/install-PT3XEDJ6.js +1869 -0
- package/dist/install-PT3XEDJ6.js.map +1 -0
- package/dist/{mine.wasm-GQECMSGN.js → mine.wasm-6PIT3DK6.js} +2 -2
- package/dist/outcome-NPNSF2Q7.js +22 -0
- package/dist/outcome-NPNSF2Q7.js.map +1 -0
- package/dist/publish-XP5SEWST.js +41 -0
- package/dist/publish-XP5SEWST.js.map +1 -0
- package/dist/read-D4VXRWOG.js +158 -0
- package/dist/read-D4VXRWOG.js.map +1 -0
- package/dist/run-3IPGEXW7.js +16902 -0
- package/dist/run-3IPGEXW7.js.map +1 -0
- package/dist/search-YOBD6VDI.js +24 -0
- package/dist/search-YOBD6VDI.js.map +1 -0
- package/dist/{secp256k1-35YNNB6F.js → secp256k1-XRPVBC6V.js} +5 -4
- package/dist/secp256k1-XRPVBC6V.js.map +1 -0
- package/dist/send-BWNP6WN4.js +223 -0
- package/dist/send-BWNP6WN4.js.map +1 -0
- package/dist/session-GZEZBOMI.js +88 -0
- package/dist/session-GZEZBOMI.js.map +1 -0
- package/dist/skill-heal-OK6YALW6.js +85 -0
- package/dist/skill-heal-OK6YALW6.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-5RHDFPN2.js +32 -0
- package/dist/wallet-5RHDFPN2.js.map +1 -0
- package/dist/wallet-YEGQBWWL.js +42 -0
- package/dist/wallet-YEGQBWWL.js.map +1 -0
- package/docs/agent-permissions.md +281 -0
- package/package.json +26 -17
- package/skills/tenjin/SKILL.md +364 -0
- package/skills/tenjin-publish/SKILL.md +219 -0
- package/skills/tenjin-search/SKILL.md +335 -0
- package/dist/chunk-376LHMK2.js +0 -100
- package/dist/chunk-376LHMK2.js.map +0 -1
- package/dist/chunk-CPUZRZ2A.js.map +0 -1
- package/dist/chunk-F5DZJLU3.js.map +0 -1
- package/dist/chunk-FIYZLITH.js.map +0 -1
- package/dist/chunk-LTTRND4A.js +0 -135
- package/dist/chunk-LTTRND4A.js.map +0 -1
- package/dist/chunk-PAAL45FJ.js.map +0 -1
- package/dist/chunk-QHIEYBLV.js +0 -320
- package/dist/chunk-QHIEYBLV.js.map +0 -1
- package/dist/chunk-SXQQ2ZSR.js.map +0 -1
- package/dist/chunk-WOHCAMDQ.js.map +0 -1
- package/dist/chunk-ZPZFPVDN.js +0 -67
- package/dist/chunk-ZPZFPVDN.js.map +0 -1
- package/dist/cli-LMHGCZ5S.js.map +0 -1
- package/dist/config-XVXZ3V2Q.js +0 -206
- package/dist/config-XVXZ3V2Q.js.map +0 -1
- package/dist/doctor-MVLZRVPU.js +0 -338
- package/dist/doctor-MVLZRVPU.js.map +0 -1
- package/dist/usdc-OQUOFF6R.js +0 -18
- package/dist/wallet-NRKWLKHX.js +0 -153
- package/dist/wallet-NRKWLKHX.js.map +0 -1
- package/dist/wallet-QUWK2PA4.js +0 -22
- /package/dist/{_esm-ZH2J4QEH.js.map → _esm-C5CRWCYU.js.map} +0 -0
- /package/dist/{ccip-FXWZDDF5.js.map → _esm-N4KAVXQR.js.map} +0 -0
- /package/dist/{chunk-3IMLRUZE.js.map → buy-FMDBZ4NY.js.map} +0 -0
- /package/dist/{secp256k1-35YNNB6F.js.map → candidate-7LAELUQD.js.map} +0 -0
- /package/dist/{usdc-OQUOFF6R.js.map → ccip-RPPPKTJR.js.map} +0 -0
- /package/dist/{wallet-QUWK2PA4.js.map → ccip-ZGGWQN4X.js.map} +0 -0
- /package/dist/{mine.wasm-GQECMSGN.js.map → mine.wasm-6PIT3DK6.js.map} +0 -0
|
@@ -1,21 +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
|
-
rotlBH,
|
|
11
|
-
rotlBL,
|
|
12
|
-
rotlSH,
|
|
13
|
-
rotlSL,
|
|
14
|
-
split,
|
|
15
|
-
swap32IfBE,
|
|
16
|
-
toBytes,
|
|
17
|
-
u32
|
|
18
|
-
} from "./chunk-CPUZRZ2A.js";
|
|
3
|
+
keccak_256
|
|
4
|
+
} from "./chunk-XJN5WUKL.js";
|
|
5
|
+
import {
|
|
6
|
+
equalBytes
|
|
7
|
+
} from "./chunk-RBJPAZFI.js";
|
|
19
8
|
|
|
20
9
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/isHex.js
|
|
21
10
|
function isHex(value, { strict = true } = {}) {
|
|
@@ -26,47 +15,6 @@ function isHex(value, { strict = true } = {}) {
|
|
|
26
15
|
return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
|
|
27
16
|
}
|
|
28
17
|
|
|
29
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/concat.js
|
|
30
|
-
function concat(values) {
|
|
31
|
-
if (typeof values[0] === "string")
|
|
32
|
-
return concatHex(values);
|
|
33
|
-
return concatBytes(values);
|
|
34
|
-
}
|
|
35
|
-
function concatBytes(values) {
|
|
36
|
-
let length = 0;
|
|
37
|
-
for (const arr of values) {
|
|
38
|
-
length += arr.length;
|
|
39
|
-
}
|
|
40
|
-
const result = new Uint8Array(length);
|
|
41
|
-
let offset = 0;
|
|
42
|
-
for (const arr of values) {
|
|
43
|
-
result.set(arr, offset);
|
|
44
|
-
offset += arr.length;
|
|
45
|
-
}
|
|
46
|
-
return result;
|
|
47
|
-
}
|
|
48
|
-
function concatHex(values) {
|
|
49
|
-
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/abi/formatAbiItem.js
|
|
53
|
-
function formatAbiItem(abiItem, { includeName = false } = {}) {
|
|
54
|
-
if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
|
|
55
|
-
throw new InvalidDefinitionTypeError(abiItem.type);
|
|
56
|
-
return `${abiItem.name}(${formatAbiParams(abiItem.inputs, { includeName })})`;
|
|
57
|
-
}
|
|
58
|
-
function formatAbiParams(params, { includeName = false } = {}) {
|
|
59
|
-
if (!params)
|
|
60
|
-
return "";
|
|
61
|
-
return params.map((param) => formatAbiParam(param, { includeName })).join(includeName ? ", " : ",");
|
|
62
|
-
}
|
|
63
|
-
function formatAbiParam(param, { includeName }) {
|
|
64
|
-
if (param.type.startsWith("tuple")) {
|
|
65
|
-
return `(${formatAbiParams(param.components, { includeName })})${param.type.slice("tuple".length)}`;
|
|
66
|
-
}
|
|
67
|
-
return param.type + (includeName && param.name ? ` ${param.name}` : "");
|
|
68
|
-
}
|
|
69
|
-
|
|
70
18
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/size.js
|
|
71
19
|
function size(value) {
|
|
72
20
|
if (isHex(value, { strict: false }))
|
|
@@ -82,6 +30,9 @@ var errorConfig = {
|
|
|
82
30
|
getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
|
|
83
31
|
version: `viem@${version}`
|
|
84
32
|
};
|
|
33
|
+
function setErrorConfig(config) {
|
|
34
|
+
errorConfig = config;
|
|
35
|
+
}
|
|
85
36
|
var BaseError = class _BaseError extends Error {
|
|
86
37
|
constructor(shortMessage, args = {}) {
|
|
87
38
|
const details = (() => {
|
|
@@ -161,6 +112,24 @@ function walk(err, fn) {
|
|
|
161
112
|
return fn ? null : err;
|
|
162
113
|
}
|
|
163
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
|
+
|
|
164
133
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/abi.js
|
|
165
134
|
var AbiConstructorNotFoundError = class extends BaseError {
|
|
166
135
|
constructor({ docsPath }) {
|
|
@@ -184,12 +153,23 @@ var AbiConstructorParamsNotFoundError = class extends BaseError {
|
|
|
184
153
|
});
|
|
185
154
|
}
|
|
186
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
|
+
};
|
|
187
167
|
var AbiDecodingDataSizeTooSmallError = class extends BaseError {
|
|
188
|
-
constructor({ data, params, size:
|
|
189
|
-
super([`Data size of ${
|
|
168
|
+
constructor({ data, params, size: size4 }) {
|
|
169
|
+
super([`Data size of ${size4} bytes is too small for given parameters.`].join("\n"), {
|
|
190
170
|
metaMessages: [
|
|
191
171
|
`Params: (${formatAbiParams(params, { includeName: true })})`,
|
|
192
|
-
`Data: ${data} (${
|
|
172
|
+
`Data: ${data} (${size4} bytes)`
|
|
193
173
|
],
|
|
194
174
|
name: "AbiDecodingDataSizeTooSmallError"
|
|
195
175
|
});
|
|
@@ -213,7 +193,7 @@ var AbiDecodingDataSizeTooSmallError = class extends BaseError {
|
|
|
213
193
|
});
|
|
214
194
|
this.data = data;
|
|
215
195
|
this.params = params;
|
|
216
|
-
this.size =
|
|
196
|
+
this.size = size4;
|
|
217
197
|
}
|
|
218
198
|
};
|
|
219
199
|
var AbiDecodingZeroDataError = class extends BaseError {
|
|
@@ -378,13 +358,13 @@ var BytesSizeMismatchError = class extends BaseError {
|
|
|
378
358
|
}
|
|
379
359
|
};
|
|
380
360
|
var DecodeLogDataMismatch = class extends BaseError {
|
|
381
|
-
constructor({ abiItem, data, params, size:
|
|
361
|
+
constructor({ abiItem, data, params, size: size4 }) {
|
|
382
362
|
super([
|
|
383
|
-
`Data size of ${
|
|
363
|
+
`Data size of ${size4} bytes is too small for non-indexed event parameters.`
|
|
384
364
|
].join("\n"), {
|
|
385
365
|
metaMessages: [
|
|
386
366
|
`Params: (${formatAbiParams(params, { includeName: true })})`,
|
|
387
|
-
`Data: ${data} (${
|
|
367
|
+
`Data: ${data} (${size4} bytes)`
|
|
388
368
|
],
|
|
389
369
|
name: "DecodeLogDataMismatch"
|
|
390
370
|
});
|
|
@@ -415,7 +395,7 @@ var DecodeLogDataMismatch = class extends BaseError {
|
|
|
415
395
|
this.abiItem = abiItem;
|
|
416
396
|
this.data = data;
|
|
417
397
|
this.params = params;
|
|
418
|
-
this.size =
|
|
398
|
+
this.size = size4;
|
|
419
399
|
}
|
|
420
400
|
};
|
|
421
401
|
var DecodeLogTopicsMismatch = class extends BaseError {
|
|
@@ -463,129 +443,112 @@ var InvalidDefinitionTypeError = class extends BaseError {
|
|
|
463
443
|
].join("\n"), { name: "InvalidDefinitionTypeError" });
|
|
464
444
|
}
|
|
465
445
|
};
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
super(`Address "${address}" is invalid.`, {
|
|
471
|
-
metaMessages: [
|
|
472
|
-
"- Address must be a hex value of 20 bytes (40 hex characters).",
|
|
473
|
-
"- Address must match its checksum counterpart."
|
|
474
|
-
],
|
|
475
|
-
name: "InvalidAddressError"
|
|
476
|
-
});
|
|
477
|
-
}
|
|
478
|
-
};
|
|
479
|
-
|
|
480
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/encoding.js
|
|
481
|
-
var IntegerOutOfRangeError = class extends BaseError {
|
|
482
|
-
constructor({ max, min, signed, size: size2, value }) {
|
|
483
|
-
super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
|
|
484
|
-
}
|
|
485
|
-
};
|
|
486
|
-
var InvalidBytesBooleanError = class extends BaseError {
|
|
487
|
-
constructor(bytes) {
|
|
488
|
-
super(`Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
|
|
489
|
-
name: "InvalidBytesBooleanError"
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
};
|
|
493
|
-
var InvalidHexBooleanError = class extends BaseError {
|
|
494
|
-
constructor(hex) {
|
|
495
|
-
super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
var SizeOverflowError = class extends BaseError {
|
|
499
|
-
constructor({ givenSize, maxSize }) {
|
|
500
|
-
super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
|
|
501
|
-
}
|
|
502
|
-
};
|
|
503
|
-
|
|
504
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/lru.js
|
|
505
|
-
var LruMap = class extends Map {
|
|
506
|
-
constructor(size2) {
|
|
507
|
-
super();
|
|
508
|
-
Object.defineProperty(this, "maxSize", {
|
|
509
|
-
enumerable: true,
|
|
510
|
-
configurable: true,
|
|
511
|
-
writable: true,
|
|
512
|
-
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"
|
|
513
450
|
});
|
|
514
|
-
this.maxSize = size2;
|
|
515
|
-
}
|
|
516
|
-
get(key) {
|
|
517
|
-
const value = super.get(key);
|
|
518
|
-
if (super.has(key)) {
|
|
519
|
-
super.delete(key);
|
|
520
|
-
super.set(key, value);
|
|
521
|
-
}
|
|
522
|
-
return value;
|
|
523
|
-
}
|
|
524
|
-
set(key, value) {
|
|
525
|
-
if (super.has(key))
|
|
526
|
-
super.delete(key);
|
|
527
|
-
super.set(key, value);
|
|
528
|
-
if (this.maxSize && this.size > this.maxSize) {
|
|
529
|
-
const firstKey = super.keys().next().value;
|
|
530
|
-
if (firstKey !== void 0)
|
|
531
|
-
super.delete(firstKey);
|
|
532
|
-
}
|
|
533
|
-
return this;
|
|
534
451
|
}
|
|
535
452
|
};
|
|
536
453
|
|
|
537
454
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/data.js
|
|
538
455
|
var SliceOffsetOutOfBoundsError = class extends BaseError {
|
|
539
|
-
constructor({ offset, position, size:
|
|
540
|
-
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${
|
|
456
|
+
constructor({ offset, position, size: size4 }) {
|
|
457
|
+
super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size4}).`, { name: "SliceOffsetOutOfBoundsError" });
|
|
541
458
|
}
|
|
542
459
|
};
|
|
543
460
|
var SizeExceedsPaddingSizeError = class extends BaseError {
|
|
544
|
-
constructor({ size:
|
|
545
|
-
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${
|
|
461
|
+
constructor({ size: size4, targetSize, type }) {
|
|
462
|
+
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size4}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
|
|
546
463
|
}
|
|
547
464
|
};
|
|
548
465
|
var InvalidBytesLengthError = class extends BaseError {
|
|
549
|
-
constructor({ size:
|
|
550
|
-
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${
|
|
466
|
+
constructor({ size: size4, targetSize, type }) {
|
|
467
|
+
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size4} ${type} long.`, { name: "InvalidBytesLengthError" });
|
|
551
468
|
}
|
|
552
469
|
};
|
|
553
470
|
|
|
554
471
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/pad.js
|
|
555
|
-
function pad(hexOrBytes, { dir, size:
|
|
472
|
+
function pad(hexOrBytes, { dir, size: size4 = 32 } = {}) {
|
|
556
473
|
if (typeof hexOrBytes === "string")
|
|
557
|
-
return padHex(hexOrBytes, { dir, size:
|
|
558
|
-
return padBytes(hexOrBytes, { dir, size:
|
|
474
|
+
return padHex(hexOrBytes, { dir, size: size4 });
|
|
475
|
+
return padBytes(hexOrBytes, { dir, size: size4 });
|
|
559
476
|
}
|
|
560
|
-
function padHex(hex_, { dir, size:
|
|
561
|
-
if (
|
|
477
|
+
function padHex(hex_, { dir, size: size4 = 32 } = {}) {
|
|
478
|
+
if (size4 === null)
|
|
562
479
|
return hex_;
|
|
563
480
|
const hex = hex_.replace("0x", "");
|
|
564
|
-
if (hex.length >
|
|
481
|
+
if (hex.length > size4 * 2)
|
|
565
482
|
throw new SizeExceedsPaddingSizeError({
|
|
566
483
|
size: Math.ceil(hex.length / 2),
|
|
567
|
-
targetSize:
|
|
484
|
+
targetSize: size4,
|
|
568
485
|
type: "hex"
|
|
569
486
|
});
|
|
570
|
-
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](
|
|
487
|
+
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size4 * 2, "0")}`;
|
|
571
488
|
}
|
|
572
|
-
function padBytes(bytes, { dir, size:
|
|
573
|
-
if (
|
|
489
|
+
function padBytes(bytes, { dir, size: size4 = 32 } = {}) {
|
|
490
|
+
if (size4 === null)
|
|
574
491
|
return bytes;
|
|
575
|
-
if (bytes.length >
|
|
492
|
+
if (bytes.length > size4)
|
|
576
493
|
throw new SizeExceedsPaddingSizeError({
|
|
577
494
|
size: bytes.length,
|
|
578
|
-
targetSize:
|
|
495
|
+
targetSize: size4,
|
|
579
496
|
type: "bytes"
|
|
580
497
|
});
|
|
581
|
-
const paddedBytes = new Uint8Array(
|
|
582
|
-
for (let i = 0; i <
|
|
498
|
+
const paddedBytes = new Uint8Array(size4);
|
|
499
|
+
for (let i = 0; i < size4; i++) {
|
|
583
500
|
const padEnd = dir === "right";
|
|
584
|
-
paddedBytes[padEnd ? i :
|
|
501
|
+
paddedBytes[padEnd ? i : size4 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
|
|
585
502
|
}
|
|
586
503
|
return paddedBytes;
|
|
587
504
|
}
|
|
588
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
|
+
|
|
589
552
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/trim.js
|
|
590
553
|
function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
591
554
|
let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
|
|
@@ -605,53 +568,6 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
|
|
|
605
568
|
return data;
|
|
606
569
|
}
|
|
607
570
|
|
|
608
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/fromHex.js
|
|
609
|
-
function assertSize(hexOrBytes, { size: size2 }) {
|
|
610
|
-
if (size(hexOrBytes) > size2)
|
|
611
|
-
throw new SizeOverflowError({
|
|
612
|
-
givenSize: size(hexOrBytes),
|
|
613
|
-
maxSize: size2
|
|
614
|
-
});
|
|
615
|
-
}
|
|
616
|
-
function hexToBigInt(hex, opts = {}) {
|
|
617
|
-
const { signed } = opts;
|
|
618
|
-
if (opts.size)
|
|
619
|
-
assertSize(hex, { size: opts.size });
|
|
620
|
-
const value = BigInt(hex);
|
|
621
|
-
if (!signed)
|
|
622
|
-
return value;
|
|
623
|
-
const size2 = (hex.length - 2) / 2;
|
|
624
|
-
const max = (1n << BigInt(size2) * 8n - 1n) - 1n;
|
|
625
|
-
if (value <= max)
|
|
626
|
-
return value;
|
|
627
|
-
return value - BigInt(`0x${"f".padStart(size2 * 2, "f")}`) - 1n;
|
|
628
|
-
}
|
|
629
|
-
function hexToBool(hex_, opts = {}) {
|
|
630
|
-
let hex = hex_;
|
|
631
|
-
if (opts.size) {
|
|
632
|
-
assertSize(hex, { size: opts.size });
|
|
633
|
-
hex = trim(hex);
|
|
634
|
-
}
|
|
635
|
-
if (trim(hex) === "0x00")
|
|
636
|
-
return false;
|
|
637
|
-
if (trim(hex) === "0x01")
|
|
638
|
-
return true;
|
|
639
|
-
throw new InvalidHexBooleanError(hex);
|
|
640
|
-
}
|
|
641
|
-
function hexToNumber(hex, opts = {}) {
|
|
642
|
-
const value = hexToBigInt(hex, opts);
|
|
643
|
-
const number = Number(value);
|
|
644
|
-
if (!Number.isSafeInteger(number))
|
|
645
|
-
throw new IntegerOutOfRangeError({
|
|
646
|
-
max: `${Number.MAX_SAFE_INTEGER}`,
|
|
647
|
-
min: `${Number.MIN_SAFE_INTEGER}`,
|
|
648
|
-
signed: opts.signed,
|
|
649
|
-
size: opts.size,
|
|
650
|
-
value: `${value}n`
|
|
651
|
-
});
|
|
652
|
-
return number;
|
|
653
|
-
}
|
|
654
|
-
|
|
655
571
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/toHex.js
|
|
656
572
|
var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
|
|
657
573
|
function toHex(value, opts = {}) {
|
|
@@ -685,14 +601,14 @@ function bytesToHex(value, opts = {}) {
|
|
|
685
601
|
return hex;
|
|
686
602
|
}
|
|
687
603
|
function numberToHex(value_, opts = {}) {
|
|
688
|
-
const { signed, size:
|
|
604
|
+
const { signed, size: size4 } = opts;
|
|
689
605
|
const value = BigInt(value_);
|
|
690
606
|
let maxValue;
|
|
691
|
-
if (
|
|
607
|
+
if (size4) {
|
|
692
608
|
if (signed)
|
|
693
|
-
maxValue = (1n << BigInt(
|
|
609
|
+
maxValue = (1n << BigInt(size4) * 8n - 1n) - 1n;
|
|
694
610
|
else
|
|
695
|
-
maxValue = 2n ** (BigInt(
|
|
611
|
+
maxValue = 2n ** (BigInt(size4) * 8n) - 1n;
|
|
696
612
|
} else if (typeof value_ === "number") {
|
|
697
613
|
maxValue = BigInt(Number.MAX_SAFE_INTEGER);
|
|
698
614
|
}
|
|
@@ -703,13 +619,13 @@ function numberToHex(value_, opts = {}) {
|
|
|
703
619
|
max: maxValue ? `${maxValue}${suffix}` : void 0,
|
|
704
620
|
min: `${minValue}${suffix}`,
|
|
705
621
|
signed,
|
|
706
|
-
size:
|
|
622
|
+
size: size4,
|
|
707
623
|
value: `${value_}${suffix}`
|
|
708
624
|
});
|
|
709
625
|
}
|
|
710
|
-
const hex = `0x${(signed && value < 0 ? (1n << BigInt(
|
|
711
|
-
if (
|
|
712
|
-
return pad(hex, { size:
|
|
626
|
+
const hex = `0x${(signed && value < 0 ? (1n << BigInt(size4 * 8)) + BigInt(value) : value).toString(16)}`;
|
|
627
|
+
if (size4)
|
|
628
|
+
return pad(hex, { size: size4 });
|
|
713
629
|
return hex;
|
|
714
630
|
}
|
|
715
631
|
var encoder = /* @__PURE__ */ new TextEncoder();
|
|
@@ -720,7 +636,7 @@ function stringToHex(value_, opts = {}) {
|
|
|
720
636
|
|
|
721
637
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/encoding/toBytes.js
|
|
722
638
|
var encoder2 = /* @__PURE__ */ new TextEncoder();
|
|
723
|
-
function
|
|
639
|
+
function toBytes(value, opts = {}) {
|
|
724
640
|
if (typeof value === "number" || typeof value === "bigint")
|
|
725
641
|
return numberToBytes(value, opts);
|
|
726
642
|
if (typeof value === "boolean")
|
|
@@ -789,197 +705,151 @@ function stringToBytes(value, opts = {}) {
|
|
|
789
705
|
return bytes;
|
|
790
706
|
}
|
|
791
707
|
|
|
792
|
-
// node_modules/.pnpm
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
}
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
const
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
for (let y = 0; y < 50; y += 10) {
|
|
832
|
-
s[x + y] ^= Th;
|
|
833
|
-
s[x + y + 1] ^= Tl;
|
|
834
|
-
}
|
|
835
|
-
}
|
|
836
|
-
let curH = s[2];
|
|
837
|
-
let curL = s[3];
|
|
838
|
-
for (let t = 0; t < 24; t++) {
|
|
839
|
-
const shift = SHA3_ROTL[t];
|
|
840
|
-
const Th = rotlH(curH, curL, shift);
|
|
841
|
-
const Tl = rotlL(curH, curL, shift);
|
|
842
|
-
const PI = SHA3_PI[t];
|
|
843
|
-
curH = s[PI];
|
|
844
|
-
curL = s[PI + 1];
|
|
845
|
-
s[PI] = Th;
|
|
846
|
-
s[PI + 1] = Tl;
|
|
847
|
-
}
|
|
848
|
-
for (let y = 0; y < 50; y += 10) {
|
|
849
|
-
for (let x = 0; x < 10; x++)
|
|
850
|
-
B[x] = s[y + x];
|
|
851
|
-
for (let x = 0; x < 10; x++)
|
|
852
|
-
s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10];
|
|
853
|
-
}
|
|
854
|
-
s[0] ^= SHA3_IOTA_H[round];
|
|
855
|
-
s[1] ^= SHA3_IOTA_L[round];
|
|
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
|
+
});
|
|
715
|
+
}
|
|
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);
|
|
728
|
+
}
|
|
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);
|
|
856
747
|
}
|
|
857
|
-
|
|
748
|
+
if (trim(hex) === "0x00")
|
|
749
|
+
return false;
|
|
750
|
+
if (trim(hex) === "0x01")
|
|
751
|
+
return true;
|
|
752
|
+
throw new InvalidHexBooleanError(hex);
|
|
858
753
|
}
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
this.state32 = u32(this.state);
|
|
878
|
-
}
|
|
879
|
-
clone() {
|
|
880
|
-
return this._cloneInto();
|
|
881
|
-
}
|
|
882
|
-
keccak() {
|
|
883
|
-
swap32IfBE(this.state32);
|
|
884
|
-
keccakP(this.state32, this.rounds);
|
|
885
|
-
swap32IfBE(this.state32);
|
|
886
|
-
this.posOut = 0;
|
|
887
|
-
this.pos = 0;
|
|
888
|
-
}
|
|
889
|
-
update(data) {
|
|
890
|
-
aexists(this);
|
|
891
|
-
data = toBytes(data);
|
|
892
|
-
abytes(data);
|
|
893
|
-
const { blockLen, state } = this;
|
|
894
|
-
const len = data.length;
|
|
895
|
-
for (let pos = 0; pos < len; ) {
|
|
896
|
-
const take = Math.min(blockLen - this.pos, len - pos);
|
|
897
|
-
for (let i = 0; i < take; i++)
|
|
898
|
-
state[this.pos++] ^= data[pos++];
|
|
899
|
-
if (this.pos === blockLen)
|
|
900
|
-
this.keccak();
|
|
901
|
-
}
|
|
902
|
-
return this;
|
|
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" });
|
|
903
772
|
}
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
return;
|
|
907
|
-
this.finished = true;
|
|
908
|
-
const { state, suffix, pos, blockLen } = this;
|
|
909
|
-
state[pos] ^= suffix;
|
|
910
|
-
if ((suffix & 128) !== 0 && pos === blockLen - 1)
|
|
911
|
-
this.keccak();
|
|
912
|
-
state[blockLen - 1] ^= 128;
|
|
913
|
-
this.keccak();
|
|
914
|
-
}
|
|
915
|
-
writeInto(out) {
|
|
916
|
-
aexists(this, false);
|
|
917
|
-
abytes(out);
|
|
918
|
-
this.finish();
|
|
919
|
-
const bufferOut = this.state;
|
|
920
|
-
const { blockLen } = this;
|
|
921
|
-
for (let pos = 0, len = out.length; pos < len; ) {
|
|
922
|
-
if (this.posOut >= blockLen)
|
|
923
|
-
this.keccak();
|
|
924
|
-
const take = Math.min(blockLen - this.posOut, len - pos);
|
|
925
|
-
out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos);
|
|
926
|
-
this.posOut += take;
|
|
927
|
-
pos += take;
|
|
928
|
-
}
|
|
929
|
-
return out;
|
|
930
|
-
}
|
|
931
|
-
xofInto(out) {
|
|
932
|
-
if (!this.enableXOF)
|
|
933
|
-
throw new Error("XOF is not possible for this instance");
|
|
934
|
-
return this.writeInto(out);
|
|
935
|
-
}
|
|
936
|
-
xof(bytes) {
|
|
937
|
-
anumber(bytes);
|
|
938
|
-
return this.xofInto(new Uint8Array(bytes));
|
|
939
|
-
}
|
|
940
|
-
digestInto(out) {
|
|
941
|
-
aoutput(out, this);
|
|
942
|
-
if (this.finished)
|
|
943
|
-
throw new Error("digest() was already called");
|
|
944
|
-
this.writeInto(out);
|
|
945
|
-
this.destroy();
|
|
946
|
-
return out;
|
|
947
|
-
}
|
|
948
|
-
digest() {
|
|
949
|
-
return this.digestInto(new Uint8Array(this.outputLen));
|
|
950
|
-
}
|
|
951
|
-
destroy() {
|
|
952
|
-
this.destroyed = true;
|
|
953
|
-
clean(this.state);
|
|
954
|
-
}
|
|
955
|
-
_cloneInto(to) {
|
|
956
|
-
const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
|
|
957
|
-
to || (to = new _Keccak(blockLen, suffix, outputLen, enableXOF, rounds));
|
|
958
|
-
to.state32.set(this.state32);
|
|
959
|
-
to.pos = this.pos;
|
|
960
|
-
to.posOut = this.posOut;
|
|
961
|
-
to.finished = this.finished;
|
|
962
|
-
to.rounds = rounds;
|
|
963
|
-
to.suffix = suffix;
|
|
964
|
-
to.outputLen = outputLen;
|
|
965
|
-
to.enableXOF = enableXOF;
|
|
966
|
-
to.destroyed = this.destroyed;
|
|
967
|
-
return to;
|
|
968
|
-
}
|
|
969
|
-
};
|
|
970
|
-
var gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
|
|
971
|
-
var keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
|
|
773
|
+
return new TextDecoder().decode(bytes);
|
|
774
|
+
}
|
|
972
775
|
|
|
973
776
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/hash/keccak256.js
|
|
974
777
|
function keccak256(value, to_) {
|
|
975
778
|
const to = to_ || "hex";
|
|
976
|
-
const bytes = keccak_256(isHex(value, { strict: false }) ?
|
|
779
|
+
const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
|
|
977
780
|
if (to === "bytes")
|
|
978
781
|
return bytes;
|
|
979
782
|
return toHex(bytes);
|
|
980
783
|
}
|
|
981
784
|
|
|
982
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/
|
|
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
|
+
|
|
831
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/address/isAddress.js
|
|
832
|
+
var addressRegex = /^0x[a-fA-F0-9]{40}$/;
|
|
833
|
+
var isAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
834
|
+
function isAddress(address, options) {
|
|
835
|
+
const { strict = true } = options ?? {};
|
|
836
|
+
const cacheKey = `${address}.${strict}`;
|
|
837
|
+
if (isAddressCache.has(cacheKey))
|
|
838
|
+
return isAddressCache.get(cacheKey);
|
|
839
|
+
const result = (() => {
|
|
840
|
+
if (!addressRegex.test(address))
|
|
841
|
+
return false;
|
|
842
|
+
if (address.toLowerCase() === address)
|
|
843
|
+
return true;
|
|
844
|
+
if (strict)
|
|
845
|
+
return checksumAddress(address) === address;
|
|
846
|
+
return true;
|
|
847
|
+
})();
|
|
848
|
+
isAddressCache.set(cacheKey, result);
|
|
849
|
+
return result;
|
|
850
|
+
}
|
|
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
|
|
983
853
|
var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
|
|
984
854
|
function checksumAddress(address_, chainId) {
|
|
985
855
|
if (checksumAddressCache.has(`${address_}.${chainId}`))
|
|
@@ -1005,26 +875,28 @@ function getAddress(address, chainId) {
|
|
|
1005
875
|
return checksumAddress(address, chainId);
|
|
1006
876
|
}
|
|
1007
877
|
|
|
1008
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
const
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
}
|
|
1025
|
-
isAddressCache.set(cacheKey, result);
|
|
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
|
+
}
|
|
1026
895
|
return result;
|
|
1027
896
|
}
|
|
897
|
+
function concatHex(values) {
|
|
898
|
+
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
899
|
+
}
|
|
1028
900
|
|
|
1029
901
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/data/slice.js
|
|
1030
902
|
function slice(value, start, end, { strict } = {}) {
|
|
@@ -1069,6 +941,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
|
|
|
1069
941
|
}
|
|
1070
942
|
|
|
1071
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]*)\]$/;
|
|
1072
945
|
var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
|
|
1073
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)?$/;
|
|
1074
947
|
|
|
@@ -1111,10 +984,10 @@ function prepareParam({ param, value }) {
|
|
|
1111
984
|
}
|
|
1112
985
|
if (param.type.startsWith("uint") || param.type.startsWith("int")) {
|
|
1113
986
|
const signed = param.type.startsWith("int");
|
|
1114
|
-
const [, ,
|
|
987
|
+
const [, , size4 = "256"] = integerRegex.exec(param.type) ?? [];
|
|
1115
988
|
return encodeNumber(value, {
|
|
1116
989
|
signed,
|
|
1117
|
-
size: Number(
|
|
990
|
+
size: Number(size4)
|
|
1118
991
|
});
|
|
1119
992
|
}
|
|
1120
993
|
if (param.type.startsWith("bytes")) {
|
|
@@ -1221,16 +1094,16 @@ function encodeBool(value) {
|
|
|
1221
1094
|
throw new BaseError(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
|
|
1222
1095
|
return { dynamic: false, encoded: padHex(boolToHex(value)) };
|
|
1223
1096
|
}
|
|
1224
|
-
function encodeNumber(value, { signed, size:
|
|
1225
|
-
if (typeof
|
|
1226
|
-
const max = 2n ** (BigInt(
|
|
1097
|
+
function encodeNumber(value, { signed, size: size4 = 256 }) {
|
|
1098
|
+
if (typeof size4 === "number") {
|
|
1099
|
+
const max = 2n ** (BigInt(size4) - (signed ? 1n : 0n)) - 1n;
|
|
1227
1100
|
const min = signed ? -max - 1n : 0n;
|
|
1228
1101
|
if (value > max || value < min)
|
|
1229
1102
|
throw new IntegerOutOfRangeError({
|
|
1230
1103
|
max: max.toString(),
|
|
1231
1104
|
min: min.toString(),
|
|
1232
1105
|
signed,
|
|
1233
|
-
size:
|
|
1106
|
+
size: size4 / 8,
|
|
1234
1107
|
value: value.toString()
|
|
1235
1108
|
});
|
|
1236
1109
|
}
|
|
@@ -1316,6 +1189,10 @@ var gweiUnits = {
|
|
|
1316
1189
|
ether: -9,
|
|
1317
1190
|
wei: 9
|
|
1318
1191
|
};
|
|
1192
|
+
var weiUnits = {
|
|
1193
|
+
ether: -18,
|
|
1194
|
+
gwei: -9
|
|
1195
|
+
};
|
|
1319
1196
|
|
|
1320
1197
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/utils/unit/formatUnits.js
|
|
1321
1198
|
function formatUnits(value, decimals) {
|
|
@@ -1352,6 +1229,14 @@ function prettyPrint(args) {
|
|
|
1352
1229
|
const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
|
|
1353
1230
|
return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
|
|
1354
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
|
+
};
|
|
1355
1240
|
var InvalidLegacyVError = class extends BaseError {
|
|
1356
1241
|
constructor({ v }) {
|
|
1357
1242
|
super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
|
|
@@ -1359,6 +1244,13 @@ var InvalidLegacyVError = class extends BaseError {
|
|
|
1359
1244
|
});
|
|
1360
1245
|
}
|
|
1361
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
|
+
};
|
|
1362
1254
|
var InvalidSerializableTransactionError = class extends BaseError {
|
|
1363
1255
|
constructor({ transaction }) {
|
|
1364
1256
|
super("Cannot infer a transaction type from provided transaction.", {
|
|
@@ -1380,6 +1272,46 @@ var InvalidSerializableTransactionError = class extends BaseError {
|
|
|
1380
1272
|
});
|
|
1381
1273
|
}
|
|
1382
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
|
+
};
|
|
1383
1315
|
var InvalidStorageKeySizeError = class extends BaseError {
|
|
1384
1316
|
constructor({ storageKey }) {
|
|
1385
1317
|
super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
|
|
@@ -1468,140 +1400,13 @@ var WaitForTransactionReceiptTimeoutError = class extends BaseError {
|
|
|
1468
1400
|
}
|
|
1469
1401
|
};
|
|
1470
1402
|
|
|
1471
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/
|
|
1472
|
-
var
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
var maxInt56 = 2n ** (56n - 1n) - 1n;
|
|
1479
|
-
var maxInt64 = 2n ** (64n - 1n) - 1n;
|
|
1480
|
-
var maxInt72 = 2n ** (72n - 1n) - 1n;
|
|
1481
|
-
var maxInt80 = 2n ** (80n - 1n) - 1n;
|
|
1482
|
-
var maxInt88 = 2n ** (88n - 1n) - 1n;
|
|
1483
|
-
var maxInt96 = 2n ** (96n - 1n) - 1n;
|
|
1484
|
-
var maxInt104 = 2n ** (104n - 1n) - 1n;
|
|
1485
|
-
var maxInt112 = 2n ** (112n - 1n) - 1n;
|
|
1486
|
-
var maxInt120 = 2n ** (120n - 1n) - 1n;
|
|
1487
|
-
var maxInt128 = 2n ** (128n - 1n) - 1n;
|
|
1488
|
-
var maxInt136 = 2n ** (136n - 1n) - 1n;
|
|
1489
|
-
var maxInt144 = 2n ** (144n - 1n) - 1n;
|
|
1490
|
-
var maxInt152 = 2n ** (152n - 1n) - 1n;
|
|
1491
|
-
var maxInt160 = 2n ** (160n - 1n) - 1n;
|
|
1492
|
-
var maxInt168 = 2n ** (168n - 1n) - 1n;
|
|
1493
|
-
var maxInt176 = 2n ** (176n - 1n) - 1n;
|
|
1494
|
-
var maxInt184 = 2n ** (184n - 1n) - 1n;
|
|
1495
|
-
var maxInt192 = 2n ** (192n - 1n) - 1n;
|
|
1496
|
-
var maxInt200 = 2n ** (200n - 1n) - 1n;
|
|
1497
|
-
var maxInt208 = 2n ** (208n - 1n) - 1n;
|
|
1498
|
-
var maxInt216 = 2n ** (216n - 1n) - 1n;
|
|
1499
|
-
var maxInt224 = 2n ** (224n - 1n) - 1n;
|
|
1500
|
-
var maxInt232 = 2n ** (232n - 1n) - 1n;
|
|
1501
|
-
var maxInt240 = 2n ** (240n - 1n) - 1n;
|
|
1502
|
-
var maxInt248 = 2n ** (248n - 1n) - 1n;
|
|
1503
|
-
var maxInt256 = 2n ** (256n - 1n) - 1n;
|
|
1504
|
-
var minInt8 = -(2n ** (8n - 1n));
|
|
1505
|
-
var minInt16 = -(2n ** (16n - 1n));
|
|
1506
|
-
var minInt24 = -(2n ** (24n - 1n));
|
|
1507
|
-
var minInt32 = -(2n ** (32n - 1n));
|
|
1508
|
-
var minInt40 = -(2n ** (40n - 1n));
|
|
1509
|
-
var minInt48 = -(2n ** (48n - 1n));
|
|
1510
|
-
var minInt56 = -(2n ** (56n - 1n));
|
|
1511
|
-
var minInt64 = -(2n ** (64n - 1n));
|
|
1512
|
-
var minInt72 = -(2n ** (72n - 1n));
|
|
1513
|
-
var minInt80 = -(2n ** (80n - 1n));
|
|
1514
|
-
var minInt88 = -(2n ** (88n - 1n));
|
|
1515
|
-
var minInt96 = -(2n ** (96n - 1n));
|
|
1516
|
-
var minInt104 = -(2n ** (104n - 1n));
|
|
1517
|
-
var minInt112 = -(2n ** (112n - 1n));
|
|
1518
|
-
var minInt120 = -(2n ** (120n - 1n));
|
|
1519
|
-
var minInt128 = -(2n ** (128n - 1n));
|
|
1520
|
-
var minInt136 = -(2n ** (136n - 1n));
|
|
1521
|
-
var minInt144 = -(2n ** (144n - 1n));
|
|
1522
|
-
var minInt152 = -(2n ** (152n - 1n));
|
|
1523
|
-
var minInt160 = -(2n ** (160n - 1n));
|
|
1524
|
-
var minInt168 = -(2n ** (168n - 1n));
|
|
1525
|
-
var minInt176 = -(2n ** (176n - 1n));
|
|
1526
|
-
var minInt184 = -(2n ** (184n - 1n));
|
|
1527
|
-
var minInt192 = -(2n ** (192n - 1n));
|
|
1528
|
-
var minInt200 = -(2n ** (200n - 1n));
|
|
1529
|
-
var minInt208 = -(2n ** (208n - 1n));
|
|
1530
|
-
var minInt216 = -(2n ** (216n - 1n));
|
|
1531
|
-
var minInt224 = -(2n ** (224n - 1n));
|
|
1532
|
-
var minInt232 = -(2n ** (232n - 1n));
|
|
1533
|
-
var minInt240 = -(2n ** (240n - 1n));
|
|
1534
|
-
var minInt248 = -(2n ** (248n - 1n));
|
|
1535
|
-
var minInt256 = -(2n ** (256n - 1n));
|
|
1536
|
-
var maxUint8 = 2n ** 8n - 1n;
|
|
1537
|
-
var maxUint16 = 2n ** 16n - 1n;
|
|
1538
|
-
var maxUint24 = 2n ** 24n - 1n;
|
|
1539
|
-
var maxUint32 = 2n ** 32n - 1n;
|
|
1540
|
-
var maxUint40 = 2n ** 40n - 1n;
|
|
1541
|
-
var maxUint48 = 2n ** 48n - 1n;
|
|
1542
|
-
var maxUint56 = 2n ** 56n - 1n;
|
|
1543
|
-
var maxUint64 = 2n ** 64n - 1n;
|
|
1544
|
-
var maxUint72 = 2n ** 72n - 1n;
|
|
1545
|
-
var maxUint80 = 2n ** 80n - 1n;
|
|
1546
|
-
var maxUint88 = 2n ** 88n - 1n;
|
|
1547
|
-
var maxUint96 = 2n ** 96n - 1n;
|
|
1548
|
-
var maxUint104 = 2n ** 104n - 1n;
|
|
1549
|
-
var maxUint112 = 2n ** 112n - 1n;
|
|
1550
|
-
var maxUint120 = 2n ** 120n - 1n;
|
|
1551
|
-
var maxUint128 = 2n ** 128n - 1n;
|
|
1552
|
-
var maxUint136 = 2n ** 136n - 1n;
|
|
1553
|
-
var maxUint144 = 2n ** 144n - 1n;
|
|
1554
|
-
var maxUint152 = 2n ** 152n - 1n;
|
|
1555
|
-
var maxUint160 = 2n ** 160n - 1n;
|
|
1556
|
-
var maxUint168 = 2n ** 168n - 1n;
|
|
1557
|
-
var maxUint176 = 2n ** 176n - 1n;
|
|
1558
|
-
var maxUint184 = 2n ** 184n - 1n;
|
|
1559
|
-
var maxUint192 = 2n ** 192n - 1n;
|
|
1560
|
-
var maxUint200 = 2n ** 200n - 1n;
|
|
1561
|
-
var maxUint208 = 2n ** 208n - 1n;
|
|
1562
|
-
var maxUint216 = 2n ** 216n - 1n;
|
|
1563
|
-
var maxUint224 = 2n ** 224n - 1n;
|
|
1564
|
-
var maxUint232 = 2n ** 232n - 1n;
|
|
1565
|
-
var maxUint240 = 2n ** 240n - 1n;
|
|
1566
|
-
var maxUint248 = 2n ** 248n - 1n;
|
|
1567
|
-
var maxUint256 = 2n ** 256n - 1n;
|
|
1568
|
-
|
|
1569
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/chain.js
|
|
1570
|
-
var ChainDoesNotSupportContract = class extends BaseError {
|
|
1571
|
-
constructor({ blockNumber, chain, contract }) {
|
|
1572
|
-
super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
|
|
1573
|
-
metaMessages: [
|
|
1574
|
-
"This could be due to any of the following:",
|
|
1575
|
-
...blockNumber && contract.blockCreated && contract.blockCreated > blockNumber ? [
|
|
1576
|
-
`- The contract "${contract.name}" was not deployed until block ${contract.blockCreated} (current block ${blockNumber}).`
|
|
1577
|
-
] : [
|
|
1578
|
-
`- The chain does not have the contract "${contract.name}" configured.`
|
|
1579
|
-
]
|
|
1580
|
-
],
|
|
1581
|
-
name: "ChainDoesNotSupportContract"
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
};
|
|
1585
|
-
var ClientChainNotConfiguredError = class extends BaseError {
|
|
1586
|
-
constructor() {
|
|
1587
|
-
super("No chain was provided to the Client.", {
|
|
1588
|
-
name: "ClientChainNotConfiguredError"
|
|
1589
|
-
});
|
|
1590
|
-
}
|
|
1591
|
-
};
|
|
1592
|
-
var InvalidChainIdError = class extends BaseError {
|
|
1593
|
-
constructor({ chainId }) {
|
|
1594
|
-
super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
|
|
1595
|
-
}
|
|
1596
|
-
};
|
|
1597
|
-
|
|
1598
|
-
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/node.js
|
|
1599
|
-
var ExecutionRevertedError = class extends BaseError {
|
|
1600
|
-
constructor({ cause, message } = {}) {
|
|
1601
|
-
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
1602
|
-
super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
|
|
1603
|
-
cause,
|
|
1604
|
-
name: "ExecutionRevertedError"
|
|
1403
|
+
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/errors/node.js
|
|
1404
|
+
var ExecutionRevertedError = class extends BaseError {
|
|
1405
|
+
constructor({ cause, message } = {}) {
|
|
1406
|
+
const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
|
|
1407
|
+
super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
|
|
1408
|
+
cause,
|
|
1409
|
+
name: "ExecutionRevertedError"
|
|
1605
1410
|
});
|
|
1606
1411
|
}
|
|
1607
1412
|
};
|
|
@@ -1774,6 +1579,154 @@ var UnknownNodeError = class extends BaseError {
|
|
|
1774
1579
|
}
|
|
1775
1580
|
};
|
|
1776
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
|
+
|
|
1777
1730
|
// node_modules/.pnpm/viem@2.55.2_typescript@6.0.3_zod@4.4.3/node_modules/viem/_esm/accounts/utils/parseAccount.js
|
|
1778
1731
|
function parseAccount(account) {
|
|
1779
1732
|
if (typeof account === "string")
|
|
@@ -1907,11 +1860,11 @@ var staticCursor = {
|
|
|
1907
1860
|
this.position++;
|
|
1908
1861
|
return value;
|
|
1909
1862
|
},
|
|
1910
|
-
readBytes(length,
|
|
1863
|
+
readBytes(length, size4) {
|
|
1911
1864
|
this.assertReadLimit();
|
|
1912
1865
|
this._touch();
|
|
1913
1866
|
const value = this.inspectBytes(length);
|
|
1914
|
-
this.position +=
|
|
1867
|
+
this.position += size4 ?? length;
|
|
1915
1868
|
return value;
|
|
1916
1869
|
},
|
|
1917
1870
|
readUint8() {
|
|
@@ -1969,90 +1922,944 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
|
|
|
1969
1922
|
return cursor;
|
|
1970
1923
|
}
|
|
1971
1924
|
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
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
|
+
|
|
1937
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/version.js
|
|
1938
|
+
var version2 = "0.1.1";
|
|
1939
|
+
|
|
1940
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/internal/errors.js
|
|
1941
|
+
function getVersion() {
|
|
1942
|
+
return version2;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Errors.js
|
|
1946
|
+
var BaseError2 = class _BaseError extends Error {
|
|
1947
|
+
static setStaticOptions(options) {
|
|
1948
|
+
_BaseError.prototype.docsOrigin = options.docsOrigin;
|
|
1949
|
+
_BaseError.prototype.showVersion = options.showVersion;
|
|
1950
|
+
_BaseError.prototype.version = options.version;
|
|
1951
|
+
}
|
|
1952
|
+
constructor(shortMessage, options = {}) {
|
|
1953
|
+
const details = (() => {
|
|
1954
|
+
if (options.cause instanceof _BaseError) {
|
|
1955
|
+
if (options.cause.details)
|
|
1956
|
+
return options.cause.details;
|
|
1957
|
+
if (options.cause.shortMessage)
|
|
1958
|
+
return options.cause.shortMessage;
|
|
1959
|
+
}
|
|
1960
|
+
if (options.cause && "details" in options.cause && typeof options.cause.details === "string")
|
|
1961
|
+
return options.cause.details;
|
|
1962
|
+
if (options.cause?.message)
|
|
1963
|
+
return options.cause.message;
|
|
1964
|
+
return options.details;
|
|
1965
|
+
})();
|
|
1966
|
+
const docsPath = (() => {
|
|
1967
|
+
if (options.cause instanceof _BaseError)
|
|
1968
|
+
return options.cause.docsPath || options.docsPath;
|
|
1969
|
+
return options.docsPath;
|
|
1970
|
+
})();
|
|
1971
|
+
const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
|
|
1972
|
+
const docs = `${docsBaseUrl}${docsPath ?? ""}`;
|
|
1973
|
+
const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
|
|
1974
|
+
const version3 = options.version ?? _BaseError.prototype.version;
|
|
1975
|
+
const message = [
|
|
1976
|
+
shortMessage || "An error occurred.",
|
|
1977
|
+
...options.metaMessages ? ["", ...options.metaMessages] : [],
|
|
1978
|
+
...details || docsPath || showVersion ? [
|
|
1979
|
+
"",
|
|
1980
|
+
details ? `Details: ${details}` : void 0,
|
|
1981
|
+
docsPath ? `See: ${docs}` : void 0,
|
|
1982
|
+
showVersion ? `Version: ${version3}` : void 0
|
|
1983
|
+
] : []
|
|
1984
|
+
].filter((x) => typeof x === "string").join("\n");
|
|
1985
|
+
super(message, options.cause ? { cause: options.cause } : void 0);
|
|
1986
|
+
Object.defineProperty(this, "details", {
|
|
1987
|
+
enumerable: true,
|
|
1988
|
+
configurable: true,
|
|
1989
|
+
writable: true,
|
|
1990
|
+
value: void 0
|
|
1991
|
+
});
|
|
1992
|
+
Object.defineProperty(this, "docs", {
|
|
1993
|
+
enumerable: true,
|
|
1994
|
+
configurable: true,
|
|
1995
|
+
writable: true,
|
|
1996
|
+
value: void 0
|
|
1997
|
+
});
|
|
1998
|
+
Object.defineProperty(this, "docsOrigin", {
|
|
1999
|
+
enumerable: true,
|
|
2000
|
+
configurable: true,
|
|
2001
|
+
writable: true,
|
|
2002
|
+
value: void 0
|
|
2003
|
+
});
|
|
2004
|
+
Object.defineProperty(this, "docsPath", {
|
|
2005
|
+
enumerable: true,
|
|
2006
|
+
configurable: true,
|
|
2007
|
+
writable: true,
|
|
2008
|
+
value: void 0
|
|
2009
|
+
});
|
|
2010
|
+
Object.defineProperty(this, "shortMessage", {
|
|
2011
|
+
enumerable: true,
|
|
2012
|
+
configurable: true,
|
|
2013
|
+
writable: true,
|
|
2014
|
+
value: void 0
|
|
2015
|
+
});
|
|
2016
|
+
Object.defineProperty(this, "showVersion", {
|
|
2017
|
+
enumerable: true,
|
|
2018
|
+
configurable: true,
|
|
2019
|
+
writable: true,
|
|
2020
|
+
value: void 0
|
|
2021
|
+
});
|
|
2022
|
+
Object.defineProperty(this, "version", {
|
|
2023
|
+
enumerable: true,
|
|
2024
|
+
configurable: true,
|
|
2025
|
+
writable: true,
|
|
2026
|
+
value: void 0
|
|
2027
|
+
});
|
|
2028
|
+
Object.defineProperty(this, "cause", {
|
|
2029
|
+
enumerable: true,
|
|
2030
|
+
configurable: true,
|
|
2031
|
+
writable: true,
|
|
2032
|
+
value: void 0
|
|
2033
|
+
});
|
|
2034
|
+
Object.defineProperty(this, "name", {
|
|
2035
|
+
enumerable: true,
|
|
2036
|
+
configurable: true,
|
|
2037
|
+
writable: true,
|
|
2038
|
+
value: "BaseError"
|
|
2039
|
+
});
|
|
2040
|
+
this.cause = options.cause;
|
|
2041
|
+
this.details = details;
|
|
2042
|
+
this.docs = docs;
|
|
2043
|
+
this.docsOrigin = docsBaseUrl;
|
|
2044
|
+
this.docsPath = docsPath;
|
|
2045
|
+
this.shortMessage = shortMessage;
|
|
2046
|
+
this.showVersion = showVersion;
|
|
2047
|
+
this.version = version3;
|
|
2048
|
+
}
|
|
2049
|
+
walk(fn) {
|
|
2050
|
+
return walk2(this, fn);
|
|
2051
|
+
}
|
|
2052
|
+
};
|
|
2053
|
+
Object.defineProperty(BaseError2, "defaultStaticOptions", {
|
|
2054
|
+
enumerable: true,
|
|
2055
|
+
configurable: true,
|
|
2056
|
+
writable: true,
|
|
2057
|
+
value: {
|
|
2058
|
+
docsOrigin: "https://oxlib.sh",
|
|
2059
|
+
showVersion: false,
|
|
2060
|
+
version: `ox@${getVersion()}`
|
|
2061
|
+
}
|
|
2062
|
+
});
|
|
2063
|
+
(() => {
|
|
2064
|
+
BaseError2.setStaticOptions(BaseError2.defaultStaticOptions);
|
|
2065
|
+
})();
|
|
2066
|
+
function walk2(err, fn) {
|
|
2067
|
+
if (fn?.(err))
|
|
2068
|
+
return err;
|
|
2069
|
+
if (err && typeof err === "object" && "cause" in err && err.cause)
|
|
2070
|
+
return walk2(err.cause, fn);
|
|
2071
|
+
return fn ? null : err;
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/internal/bytes.js
|
|
2075
|
+
function assertSize2(bytes, size_) {
|
|
2076
|
+
if (size2(bytes) > size_)
|
|
2077
|
+
throw new SizeOverflowError2({
|
|
2078
|
+
givenSize: size2(bytes),
|
|
2079
|
+
maxSize: size_
|
|
2080
|
+
});
|
|
2081
|
+
}
|
|
2082
|
+
function assertStartOffset2(value, start) {
|
|
2083
|
+
if (typeof start === "number" && start > 0 && start > size2(value) - 1)
|
|
2084
|
+
throw new SliceOffsetOutOfBoundsError2({
|
|
2085
|
+
offset: start,
|
|
2086
|
+
position: "start",
|
|
2087
|
+
size: size2(value)
|
|
2088
|
+
});
|
|
2089
|
+
}
|
|
2090
|
+
function assertEndOffset2(value, start, end) {
|
|
2091
|
+
if (typeof start === "number" && typeof end === "number" && size2(value) !== end - start) {
|
|
2092
|
+
throw new SliceOffsetOutOfBoundsError2({
|
|
2093
|
+
offset: end,
|
|
2094
|
+
position: "end",
|
|
2095
|
+
size: size2(value)
|
|
2096
|
+
});
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
var charCodeMap2 = {
|
|
2100
|
+
zero: 48,
|
|
2101
|
+
nine: 57,
|
|
2102
|
+
A: 65,
|
|
2103
|
+
F: 70,
|
|
2104
|
+
a: 97,
|
|
2105
|
+
f: 102
|
|
2106
|
+
};
|
|
2107
|
+
function charCodeToBase162(char) {
|
|
2108
|
+
if (char >= charCodeMap2.zero && char <= charCodeMap2.nine)
|
|
2109
|
+
return char - charCodeMap2.zero;
|
|
2110
|
+
if (char >= charCodeMap2.A && char <= charCodeMap2.F)
|
|
2111
|
+
return char - (charCodeMap2.A - 10);
|
|
2112
|
+
if (char >= charCodeMap2.a && char <= charCodeMap2.f)
|
|
2113
|
+
return char - (charCodeMap2.a - 10);
|
|
2114
|
+
return void 0;
|
|
2115
|
+
}
|
|
2116
|
+
function pad2(bytes, options = {}) {
|
|
2117
|
+
const { dir, size: size4 = 32 } = options;
|
|
2118
|
+
if (size4 === 0)
|
|
2119
|
+
return bytes;
|
|
2120
|
+
if (bytes.length > size4)
|
|
2121
|
+
throw new SizeExceedsPaddingSizeError2({
|
|
2122
|
+
size: bytes.length,
|
|
2123
|
+
targetSize: size4,
|
|
2124
|
+
type: "Bytes"
|
|
2125
|
+
});
|
|
2126
|
+
const paddedBytes = new Uint8Array(size4);
|
|
2127
|
+
for (let i = 0; i < size4; i++) {
|
|
2128
|
+
const padEnd = dir === "right";
|
|
2129
|
+
paddedBytes[padEnd ? i : size4 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
|
|
2130
|
+
}
|
|
2131
|
+
return paddedBytes;
|
|
2132
|
+
}
|
|
2133
|
+
function trim2(value, options = {}) {
|
|
2134
|
+
const { dir = "left" } = options;
|
|
2135
|
+
let data = value;
|
|
2136
|
+
let sliceLength = 0;
|
|
2137
|
+
for (let i = 0; i < data.length - 1; i++) {
|
|
2138
|
+
if (data[dir === "left" ? i : data.length - i - 1].toString() === "0")
|
|
2139
|
+
sliceLength++;
|
|
2140
|
+
else
|
|
2141
|
+
break;
|
|
2142
|
+
}
|
|
2143
|
+
data = dir === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
|
|
2144
|
+
return data;
|
|
2145
|
+
}
|
|
2146
|
+
|
|
2147
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/internal/hex.js
|
|
2148
|
+
function assertSize3(hex, size_) {
|
|
2149
|
+
if (size3(hex) > size_)
|
|
2150
|
+
throw new SizeOverflowError3({
|
|
2151
|
+
givenSize: size3(hex),
|
|
2152
|
+
maxSize: size_
|
|
2153
|
+
});
|
|
2154
|
+
}
|
|
2155
|
+
function assertStartOffset3(value, start) {
|
|
2156
|
+
if (typeof start === "number" && start > 0 && start > size3(value) - 1)
|
|
2157
|
+
throw new SliceOffsetOutOfBoundsError3({
|
|
2158
|
+
offset: start,
|
|
2159
|
+
position: "start",
|
|
2160
|
+
size: size3(value)
|
|
2161
|
+
});
|
|
2162
|
+
}
|
|
2163
|
+
function assertEndOffset3(value, start, end) {
|
|
2164
|
+
if (typeof start === "number" && typeof end === "number" && size3(value) !== end - start) {
|
|
2165
|
+
throw new SliceOffsetOutOfBoundsError3({
|
|
2166
|
+
offset: end,
|
|
2167
|
+
position: "end",
|
|
2168
|
+
size: size3(value)
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
function pad3(hex_, options = {}) {
|
|
2173
|
+
const { dir, size: size4 = 32 } = options;
|
|
2174
|
+
if (size4 === 0)
|
|
2175
|
+
return hex_;
|
|
2176
|
+
const hex = hex_.replace("0x", "");
|
|
2177
|
+
if (hex.length > size4 * 2)
|
|
2178
|
+
throw new SizeExceedsPaddingSizeError3({
|
|
2179
|
+
size: Math.ceil(hex.length / 2),
|
|
2180
|
+
targetSize: size4,
|
|
2181
|
+
type: "Hex"
|
|
2182
|
+
});
|
|
2183
|
+
return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size4 * 2, "0")}`;
|
|
2184
|
+
}
|
|
2185
|
+
function trim3(value, options = {}) {
|
|
2186
|
+
const { dir = "left" } = options;
|
|
2187
|
+
let data = value.replace("0x", "");
|
|
2188
|
+
let sliceLength = 0;
|
|
2189
|
+
for (let i = 0; i < data.length - 1; i++) {
|
|
2190
|
+
if (data[dir === "left" ? i : data.length - i - 1].toString() === "0")
|
|
2191
|
+
sliceLength++;
|
|
2192
|
+
else
|
|
2193
|
+
break;
|
|
2194
|
+
}
|
|
2195
|
+
data = dir === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
|
|
2196
|
+
if (data === "0")
|
|
2197
|
+
return "0x";
|
|
2198
|
+
if (dir === "right" && data.length % 2 === 1)
|
|
2199
|
+
return `0x${data}0`;
|
|
2200
|
+
return `0x${data}`;
|
|
2201
|
+
}
|
|
2202
|
+
|
|
2203
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Json.js
|
|
2204
|
+
var bigIntSuffix = "#__bigint";
|
|
2205
|
+
function stringify2(value, replacer, space) {
|
|
2206
|
+
return JSON.stringify(value, (key, value2) => {
|
|
2207
|
+
if (typeof replacer === "function")
|
|
2208
|
+
return replacer(key, value2);
|
|
2209
|
+
if (typeof value2 === "bigint")
|
|
2210
|
+
return value2.toString() + bigIntSuffix;
|
|
2211
|
+
return value2;
|
|
2212
|
+
}, space);
|
|
2213
|
+
}
|
|
2214
|
+
|
|
2215
|
+
// node_modules/.pnpm/ox@0.14.30_typescript@6.0.3_zod@4.4.3/node_modules/ox/_esm/core/Hex.js
|
|
2216
|
+
var encoder3 = /* @__PURE__ */ new TextEncoder();
|
|
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;
|
|
2220
|
+
if (!value)
|
|
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);
|
|
2230
|
+
}
|
|
2231
|
+
function concat2(...values) {
|
|
2232
|
+
return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
|
|
2233
|
+
}
|
|
2234
|
+
function from(value) {
|
|
2235
|
+
if (value instanceof Uint8Array)
|
|
2236
|
+
return fromBytes(value);
|
|
2237
|
+
if (Array.isArray(value))
|
|
2238
|
+
return fromBytes(new Uint8Array(value));
|
|
2239
|
+
return value;
|
|
2240
|
+
}
|
|
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;
|
|
2248
|
+
}
|
|
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);
|
|
2257
|
+
}
|
|
2258
|
+
return hex;
|
|
2259
|
+
}
|
|
2260
|
+
function fromNumber(value, options = {}) {
|
|
2261
|
+
const { signed, size: size4 } = options;
|
|
2262
|
+
const value_ = BigInt(value);
|
|
2263
|
+
let maxValue;
|
|
2264
|
+
if (size4) {
|
|
2265
|
+
if (signed)
|
|
2266
|
+
maxValue = (1n << BigInt(size4) * 8n - 1n) - 1n;
|
|
2267
|
+
else
|
|
2268
|
+
maxValue = 2n ** (BigInt(size4) * 8n) - 1n;
|
|
2269
|
+
} else if (typeof value === "number") {
|
|
2270
|
+
maxValue = BigInt(Number.MAX_SAFE_INTEGER);
|
|
2271
|
+
}
|
|
2272
|
+
const minValue = typeof maxValue === "bigint" && signed ? -maxValue - 1n : 0;
|
|
2273
|
+
if (maxValue && value_ > maxValue || value_ < minValue) {
|
|
2274
|
+
const suffix = typeof value === "bigint" ? "n" : "";
|
|
2275
|
+
throw new IntegerOutOfRangeError2({
|
|
2276
|
+
max: maxValue ? `${maxValue}${suffix}` : void 0,
|
|
2277
|
+
min: `${minValue}${suffix}`,
|
|
2278
|
+
signed,
|
|
2279
|
+
size: size4,
|
|
2280
|
+
value: `${value}${suffix}`
|
|
2281
|
+
});
|
|
2282
|
+
}
|
|
2283
|
+
const stringValue = (signed && value_ < 0 ? BigInt.asUintN(size4 * 8, BigInt(value_)) : value_).toString(16);
|
|
2284
|
+
const hex = `0x${stringValue}`;
|
|
2285
|
+
if (size4)
|
|
2286
|
+
return padLeft(hex, size4);
|
|
2287
|
+
return hex;
|
|
2288
|
+
}
|
|
2289
|
+
function fromString(value, options = {}) {
|
|
2290
|
+
return fromBytes(encoder3.encode(value), options);
|
|
2291
|
+
}
|
|
2292
|
+
function padLeft(value, size4) {
|
|
2293
|
+
return pad3(value, { dir: "left", size: size4 });
|
|
2294
|
+
}
|
|
2295
|
+
function padRight(value, size4) {
|
|
2296
|
+
return pad3(value, { dir: "right", size: size4 });
|
|
2297
|
+
}
|
|
2298
|
+
function slice2(value, start, end, options = {}) {
|
|
2299
|
+
const { strict } = options;
|
|
2300
|
+
assertStartOffset3(value, start);
|
|
2301
|
+
const value_ = `0x${value.replace("0x", "").slice((start ?? 0) * 2, (end ?? value.length) * 2)}`;
|
|
2302
|
+
if (strict)
|
|
2303
|
+
assertEndOffset3(value_, start, end);
|
|
2304
|
+
return value_;
|
|
2305
|
+
}
|
|
2306
|
+
function size3(value) {
|
|
2307
|
+
return Math.ceil((value.length - 2) / 2);
|
|
2308
|
+
}
|
|
2309
|
+
function trimLeft(value) {
|
|
2310
|
+
return trim3(value, { dir: "left" });
|
|
2311
|
+
}
|
|
2312
|
+
function toBigInt(hex, options = {}) {
|
|
2313
|
+
const { signed } = options;
|
|
2314
|
+
if (options.size)
|
|
2315
|
+
assertSize3(hex, options.size);
|
|
2316
|
+
const value = BigInt(hex);
|
|
2317
|
+
if (!signed)
|
|
2318
|
+
return value;
|
|
2319
|
+
const size4 = (hex.length - 2) / 2;
|
|
2320
|
+
const max_unsigned = (1n << BigInt(size4) * 8n) - 1n;
|
|
2321
|
+
const max_signed = max_unsigned >> 1n;
|
|
2322
|
+
if (value <= max_signed)
|
|
2323
|
+
return value;
|
|
2324
|
+
return value - max_unsigned - 1n;
|
|
2325
|
+
}
|
|
2326
|
+
function toNumber(hex, options = {}) {
|
|
2327
|
+
const { signed, size: size4 } = options;
|
|
2328
|
+
if (!signed && !size4)
|
|
2329
|
+
return Number(hex);
|
|
2330
|
+
return Number(toBigInt(hex, options));
|
|
2331
|
+
}
|
|
2332
|
+
function validate(value, options = {}) {
|
|
2333
|
+
const { strict = false } = options;
|
|
2334
|
+
try {
|
|
2335
|
+
assert(value, { strict });
|
|
2336
|
+
return true;
|
|
2337
|
+
} catch {
|
|
2338
|
+
return false;
|
|
2339
|
+
}
|
|
2340
|
+
}
|
|
2341
|
+
var IntegerOutOfRangeError2 = class extends BaseError2 {
|
|
2342
|
+
constructor({ max, min, signed, size: size4, value }) {
|
|
2343
|
+
super(`Number \`${value}\` is not in safe${size4 ? ` ${size4 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
|
|
2344
|
+
Object.defineProperty(this, "name", {
|
|
2345
|
+
enumerable: true,
|
|
2346
|
+
configurable: true,
|
|
2347
|
+
writable: true,
|
|
2348
|
+
value: "Hex.IntegerOutOfRangeError"
|
|
2349
|
+
});
|
|
2350
|
+
}
|
|
2351
|
+
};
|
|
2352
|
+
var InvalidHexTypeError = class extends BaseError2 {
|
|
2353
|
+
constructor(value) {
|
|
2354
|
+
super(`Value \`${typeof value === "object" ? stringify2(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
|
|
2355
|
+
metaMessages: ['Hex types must be represented as `"0x${string}"`.']
|
|
2356
|
+
});
|
|
2357
|
+
Object.defineProperty(this, "name", {
|
|
2358
|
+
enumerable: true,
|
|
2359
|
+
configurable: true,
|
|
2360
|
+
writable: true,
|
|
2361
|
+
value: "Hex.InvalidHexTypeError"
|
|
2362
|
+
});
|
|
2363
|
+
}
|
|
2364
|
+
};
|
|
2365
|
+
var InvalidHexValueError2 = class extends BaseError2 {
|
|
2366
|
+
constructor(value) {
|
|
2367
|
+
super(`Value \`${value}\` is an invalid hex value.`, {
|
|
2368
|
+
metaMessages: [
|
|
2369
|
+
'Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).'
|
|
2370
|
+
]
|
|
2371
|
+
});
|
|
2372
|
+
Object.defineProperty(this, "name", {
|
|
2373
|
+
enumerable: true,
|
|
2374
|
+
configurable: true,
|
|
2375
|
+
writable: true,
|
|
2376
|
+
value: "Hex.InvalidHexValueError"
|
|
2377
|
+
});
|
|
2378
|
+
}
|
|
2379
|
+
};
|
|
2380
|
+
var SizeOverflowError3 = class extends BaseError2 {
|
|
2381
|
+
constructor({ givenSize, maxSize }) {
|
|
2382
|
+
super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
|
|
2383
|
+
Object.defineProperty(this, "name", {
|
|
2384
|
+
enumerable: true,
|
|
2385
|
+
configurable: true,
|
|
2386
|
+
writable: true,
|
|
2387
|
+
value: "Hex.SizeOverflowError"
|
|
2388
|
+
});
|
|
2389
|
+
}
|
|
2390
|
+
};
|
|
2391
|
+
var SliceOffsetOutOfBoundsError3 = class extends BaseError2 {
|
|
2392
|
+
constructor({ offset, position, size: size4 }) {
|
|
2393
|
+
super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
|
|
2394
|
+
Object.defineProperty(this, "name", {
|
|
2395
|
+
enumerable: true,
|
|
2396
|
+
configurable: true,
|
|
2397
|
+
writable: true,
|
|
2398
|
+
value: "Hex.SliceOffsetOutOfBoundsError"
|
|
2399
|
+
});
|
|
2400
|
+
}
|
|
2401
|
+
};
|
|
2402
|
+
var SizeExceedsPaddingSizeError3 = class extends BaseError2 {
|
|
2403
|
+
constructor({ size: size4, targetSize, type }) {
|
|
2404
|
+
super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
|
|
2405
|
+
Object.defineProperty(this, "name", {
|
|
2406
|
+
enumerable: true,
|
|
2407
|
+
configurable: true,
|
|
2408
|
+
writable: true,
|
|
2409
|
+
value: "Hex.SizeExceedsPaddingSizeError"
|
|
2410
|
+
});
|
|
2411
|
+
}
|
|
2412
|
+
};
|
|
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
|
+
|
|
2616
|
+
export {
|
|
2617
|
+
formatAbiItem,
|
|
2618
|
+
isHex,
|
|
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,
|
|
2662
|
+
trim,
|
|
2663
|
+
assertSize,
|
|
2664
|
+
fromHex,
|
|
2665
|
+
hexToBigInt,
|
|
2666
|
+
hexToBool,
|
|
2667
|
+
hexToNumber,
|
|
2668
|
+
hexToString,
|
|
2669
|
+
toHex,
|
|
2670
|
+
boolToHex,
|
|
2671
|
+
bytesToHex,
|
|
2672
|
+
numberToHex,
|
|
2673
|
+
stringToHex,
|
|
2674
|
+
toBytes,
|
|
2675
|
+
boolToBytes,
|
|
2676
|
+
hexToBytes,
|
|
2677
|
+
numberToBytes,
|
|
2678
|
+
stringToBytes,
|
|
2679
|
+
keccak256,
|
|
2680
|
+
InvalidAddressError,
|
|
2681
|
+
LruMap,
|
|
2682
|
+
checksumAddress,
|
|
2683
|
+
getAddress,
|
|
2684
|
+
isAddress,
|
|
2685
|
+
concat,
|
|
2686
|
+
concatBytes,
|
|
2687
|
+
concatHex,
|
|
2688
|
+
slice,
|
|
2689
|
+
sliceBytes,
|
|
2690
|
+
sliceHex,
|
|
2691
|
+
arrayRegex,
|
|
2692
|
+
bytesRegex,
|
|
2693
|
+
integerRegex,
|
|
2694
|
+
encodeAbiParameters,
|
|
2695
|
+
getArrayComponents,
|
|
2696
|
+
parseAccount,
|
|
2697
|
+
PositionOutOfBoundsError,
|
|
2698
|
+
createCursor,
|
|
2699
|
+
stringify,
|
|
2700
|
+
etherUnits,
|
|
2701
|
+
gweiUnits,
|
|
2702
|
+
weiUnits,
|
|
2703
|
+
formatUnits,
|
|
2704
|
+
formatEther,
|
|
2705
|
+
formatGwei,
|
|
2706
|
+
prettyPrint,
|
|
2707
|
+
FeeConflictError,
|
|
2708
|
+
InvalidLegacyVError,
|
|
2709
|
+
InvalidYParityError,
|
|
2710
|
+
InvalidSerializableTransactionError,
|
|
2711
|
+
InvalidSerializedTransactionTypeError,
|
|
2712
|
+
InvalidSerializedTransactionError,
|
|
2713
|
+
InvalidStorageKeySizeError,
|
|
2714
|
+
TransactionExecutionError,
|
|
2715
|
+
TransactionNotFoundError,
|
|
2716
|
+
TransactionReceiptNotFoundError,
|
|
2717
|
+
TransactionReceiptRevertedError,
|
|
2718
|
+
WaitForTransactionReceiptTimeoutError,
|
|
2719
|
+
ExecutionRevertedError,
|
|
2720
|
+
FeeCapTooHighError,
|
|
2721
|
+
FeeCapTooLowError,
|
|
2722
|
+
NonceTooHighError,
|
|
2723
|
+
NonceTooLowError,
|
|
2724
|
+
NonceMaxValueError,
|
|
2725
|
+
InsufficientFundsError,
|
|
2726
|
+
IntrinsicGasTooHighError,
|
|
2727
|
+
IntrinsicGasTooLowError,
|
|
2728
|
+
TransactionTypeNotSupportedError,
|
|
2729
|
+
TipAboveFeeCapError,
|
|
2730
|
+
UnknownNodeError,
|
|
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,
|
|
2828
|
+
BaseError2,
|
|
2829
|
+
stringify2,
|
|
2830
|
+
concat3 as concat2,
|
|
2831
|
+
from2 as from,
|
|
2832
|
+
fromHex2,
|
|
2833
|
+
fromString2 as fromString,
|
|
2834
|
+
isEqual,
|
|
2835
|
+
random,
|
|
2836
|
+
size2,
|
|
2837
|
+
slice3 as slice2,
|
|
2838
|
+
toBigInt2 as toBigInt,
|
|
2839
|
+
toBoolean,
|
|
2840
|
+
toHex2,
|
|
2841
|
+
toNumber2 as toNumber,
|
|
2842
|
+
toString,
|
|
2843
|
+
trimLeft2 as trimLeft,
|
|
2844
|
+
validate2 as validate,
|
|
2845
|
+
concat2 as concat3,
|
|
2846
|
+
from as from2,
|
|
2847
|
+
fromBoolean,
|
|
2848
|
+
fromBytes,
|
|
2849
|
+
fromNumber,
|
|
2850
|
+
fromString as fromString2,
|
|
2851
|
+
padLeft,
|
|
2852
|
+
padRight,
|
|
2853
|
+
slice2 as slice3,
|
|
2854
|
+
size3,
|
|
2855
|
+
trimLeft as trimLeft2,
|
|
2856
|
+
toNumber as toNumber2,
|
|
2857
|
+
validate as validate2,
|
|
2858
|
+
IntegerOutOfRangeError2,
|
|
2859
|
+
ChainDoesNotSupportContract,
|
|
2860
|
+
ChainMismatchError,
|
|
2861
|
+
ChainNotFoundError,
|
|
2862
|
+
ClientChainNotConfiguredError,
|
|
2863
|
+
InvalidChainIdError
|
|
2057
2864
|
};
|
|
2058
|
-
//# sourceMappingURL=chunk-
|
|
2865
|
+
//# sourceMappingURL=chunk-47PP7TAG.js.map
|