@t2000/cli 0.22.22 → 0.22.24

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.
Files changed (44) hide show
  1. package/README.md +1 -10
  2. package/dist/{ccip-3TXHQUZ5.js → ccip-JEEJV65M.js} +3 -3
  3. package/dist/{chunk-3W7OQGNS.js → chunk-3XUF7GM3.js} +21 -42
  4. package/dist/chunk-3XUF7GM3.js.map +1 -0
  5. package/dist/chunk-77SWBATH.js +204 -0
  6. package/dist/chunk-77SWBATH.js.map +1 -0
  7. package/dist/{chunk-ML6HST4W.js → chunk-A5X4KG7U.js} +1878 -341
  8. package/dist/chunk-A5X4KG7U.js.map +1 -0
  9. package/dist/{chunk-ZNF5QSAT.js → chunk-BPTNEFB5.js} +33491 -24904
  10. package/dist/chunk-BPTNEFB5.js.map +1 -0
  11. package/dist/{chunk-VREOXJUB.js → chunk-EEPD7SHV.js} +15455 -14941
  12. package/dist/chunk-EEPD7SHV.js.map +1 -0
  13. package/dist/{chunk-AB65Y674.js → chunk-V7PXDEKG.js} +2 -2
  14. package/dist/chunk-V7PXDEKG.js.map +1 -0
  15. package/dist/chunk-XOAZJ42V.js +4016 -0
  16. package/dist/chunk-XOAZJ42V.js.map +1 -0
  17. package/dist/client-CK5OR2TP.js +746 -0
  18. package/dist/client-CK5OR2TP.js.map +1 -0
  19. package/dist/{client-SYS6Z5RX.js → client-R3NRAXMD.js} +5715 -2933
  20. package/dist/client-R3NRAXMD.js.map +1 -0
  21. package/dist/{dist-73ESA7QZ.js → dist-MJOXMRDV.js} +135 -4259
  22. package/dist/dist-MJOXMRDV.js.map +1 -0
  23. package/dist/{dist-IANNA5N7.js → dist-TWST5EWE.js} +11 -27
  24. package/dist/{esm-IQVNJILX.js → esm-QBJBHFZA.js} +11 -11
  25. package/dist/esm-QBJBHFZA.js.map +1 -0
  26. package/dist/index.js +125 -284
  27. package/dist/index.js.map +1 -1
  28. package/package.json +4 -4
  29. package/dist/chunk-3W7OQGNS.js.map +0 -1
  30. package/dist/chunk-AB65Y674.js.map +0 -1
  31. package/dist/chunk-H66DC3S3.js +0 -1908
  32. package/dist/chunk-H66DC3S3.js.map +0 -1
  33. package/dist/chunk-IHPSFXUW.js +0 -5002
  34. package/dist/chunk-IHPSFXUW.js.map +0 -1
  35. package/dist/chunk-ML6HST4W.js.map +0 -1
  36. package/dist/chunk-VREOXJUB.js.map +0 -1
  37. package/dist/chunk-ZNF5QSAT.js.map +0 -1
  38. package/dist/client-4DBCJNJO.js +0 -117
  39. package/dist/client-4DBCJNJO.js.map +0 -1
  40. package/dist/client-SYS6Z5RX.js.map +0 -1
  41. package/dist/dist-73ESA7QZ.js.map +0 -1
  42. package/dist/esm-IQVNJILX.js.map +0 -1
  43. /package/dist/{ccip-3TXHQUZ5.js.map → ccip-JEEJV65M.js.map} +0 -0
  44. /package/dist/{dist-IANNA5N7.js.map → dist-TWST5EWE.js.map} +0 -0
@@ -1,19 +1,1520 @@
1
1
  import { createRequire as __createRequire } from 'module'; import { fileURLToPath as __fileURLToPath } from 'url'; import { dirname as __pathDirname } from 'path'; const require = __createRequire(import.meta.url); const __filename = __fileURLToPath(import.meta.url); const __dirname = __pathDirname(__filename);
2
2
  import {
3
- formatAbiItem,
4
- keccak_256,
5
- parseAbi,
6
- toRpc
7
- } from "./chunk-H66DC3S3.js";
3
+ keccak_256
4
+ } from "./chunk-77SWBATH.js";
5
+ import {
6
+ equalBytes
7
+ } from "./chunk-7LGHVVIJ.js";
8
+
9
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/version.js
10
+ var version = "1.2.3";
11
+
12
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/errors.js
13
+ var BaseError = class _BaseError extends Error {
14
+ constructor(shortMessage, args = {}) {
15
+ const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
16
+ const docsPath6 = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
17
+ const message = [
18
+ shortMessage || "An error occurred.",
19
+ "",
20
+ ...args.metaMessages ? [...args.metaMessages, ""] : [],
21
+ ...docsPath6 ? [`Docs: https://abitype.dev${docsPath6}`] : [],
22
+ ...details ? [`Details: ${details}`] : [],
23
+ `Version: abitype@${version}`
24
+ ].join("\n");
25
+ super(message);
26
+ Object.defineProperty(this, "details", {
27
+ enumerable: true,
28
+ configurable: true,
29
+ writable: true,
30
+ value: void 0
31
+ });
32
+ Object.defineProperty(this, "docsPath", {
33
+ enumerable: true,
34
+ configurable: true,
35
+ writable: true,
36
+ value: void 0
37
+ });
38
+ Object.defineProperty(this, "metaMessages", {
39
+ enumerable: true,
40
+ configurable: true,
41
+ writable: true,
42
+ value: void 0
43
+ });
44
+ Object.defineProperty(this, "shortMessage", {
45
+ enumerable: true,
46
+ configurable: true,
47
+ writable: true,
48
+ value: void 0
49
+ });
50
+ Object.defineProperty(this, "name", {
51
+ enumerable: true,
52
+ configurable: true,
53
+ writable: true,
54
+ value: "AbiTypeError"
55
+ });
56
+ if (args.cause)
57
+ this.cause = args.cause;
58
+ this.details = details;
59
+ this.docsPath = docsPath6;
60
+ this.metaMessages = args.metaMessages;
61
+ this.shortMessage = shortMessage;
62
+ }
63
+ };
64
+
65
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/regex.js
66
+ function execTyped(regex, string) {
67
+ const match = regex.exec(string);
68
+ return match?.groups;
69
+ }
70
+ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
71
+ 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)?$/;
72
+ var isTupleRegex = /^\(.+?\).*?$/;
73
+
74
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
75
+ var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
76
+ function formatAbiParameter(abiParameter) {
77
+ let type = abiParameter.type;
78
+ if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
79
+ type = "(";
80
+ const length = abiParameter.components.length;
81
+ for (let i = 0; i < length; i++) {
82
+ const component = abiParameter.components[i];
83
+ type += formatAbiParameter(component);
84
+ if (i < length - 1)
85
+ type += ", ";
86
+ }
87
+ const result = execTyped(tupleRegex, abiParameter.type);
88
+ type += `)${result?.array || ""}`;
89
+ return formatAbiParameter({
90
+ ...abiParameter,
91
+ type
92
+ });
93
+ }
94
+ if ("indexed" in abiParameter && abiParameter.indexed)
95
+ type = `${type} indexed`;
96
+ if (abiParameter.name)
97
+ return `${type} ${abiParameter.name}`;
98
+ return type;
99
+ }
100
+
101
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
102
+ function formatAbiParameters(abiParameters) {
103
+ let params = "";
104
+ const length = abiParameters.length;
105
+ for (let i = 0; i < length; i++) {
106
+ const abiParameter = abiParameters[i];
107
+ params += formatAbiParameter(abiParameter);
108
+ if (i !== length - 1)
109
+ params += ", ";
110
+ }
111
+ return params;
112
+ }
113
+
114
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
115
+ function formatAbiItem(abiItem) {
116
+ if (abiItem.type === "function")
117
+ return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
118
+ if (abiItem.type === "event")
119
+ return `event ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
120
+ if (abiItem.type === "error")
121
+ return `error ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})`;
122
+ if (abiItem.type === "constructor")
123
+ return `constructor(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability === "payable" ? " payable" : ""}`;
124
+ if (abiItem.type === "fallback")
125
+ return `fallback() external${abiItem.stateMutability === "payable" ? " payable" : ""}`;
126
+ return "receive() external payable";
127
+ }
128
+
129
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
130
+ var errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
131
+ function isErrorSignature(signature) {
132
+ return errorSignatureRegex.test(signature);
133
+ }
134
+ function execErrorSignature(signature) {
135
+ return execTyped(errorSignatureRegex, signature);
136
+ }
137
+ var eventSignatureRegex = /^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
138
+ function isEventSignature(signature) {
139
+ return eventSignatureRegex.test(signature);
140
+ }
141
+ function execEventSignature(signature) {
142
+ return execTyped(eventSignatureRegex, signature);
143
+ }
144
+ var functionSignatureRegex = /^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;
145
+ function isFunctionSignature(signature) {
146
+ return functionSignatureRegex.test(signature);
147
+ }
148
+ function execFunctionSignature(signature) {
149
+ return execTyped(functionSignatureRegex, signature);
150
+ }
151
+ var structSignatureRegex = /^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;
152
+ function isStructSignature(signature) {
153
+ return structSignatureRegex.test(signature);
154
+ }
155
+ function execStructSignature(signature) {
156
+ return execTyped(structSignatureRegex, signature);
157
+ }
158
+ var constructorSignatureRegex = /^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;
159
+ function isConstructorSignature(signature) {
160
+ return constructorSignatureRegex.test(signature);
161
+ }
162
+ function execConstructorSignature(signature) {
163
+ return execTyped(constructorSignatureRegex, signature);
164
+ }
165
+ var fallbackSignatureRegex = /^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;
166
+ function isFallbackSignature(signature) {
167
+ return fallbackSignatureRegex.test(signature);
168
+ }
169
+ function execFallbackSignature(signature) {
170
+ return execTyped(fallbackSignatureRegex, signature);
171
+ }
172
+ var receiveSignatureRegex = /^receive\(\) external payable$/;
173
+ function isReceiveSignature(signature) {
174
+ return receiveSignatureRegex.test(signature);
175
+ }
176
+ var modifiers = /* @__PURE__ */ new Set([
177
+ "memory",
178
+ "indexed",
179
+ "storage",
180
+ "calldata"
181
+ ]);
182
+ var eventModifiers = /* @__PURE__ */ new Set(["indexed"]);
183
+ var functionModifiers = /* @__PURE__ */ new Set([
184
+ "calldata",
185
+ "memory",
186
+ "storage"
187
+ ]);
188
+
189
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
190
+ var UnknownTypeError = class extends BaseError {
191
+ constructor({ type }) {
192
+ super("Unknown type.", {
193
+ metaMessages: [
194
+ `Type "${type}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`
195
+ ]
196
+ });
197
+ Object.defineProperty(this, "name", {
198
+ enumerable: true,
199
+ configurable: true,
200
+ writable: true,
201
+ value: "UnknownTypeError"
202
+ });
203
+ }
204
+ };
205
+ var UnknownSolidityTypeError = class extends BaseError {
206
+ constructor({ type }) {
207
+ super("Unknown type.", {
208
+ metaMessages: [`Type "${type}" is not a valid ABI type.`]
209
+ });
210
+ Object.defineProperty(this, "name", {
211
+ enumerable: true,
212
+ configurable: true,
213
+ writable: true,
214
+ value: "UnknownSolidityTypeError"
215
+ });
216
+ }
217
+ };
218
+
219
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
220
+ var InvalidAbiParametersError = class extends BaseError {
221
+ constructor({ params }) {
222
+ super("Failed to parse ABI parameters.", {
223
+ details: `parseAbiParameters(${JSON.stringify(params, null, 2)})`,
224
+ docsPath: "/api/human#parseabiparameters-1"
225
+ });
226
+ Object.defineProperty(this, "name", {
227
+ enumerable: true,
228
+ configurable: true,
229
+ writable: true,
230
+ value: "InvalidAbiParametersError"
231
+ });
232
+ }
233
+ };
234
+ var InvalidParameterError = class extends BaseError {
235
+ constructor({ param }) {
236
+ super("Invalid ABI parameter.", {
237
+ details: param
238
+ });
239
+ Object.defineProperty(this, "name", {
240
+ enumerable: true,
241
+ configurable: true,
242
+ writable: true,
243
+ value: "InvalidParameterError"
244
+ });
245
+ }
246
+ };
247
+ var SolidityProtectedKeywordError = class extends BaseError {
248
+ constructor({ param, name }) {
249
+ super("Invalid ABI parameter.", {
250
+ details: param,
251
+ metaMessages: [
252
+ `"${name}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`
253
+ ]
254
+ });
255
+ Object.defineProperty(this, "name", {
256
+ enumerable: true,
257
+ configurable: true,
258
+ writable: true,
259
+ value: "SolidityProtectedKeywordError"
260
+ });
261
+ }
262
+ };
263
+ var InvalidModifierError = class extends BaseError {
264
+ constructor({ param, type, modifier }) {
265
+ super("Invalid ABI parameter.", {
266
+ details: param,
267
+ metaMessages: [
268
+ `Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`
269
+ ]
270
+ });
271
+ Object.defineProperty(this, "name", {
272
+ enumerable: true,
273
+ configurable: true,
274
+ writable: true,
275
+ value: "InvalidModifierError"
276
+ });
277
+ }
278
+ };
279
+ var InvalidFunctionModifierError = class extends BaseError {
280
+ constructor({ param, type, modifier }) {
281
+ super("Invalid ABI parameter.", {
282
+ details: param,
283
+ metaMessages: [
284
+ `Modifier "${modifier}" not allowed${type ? ` in "${type}" type` : ""}.`,
285
+ `Data location can only be specified for array, struct, or mapping types, but "${modifier}" was given.`
286
+ ]
287
+ });
288
+ Object.defineProperty(this, "name", {
289
+ enumerable: true,
290
+ configurable: true,
291
+ writable: true,
292
+ value: "InvalidFunctionModifierError"
293
+ });
294
+ }
295
+ };
296
+ var InvalidAbiTypeParameterError = class extends BaseError {
297
+ constructor({ abiParameter }) {
298
+ super("Invalid ABI parameter.", {
299
+ details: JSON.stringify(abiParameter, null, 2),
300
+ metaMessages: ["ABI parameter type is invalid."]
301
+ });
302
+ Object.defineProperty(this, "name", {
303
+ enumerable: true,
304
+ configurable: true,
305
+ writable: true,
306
+ value: "InvalidAbiTypeParameterError"
307
+ });
308
+ }
309
+ };
310
+
311
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/signature.js
312
+ var InvalidSignatureError = class extends BaseError {
313
+ constructor({ signature, type }) {
314
+ super(`Invalid ${type} signature.`, {
315
+ details: signature
316
+ });
317
+ Object.defineProperty(this, "name", {
318
+ enumerable: true,
319
+ configurable: true,
320
+ writable: true,
321
+ value: "InvalidSignatureError"
322
+ });
323
+ }
324
+ };
325
+ var UnknownSignatureError = class extends BaseError {
326
+ constructor({ signature }) {
327
+ super("Unknown signature.", {
328
+ details: signature
329
+ });
330
+ Object.defineProperty(this, "name", {
331
+ enumerable: true,
332
+ configurable: true,
333
+ writable: true,
334
+ value: "UnknownSignatureError"
335
+ });
336
+ }
337
+ };
338
+ var InvalidStructSignatureError = class extends BaseError {
339
+ constructor({ signature }) {
340
+ super("Invalid struct signature.", {
341
+ details: signature,
342
+ metaMessages: ["No properties exist."]
343
+ });
344
+ Object.defineProperty(this, "name", {
345
+ enumerable: true,
346
+ configurable: true,
347
+ writable: true,
348
+ value: "InvalidStructSignatureError"
349
+ });
350
+ }
351
+ };
352
+
353
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/struct.js
354
+ var CircularReferenceError = class extends BaseError {
355
+ constructor({ type }) {
356
+ super("Circular reference detected.", {
357
+ metaMessages: [`Struct "${type}" is a circular reference.`]
358
+ });
359
+ Object.defineProperty(this, "name", {
360
+ enumerable: true,
361
+ configurable: true,
362
+ writable: true,
363
+ value: "CircularReferenceError"
364
+ });
365
+ }
366
+ };
367
+
368
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
369
+ var InvalidParenthesisError = class extends BaseError {
370
+ constructor({ current, depth }) {
371
+ super("Unbalanced parentheses.", {
372
+ metaMessages: [
373
+ `"${current.trim()}" has too many ${depth > 0 ? "opening" : "closing"} parentheses.`
374
+ ],
375
+ details: `Depth "${depth}"`
376
+ });
377
+ Object.defineProperty(this, "name", {
378
+ enumerable: true,
379
+ configurable: true,
380
+ writable: true,
381
+ value: "InvalidParenthesisError"
382
+ });
383
+ }
384
+ };
385
+
386
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
387
+ function getParameterCacheKey(param, type, structs) {
388
+ let structKey = "";
389
+ if (structs)
390
+ for (const struct of Object.entries(structs)) {
391
+ if (!struct)
392
+ continue;
393
+ let propertyKey = "";
394
+ for (const property of struct[1]) {
395
+ propertyKey += `[${property.type}${property.name ? `:${property.name}` : ""}]`;
396
+ }
397
+ structKey += `(${struct[0]}{${propertyKey}})`;
398
+ }
399
+ if (type)
400
+ return `${type}:${param}${structKey}`;
401
+ return `${param}${structKey}`;
402
+ }
403
+ var parameterCache = /* @__PURE__ */ new Map([
404
+ // Unnamed
405
+ ["address", { type: "address" }],
406
+ ["bool", { type: "bool" }],
407
+ ["bytes", { type: "bytes" }],
408
+ ["bytes32", { type: "bytes32" }],
409
+ ["int", { type: "int256" }],
410
+ ["int256", { type: "int256" }],
411
+ ["string", { type: "string" }],
412
+ ["uint", { type: "uint256" }],
413
+ ["uint8", { type: "uint8" }],
414
+ ["uint16", { type: "uint16" }],
415
+ ["uint24", { type: "uint24" }],
416
+ ["uint32", { type: "uint32" }],
417
+ ["uint64", { type: "uint64" }],
418
+ ["uint96", { type: "uint96" }],
419
+ ["uint112", { type: "uint112" }],
420
+ ["uint160", { type: "uint160" }],
421
+ ["uint192", { type: "uint192" }],
422
+ ["uint256", { type: "uint256" }],
423
+ // Named
424
+ ["address owner", { type: "address", name: "owner" }],
425
+ ["address to", { type: "address", name: "to" }],
426
+ ["bool approved", { type: "bool", name: "approved" }],
427
+ ["bytes _data", { type: "bytes", name: "_data" }],
428
+ ["bytes data", { type: "bytes", name: "data" }],
429
+ ["bytes signature", { type: "bytes", name: "signature" }],
430
+ ["bytes32 hash", { type: "bytes32", name: "hash" }],
431
+ ["bytes32 r", { type: "bytes32", name: "r" }],
432
+ ["bytes32 root", { type: "bytes32", name: "root" }],
433
+ ["bytes32 s", { type: "bytes32", name: "s" }],
434
+ ["string name", { type: "string", name: "name" }],
435
+ ["string symbol", { type: "string", name: "symbol" }],
436
+ ["string tokenURI", { type: "string", name: "tokenURI" }],
437
+ ["uint tokenId", { type: "uint256", name: "tokenId" }],
438
+ ["uint8 v", { type: "uint8", name: "v" }],
439
+ ["uint256 balance", { type: "uint256", name: "balance" }],
440
+ ["uint256 tokenId", { type: "uint256", name: "tokenId" }],
441
+ ["uint256 value", { type: "uint256", name: "value" }],
442
+ // Indexed
443
+ [
444
+ "event:address indexed from",
445
+ { type: "address", name: "from", indexed: true }
446
+ ],
447
+ ["event:address indexed to", { type: "address", name: "to", indexed: true }],
448
+ [
449
+ "event:uint indexed tokenId",
450
+ { type: "uint256", name: "tokenId", indexed: true }
451
+ ],
452
+ [
453
+ "event:uint256 indexed tokenId",
454
+ { type: "uint256", name: "tokenId", indexed: true }
455
+ ]
456
+ ]);
457
+
458
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
459
+ function parseSignature(signature, structs = {}) {
460
+ if (isFunctionSignature(signature))
461
+ return parseFunctionSignature(signature, structs);
462
+ if (isEventSignature(signature))
463
+ return parseEventSignature(signature, structs);
464
+ if (isErrorSignature(signature))
465
+ return parseErrorSignature(signature, structs);
466
+ if (isConstructorSignature(signature))
467
+ return parseConstructorSignature(signature, structs);
468
+ if (isFallbackSignature(signature))
469
+ return parseFallbackSignature(signature);
470
+ if (isReceiveSignature(signature))
471
+ return {
472
+ type: "receive",
473
+ stateMutability: "payable"
474
+ };
475
+ throw new UnknownSignatureError({ signature });
476
+ }
477
+ function parseFunctionSignature(signature, structs = {}) {
478
+ const match = execFunctionSignature(signature);
479
+ if (!match)
480
+ throw new InvalidSignatureError({ signature, type: "function" });
481
+ const inputParams = splitParameters(match.parameters);
482
+ const inputs = [];
483
+ const inputLength = inputParams.length;
484
+ for (let i = 0; i < inputLength; i++) {
485
+ inputs.push(parseAbiParameter(inputParams[i], {
486
+ modifiers: functionModifiers,
487
+ structs,
488
+ type: "function"
489
+ }));
490
+ }
491
+ const outputs = [];
492
+ if (match.returns) {
493
+ const outputParams = splitParameters(match.returns);
494
+ const outputLength = outputParams.length;
495
+ for (let i = 0; i < outputLength; i++) {
496
+ outputs.push(parseAbiParameter(outputParams[i], {
497
+ modifiers: functionModifiers,
498
+ structs,
499
+ type: "function"
500
+ }));
501
+ }
502
+ }
503
+ return {
504
+ name: match.name,
505
+ type: "function",
506
+ stateMutability: match.stateMutability ?? "nonpayable",
507
+ inputs,
508
+ outputs
509
+ };
510
+ }
511
+ function parseEventSignature(signature, structs = {}) {
512
+ const match = execEventSignature(signature);
513
+ if (!match)
514
+ throw new InvalidSignatureError({ signature, type: "event" });
515
+ const params = splitParameters(match.parameters);
516
+ const abiParameters = [];
517
+ const length = params.length;
518
+ for (let i = 0; i < length; i++)
519
+ abiParameters.push(parseAbiParameter(params[i], {
520
+ modifiers: eventModifiers,
521
+ structs,
522
+ type: "event"
523
+ }));
524
+ return { name: match.name, type: "event", inputs: abiParameters };
525
+ }
526
+ function parseErrorSignature(signature, structs = {}) {
527
+ const match = execErrorSignature(signature);
528
+ if (!match)
529
+ throw new InvalidSignatureError({ signature, type: "error" });
530
+ const params = splitParameters(match.parameters);
531
+ const abiParameters = [];
532
+ const length = params.length;
533
+ for (let i = 0; i < length; i++)
534
+ abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
535
+ return { name: match.name, type: "error", inputs: abiParameters };
536
+ }
537
+ function parseConstructorSignature(signature, structs = {}) {
538
+ const match = execConstructorSignature(signature);
539
+ if (!match)
540
+ throw new InvalidSignatureError({ signature, type: "constructor" });
541
+ const params = splitParameters(match.parameters);
542
+ const abiParameters = [];
543
+ const length = params.length;
544
+ for (let i = 0; i < length; i++)
545
+ abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
546
+ return {
547
+ type: "constructor",
548
+ stateMutability: match.stateMutability ?? "nonpayable",
549
+ inputs: abiParameters
550
+ };
551
+ }
552
+ function parseFallbackSignature(signature) {
553
+ const match = execFallbackSignature(signature);
554
+ if (!match)
555
+ throw new InvalidSignatureError({ signature, type: "fallback" });
556
+ return {
557
+ type: "fallback",
558
+ stateMutability: match.stateMutability ?? "nonpayable"
559
+ };
560
+ }
561
+ var abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
562
+ var abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
563
+ var dynamicIntegerRegex = /^u?int$/;
564
+ function parseAbiParameter(param, options) {
565
+ const parameterCacheKey = getParameterCacheKey(param, options?.type, options?.structs);
566
+ if (parameterCache.has(parameterCacheKey))
567
+ return parameterCache.get(parameterCacheKey);
568
+ const isTuple = isTupleRegex.test(param);
569
+ const match = execTyped(isTuple ? abiParameterWithTupleRegex : abiParameterWithoutTupleRegex, param);
570
+ if (!match)
571
+ throw new InvalidParameterError({ param });
572
+ if (match.name && isSolidityKeyword(match.name))
573
+ throw new SolidityProtectedKeywordError({ param, name: match.name });
574
+ const name = match.name ? { name: match.name } : {};
575
+ const indexed = match.modifier === "indexed" ? { indexed: true } : {};
576
+ const structs = options?.structs ?? {};
577
+ let type;
578
+ let components = {};
579
+ if (isTuple) {
580
+ type = "tuple";
581
+ const params = splitParameters(match.type);
582
+ const components_ = [];
583
+ const length = params.length;
584
+ for (let i = 0; i < length; i++) {
585
+ components_.push(parseAbiParameter(params[i], { structs }));
586
+ }
587
+ components = { components: components_ };
588
+ } else if (match.type in structs) {
589
+ type = "tuple";
590
+ components = { components: structs[match.type] };
591
+ } else if (dynamicIntegerRegex.test(match.type)) {
592
+ type = `${match.type}256`;
593
+ } else if (match.type === "address payable") {
594
+ type = "address";
595
+ } else {
596
+ type = match.type;
597
+ if (!(options?.type === "struct") && !isSolidityType(type))
598
+ throw new UnknownSolidityTypeError({ type });
599
+ }
600
+ if (match.modifier) {
601
+ if (!options?.modifiers?.has?.(match.modifier))
602
+ throw new InvalidModifierError({
603
+ param,
604
+ type: options?.type,
605
+ modifier: match.modifier
606
+ });
607
+ if (functionModifiers.has(match.modifier) && !isValidDataLocation(type, !!match.array))
608
+ throw new InvalidFunctionModifierError({
609
+ param,
610
+ type: options?.type,
611
+ modifier: match.modifier
612
+ });
613
+ }
614
+ const abiParameter = {
615
+ type: `${type}${match.array ?? ""}`,
616
+ ...name,
617
+ ...indexed,
618
+ ...components
619
+ };
620
+ parameterCache.set(parameterCacheKey, abiParameter);
621
+ return abiParameter;
622
+ }
623
+ function splitParameters(params, result = [], current = "", depth = 0) {
624
+ const length = params.trim().length;
625
+ for (let i = 0; i < length; i++) {
626
+ const char = params[i];
627
+ const tail = params.slice(i + 1);
628
+ switch (char) {
629
+ case ",":
630
+ return depth === 0 ? splitParameters(tail, [...result, current.trim()]) : splitParameters(tail, result, `${current}${char}`, depth);
631
+ case "(":
632
+ return splitParameters(tail, result, `${current}${char}`, depth + 1);
633
+ case ")":
634
+ return splitParameters(tail, result, `${current}${char}`, depth - 1);
635
+ default:
636
+ return splitParameters(tail, result, `${current}${char}`, depth);
637
+ }
638
+ }
639
+ if (current === "")
640
+ return result;
641
+ if (depth !== 0)
642
+ throw new InvalidParenthesisError({ current, depth });
643
+ result.push(current.trim());
644
+ return result;
645
+ }
646
+ function isSolidityType(type) {
647
+ return type === "address" || type === "bool" || type === "function" || type === "string" || bytesRegex.test(type) || integerRegex.test(type);
648
+ }
649
+ var protectedKeywordsRegex = /^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;
650
+ function isSolidityKeyword(name) {
651
+ return name === "address" || name === "bool" || name === "function" || name === "string" || name === "tuple" || bytesRegex.test(name) || integerRegex.test(name) || protectedKeywordsRegex.test(name);
652
+ }
653
+ function isValidDataLocation(type, isArray) {
654
+ return isArray || type === "bytes" || type === "string" || type === "tuple";
655
+ }
656
+
657
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
658
+ function parseStructs(signatures) {
659
+ const shallowStructs = {};
660
+ const signaturesLength = signatures.length;
661
+ for (let i = 0; i < signaturesLength; i++) {
662
+ const signature = signatures[i];
663
+ if (!isStructSignature(signature))
664
+ continue;
665
+ const match = execStructSignature(signature);
666
+ if (!match)
667
+ throw new InvalidSignatureError({ signature, type: "struct" });
668
+ const properties = match.properties.split(";");
669
+ const components = [];
670
+ const propertiesLength = properties.length;
671
+ for (let k = 0; k < propertiesLength; k++) {
672
+ const property = properties[k];
673
+ const trimmed = property.trim();
674
+ if (!trimmed)
675
+ continue;
676
+ const abiParameter = parseAbiParameter(trimmed, {
677
+ type: "struct"
678
+ });
679
+ components.push(abiParameter);
680
+ }
681
+ if (!components.length)
682
+ throw new InvalidStructSignatureError({ signature });
683
+ shallowStructs[match.name] = components;
684
+ }
685
+ const resolvedStructs = {};
686
+ const entries = Object.entries(shallowStructs);
687
+ const entriesLength = entries.length;
688
+ for (let i = 0; i < entriesLength; i++) {
689
+ const [name, parameters] = entries[i];
690
+ resolvedStructs[name] = resolveStructs(parameters, shallowStructs);
691
+ }
692
+ return resolvedStructs;
693
+ }
694
+ var typeWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;
695
+ function resolveStructs(abiParameters = [], structs = {}, ancestors = /* @__PURE__ */ new Set()) {
696
+ const components = [];
697
+ const length = abiParameters.length;
698
+ for (let i = 0; i < length; i++) {
699
+ const abiParameter = abiParameters[i];
700
+ const isTuple = isTupleRegex.test(abiParameter.type);
701
+ if (isTuple)
702
+ components.push(abiParameter);
703
+ else {
704
+ const match = execTyped(typeWithoutTupleRegex, abiParameter.type);
705
+ if (!match?.type)
706
+ throw new InvalidAbiTypeParameterError({ abiParameter });
707
+ const { array, type } = match;
708
+ if (type in structs) {
709
+ if (ancestors.has(type))
710
+ throw new CircularReferenceError({ type });
711
+ components.push({
712
+ ...abiParameter,
713
+ type: `tuple${array ?? ""}`,
714
+ components: resolveStructs(structs[type], structs, /* @__PURE__ */ new Set([...ancestors, type]))
715
+ });
716
+ } else {
717
+ if (isSolidityType(type))
718
+ components.push(abiParameter);
719
+ else
720
+ throw new UnknownTypeError({ type });
721
+ }
722
+ }
723
+ }
724
+ return components;
725
+ }
726
+
727
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbi.js
728
+ function parseAbi(signatures) {
729
+ const structs = parseStructs(signatures);
730
+ const abi = [];
731
+ const length = signatures.length;
732
+ for (let i = 0; i < length; i++) {
733
+ const signature = signatures[i];
734
+ if (isStructSignature(signature))
735
+ continue;
736
+ abi.push(parseSignature(signature, structs));
737
+ }
738
+ return abi;
739
+ }
740
+
741
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/parseAbiParameters.js
742
+ function parseAbiParameters(params) {
743
+ const abiParameters = [];
744
+ if (typeof params === "string") {
745
+ const parameters = splitParameters(params);
746
+ const length = parameters.length;
747
+ for (let i = 0; i < length; i++) {
748
+ abiParameters.push(parseAbiParameter(parameters[i], { modifiers }));
749
+ }
750
+ } else {
751
+ const structs = parseStructs(params);
752
+ const length = params.length;
753
+ for (let i = 0; i < length; i++) {
754
+ const signature = params[i];
755
+ if (isStructSignature(signature))
756
+ continue;
757
+ const parameters = splitParameters(signature);
758
+ const length2 = parameters.length;
759
+ for (let k = 0; k < length2; k++) {
760
+ abiParameters.push(parseAbiParameter(parameters[k], { modifiers, structs }));
761
+ }
762
+ }
763
+ }
764
+ if (abiParameters.length === 0)
765
+ throw new InvalidAbiParametersError({ params });
766
+ return abiParameters;
767
+ }
768
+
769
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/version.js
770
+ var version2 = "0.1.1";
771
+
772
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/errors.js
773
+ function getVersion() {
774
+ return version2;
775
+ }
776
+
777
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Errors.js
778
+ var BaseError2 = class _BaseError extends Error {
779
+ static setStaticOptions(options) {
780
+ _BaseError.prototype.docsOrigin = options.docsOrigin;
781
+ _BaseError.prototype.showVersion = options.showVersion;
782
+ _BaseError.prototype.version = options.version;
783
+ }
784
+ constructor(shortMessage, options = {}) {
785
+ const details = (() => {
786
+ if (options.cause instanceof _BaseError) {
787
+ if (options.cause.details)
788
+ return options.cause.details;
789
+ if (options.cause.shortMessage)
790
+ return options.cause.shortMessage;
791
+ }
792
+ if (options.cause && "details" in options.cause && typeof options.cause.details === "string")
793
+ return options.cause.details;
794
+ if (options.cause?.message)
795
+ return options.cause.message;
796
+ return options.details;
797
+ })();
798
+ const docsPath6 = (() => {
799
+ if (options.cause instanceof _BaseError)
800
+ return options.cause.docsPath || options.docsPath;
801
+ return options.docsPath;
802
+ })();
803
+ const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
804
+ const docs = `${docsBaseUrl}${docsPath6 ?? ""}`;
805
+ const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
806
+ const version4 = options.version ?? _BaseError.prototype.version;
807
+ const message = [
808
+ shortMessage || "An error occurred.",
809
+ ...options.metaMessages ? ["", ...options.metaMessages] : [],
810
+ ...details || docsPath6 || showVersion ? [
811
+ "",
812
+ details ? `Details: ${details}` : void 0,
813
+ docsPath6 ? `See: ${docs}` : void 0,
814
+ showVersion ? `Version: ${version4}` : void 0
815
+ ] : []
816
+ ].filter((x) => typeof x === "string").join("\n");
817
+ super(message, options.cause ? { cause: options.cause } : void 0);
818
+ Object.defineProperty(this, "details", {
819
+ enumerable: true,
820
+ configurable: true,
821
+ writable: true,
822
+ value: void 0
823
+ });
824
+ Object.defineProperty(this, "docs", {
825
+ enumerable: true,
826
+ configurable: true,
827
+ writable: true,
828
+ value: void 0
829
+ });
830
+ Object.defineProperty(this, "docsOrigin", {
831
+ enumerable: true,
832
+ configurable: true,
833
+ writable: true,
834
+ value: void 0
835
+ });
836
+ Object.defineProperty(this, "docsPath", {
837
+ enumerable: true,
838
+ configurable: true,
839
+ writable: true,
840
+ value: void 0
841
+ });
842
+ Object.defineProperty(this, "shortMessage", {
843
+ enumerable: true,
844
+ configurable: true,
845
+ writable: true,
846
+ value: void 0
847
+ });
848
+ Object.defineProperty(this, "showVersion", {
849
+ enumerable: true,
850
+ configurable: true,
851
+ writable: true,
852
+ value: void 0
853
+ });
854
+ Object.defineProperty(this, "version", {
855
+ enumerable: true,
856
+ configurable: true,
857
+ writable: true,
858
+ value: void 0
859
+ });
860
+ Object.defineProperty(this, "cause", {
861
+ enumerable: true,
862
+ configurable: true,
863
+ writable: true,
864
+ value: void 0
865
+ });
866
+ Object.defineProperty(this, "name", {
867
+ enumerable: true,
868
+ configurable: true,
869
+ writable: true,
870
+ value: "BaseError"
871
+ });
872
+ this.cause = options.cause;
873
+ this.details = details;
874
+ this.docs = docs;
875
+ this.docsOrigin = docsBaseUrl;
876
+ this.docsPath = docsPath6;
877
+ this.shortMessage = shortMessage;
878
+ this.showVersion = showVersion;
879
+ this.version = version4;
880
+ }
881
+ walk(fn) {
882
+ return walk(this, fn);
883
+ }
884
+ };
885
+ Object.defineProperty(BaseError2, "defaultStaticOptions", {
886
+ enumerable: true,
887
+ configurable: true,
888
+ writable: true,
889
+ value: {
890
+ docsOrigin: "https://oxlib.sh",
891
+ showVersion: false,
892
+ version: `ox@${getVersion()}`
893
+ }
894
+ });
895
+ (() => {
896
+ BaseError2.setStaticOptions(BaseError2.defaultStaticOptions);
897
+ })();
898
+ function walk(err, fn) {
899
+ if (fn?.(err))
900
+ return err;
901
+ if (err && typeof err === "object" && "cause" in err && err.cause)
902
+ return walk(err.cause, fn);
903
+ return fn ? null : err;
904
+ }
905
+
906
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/bytes.js
907
+ function assertSize(bytes, size_) {
908
+ if (size(bytes) > size_)
909
+ throw new SizeOverflowError({
910
+ givenSize: size(bytes),
911
+ maxSize: size_
912
+ });
913
+ }
914
+ function assertStartOffset(value, start) {
915
+ if (typeof start === "number" && start > 0 && start > size(value) - 1)
916
+ throw new SliceOffsetOutOfBoundsError({
917
+ offset: start,
918
+ position: "start",
919
+ size: size(value)
920
+ });
921
+ }
922
+ function assertEndOffset(value, start, end) {
923
+ if (typeof start === "number" && typeof end === "number" && size(value) !== end - start) {
924
+ throw new SliceOffsetOutOfBoundsError({
925
+ offset: end,
926
+ position: "end",
927
+ size: size(value)
928
+ });
929
+ }
930
+ }
931
+ var charCodeMap = {
932
+ zero: 48,
933
+ nine: 57,
934
+ A: 65,
935
+ F: 70,
936
+ a: 97,
937
+ f: 102
938
+ };
939
+ function charCodeToBase16(char) {
940
+ if (char >= charCodeMap.zero && char <= charCodeMap.nine)
941
+ return char - charCodeMap.zero;
942
+ if (char >= charCodeMap.A && char <= charCodeMap.F)
943
+ return char - (charCodeMap.A - 10);
944
+ if (char >= charCodeMap.a && char <= charCodeMap.f)
945
+ return char - (charCodeMap.a - 10);
946
+ return void 0;
947
+ }
948
+ function pad(bytes, options = {}) {
949
+ const { dir, size: size4 = 32 } = options;
950
+ if (size4 === 0)
951
+ return bytes;
952
+ if (bytes.length > size4)
953
+ throw new SizeExceedsPaddingSizeError({
954
+ size: bytes.length,
955
+ targetSize: size4,
956
+ type: "Bytes"
957
+ });
958
+ const paddedBytes = new Uint8Array(size4);
959
+ for (let i = 0; i < size4; i++) {
960
+ const padEnd = dir === "right";
961
+ paddedBytes[padEnd ? i : size4 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
962
+ }
963
+ return paddedBytes;
964
+ }
965
+ function trim(value, options = {}) {
966
+ const { dir = "left" } = options;
967
+ let data = value;
968
+ let sliceLength = 0;
969
+ for (let i = 0; i < data.length - 1; i++) {
970
+ if (data[dir === "left" ? i : data.length - i - 1].toString() === "0")
971
+ sliceLength++;
972
+ else
973
+ break;
974
+ }
975
+ data = dir === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
976
+ return data;
977
+ }
978
+
979
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/hex.js
980
+ function assertSize2(hex, size_) {
981
+ if (size2(hex) > size_)
982
+ throw new SizeOverflowError2({
983
+ givenSize: size2(hex),
984
+ maxSize: size_
985
+ });
986
+ }
987
+ function assertStartOffset2(value, start) {
988
+ if (typeof start === "number" && start > 0 && start > size2(value) - 1)
989
+ throw new SliceOffsetOutOfBoundsError2({
990
+ offset: start,
991
+ position: "start",
992
+ size: size2(value)
993
+ });
994
+ }
995
+ function assertEndOffset2(value, start, end) {
996
+ if (typeof start === "number" && typeof end === "number" && size2(value) !== end - start) {
997
+ throw new SliceOffsetOutOfBoundsError2({
998
+ offset: end,
999
+ position: "end",
1000
+ size: size2(value)
1001
+ });
1002
+ }
1003
+ }
1004
+ function pad2(hex_, options = {}) {
1005
+ const { dir, size: size4 = 32 } = options;
1006
+ if (size4 === 0)
1007
+ return hex_;
1008
+ const hex = hex_.replace("0x", "");
1009
+ if (hex.length > size4 * 2)
1010
+ throw new SizeExceedsPaddingSizeError2({
1011
+ size: Math.ceil(hex.length / 2),
1012
+ targetSize: size4,
1013
+ type: "Hex"
1014
+ });
1015
+ return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size4 * 2, "0")}`;
1016
+ }
1017
+ function trim2(value, options = {}) {
1018
+ const { dir = "left" } = options;
1019
+ let data = value.replace("0x", "");
1020
+ let sliceLength = 0;
1021
+ for (let i = 0; i < data.length - 1; i++) {
1022
+ if (data[dir === "left" ? i : data.length - i - 1].toString() === "0")
1023
+ sliceLength++;
1024
+ else
1025
+ break;
1026
+ }
1027
+ data = dir === "left" ? data.slice(sliceLength) : data.slice(0, data.length - sliceLength);
1028
+ if (data === "0")
1029
+ return "0x";
1030
+ if (dir === "right" && data.length % 2 === 1)
1031
+ return `0x${data}0`;
1032
+ return `0x${data}`;
1033
+ }
1034
+
1035
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Json.js
1036
+ var bigIntSuffix = "#__bigint";
1037
+ function stringify(value, replacer, space) {
1038
+ return JSON.stringify(value, (key, value2) => {
1039
+ if (typeof replacer === "function")
1040
+ return replacer(key, value2);
1041
+ if (typeof value2 === "bigint")
1042
+ return value2.toString() + bigIntSuffix;
1043
+ return value2;
1044
+ }, space);
1045
+ }
8
1046
 
9
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/accounts/utils/parseAccount.js
1047
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Bytes.js
1048
+ var decoder = /* @__PURE__ */ new TextDecoder();
1049
+ var encoder = /* @__PURE__ */ new TextEncoder();
1050
+ function assert(value) {
1051
+ if (value instanceof Uint8Array)
1052
+ return;
1053
+ if (!value)
1054
+ throw new InvalidBytesTypeError(value);
1055
+ if (typeof value !== "object")
1056
+ throw new InvalidBytesTypeError(value);
1057
+ if (!("BYTES_PER_ELEMENT" in value))
1058
+ throw new InvalidBytesTypeError(value);
1059
+ if (value.BYTES_PER_ELEMENT !== 1 || value.constructor.name !== "Uint8Array")
1060
+ throw new InvalidBytesTypeError(value);
1061
+ }
1062
+ function concat(...values) {
1063
+ let length = 0;
1064
+ for (const arr of values) {
1065
+ length += arr.length;
1066
+ }
1067
+ const result = new Uint8Array(length);
1068
+ for (let i = 0, index = 0; i < values.length; i++) {
1069
+ const arr = values[i];
1070
+ result.set(arr, index);
1071
+ index += arr.length;
1072
+ }
1073
+ return result;
1074
+ }
1075
+ function from(value) {
1076
+ if (value instanceof Uint8Array)
1077
+ return value;
1078
+ if (typeof value === "string")
1079
+ return fromHex(value);
1080
+ return fromArray(value);
1081
+ }
1082
+ function fromArray(value) {
1083
+ return value instanceof Uint8Array ? value : new Uint8Array(value);
1084
+ }
1085
+ function fromHex(value, options = {}) {
1086
+ const { size: size4 } = options;
1087
+ let hex = value;
1088
+ if (size4) {
1089
+ assertSize2(value, size4);
1090
+ hex = padRight(value, size4);
1091
+ }
1092
+ let hexString = hex.slice(2);
1093
+ if (hexString.length % 2)
1094
+ hexString = `0${hexString}`;
1095
+ const length = hexString.length / 2;
1096
+ const bytes = new Uint8Array(length);
1097
+ for (let index = 0, j = 0; index < length; index++) {
1098
+ const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
1099
+ const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
1100
+ if (nibbleLeft === void 0 || nibbleRight === void 0) {
1101
+ throw new BaseError2(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
1102
+ }
1103
+ bytes[index] = nibbleLeft << 4 | nibbleRight;
1104
+ }
1105
+ return bytes;
1106
+ }
1107
+ function fromString(value, options = {}) {
1108
+ const { size: size4 } = options;
1109
+ const bytes = encoder.encode(value);
1110
+ if (typeof size4 === "number") {
1111
+ assertSize(bytes, size4);
1112
+ return padRight2(bytes, size4);
1113
+ }
1114
+ return bytes;
1115
+ }
1116
+ function isEqual(bytesA, bytesB) {
1117
+ return equalBytes(bytesA, bytesB);
1118
+ }
1119
+ function padRight2(value, size4) {
1120
+ return pad(value, { dir: "right", size: size4 });
1121
+ }
1122
+ function random(length) {
1123
+ return crypto.getRandomValues(new Uint8Array(length));
1124
+ }
1125
+ function size(value) {
1126
+ return value.length;
1127
+ }
1128
+ function slice(value, start, end, options = {}) {
1129
+ const { strict } = options;
1130
+ assertStartOffset(value, start);
1131
+ const value_ = value.slice(start, end);
1132
+ if (strict)
1133
+ assertEndOffset(value_, start, end);
1134
+ return value_;
1135
+ }
1136
+ function toBigInt2(bytes, options = {}) {
1137
+ const { size: size4 } = options;
1138
+ if (typeof size4 !== "undefined")
1139
+ assertSize(bytes, size4);
1140
+ const hex = fromBytes(bytes, options);
1141
+ return toBigInt(hex, options);
1142
+ }
1143
+ function toBoolean(bytes, options = {}) {
1144
+ const { size: size4 } = options;
1145
+ let bytes_ = bytes;
1146
+ if (typeof size4 !== "undefined") {
1147
+ assertSize(bytes_, size4);
1148
+ bytes_ = trimLeft(bytes_);
1149
+ }
1150
+ if (bytes_.length > 1 || bytes_[0] > 1)
1151
+ throw new InvalidBytesBooleanError(bytes_);
1152
+ return Boolean(bytes_[0]);
1153
+ }
1154
+ function toNumber2(bytes, options = {}) {
1155
+ const { size: size4 } = options;
1156
+ if (typeof size4 !== "undefined")
1157
+ assertSize(bytes, size4);
1158
+ const hex = fromBytes(bytes, options);
1159
+ return toNumber(hex, options);
1160
+ }
1161
+ function toString(bytes, options = {}) {
1162
+ const { size: size4 } = options;
1163
+ let bytes_ = bytes;
1164
+ if (typeof size4 !== "undefined") {
1165
+ assertSize(bytes_, size4);
1166
+ bytes_ = trimRight(bytes_);
1167
+ }
1168
+ return decoder.decode(bytes_);
1169
+ }
1170
+ function trimLeft(value) {
1171
+ return trim(value, { dir: "left" });
1172
+ }
1173
+ function trimRight(value) {
1174
+ return trim(value, { dir: "right" });
1175
+ }
1176
+ function validate(value) {
1177
+ try {
1178
+ assert(value);
1179
+ return true;
1180
+ } catch {
1181
+ return false;
1182
+ }
1183
+ }
1184
+ var InvalidBytesBooleanError = class extends BaseError2 {
1185
+ constructor(bytes) {
1186
+ super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
1187
+ metaMessages: [
1188
+ "The bytes array must contain a single byte of either a `0` or `1` value."
1189
+ ]
1190
+ });
1191
+ Object.defineProperty(this, "name", {
1192
+ enumerable: true,
1193
+ configurable: true,
1194
+ writable: true,
1195
+ value: "Bytes.InvalidBytesBooleanError"
1196
+ });
1197
+ }
1198
+ };
1199
+ var InvalidBytesTypeError = class extends BaseError2 {
1200
+ constructor(value) {
1201
+ super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
1202
+ metaMessages: ["Bytes values must be of type `Bytes`."]
1203
+ });
1204
+ Object.defineProperty(this, "name", {
1205
+ enumerable: true,
1206
+ configurable: true,
1207
+ writable: true,
1208
+ value: "Bytes.InvalidBytesTypeError"
1209
+ });
1210
+ }
1211
+ };
1212
+ var SizeOverflowError = class extends BaseError2 {
1213
+ constructor({ givenSize, maxSize }) {
1214
+ super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
1215
+ Object.defineProperty(this, "name", {
1216
+ enumerable: true,
1217
+ configurable: true,
1218
+ writable: true,
1219
+ value: "Bytes.SizeOverflowError"
1220
+ });
1221
+ }
1222
+ };
1223
+ var SliceOffsetOutOfBoundsError = class extends BaseError2 {
1224
+ constructor({ offset, position, size: size4 }) {
1225
+ super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
1226
+ Object.defineProperty(this, "name", {
1227
+ enumerable: true,
1228
+ configurable: true,
1229
+ writable: true,
1230
+ value: "Bytes.SliceOffsetOutOfBoundsError"
1231
+ });
1232
+ }
1233
+ };
1234
+ var SizeExceedsPaddingSizeError = class extends BaseError2 {
1235
+ constructor({ size: size4, targetSize, type }) {
1236
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
1237
+ Object.defineProperty(this, "name", {
1238
+ enumerable: true,
1239
+ configurable: true,
1240
+ writable: true,
1241
+ value: "Bytes.SizeExceedsPaddingSizeError"
1242
+ });
1243
+ }
1244
+ };
1245
+
1246
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Hex.js
1247
+ var encoder2 = /* @__PURE__ */ new TextEncoder();
1248
+ var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
1249
+ function assert2(value, options = {}) {
1250
+ const { strict = false } = options;
1251
+ if (!value)
1252
+ throw new InvalidHexTypeError(value);
1253
+ if (typeof value !== "string")
1254
+ throw new InvalidHexTypeError(value);
1255
+ if (strict) {
1256
+ if (!/^0x[0-9a-fA-F]*$/.test(value))
1257
+ throw new InvalidHexValueError(value);
1258
+ }
1259
+ if (!value.startsWith("0x"))
1260
+ throw new InvalidHexValueError(value);
1261
+ }
1262
+ function concat2(...values) {
1263
+ return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
1264
+ }
1265
+ function from2(value) {
1266
+ if (value instanceof Uint8Array)
1267
+ return fromBytes(value);
1268
+ if (Array.isArray(value))
1269
+ return fromBytes(new Uint8Array(value));
1270
+ return value;
1271
+ }
1272
+ function fromBoolean(value, options = {}) {
1273
+ const hex = `0x${Number(value)}`;
1274
+ if (typeof options.size === "number") {
1275
+ assertSize2(hex, options.size);
1276
+ return padLeft(hex, options.size);
1277
+ }
1278
+ return hex;
1279
+ }
1280
+ function fromBytes(value, options = {}) {
1281
+ let string = "";
1282
+ for (let i = 0; i < value.length; i++)
1283
+ string += hexes[value[i]];
1284
+ const hex = `0x${string}`;
1285
+ if (typeof options.size === "number") {
1286
+ assertSize2(hex, options.size);
1287
+ return padRight(hex, options.size);
1288
+ }
1289
+ return hex;
1290
+ }
1291
+ function fromNumber(value, options = {}) {
1292
+ const { signed, size: size4 } = options;
1293
+ const value_ = BigInt(value);
1294
+ let maxValue;
1295
+ if (size4) {
1296
+ if (signed)
1297
+ maxValue = (1n << BigInt(size4) * 8n - 1n) - 1n;
1298
+ else
1299
+ maxValue = 2n ** (BigInt(size4) * 8n) - 1n;
1300
+ } else if (typeof value === "number") {
1301
+ maxValue = BigInt(Number.MAX_SAFE_INTEGER);
1302
+ }
1303
+ const minValue = typeof maxValue === "bigint" && signed ? -maxValue - 1n : 0;
1304
+ if (maxValue && value_ > maxValue || value_ < minValue) {
1305
+ const suffix = typeof value === "bigint" ? "n" : "";
1306
+ throw new IntegerOutOfRangeError({
1307
+ max: maxValue ? `${maxValue}${suffix}` : void 0,
1308
+ min: `${minValue}${suffix}`,
1309
+ signed,
1310
+ size: size4,
1311
+ value: `${value}${suffix}`
1312
+ });
1313
+ }
1314
+ const stringValue = (signed && value_ < 0 ? BigInt.asUintN(size4 * 8, BigInt(value_)) : value_).toString(16);
1315
+ const hex = `0x${stringValue}`;
1316
+ if (size4)
1317
+ return padLeft(hex, size4);
1318
+ return hex;
1319
+ }
1320
+ function fromString2(value, options = {}) {
1321
+ return fromBytes(encoder2.encode(value), options);
1322
+ }
1323
+ function padLeft(value, size4) {
1324
+ return pad2(value, { dir: "left", size: size4 });
1325
+ }
1326
+ function padRight(value, size4) {
1327
+ return pad2(value, { dir: "right", size: size4 });
1328
+ }
1329
+ function random2(length) {
1330
+ return fromBytes(random(length));
1331
+ }
1332
+ function slice2(value, start, end, options = {}) {
1333
+ const { strict } = options;
1334
+ assertStartOffset2(value, start);
1335
+ const value_ = `0x${value.replace("0x", "").slice((start ?? 0) * 2, (end ?? value.length) * 2)}`;
1336
+ if (strict)
1337
+ assertEndOffset2(value_, start, end);
1338
+ return value_;
1339
+ }
1340
+ function size2(value) {
1341
+ return Math.ceil((value.length - 2) / 2);
1342
+ }
1343
+ function trimLeft2(value) {
1344
+ return trim2(value, { dir: "left" });
1345
+ }
1346
+ function toBigInt(hex, options = {}) {
1347
+ const { signed } = options;
1348
+ if (options.size)
1349
+ assertSize2(hex, options.size);
1350
+ const value = BigInt(hex);
1351
+ if (!signed)
1352
+ return value;
1353
+ const size4 = (hex.length - 2) / 2;
1354
+ const max_unsigned = (1n << BigInt(size4) * 8n) - 1n;
1355
+ const max_signed = max_unsigned >> 1n;
1356
+ if (value <= max_signed)
1357
+ return value;
1358
+ return value - max_unsigned - 1n;
1359
+ }
1360
+ function toNumber(hex, options = {}) {
1361
+ const { signed, size: size4 } = options;
1362
+ if (!signed && !size4)
1363
+ return Number(hex);
1364
+ return Number(toBigInt(hex, options));
1365
+ }
1366
+ function toString2(hex, options = {}) {
1367
+ const { size: size4 } = options;
1368
+ let bytes = fromHex(hex);
1369
+ if (size4) {
1370
+ assertSize(bytes, size4);
1371
+ bytes = trimRight(bytes);
1372
+ }
1373
+ return new TextDecoder().decode(bytes);
1374
+ }
1375
+ function validate2(value, options = {}) {
1376
+ const { strict = false } = options;
1377
+ try {
1378
+ assert2(value, { strict });
1379
+ return true;
1380
+ } catch {
1381
+ return false;
1382
+ }
1383
+ }
1384
+ var IntegerOutOfRangeError = class extends BaseError2 {
1385
+ constructor({ max, min, signed, size: size4, value }) {
1386
+ super(`Number \`${value}\` is not in safe${size4 ? ` ${size4 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
1387
+ Object.defineProperty(this, "name", {
1388
+ enumerable: true,
1389
+ configurable: true,
1390
+ writable: true,
1391
+ value: "Hex.IntegerOutOfRangeError"
1392
+ });
1393
+ }
1394
+ };
1395
+ var InvalidHexTypeError = class extends BaseError2 {
1396
+ constructor(value) {
1397
+ super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
1398
+ metaMessages: ['Hex types must be represented as `"0x${string}"`.']
1399
+ });
1400
+ Object.defineProperty(this, "name", {
1401
+ enumerable: true,
1402
+ configurable: true,
1403
+ writable: true,
1404
+ value: "Hex.InvalidHexTypeError"
1405
+ });
1406
+ }
1407
+ };
1408
+ var InvalidHexValueError = class extends BaseError2 {
1409
+ constructor(value) {
1410
+ super(`Value \`${value}\` is an invalid hex value.`, {
1411
+ metaMessages: [
1412
+ 'Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).'
1413
+ ]
1414
+ });
1415
+ Object.defineProperty(this, "name", {
1416
+ enumerable: true,
1417
+ configurable: true,
1418
+ writable: true,
1419
+ value: "Hex.InvalidHexValueError"
1420
+ });
1421
+ }
1422
+ };
1423
+ var InvalidLengthError = class extends BaseError2 {
1424
+ constructor(value) {
1425
+ super(`Hex value \`"${value}"\` is an odd length (${value.length - 2} nibbles).`, {
1426
+ metaMessages: ["It must be an even length."]
1427
+ });
1428
+ Object.defineProperty(this, "name", {
1429
+ enumerable: true,
1430
+ configurable: true,
1431
+ writable: true,
1432
+ value: "Hex.InvalidLengthError"
1433
+ });
1434
+ }
1435
+ };
1436
+ var SizeOverflowError2 = class extends BaseError2 {
1437
+ constructor({ givenSize, maxSize }) {
1438
+ super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
1439
+ Object.defineProperty(this, "name", {
1440
+ enumerable: true,
1441
+ configurable: true,
1442
+ writable: true,
1443
+ value: "Hex.SizeOverflowError"
1444
+ });
1445
+ }
1446
+ };
1447
+ var SliceOffsetOutOfBoundsError2 = class extends BaseError2 {
1448
+ constructor({ offset, position, size: size4 }) {
1449
+ super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
1450
+ Object.defineProperty(this, "name", {
1451
+ enumerable: true,
1452
+ configurable: true,
1453
+ writable: true,
1454
+ value: "Hex.SliceOffsetOutOfBoundsError"
1455
+ });
1456
+ }
1457
+ };
1458
+ var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
1459
+ constructor({ size: size4, targetSize, type }) {
1460
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
1461
+ Object.defineProperty(this, "name", {
1462
+ enumerable: true,
1463
+ configurable: true,
1464
+ writable: true,
1465
+ value: "Hex.SizeExceedsPaddingSizeError"
1466
+ });
1467
+ }
1468
+ };
1469
+
1470
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Withdrawal.js
1471
+ function toRpc(withdrawal) {
1472
+ return {
1473
+ address: withdrawal.address,
1474
+ amount: fromNumber(withdrawal.amount),
1475
+ index: fromNumber(withdrawal.index),
1476
+ validatorIndex: fromNumber(withdrawal.validatorIndex)
1477
+ };
1478
+ }
1479
+
1480
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/BlockOverrides.js
1481
+ function toRpc2(blockOverrides) {
1482
+ return {
1483
+ ...typeof blockOverrides.baseFeePerGas === "bigint" && {
1484
+ baseFeePerGas: fromNumber(blockOverrides.baseFeePerGas)
1485
+ },
1486
+ ...typeof blockOverrides.blobBaseFee === "bigint" && {
1487
+ blobBaseFee: fromNumber(blockOverrides.blobBaseFee)
1488
+ },
1489
+ ...typeof blockOverrides.feeRecipient === "string" && {
1490
+ feeRecipient: blockOverrides.feeRecipient
1491
+ },
1492
+ ...typeof blockOverrides.gasLimit === "bigint" && {
1493
+ gasLimit: fromNumber(blockOverrides.gasLimit)
1494
+ },
1495
+ ...typeof blockOverrides.number === "bigint" && {
1496
+ number: fromNumber(blockOverrides.number)
1497
+ },
1498
+ ...typeof blockOverrides.prevRandao === "bigint" && {
1499
+ prevRandao: fromNumber(blockOverrides.prevRandao)
1500
+ },
1501
+ ...typeof blockOverrides.time === "bigint" && {
1502
+ time: fromNumber(blockOverrides.time)
1503
+ },
1504
+ ...blockOverrides.withdrawals && {
1505
+ withdrawals: blockOverrides.withdrawals.map(toRpc)
1506
+ }
1507
+ };
1508
+ }
1509
+
1510
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/accounts/utils/parseAccount.js
10
1511
  function parseAccount(account) {
11
1512
  if (typeof account === "string")
12
1513
  return { address: account, type: "json-rpc" };
13
1514
  return account;
14
1515
  }
15
1516
 
16
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/abis.js
1517
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/constants/abis.js
17
1518
  var multicall3Abi = [
18
1519
  {
19
1520
  inputs: [
@@ -335,24 +1836,24 @@ var erc6492SignatureValidatorAbi = [
335
1836
  }
336
1837
  ];
337
1838
 
338
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/contract.js
1839
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/constants/contract.js
339
1840
  var aggregate3Signature = "0x82ad56cb";
340
1841
 
341
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/contracts.js
1842
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/constants/contracts.js
342
1843
  var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
343
1844
  var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
344
1845
  var erc6492SignatureValidatorByteCode = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";
345
1846
  var multicall3Bytecode = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
346
1847
 
347
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/version.js
348
- var version = "2.47.5";
1848
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/version.js
1849
+ var version3 = "2.47.5";
349
1850
 
350
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/base.js
1851
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/base.js
351
1852
  var errorConfig = {
352
1853
  getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
353
- version: `viem@${version}`
1854
+ version: `viem@${version3}`
354
1855
  };
355
- var BaseError = class _BaseError extends Error {
1856
+ var BaseError3 = class _BaseError extends Error {
356
1857
  constructor(shortMessage, args = {}) {
357
1858
  const details = (() => {
358
1859
  if (args.cause instanceof _BaseError)
@@ -417,22 +1918,22 @@ var BaseError = class _BaseError extends Error {
417
1918
  this.metaMessages = args.metaMessages;
418
1919
  this.name = args.name ?? this.name;
419
1920
  this.shortMessage = shortMessage;
420
- this.version = version;
1921
+ this.version = version3;
421
1922
  }
422
1923
  walk(fn) {
423
- return walk(this, fn);
1924
+ return walk2(this, fn);
424
1925
  }
425
1926
  };
426
- function walk(err, fn) {
1927
+ function walk2(err, fn) {
427
1928
  if (fn?.(err))
428
1929
  return err;
429
1930
  if (err && typeof err === "object" && "cause" in err && err.cause !== void 0)
430
- return walk(err.cause, fn);
1931
+ return walk2(err.cause, fn);
431
1932
  return fn ? null : err;
432
1933
  }
433
1934
 
434
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/chain.js
435
- var ChainDoesNotSupportContract = class extends BaseError {
1935
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/chain.js
1936
+ var ChainDoesNotSupportContract = class extends BaseError3 {
436
1937
  constructor({ blockNumber, chain, contract }) {
437
1938
  super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
438
1939
  metaMessages: [
@@ -447,7 +1948,7 @@ var ChainDoesNotSupportContract = class extends BaseError {
447
1948
  });
448
1949
  }
449
1950
  };
450
- var ChainMismatchError = class extends BaseError {
1951
+ var ChainMismatchError = class extends BaseError3 {
451
1952
  constructor({ chain, currentChainId }) {
452
1953
  super(`The current chain of the wallet (id: ${currentChainId}) does not match the target chain for the transaction (id: ${chain.id} \u2013 ${chain.name}).`, {
453
1954
  metaMessages: [
@@ -458,7 +1959,7 @@ var ChainMismatchError = class extends BaseError {
458
1959
  });
459
1960
  }
460
1961
  };
461
- var ChainNotFoundError = class extends BaseError {
1962
+ var ChainNotFoundError = class extends BaseError3 {
462
1963
  constructor() {
463
1964
  super([
464
1965
  "No chain was provided to the request.",
@@ -468,20 +1969,20 @@ var ChainNotFoundError = class extends BaseError {
468
1969
  });
469
1970
  }
470
1971
  };
471
- var ClientChainNotConfiguredError = class extends BaseError {
1972
+ var ClientChainNotConfiguredError = class extends BaseError3 {
472
1973
  constructor() {
473
1974
  super("No chain was provided to the Client.", {
474
1975
  name: "ClientChainNotConfiguredError"
475
1976
  });
476
1977
  }
477
1978
  };
478
- var InvalidChainIdError = class extends BaseError {
1979
+ var InvalidChainIdError = class extends BaseError3 {
479
1980
  constructor({ chainId }) {
480
1981
  super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
481
1982
  }
482
1983
  };
483
1984
 
484
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/solidity.js
1985
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/constants/solidity.js
485
1986
  var panicReasons = {
486
1987
  1: "An `assert` condition failed.",
487
1988
  17: "Arithmetic operation resulted in underflow or overflow.",
@@ -514,7 +2015,7 @@ var solidityPanic = {
514
2015
  type: "error"
515
2016
  };
516
2017
 
517
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItem.js
2018
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/formatAbiItem.js
518
2019
  function formatAbiItem2(abiItem, { includeName = false } = {}) {
519
2020
  if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
520
2021
  throw new InvalidDefinitionTypeError(abiItem.type);
@@ -532,7 +2033,7 @@ function formatAbiParam(param, { includeName }) {
532
2033
  return param.type + (includeName && param.name ? ` ${param.name}` : "");
533
2034
  }
534
2035
 
535
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js
2036
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/isHex.js
536
2037
  function isHex(value, { strict = true } = {}) {
537
2038
  if (!value)
538
2039
  return false;
@@ -541,15 +2042,15 @@ function isHex(value, { strict = true } = {}) {
541
2042
  return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
542
2043
  }
543
2044
 
544
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js
545
- function size(value) {
2045
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/size.js
2046
+ function size3(value) {
546
2047
  if (isHex(value, { strict: false }))
547
2048
  return Math.ceil((value.length - 2) / 2);
548
2049
  return value.length;
549
2050
  }
550
2051
 
551
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/abi.js
552
- var AbiConstructorNotFoundError = class extends BaseError {
2052
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/abi.js
2053
+ var AbiConstructorNotFoundError = class extends BaseError3 {
553
2054
  constructor({ docsPath: docsPath6 }) {
554
2055
  super([
555
2056
  "A constructor was not found on the ABI.",
@@ -560,7 +2061,7 @@ var AbiConstructorNotFoundError = class extends BaseError {
560
2061
  });
561
2062
  }
562
2063
  };
563
- var AbiConstructorParamsNotFoundError = class extends BaseError {
2064
+ var AbiConstructorParamsNotFoundError = class extends BaseError3 {
564
2065
  constructor({ docsPath: docsPath6 }) {
565
2066
  super([
566
2067
  "Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
@@ -571,12 +2072,12 @@ var AbiConstructorParamsNotFoundError = class extends BaseError {
571
2072
  });
572
2073
  }
573
2074
  };
574
- var AbiDecodingDataSizeTooSmallError = class extends BaseError {
575
- constructor({ data, params, size: size2 }) {
576
- super([`Data size of ${size2} bytes is too small for given parameters.`].join("\n"), {
2075
+ var AbiDecodingDataSizeTooSmallError = class extends BaseError3 {
2076
+ constructor({ data, params, size: size4 }) {
2077
+ super([`Data size of ${size4} bytes is too small for given parameters.`].join("\n"), {
577
2078
  metaMessages: [
578
2079
  `Params: (${formatAbiParams(params, { includeName: true })})`,
579
- `Data: ${data} (${size2} bytes)`
2080
+ `Data: ${data} (${size4} bytes)`
580
2081
  ],
581
2082
  name: "AbiDecodingDataSizeTooSmallError"
582
2083
  });
@@ -600,10 +2101,10 @@ var AbiDecodingDataSizeTooSmallError = class extends BaseError {
600
2101
  });
601
2102
  this.data = data;
602
2103
  this.params = params;
603
- this.size = size2;
2104
+ this.size = size4;
604
2105
  }
605
2106
  };
606
- var AbiDecodingZeroDataError = class extends BaseError {
2107
+ var AbiDecodingZeroDataError = class extends BaseError3 {
607
2108
  constructor({ cause } = {}) {
608
2109
  super('Cannot decode zero data ("0x") with ABI parameters.', {
609
2110
  name: "AbiDecodingZeroDataError",
@@ -611,7 +2112,7 @@ var AbiDecodingZeroDataError = class extends BaseError {
611
2112
  });
612
2113
  }
613
2114
  };
614
- var AbiEncodingArrayLengthMismatchError = class extends BaseError {
2115
+ var AbiEncodingArrayLengthMismatchError = class extends BaseError3 {
615
2116
  constructor({ expectedLength, givenLength, type }) {
616
2117
  super([
617
2118
  `ABI encoding array length mismatch for type ${type}.`,
@@ -620,12 +2121,12 @@ var AbiEncodingArrayLengthMismatchError = class extends BaseError {
620
2121
  ].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
621
2122
  }
622
2123
  };
623
- var AbiEncodingBytesSizeMismatchError = class extends BaseError {
2124
+ var AbiEncodingBytesSizeMismatchError = class extends BaseError3 {
624
2125
  constructor({ expectedSize, value }) {
625
- super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
2126
+ super(`Size of bytes "${value}" (bytes${size3(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
626
2127
  }
627
2128
  };
628
- var AbiEncodingLengthMismatchError = class extends BaseError {
2129
+ var AbiEncodingLengthMismatchError = class extends BaseError3 {
629
2130
  constructor({ expectedLength, givenLength }) {
630
2131
  super([
631
2132
  "ABI encoding params/values length mismatch.",
@@ -634,7 +2135,7 @@ var AbiEncodingLengthMismatchError = class extends BaseError {
634
2135
  ].join("\n"), { name: "AbiEncodingLengthMismatchError" });
635
2136
  }
636
2137
  };
637
- var AbiErrorInputsNotFoundError = class extends BaseError {
2138
+ var AbiErrorInputsNotFoundError = class extends BaseError3 {
638
2139
  constructor(errorName, { docsPath: docsPath6 }) {
639
2140
  super([
640
2141
  `Arguments (\`args\`) were provided to "${errorName}", but "${errorName}" on the ABI does not contain any parameters (\`inputs\`).`,
@@ -646,7 +2147,7 @@ var AbiErrorInputsNotFoundError = class extends BaseError {
646
2147
  });
647
2148
  }
648
2149
  };
649
- var AbiErrorNotFoundError = class extends BaseError {
2150
+ var AbiErrorNotFoundError = class extends BaseError3 {
650
2151
  constructor(errorName, { docsPath: docsPath6 } = {}) {
651
2152
  super([
652
2153
  `Error ${errorName ? `"${errorName}" ` : ""}not found on ABI.`,
@@ -657,7 +2158,7 @@ var AbiErrorNotFoundError = class extends BaseError {
657
2158
  });
658
2159
  }
659
2160
  };
660
- var AbiErrorSignatureNotFoundError = class extends BaseError {
2161
+ var AbiErrorSignatureNotFoundError = class extends BaseError3 {
661
2162
  constructor(signature, { docsPath: docsPath6, cause }) {
662
2163
  super([
663
2164
  `Encoded error signature "${signature}" not found on ABI.`,
@@ -677,7 +2178,7 @@ var AbiErrorSignatureNotFoundError = class extends BaseError {
677
2178
  this.signature = signature;
678
2179
  }
679
2180
  };
680
- var AbiEventSignatureEmptyTopicsError = class extends BaseError {
2181
+ var AbiEventSignatureEmptyTopicsError = class extends BaseError3 {
681
2182
  constructor({ docsPath: docsPath6 }) {
682
2183
  super("Cannot extract event signature from empty topics.", {
683
2184
  docsPath: docsPath6,
@@ -685,7 +2186,7 @@ var AbiEventSignatureEmptyTopicsError = class extends BaseError {
685
2186
  });
686
2187
  }
687
2188
  };
688
- var AbiEventSignatureNotFoundError = class extends BaseError {
2189
+ var AbiEventSignatureNotFoundError = class extends BaseError3 {
689
2190
  constructor(signature, { docsPath: docsPath6 }) {
690
2191
  super([
691
2192
  `Encoded event signature "${signature}" not found on ABI.`,
@@ -697,7 +2198,7 @@ var AbiEventSignatureNotFoundError = class extends BaseError {
697
2198
  });
698
2199
  }
699
2200
  };
700
- var AbiEventNotFoundError = class extends BaseError {
2201
+ var AbiEventNotFoundError = class extends BaseError3 {
701
2202
  constructor(eventName, { docsPath: docsPath6 } = {}) {
702
2203
  super([
703
2204
  `Event ${eventName ? `"${eventName}" ` : ""}not found on ABI.`,
@@ -708,7 +2209,7 @@ var AbiEventNotFoundError = class extends BaseError {
708
2209
  });
709
2210
  }
710
2211
  };
711
- var AbiFunctionNotFoundError = class extends BaseError {
2212
+ var AbiFunctionNotFoundError = class extends BaseError3 {
712
2213
  constructor(functionName, { docsPath: docsPath6 } = {}) {
713
2214
  super([
714
2215
  `Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
@@ -719,7 +2220,7 @@ var AbiFunctionNotFoundError = class extends BaseError {
719
2220
  });
720
2221
  }
721
2222
  };
722
- var AbiFunctionOutputsNotFoundError = class extends BaseError {
2223
+ var AbiFunctionOutputsNotFoundError = class extends BaseError3 {
723
2224
  constructor(functionName, { docsPath: docsPath6 }) {
724
2225
  super([
725
2226
  `Function "${functionName}" does not contain any \`outputs\` on ABI.`,
@@ -731,7 +2232,7 @@ var AbiFunctionOutputsNotFoundError = class extends BaseError {
731
2232
  });
732
2233
  }
733
2234
  };
734
- var AbiFunctionSignatureNotFoundError = class extends BaseError {
2235
+ var AbiFunctionSignatureNotFoundError = class extends BaseError3 {
735
2236
  constructor(signature, { docsPath: docsPath6 }) {
736
2237
  super([
737
2238
  `Encoded function signature "${signature}" not found on ABI.`,
@@ -743,7 +2244,7 @@ var AbiFunctionSignatureNotFoundError = class extends BaseError {
743
2244
  });
744
2245
  }
745
2246
  };
746
- var AbiItemAmbiguityError = class extends BaseError {
2247
+ var AbiItemAmbiguityError = class extends BaseError3 {
747
2248
  constructor(x, y) {
748
2249
  super("Found ambiguous types in overloaded ABI items.", {
749
2250
  metaMessages: [
@@ -757,21 +2258,21 @@ var AbiItemAmbiguityError = class extends BaseError {
757
2258
  });
758
2259
  }
759
2260
  };
760
- var BytesSizeMismatchError = class extends BaseError {
2261
+ var BytesSizeMismatchError = class extends BaseError3 {
761
2262
  constructor({ expectedSize, givenSize }) {
762
2263
  super(`Expected bytes${expectedSize}, got bytes${givenSize}.`, {
763
2264
  name: "BytesSizeMismatchError"
764
2265
  });
765
2266
  }
766
2267
  };
767
- var DecodeLogDataMismatch = class extends BaseError {
768
- constructor({ abiItem, data, params, size: size2 }) {
2268
+ var DecodeLogDataMismatch = class extends BaseError3 {
2269
+ constructor({ abiItem, data, params, size: size4 }) {
769
2270
  super([
770
- `Data size of ${size2} bytes is too small for non-indexed event parameters.`
2271
+ `Data size of ${size4} bytes is too small for non-indexed event parameters.`
771
2272
  ].join("\n"), {
772
2273
  metaMessages: [
773
2274
  `Params: (${formatAbiParams(params, { includeName: true })})`,
774
- `Data: ${data} (${size2} bytes)`
2275
+ `Data: ${data} (${size4} bytes)`
775
2276
  ],
776
2277
  name: "DecodeLogDataMismatch"
777
2278
  });
@@ -802,10 +2303,10 @@ var DecodeLogDataMismatch = class extends BaseError {
802
2303
  this.abiItem = abiItem;
803
2304
  this.data = data;
804
2305
  this.params = params;
805
- this.size = size2;
2306
+ this.size = size4;
806
2307
  }
807
2308
  };
808
- var DecodeLogTopicsMismatch = class extends BaseError {
2309
+ var DecodeLogTopicsMismatch = class extends BaseError3 {
809
2310
  constructor({ abiItem, param }) {
810
2311
  super([
811
2312
  `Expected a topic for indexed event parameter${param.name ? ` "${param.name}"` : ""} on event "${formatAbiItem2(abiItem, { includeName: true })}".`
@@ -819,7 +2320,7 @@ var DecodeLogTopicsMismatch = class extends BaseError {
819
2320
  this.abiItem = abiItem;
820
2321
  }
821
2322
  };
822
- var InvalidAbiEncodingTypeError = class extends BaseError {
2323
+ var InvalidAbiEncodingTypeError = class extends BaseError3 {
823
2324
  constructor(type, { docsPath: docsPath6 }) {
824
2325
  super([
825
2326
  `Type "${type}" is not a valid encoding type.`,
@@ -827,7 +2328,7 @@ var InvalidAbiEncodingTypeError = class extends BaseError {
827
2328
  ].join("\n"), { docsPath: docsPath6, name: "InvalidAbiEncodingType" });
828
2329
  }
829
2330
  };
830
- var InvalidAbiDecodingTypeError = class extends BaseError {
2331
+ var InvalidAbiDecodingTypeError = class extends BaseError3 {
831
2332
  constructor(type, { docsPath: docsPath6 }) {
832
2333
  super([
833
2334
  `Type "${type}" is not a valid decoding type.`,
@@ -835,14 +2336,14 @@ var InvalidAbiDecodingTypeError = class extends BaseError {
835
2336
  ].join("\n"), { docsPath: docsPath6, name: "InvalidAbiDecodingType" });
836
2337
  }
837
2338
  };
838
- var InvalidArrayError = class extends BaseError {
2339
+ var InvalidArrayError = class extends BaseError3 {
839
2340
  constructor(value) {
840
2341
  super([`Value "${value}" is not a valid array.`].join("\n"), {
841
2342
  name: "InvalidArrayError"
842
2343
  });
843
2344
  }
844
2345
  };
845
- var InvalidDefinitionTypeError = class extends BaseError {
2346
+ var InvalidDefinitionTypeError = class extends BaseError3 {
846
2347
  constructor(type) {
847
2348
  super([
848
2349
  `"${type}" is not a valid definition type.`,
@@ -851,25 +2352,25 @@ var InvalidDefinitionTypeError = class extends BaseError {
851
2352
  }
852
2353
  };
853
2354
 
854
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/data.js
855
- var SliceOffsetOutOfBoundsError = class extends BaseError {
856
- constructor({ offset, position, size: size2 }) {
857
- super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2}).`, { name: "SliceOffsetOutOfBoundsError" });
2355
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/data.js
2356
+ var SliceOffsetOutOfBoundsError3 = class extends BaseError3 {
2357
+ constructor({ offset, position, size: size4 }) {
2358
+ super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size4}).`, { name: "SliceOffsetOutOfBoundsError" });
858
2359
  }
859
2360
  };
860
- var SizeExceedsPaddingSizeError = class extends BaseError {
861
- constructor({ size: size2, targetSize, type }) {
862
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
2361
+ var SizeExceedsPaddingSizeError3 = class extends BaseError3 {
2362
+ constructor({ size: size4, targetSize, type }) {
2363
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size4}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
863
2364
  }
864
2365
  };
865
- var InvalidBytesLengthError = class extends BaseError {
866
- constructor({ size: size2, targetSize, type }) {
867
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size2} ${type} long.`, { name: "InvalidBytesLengthError" });
2366
+ var InvalidBytesLengthError = class extends BaseError3 {
2367
+ constructor({ size: size4, targetSize, type }) {
2368
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size4} ${type} long.`, { name: "InvalidBytesLengthError" });
868
2369
  }
869
2370
  };
870
2371
 
871
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js
872
- function slice(value, start, end, { strict } = {}) {
2372
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/slice.js
2373
+ function slice3(value, start, end, { strict } = {}) {
873
2374
  if (isHex(value, { strict: false }))
874
2375
  return sliceHex(value, start, end, {
875
2376
  strict
@@ -878,104 +2379,104 @@ function slice(value, start, end, { strict } = {}) {
878
2379
  strict
879
2380
  });
880
2381
  }
881
- function assertStartOffset(value, start) {
882
- if (typeof start === "number" && start > 0 && start > size(value) - 1)
883
- throw new SliceOffsetOutOfBoundsError({
2382
+ function assertStartOffset3(value, start) {
2383
+ if (typeof start === "number" && start > 0 && start > size3(value) - 1)
2384
+ throw new SliceOffsetOutOfBoundsError3({
884
2385
  offset: start,
885
2386
  position: "start",
886
- size: size(value)
2387
+ size: size3(value)
887
2388
  });
888
2389
  }
889
- function assertEndOffset(value, start, end) {
890
- if (typeof start === "number" && typeof end === "number" && size(value) !== end - start) {
891
- throw new SliceOffsetOutOfBoundsError({
2390
+ function assertEndOffset3(value, start, end) {
2391
+ if (typeof start === "number" && typeof end === "number" && size3(value) !== end - start) {
2392
+ throw new SliceOffsetOutOfBoundsError3({
892
2393
  offset: end,
893
2394
  position: "end",
894
- size: size(value)
2395
+ size: size3(value)
895
2396
  });
896
2397
  }
897
2398
  }
898
2399
  function sliceBytes(value_, start, end, { strict } = {}) {
899
- assertStartOffset(value_, start);
2400
+ assertStartOffset3(value_, start);
900
2401
  const value = value_.slice(start, end);
901
2402
  if (strict)
902
- assertEndOffset(value, start, end);
2403
+ assertEndOffset3(value, start, end);
903
2404
  return value;
904
2405
  }
905
2406
  function sliceHex(value_, start, end, { strict } = {}) {
906
- assertStartOffset(value_, start);
2407
+ assertStartOffset3(value_, start);
907
2408
  const value = `0x${value_.replace("0x", "").slice((start ?? 0) * 2, (end ?? value_.length) * 2)}`;
908
2409
  if (strict)
909
- assertEndOffset(value, start, end);
2410
+ assertEndOffset3(value, start, end);
910
2411
  return value;
911
2412
  }
912
2413
 
913
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js
914
- function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
2414
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/pad.js
2415
+ function pad3(hexOrBytes, { dir, size: size4 = 32 } = {}) {
915
2416
  if (typeof hexOrBytes === "string")
916
- return padHex(hexOrBytes, { dir, size: size2 });
917
- return padBytes(hexOrBytes, { dir, size: size2 });
2417
+ return padHex(hexOrBytes, { dir, size: size4 });
2418
+ return padBytes(hexOrBytes, { dir, size: size4 });
918
2419
  }
919
- function padHex(hex_, { dir, size: size2 = 32 } = {}) {
920
- if (size2 === null)
2420
+ function padHex(hex_, { dir, size: size4 = 32 } = {}) {
2421
+ if (size4 === null)
921
2422
  return hex_;
922
2423
  const hex = hex_.replace("0x", "");
923
- if (hex.length > size2 * 2)
924
- throw new SizeExceedsPaddingSizeError({
2424
+ if (hex.length > size4 * 2)
2425
+ throw new SizeExceedsPaddingSizeError3({
925
2426
  size: Math.ceil(hex.length / 2),
926
- targetSize: size2,
2427
+ targetSize: size4,
927
2428
  type: "hex"
928
2429
  });
929
- return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size2 * 2, "0")}`;
2430
+ return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size4 * 2, "0")}`;
930
2431
  }
931
- function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
932
- if (size2 === null)
2432
+ function padBytes(bytes, { dir, size: size4 = 32 } = {}) {
2433
+ if (size4 === null)
933
2434
  return bytes;
934
- if (bytes.length > size2)
935
- throw new SizeExceedsPaddingSizeError({
2435
+ if (bytes.length > size4)
2436
+ throw new SizeExceedsPaddingSizeError3({
936
2437
  size: bytes.length,
937
- targetSize: size2,
2438
+ targetSize: size4,
938
2439
  type: "bytes"
939
2440
  });
940
- const paddedBytes = new Uint8Array(size2);
941
- for (let i = 0; i < size2; i++) {
2441
+ const paddedBytes = new Uint8Array(size4);
2442
+ for (let i = 0; i < size4; i++) {
942
2443
  const padEnd = dir === "right";
943
- paddedBytes[padEnd ? i : size2 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
2444
+ paddedBytes[padEnd ? i : size4 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
944
2445
  }
945
2446
  return paddedBytes;
946
2447
  }
947
2448
 
948
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js
949
- var IntegerOutOfRangeError = class extends BaseError {
950
- constructor({ max, min, signed, size: size2, value }) {
951
- super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
2449
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/encoding.js
2450
+ var IntegerOutOfRangeError2 = class extends BaseError3 {
2451
+ constructor({ max, min, signed, size: size4, value }) {
2452
+ super(`Number "${value}" is not in safe ${size4 ? `${size4 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
952
2453
  }
953
2454
  };
954
- var InvalidBytesBooleanError = class extends BaseError {
2455
+ var InvalidBytesBooleanError2 = class extends BaseError3 {
955
2456
  constructor(bytes) {
956
2457
  super(`Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
957
2458
  name: "InvalidBytesBooleanError"
958
2459
  });
959
2460
  }
960
2461
  };
961
- var InvalidHexBooleanError = class extends BaseError {
2462
+ var InvalidHexBooleanError = class extends BaseError3 {
962
2463
  constructor(hex) {
963
2464
  super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
964
2465
  }
965
2466
  };
966
- var InvalidHexValueError = class extends BaseError {
2467
+ var InvalidHexValueError2 = class extends BaseError3 {
967
2468
  constructor(value) {
968
2469
  super(`Hex value "${value}" is an odd length (${value.length}). It must be an even length.`, { name: "InvalidHexValueError" });
969
2470
  }
970
2471
  };
971
- var SizeOverflowError = class extends BaseError {
2472
+ var SizeOverflowError3 = class extends BaseError3 {
972
2473
  constructor({ givenSize, maxSize }) {
973
2474
  super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
974
2475
  }
975
2476
  };
976
2477
 
977
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js
978
- function trim(hexOrBytes, { dir = "left" } = {}) {
2478
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/trim.js
2479
+ function trim3(hexOrBytes, { dir = "left" } = {}) {
979
2480
  let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
980
2481
  let sliceLength = 0;
981
2482
  for (let i = 0; i < data.length - 1; i++) {
@@ -993,36 +2494,36 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
993
2494
  return data;
994
2495
  }
995
2496
 
996
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js
997
- function assertSize(hexOrBytes, { size: size2 }) {
998
- if (size(hexOrBytes) > size2)
999
- throw new SizeOverflowError({
1000
- givenSize: size(hexOrBytes),
1001
- maxSize: size2
2497
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromHex.js
2498
+ function assertSize3(hexOrBytes, { size: size4 }) {
2499
+ if (size3(hexOrBytes) > size4)
2500
+ throw new SizeOverflowError3({
2501
+ givenSize: size3(hexOrBytes),
2502
+ maxSize: size4
1002
2503
  });
1003
2504
  }
1004
2505
  function hexToBigInt(hex, opts = {}) {
1005
2506
  const { signed } = opts;
1006
2507
  if (opts.size)
1007
- assertSize(hex, { size: opts.size });
2508
+ assertSize3(hex, { size: opts.size });
1008
2509
  const value = BigInt(hex);
1009
2510
  if (!signed)
1010
2511
  return value;
1011
- const size2 = (hex.length - 2) / 2;
1012
- const max = (1n << BigInt(size2) * 8n - 1n) - 1n;
2512
+ const size4 = (hex.length - 2) / 2;
2513
+ const max = (1n << BigInt(size4) * 8n - 1n) - 1n;
1013
2514
  if (value <= max)
1014
2515
  return value;
1015
- return value - BigInt(`0x${"f".padStart(size2 * 2, "f")}`) - 1n;
2516
+ return value - BigInt(`0x${"f".padStart(size4 * 2, "f")}`) - 1n;
1016
2517
  }
1017
2518
  function hexToBool(hex_, opts = {}) {
1018
2519
  let hex = hex_;
1019
2520
  if (opts.size) {
1020
- assertSize(hex, { size: opts.size });
1021
- hex = trim(hex);
2521
+ assertSize3(hex, { size: opts.size });
2522
+ hex = trim3(hex);
1022
2523
  }
1023
- if (trim(hex) === "0x00")
2524
+ if (trim3(hex) === "0x00")
1024
2525
  return false;
1025
- if (trim(hex) === "0x01")
2526
+ if (trim3(hex) === "0x01")
1026
2527
  return true;
1027
2528
  throw new InvalidHexBooleanError(hex);
1028
2529
  }
@@ -1030,7 +2531,7 @@ function hexToNumber(hex, opts = {}) {
1030
2531
  const value = hexToBigInt(hex, opts);
1031
2532
  const number = Number(value);
1032
2533
  if (!Number.isSafeInteger(number))
1033
- throw new IntegerOutOfRangeError({
2534
+ throw new IntegerOutOfRangeError2({
1034
2535
  max: `${Number.MAX_SAFE_INTEGER}`,
1035
2536
  min: `${Number.MIN_SAFE_INTEGER}`,
1036
2537
  signed: opts.signed,
@@ -1040,8 +2541,8 @@ function hexToNumber(hex, opts = {}) {
1040
2541
  return number;
1041
2542
  }
1042
2543
 
1043
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
1044
- var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
2544
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toHex.js
2545
+ var hexes2 = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
1045
2546
  function toHex(value, opts = {}) {
1046
2547
  if (typeof value === "number" || typeof value === "bigint")
1047
2548
  return numberToHex(value, opts);
@@ -1055,59 +2556,59 @@ function toHex(value, opts = {}) {
1055
2556
  function boolToHex(value, opts = {}) {
1056
2557
  const hex = `0x${Number(value)}`;
1057
2558
  if (typeof opts.size === "number") {
1058
- assertSize(hex, { size: opts.size });
1059
- return pad(hex, { size: opts.size });
2559
+ assertSize3(hex, { size: opts.size });
2560
+ return pad3(hex, { size: opts.size });
1060
2561
  }
1061
2562
  return hex;
1062
2563
  }
1063
2564
  function bytesToHex(value, opts = {}) {
1064
2565
  let string = "";
1065
2566
  for (let i = 0; i < value.length; i++) {
1066
- string += hexes[value[i]];
2567
+ string += hexes2[value[i]];
1067
2568
  }
1068
2569
  const hex = `0x${string}`;
1069
2570
  if (typeof opts.size === "number") {
1070
- assertSize(hex, { size: opts.size });
1071
- return pad(hex, { dir: "right", size: opts.size });
2571
+ assertSize3(hex, { size: opts.size });
2572
+ return pad3(hex, { dir: "right", size: opts.size });
1072
2573
  }
1073
2574
  return hex;
1074
2575
  }
1075
2576
  function numberToHex(value_, opts = {}) {
1076
- const { signed, size: size2 } = opts;
2577
+ const { signed, size: size4 } = opts;
1077
2578
  const value = BigInt(value_);
1078
2579
  let maxValue;
1079
- if (size2) {
2580
+ if (size4) {
1080
2581
  if (signed)
1081
- maxValue = (1n << BigInt(size2) * 8n - 1n) - 1n;
2582
+ maxValue = (1n << BigInt(size4) * 8n - 1n) - 1n;
1082
2583
  else
1083
- maxValue = 2n ** (BigInt(size2) * 8n) - 1n;
2584
+ maxValue = 2n ** (BigInt(size4) * 8n) - 1n;
1084
2585
  } else if (typeof value_ === "number") {
1085
2586
  maxValue = BigInt(Number.MAX_SAFE_INTEGER);
1086
2587
  }
1087
2588
  const minValue = typeof maxValue === "bigint" && signed ? -maxValue - 1n : 0;
1088
2589
  if (maxValue && value > maxValue || value < minValue) {
1089
2590
  const suffix = typeof value_ === "bigint" ? "n" : "";
1090
- throw new IntegerOutOfRangeError({
2591
+ throw new IntegerOutOfRangeError2({
1091
2592
  max: maxValue ? `${maxValue}${suffix}` : void 0,
1092
2593
  min: `${minValue}${suffix}`,
1093
2594
  signed,
1094
- size: size2,
2595
+ size: size4,
1095
2596
  value: `${value_}${suffix}`
1096
2597
  });
1097
2598
  }
1098
- const hex = `0x${(signed && value < 0 ? (1n << BigInt(size2 * 8)) + BigInt(value) : value).toString(16)}`;
1099
- if (size2)
1100
- return pad(hex, { size: size2 });
2599
+ const hex = `0x${(signed && value < 0 ? (1n << BigInt(size4 * 8)) + BigInt(value) : value).toString(16)}`;
2600
+ if (size4)
2601
+ return pad3(hex, { size: size4 });
1101
2602
  return hex;
1102
2603
  }
1103
- var encoder = /* @__PURE__ */ new TextEncoder();
2604
+ var encoder3 = /* @__PURE__ */ new TextEncoder();
1104
2605
  function stringToHex(value_, opts = {}) {
1105
- const value = encoder.encode(value_);
2606
+ const value = encoder3.encode(value_);
1106
2607
  return bytesToHex(value, opts);
1107
2608
  }
1108
2609
 
1109
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js
1110
- var encoder2 = /* @__PURE__ */ new TextEncoder();
2610
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toBytes.js
2611
+ var encoder4 = /* @__PURE__ */ new TextEncoder();
1111
2612
  function toBytes(value, opts = {}) {
1112
2613
  if (typeof value === "number" || typeof value === "bigint")
1113
2614
  return numberToBytes(value, opts);
@@ -1121,12 +2622,12 @@ function boolToBytes(value, opts = {}) {
1121
2622
  const bytes = new Uint8Array(1);
1122
2623
  bytes[0] = Number(value);
1123
2624
  if (typeof opts.size === "number") {
1124
- assertSize(bytes, { size: opts.size });
1125
- return pad(bytes, { size: opts.size });
2625
+ assertSize3(bytes, { size: opts.size });
2626
+ return pad3(bytes, { size: opts.size });
1126
2627
  }
1127
2628
  return bytes;
1128
2629
  }
1129
- var charCodeMap = {
2630
+ var charCodeMap2 = {
1130
2631
  zero: 48,
1131
2632
  nine: 57,
1132
2633
  A: 65,
@@ -1134,20 +2635,20 @@ var charCodeMap = {
1134
2635
  a: 97,
1135
2636
  f: 102
1136
2637
  };
1137
- function charCodeToBase16(char) {
1138
- if (char >= charCodeMap.zero && char <= charCodeMap.nine)
1139
- return char - charCodeMap.zero;
1140
- if (char >= charCodeMap.A && char <= charCodeMap.F)
1141
- return char - (charCodeMap.A - 10);
1142
- if (char >= charCodeMap.a && char <= charCodeMap.f)
1143
- return char - (charCodeMap.a - 10);
2638
+ function charCodeToBase162(char) {
2639
+ if (char >= charCodeMap2.zero && char <= charCodeMap2.nine)
2640
+ return char - charCodeMap2.zero;
2641
+ if (char >= charCodeMap2.A && char <= charCodeMap2.F)
2642
+ return char - (charCodeMap2.A - 10);
2643
+ if (char >= charCodeMap2.a && char <= charCodeMap2.f)
2644
+ return char - (charCodeMap2.a - 10);
1144
2645
  return void 0;
1145
2646
  }
1146
2647
  function hexToBytes(hex_, opts = {}) {
1147
2648
  let hex = hex_;
1148
2649
  if (opts.size) {
1149
- assertSize(hex, { size: opts.size });
1150
- hex = pad(hex, { dir: "right", size: opts.size });
2650
+ assertSize3(hex, { size: opts.size });
2651
+ hex = pad3(hex, { dir: "right", size: opts.size });
1151
2652
  }
1152
2653
  let hexString = hex.slice(2);
1153
2654
  if (hexString.length % 2)
@@ -1155,10 +2656,10 @@ function hexToBytes(hex_, opts = {}) {
1155
2656
  const length = hexString.length / 2;
1156
2657
  const bytes = new Uint8Array(length);
1157
2658
  for (let index = 0, j = 0; index < length; index++) {
1158
- const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
1159
- const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
2659
+ const nibbleLeft = charCodeToBase162(hexString.charCodeAt(j++));
2660
+ const nibbleRight = charCodeToBase162(hexString.charCodeAt(j++));
1160
2661
  if (nibbleLeft === void 0 || nibbleRight === void 0) {
1161
- throw new BaseError(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
2662
+ throw new BaseError3(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
1162
2663
  }
1163
2664
  bytes[index] = nibbleLeft * 16 + nibbleRight;
1164
2665
  }
@@ -1169,15 +2670,15 @@ function numberToBytes(value, opts) {
1169
2670
  return hexToBytes(hex);
1170
2671
  }
1171
2672
  function stringToBytes(value, opts = {}) {
1172
- const bytes = encoder2.encode(value);
2673
+ const bytes = encoder4.encode(value);
1173
2674
  if (typeof opts.size === "number") {
1174
- assertSize(bytes, { size: opts.size });
1175
- return pad(bytes, { dir: "right", size: opts.size });
2675
+ assertSize3(bytes, { size: opts.size });
2676
+ return pad3(bytes, { dir: "right", size: opts.size });
1176
2677
  }
1177
2678
  return bytes;
1178
2679
  }
1179
2680
 
1180
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js
2681
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/keccak256.js
1181
2682
  function keccak256(value, to_) {
1182
2683
  const to = to_ || "hex";
1183
2684
  const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
@@ -1186,13 +2687,13 @@ function keccak256(value, to_) {
1186
2687
  return toHex(bytes);
1187
2688
  }
1188
2689
 
1189
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/hashSignature.js
2690
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/hashSignature.js
1190
2691
  var hash = (value) => keccak256(toBytes(value));
1191
2692
  function hashSignature(sig) {
1192
2693
  return hash(sig);
1193
2694
  }
1194
2695
 
1195
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/normalizeSignature.js
2696
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/normalizeSignature.js
1196
2697
  function normalizeSignature(signature) {
1197
2698
  let active = true;
1198
2699
  let current = "";
@@ -1232,11 +2733,11 @@ function normalizeSignature(signature) {
1232
2733
  current += char;
1233
2734
  }
1234
2735
  if (!valid)
1235
- throw new BaseError("Unable to normalize signature.");
2736
+ throw new BaseError3("Unable to normalize signature.");
1236
2737
  return result;
1237
2738
  }
1238
2739
 
1239
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignature.js
2740
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/toSignature.js
1240
2741
  var toSignature = (def) => {
1241
2742
  const def_ = (() => {
1242
2743
  if (typeof def === "string")
@@ -1246,16 +2747,16 @@ var toSignature = (def) => {
1246
2747
  return normalizeSignature(def_);
1247
2748
  };
1248
2749
 
1249
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignatureHash.js
2750
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1250
2751
  function toSignatureHash(fn) {
1251
2752
  return hashSignature(toSignature(fn));
1252
2753
  }
1253
2754
 
1254
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1255
- var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
2755
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
2756
+ var toFunctionSelector = (fn) => slice3(toSignatureHash(fn), 0, 4);
1256
2757
 
1257
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/address.js
1258
- var InvalidAddressError = class extends BaseError {
2758
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/address.js
2759
+ var InvalidAddressError = class extends BaseError3 {
1259
2760
  constructor({ address }) {
1260
2761
  super(`Address "${address}" is invalid.`, {
1261
2762
  metaMessages: [
@@ -1267,9 +2768,9 @@ var InvalidAddressError = class extends BaseError {
1267
2768
  }
1268
2769
  };
1269
2770
 
1270
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/lru.js
2771
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/lru.js
1271
2772
  var LruMap = class extends Map {
1272
- constructor(size2) {
2773
+ constructor(size4) {
1273
2774
  super();
1274
2775
  Object.defineProperty(this, "maxSize", {
1275
2776
  enumerable: true,
@@ -1277,7 +2778,7 @@ var LruMap = class extends Map {
1277
2778
  writable: true,
1278
2779
  value: void 0
1279
2780
  });
1280
- this.maxSize = size2;
2781
+ this.maxSize = size4;
1281
2782
  }
1282
2783
  get(key) {
1283
2784
  const value = super.get(key);
@@ -1300,7 +2801,7 @@ var LruMap = class extends Map {
1300
2801
  }
1301
2802
  };
1302
2803
 
1303
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js
2804
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/address/isAddress.js
1304
2805
  var addressRegex = /^0x[a-fA-F0-9]{40}$/;
1305
2806
  var isAddressCache = /* @__PURE__ */ new LruMap(8192);
1306
2807
  function isAddress(address, options) {
@@ -1321,7 +2822,7 @@ function isAddress(address, options) {
1321
2822
  return result;
1322
2823
  }
1323
2824
 
1324
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js
2825
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/address/getAddress.js
1325
2826
  var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
1326
2827
  function checksumAddress(address_, chainId) {
1327
2828
  if (checksumAddressCache.has(`${address_}.${chainId}`))
@@ -1347,26 +2848,26 @@ function getAddress(address, chainId) {
1347
2848
  return checksumAddress(address, chainId);
1348
2849
  }
1349
2850
 
1350
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js
1351
- var NegativeOffsetError = class extends BaseError {
2851
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/cursor.js
2852
+ var NegativeOffsetError = class extends BaseError3 {
1352
2853
  constructor({ offset }) {
1353
2854
  super(`Offset \`${offset}\` cannot be negative.`, {
1354
2855
  name: "NegativeOffsetError"
1355
2856
  });
1356
2857
  }
1357
2858
  };
1358
- var PositionOutOfBoundsError = class extends BaseError {
2859
+ var PositionOutOfBoundsError = class extends BaseError3 {
1359
2860
  constructor({ length, position }) {
1360
2861
  super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`, { name: "PositionOutOfBoundsError" });
1361
2862
  }
1362
2863
  };
1363
- var RecursiveReadLimitExceededError = class extends BaseError {
2864
+ var RecursiveReadLimitExceededError = class extends BaseError3 {
1364
2865
  constructor({ count, limit }) {
1365
2866
  super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`, { name: "RecursiveReadLimitExceededError" });
1366
2867
  }
1367
2868
  };
1368
2869
 
1369
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js
2870
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/cursor.js
1370
2871
  var staticCursor = {
1371
2872
  bytes: new Uint8Array(),
1372
2873
  dataView: new DataView(new ArrayBuffer(0)),
@@ -1473,11 +2974,11 @@ var staticCursor = {
1473
2974
  this.position++;
1474
2975
  return value;
1475
2976
  },
1476
- readBytes(length, size2) {
2977
+ readBytes(length, size4) {
1477
2978
  this.assertReadLimit();
1478
2979
  this._touch();
1479
2980
  const value = this.inspectBytes(length);
1480
- this.position += size2 ?? length;
2981
+ this.position += size4 ?? length;
1481
2982
  return value;
1482
2983
  },
1483
2984
  readUint8() {
@@ -1535,40 +3036,40 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
1535
3036
  return cursor;
1536
3037
  }
1537
3038
 
1538
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromBytes.js
3039
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromBytes.js
1539
3040
  function bytesToBigInt(bytes, opts = {}) {
1540
3041
  if (typeof opts.size !== "undefined")
1541
- assertSize(bytes, { size: opts.size });
3042
+ assertSize3(bytes, { size: opts.size });
1542
3043
  const hex = bytesToHex(bytes, opts);
1543
3044
  return hexToBigInt(hex, opts);
1544
3045
  }
1545
3046
  function bytesToBool(bytes_, opts = {}) {
1546
3047
  let bytes = bytes_;
1547
3048
  if (typeof opts.size !== "undefined") {
1548
- assertSize(bytes, { size: opts.size });
1549
- bytes = trim(bytes);
3049
+ assertSize3(bytes, { size: opts.size });
3050
+ bytes = trim3(bytes);
1550
3051
  }
1551
3052
  if (bytes.length > 1 || bytes[0] > 1)
1552
- throw new InvalidBytesBooleanError(bytes);
3053
+ throw new InvalidBytesBooleanError2(bytes);
1553
3054
  return Boolean(bytes[0]);
1554
3055
  }
1555
3056
  function bytesToNumber(bytes, opts = {}) {
1556
3057
  if (typeof opts.size !== "undefined")
1557
- assertSize(bytes, { size: opts.size });
3058
+ assertSize3(bytes, { size: opts.size });
1558
3059
  const hex = bytesToHex(bytes, opts);
1559
3060
  return hexToNumber(hex, opts);
1560
3061
  }
1561
3062
  function bytesToString(bytes_, opts = {}) {
1562
3063
  let bytes = bytes_;
1563
3064
  if (typeof opts.size !== "undefined") {
1564
- assertSize(bytes, { size: opts.size });
1565
- bytes = trim(bytes, { dir: "right" });
3065
+ assertSize3(bytes, { size: opts.size });
3066
+ bytes = trim3(bytes, { dir: "right" });
1566
3067
  }
1567
3068
  return new TextDecoder().decode(bytes);
1568
3069
  }
1569
3070
 
1570
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js
1571
- function concat(values) {
3071
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/concat.js
3072
+ function concat3(values) {
1572
3073
  if (typeof values[0] === "string")
1573
3074
  return concatHex(values);
1574
3075
  return concatBytes(values);
@@ -1590,11 +3091,11 @@ function concatHex(values) {
1590
3091
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
1591
3092
  }
1592
3093
 
1593
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/regex.js
1594
- var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
1595
- 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)?$/;
3094
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/regex.js
3095
+ var bytesRegex2 = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
3096
+ var integerRegex2 = /^(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)?$/;
1596
3097
 
1597
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
3098
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1598
3099
  function encodeAbiParameters(params, values) {
1599
3100
  if (params.length !== values.length)
1600
3101
  throw new AbiEncodingLengthMismatchError({
@@ -1636,10 +3137,10 @@ function prepareParam({ param, value }) {
1636
3137
  }
1637
3138
  if (param.type.startsWith("uint") || param.type.startsWith("int")) {
1638
3139
  const signed = param.type.startsWith("int");
1639
- const [, , size2 = "256"] = integerRegex.exec(param.type) ?? [];
3140
+ const [, , size4 = "256"] = integerRegex2.exec(param.type) ?? [];
1640
3141
  return encodeNumber(value, {
1641
3142
  signed,
1642
- size: Number(size2)
3143
+ size: Number(size4)
1643
3144
  });
1644
3145
  }
1645
3146
  if (param.type.startsWith("bytes")) {
@@ -1659,7 +3160,7 @@ function encodeParams(preparedParams) {
1659
3160
  if (dynamic)
1660
3161
  staticSize += 32;
1661
3162
  else
1662
- staticSize += size(encoded);
3163
+ staticSize += size3(encoded);
1663
3164
  }
1664
3165
  const staticParams = [];
1665
3166
  const dynamicParams = [];
@@ -1669,12 +3170,12 @@ function encodeParams(preparedParams) {
1669
3170
  if (dynamic) {
1670
3171
  staticParams.push(numberToHex(staticSize + dynamicSize, { size: 32 }));
1671
3172
  dynamicParams.push(encoded);
1672
- dynamicSize += size(encoded);
3173
+ dynamicSize += size3(encoded);
1673
3174
  } else {
1674
3175
  staticParams.push(encoded);
1675
3176
  }
1676
3177
  }
1677
- return concat([...staticParams, ...dynamicParams]);
3178
+ return concat3([...staticParams, ...dynamicParams]);
1678
3179
  }
1679
3180
  function encodeAddress(value) {
1680
3181
  if (!isAddress(value))
@@ -1705,7 +3206,7 @@ function encodeArray(value, { length, param }) {
1705
3206
  const length2 = numberToHex(preparedParams.length, { size: 32 });
1706
3207
  return {
1707
3208
  dynamic: true,
1708
- encoded: preparedParams.length > 0 ? concat([length2, data]) : length2
3209
+ encoded: preparedParams.length > 0 ? concat3([length2, data]) : length2
1709
3210
  };
1710
3211
  }
1711
3212
  if (dynamicChild)
@@ -1713,12 +3214,12 @@ function encodeArray(value, { length, param }) {
1713
3214
  }
1714
3215
  return {
1715
3216
  dynamic: false,
1716
- encoded: concat(preparedParams.map(({ encoded }) => encoded))
3217
+ encoded: concat3(preparedParams.map(({ encoded }) => encoded))
1717
3218
  };
1718
3219
  }
1719
3220
  function encodeBytes(value, { param }) {
1720
3221
  const [, paramSize] = param.type.split("bytes");
1721
- const bytesSize = size(value);
3222
+ const bytesSize = size3(value);
1722
3223
  if (!paramSize) {
1723
3224
  let value_ = value;
1724
3225
  if (bytesSize % 32 !== 0)
@@ -1728,7 +3229,7 @@ function encodeBytes(value, { param }) {
1728
3229
  });
1729
3230
  return {
1730
3231
  dynamic: true,
1731
- encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
3232
+ encoded: concat3([padHex(numberToHex(bytesSize, { size: 32 })), value_])
1732
3233
  };
1733
3234
  }
1734
3235
  if (bytesSize !== Number.parseInt(paramSize, 10))
@@ -1740,19 +3241,19 @@ function encodeBytes(value, { param }) {
1740
3241
  }
1741
3242
  function encodeBool(value) {
1742
3243
  if (typeof value !== "boolean")
1743
- throw new BaseError(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
3244
+ throw new BaseError3(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
1744
3245
  return { dynamic: false, encoded: padHex(boolToHex(value)) };
1745
3246
  }
1746
- function encodeNumber(value, { signed, size: size2 = 256 }) {
1747
- if (typeof size2 === "number") {
1748
- const max = 2n ** (BigInt(size2) - (signed ? 1n : 0n)) - 1n;
3247
+ function encodeNumber(value, { signed, size: size4 = 256 }) {
3248
+ if (typeof size4 === "number") {
3249
+ const max = 2n ** (BigInt(size4) - (signed ? 1n : 0n)) - 1n;
1749
3250
  const min = signed ? -max - 1n : 0n;
1750
3251
  if (value > max || value < min)
1751
- throw new IntegerOutOfRangeError({
3252
+ throw new IntegerOutOfRangeError2({
1752
3253
  max: max.toString(),
1753
3254
  min: min.toString(),
1754
3255
  signed,
1755
- size: size2 / 8,
3256
+ size: size4 / 8,
1756
3257
  value: value.toString()
1757
3258
  });
1758
3259
  }
@@ -1766,17 +3267,17 @@ function encodeNumber(value, { signed, size: size2 = 256 }) {
1766
3267
  }
1767
3268
  function encodeString(value) {
1768
3269
  const hexValue = stringToHex(value);
1769
- const partsLength = Math.ceil(size(hexValue) / 32);
3270
+ const partsLength = Math.ceil(size3(hexValue) / 32);
1770
3271
  const parts = [];
1771
3272
  for (let i = 0; i < partsLength; i++) {
1772
- parts.push(padHex(slice(hexValue, i * 32, (i + 1) * 32), {
3273
+ parts.push(padHex(slice3(hexValue, i * 32, (i + 1) * 32), {
1773
3274
  dir: "right"
1774
3275
  }));
1775
3276
  }
1776
3277
  return {
1777
3278
  dynamic: true,
1778
- encoded: concat([
1779
- padHex(numberToHex(size(hexValue), { size: 32 })),
3279
+ encoded: concat3([
3280
+ padHex(numberToHex(size3(hexValue), { size: 32 })),
1780
3281
  ...parts
1781
3282
  ])
1782
3283
  };
@@ -1797,7 +3298,7 @@ function encodeTuple(value, { param }) {
1797
3298
  }
1798
3299
  return {
1799
3300
  dynamic,
1800
- encoded: dynamic ? encodeParams(preparedParams) : concat(preparedParams.map(({ encoded }) => encoded))
3301
+ encoded: dynamic ? encodeParams(preparedParams) : concat3(preparedParams.map(({ encoded }) => encoded))
1801
3302
  };
1802
3303
  }
1803
3304
  function getArrayComponents(type) {
@@ -1808,17 +3309,17 @@ function getArrayComponents(type) {
1808
3309
  ) : void 0;
1809
3310
  }
1810
3311
 
1811
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
3312
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
1812
3313
  function decodeAbiParameters(params, data) {
1813
3314
  const bytes = typeof data === "string" ? hexToBytes(data) : data;
1814
3315
  const cursor = createCursor(bytes);
1815
- if (size(bytes) === 0 && params.length > 0)
3316
+ if (size3(bytes) === 0 && params.length > 0)
1816
3317
  throw new AbiDecodingZeroDataError();
1817
- if (size(data) && size(data) < 32)
3318
+ if (size3(data) && size3(data) < 32)
1818
3319
  throw new AbiDecodingDataSizeTooSmallError({
1819
3320
  data: typeof data === "string" ? data : bytesToHex(data),
1820
3321
  params,
1821
- size: size(data)
3322
+ size: size3(data)
1822
3323
  });
1823
3324
  let consumed = 0;
1824
3325
  const values = [];
@@ -1911,8 +3412,8 @@ function decodeBool(cursor) {
1911
3412
  return [bytesToBool(cursor.readBytes(32), { size: 32 }), 32];
1912
3413
  }
1913
3414
  function decodeBytes(cursor, param, { staticPosition }) {
1914
- const [_, size2] = param.type.split("bytes");
1915
- if (!size2) {
3415
+ const [_, size4] = param.type.split("bytes");
3416
+ if (!size4) {
1916
3417
  const offset = bytesToNumber(cursor.readBytes(32));
1917
3418
  cursor.setPosition(staticPosition + offset);
1918
3419
  const length = bytesToNumber(cursor.readBytes(32));
@@ -1924,15 +3425,15 @@ function decodeBytes(cursor, param, { staticPosition }) {
1924
3425
  cursor.setPosition(staticPosition + 32);
1925
3426
  return [bytesToHex(data), 32];
1926
3427
  }
1927
- const value = bytesToHex(cursor.readBytes(Number.parseInt(size2, 10), 32));
3428
+ const value = bytesToHex(cursor.readBytes(Number.parseInt(size4, 10), 32));
1928
3429
  return [value, 32];
1929
3430
  }
1930
3431
  function decodeNumber(cursor, param) {
1931
3432
  const signed = param.type.startsWith("int");
1932
- const size2 = Number.parseInt(param.type.split("int")[1] || "256", 10);
3433
+ const size4 = Number.parseInt(param.type.split("int")[1] || "256", 10);
1933
3434
  const value = cursor.readBytes(32);
1934
3435
  return [
1935
- size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
3436
+ size4 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
1936
3437
  32
1937
3438
  ];
1938
3439
  }
@@ -1975,7 +3476,7 @@ function decodeString(cursor, { staticPosition }) {
1975
3476
  return ["", 32];
1976
3477
  }
1977
3478
  const data = cursor.readBytes(length, 32);
1978
- const value = bytesToString(trim(data));
3479
+ const value = bytesToString(trim3(data));
1979
3480
  cursor.setPosition(staticPosition + 32);
1980
3481
  return [value, 32];
1981
3482
  }
@@ -1995,10 +3496,10 @@ function hasDynamicChild(param) {
1995
3496
  return false;
1996
3497
  }
1997
3498
 
1998
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
3499
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
1999
3500
  function decodeErrorResult(parameters) {
2000
3501
  const { abi, data, cause } = parameters;
2001
- const signature = slice(data, 0, 4);
3502
+ const signature = slice3(data, 0, 4);
2002
3503
  if (signature === "0x")
2003
3504
  throw new AbiDecodingZeroDataError({ cause });
2004
3505
  const abi_ = [...abi || [], solidityError, solidityPanic];
@@ -2010,18 +3511,18 @@ function decodeErrorResult(parameters) {
2010
3511
  });
2011
3512
  return {
2012
3513
  abiItem,
2013
- args: "inputs" in abiItem && abiItem.inputs && abiItem.inputs.length > 0 ? decodeAbiParameters(abiItem.inputs, slice(data, 4)) : void 0,
3514
+ args: "inputs" in abiItem && abiItem.inputs && abiItem.inputs.length > 0 ? decodeAbiParameters(abiItem.inputs, slice3(data, 4)) : void 0,
2014
3515
  errorName: abiItem.name
2015
3516
  };
2016
3517
  }
2017
3518
 
2018
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/stringify.js
2019
- var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
3519
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/stringify.js
3520
+ var stringify2 = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
2020
3521
  const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
2021
3522
  return typeof replacer === "function" ? replacer(key, value2) : value2;
2022
3523
  }, space);
2023
3524
 
2024
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
3525
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/formatAbiItemWithArgs.js
2025
3526
  function formatAbiItemWithArgs({ abiItem, args, includeFunctionName = true, includeName = false }) {
2026
3527
  if (!("name" in abiItem))
2027
3528
  return;
@@ -2029,13 +3530,13 @@ function formatAbiItemWithArgs({ abiItem, args, includeFunctionName = true, incl
2029
3530
  return;
2030
3531
  if (!abiItem.inputs)
2031
3532
  return;
2032
- return `${includeFunctionName ? abiItem.name : ""}(${abiItem.inputs.map((input, i) => `${includeName && input.name ? `${input.name}: ` : ""}${typeof args[i] === "object" ? stringify(args[i]) : args[i]}`).join(", ")})`;
3533
+ return `${includeFunctionName ? abiItem.name : ""}(${abiItem.inputs.map((input, i) => `${includeName && input.name ? `${input.name}: ` : ""}${typeof args[i] === "object" ? stringify2(args[i]) : args[i]}`).join(", ")})`;
2033
3534
  }
2034
3535
 
2035
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/toEventSelector.js
3536
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/toEventSelector.js
2036
3537
  var toEventSelector = toSignatureHash;
2037
3538
 
2038
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/getAbiItem.js
3539
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/getAbiItem.js
2039
3540
  function getAbiItem(parameters) {
2040
3541
  const { abi, args = [], name } = parameters;
2041
3542
  const isSelector = isHex(name, { strict: false });
@@ -2147,7 +3648,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
2147
3648
  return;
2148
3649
  }
2149
3650
 
2150
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/unit.js
3651
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/constants/unit.js
2151
3652
  var etherUnits = {
2152
3653
  gwei: 9,
2153
3654
  wei: 18
@@ -2157,7 +3658,7 @@ var gweiUnits = {
2157
3658
  wei: 9
2158
3659
  };
2159
3660
 
2160
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatUnits.js
3661
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/unit/formatUnits.js
2161
3662
  function formatUnits(value, decimals) {
2162
3663
  let display = value.toString();
2163
3664
  const negative = display.startsWith("-");
@@ -2172,25 +3673,25 @@ function formatUnits(value, decimals) {
2172
3673
  return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
2173
3674
  }
2174
3675
 
2175
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatEther.js
3676
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/unit/formatEther.js
2176
3677
  function formatEther(wei, unit = "wei") {
2177
3678
  return formatUnits(wei, etherUnits[unit]);
2178
3679
  }
2179
3680
 
2180
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/unit/formatGwei.js
3681
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/unit/formatGwei.js
2181
3682
  function formatGwei(wei, unit = "wei") {
2182
3683
  return formatUnits(wei, gweiUnits[unit]);
2183
3684
  }
2184
3685
 
2185
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/stateOverride.js
2186
- var AccountStateConflictError = class extends BaseError {
3686
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/stateOverride.js
3687
+ var AccountStateConflictError = class extends BaseError3 {
2187
3688
  constructor({ address }) {
2188
3689
  super(`State for account "${address}" is set multiple times.`, {
2189
3690
  name: "AccountStateConflictError"
2190
3691
  });
2191
3692
  }
2192
3693
  };
2193
- var StateAssignmentConflictError = class extends BaseError {
3694
+ var StateAssignmentConflictError = class extends BaseError3 {
2194
3695
  constructor() {
2195
3696
  super("state and stateDiff are set on the same account.", {
2196
3697
  name: "StateAssignmentConflictError"
@@ -2228,7 +3729,7 @@ function prettyStateOverride(stateOverride) {
2228
3729
  }, " State Override:\n").slice(0, -1);
2229
3730
  }
2230
3731
 
2231
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/transaction.js
3732
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/transaction.js
2232
3733
  function prettyPrint(args) {
2233
3734
  const entries = Object.entries(args).map(([key, value]) => {
2234
3735
  if (value === void 0 || value === false)
@@ -2238,14 +3739,14 @@ function prettyPrint(args) {
2238
3739
  const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
2239
3740
  return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
2240
3741
  }
2241
- var InvalidLegacyVError = class extends BaseError {
3742
+ var InvalidLegacyVError = class extends BaseError3 {
2242
3743
  constructor({ v }) {
2243
3744
  super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
2244
3745
  name: "InvalidLegacyVError"
2245
3746
  });
2246
3747
  }
2247
3748
  };
2248
- var InvalidSerializableTransactionError = class extends BaseError {
3749
+ var InvalidSerializableTransactionError = class extends BaseError3 {
2249
3750
  constructor({ transaction }) {
2250
3751
  super("Cannot infer a transaction type from provided transaction.", {
2251
3752
  metaMessages: [
@@ -2266,7 +3767,7 @@ var InvalidSerializableTransactionError = class extends BaseError {
2266
3767
  });
2267
3768
  }
2268
3769
  };
2269
- var InvalidSerializedTransactionTypeError = class extends BaseError {
3770
+ var InvalidSerializedTransactionTypeError = class extends BaseError3 {
2270
3771
  constructor({ serializedType }) {
2271
3772
  super(`Serialized transaction type "${serializedType}" is invalid.`, {
2272
3773
  name: "InvalidSerializedTransactionType"
@@ -2280,7 +3781,7 @@ var InvalidSerializedTransactionTypeError = class extends BaseError {
2280
3781
  this.serializedType = serializedType;
2281
3782
  }
2282
3783
  };
2283
- var InvalidSerializedTransactionError = class extends BaseError {
3784
+ var InvalidSerializedTransactionError = class extends BaseError3 {
2284
3785
  constructor({ attributes, serializedTransaction, type }) {
2285
3786
  const missing = Object.entries(attributes).map(([key, value]) => typeof value === "undefined" ? key : void 0).filter(Boolean);
2286
3787
  super(`Invalid serialized transaction of type "${type}" was provided.`, {
@@ -2306,12 +3807,12 @@ var InvalidSerializedTransactionError = class extends BaseError {
2306
3807
  this.type = type;
2307
3808
  }
2308
3809
  };
2309
- var InvalidStorageKeySizeError = class extends BaseError {
3810
+ var InvalidStorageKeySizeError = class extends BaseError3 {
2310
3811
  constructor({ storageKey }) {
2311
3812
  super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
2312
3813
  }
2313
3814
  };
2314
- var TransactionExecutionError = class extends BaseError {
3815
+ var TransactionExecutionError = class extends BaseError3 {
2315
3816
  constructor(cause, { account, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value }) {
2316
3817
  const prettyArgs = prettyPrint({
2317
3818
  chain: chain && `${chain?.name} (id: ${chain?.id})`,
@@ -2344,7 +3845,7 @@ var TransactionExecutionError = class extends BaseError {
2344
3845
  this.cause = cause;
2345
3846
  }
2346
3847
  };
2347
- var TransactionNotFoundError = class extends BaseError {
3848
+ var TransactionNotFoundError = class extends BaseError3 {
2348
3849
  constructor({ blockHash, blockNumber, blockTag, hash: hash2, index }) {
2349
3850
  let identifier = "Transaction";
2350
3851
  if (blockTag && index !== void 0)
@@ -2360,14 +3861,14 @@ var TransactionNotFoundError = class extends BaseError {
2360
3861
  });
2361
3862
  }
2362
3863
  };
2363
- var TransactionReceiptNotFoundError = class extends BaseError {
3864
+ var TransactionReceiptNotFoundError = class extends BaseError3 {
2364
3865
  constructor({ hash: hash2 }) {
2365
3866
  super(`Transaction receipt with hash "${hash2}" could not be found. The Transaction may not be processed on a block yet.`, {
2366
3867
  name: "TransactionReceiptNotFoundError"
2367
3868
  });
2368
3869
  }
2369
3870
  };
2370
- var TransactionReceiptRevertedError = class extends BaseError {
3871
+ var TransactionReceiptRevertedError = class extends BaseError3 {
2371
3872
  constructor({ receipt }) {
2372
3873
  super(`Transaction with hash "${receipt.transactionHash}" reverted.`, {
2373
3874
  metaMessages: [
@@ -2388,18 +3889,18 @@ var TransactionReceiptRevertedError = class extends BaseError {
2388
3889
  this.receipt = receipt;
2389
3890
  }
2390
3891
  };
2391
- var WaitForTransactionReceiptTimeoutError = class extends BaseError {
3892
+ var WaitForTransactionReceiptTimeoutError = class extends BaseError3 {
2392
3893
  constructor({ hash: hash2 }) {
2393
3894
  super(`Timed out while waiting for transaction with hash "${hash2}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
2394
3895
  }
2395
3896
  };
2396
3897
 
2397
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/utils.js
3898
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/utils.js
2398
3899
  var getContractAddress = (address) => address;
2399
3900
  var getUrl = (url) => url;
2400
3901
 
2401
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/contract.js
2402
- var CallExecutionError = class extends BaseError {
3902
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/contract.js
3903
+ var CallExecutionError = class extends BaseError3 {
2403
3904
  constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
2404
3905
  const account = account_ ? parseAccount(account_) : void 0;
2405
3906
  let prettyArgs = prettyPrint({
@@ -2436,7 +3937,7 @@ ${prettyStateOverride(stateOverride)}`;
2436
3937
  this.cause = cause;
2437
3938
  }
2438
3939
  };
2439
- var ContractFunctionExecutionError = class extends BaseError {
3940
+ var ContractFunctionExecutionError = class extends BaseError3 {
2440
3941
  constructor(cause, { abi, args, contractAddress, docsPath: docsPath6, functionName, sender }) {
2441
3942
  const abiItem = getAbiItem({ abi, args, name: functionName });
2442
3943
  const formattedArgs = abiItem ? formatAbiItemWithArgs({
@@ -2512,7 +4013,7 @@ var ContractFunctionExecutionError = class extends BaseError {
2512
4013
  this.sender = sender;
2513
4014
  }
2514
4015
  };
2515
- var ContractFunctionRevertedError = class extends BaseError {
4016
+ var ContractFunctionRevertedError = class extends BaseError3 {
2516
4017
  constructor({ abi, data, functionName, message, cause: error }) {
2517
4018
  let cause;
2518
4019
  let decodedData;
@@ -2592,7 +4093,7 @@ var ContractFunctionRevertedError = class extends BaseError {
2592
4093
  this.signature = signature;
2593
4094
  }
2594
4095
  };
2595
- var ContractFunctionZeroDataError = class extends BaseError {
4096
+ var ContractFunctionZeroDataError = class extends BaseError3 {
2596
4097
  constructor({ functionName, cause }) {
2597
4098
  super(`The contract function "${functionName}" returned no data ("0x").`, {
2598
4099
  metaMessages: [
@@ -2606,7 +4107,7 @@ var ContractFunctionZeroDataError = class extends BaseError {
2606
4107
  });
2607
4108
  }
2608
4109
  };
2609
- var CounterfactualDeploymentFailedError = class extends BaseError {
4110
+ var CounterfactualDeploymentFailedError = class extends BaseError3 {
2610
4111
  constructor({ factory }) {
2611
4112
  super(`Deployment for counterfactual contract call failed${factory ? ` for factory "${factory}".` : ""}`, {
2612
4113
  metaMessages: [
@@ -2618,7 +4119,7 @@ var CounterfactualDeploymentFailedError = class extends BaseError {
2618
4119
  });
2619
4120
  }
2620
4121
  };
2621
- var RawContractError = class extends BaseError {
4122
+ var RawContractError = class extends BaseError3 {
2622
4123
  constructor({ data, message }) {
2623
4124
  super(message || "", { name: "RawContractError" });
2624
4125
  Object.defineProperty(this, "code", {
@@ -2637,7 +4138,7 @@ var RawContractError = class extends BaseError {
2637
4138
  }
2638
4139
  };
2639
4140
 
2640
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
4141
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
2641
4142
  var docsPath = "/docs/contract/decodeFunctionResult";
2642
4143
  function decodeFunctionResult(parameters) {
2643
4144
  const { abi, args, functionName, data } = parameters;
@@ -2660,7 +4161,7 @@ function decodeFunctionResult(parameters) {
2660
4161
  return void 0;
2661
4162
  }
2662
4163
 
2663
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeDeployData.js
4164
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeDeployData.js
2664
4165
  var docsPath2 = "/docs/contract/encodeDeployData";
2665
4166
  function encodeDeployData(parameters) {
2666
4167
  const { abi, args, bytecode } = parameters;
@@ -2677,7 +4178,7 @@ function encodeDeployData(parameters) {
2677
4178
  return concatHex([bytecode, data]);
2678
4179
  }
2679
4180
 
2680
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
4181
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
2681
4182
  var docsPath3 = "/docs/contract/encodeFunctionData";
2682
4183
  function prepareEncodeFunctionData(parameters) {
2683
4184
  const { abi, args, functionName } = parameters;
@@ -2700,7 +4201,7 @@ function prepareEncodeFunctionData(parameters) {
2700
4201
  };
2701
4202
  }
2702
4203
 
2703
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
4204
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
2704
4205
  function encodeFunctionData(parameters) {
2705
4206
  const { args } = parameters;
2706
4207
  const { abi, functionName } = (() => {
@@ -2714,7 +4215,7 @@ function encodeFunctionData(parameters) {
2714
4215
  return concatHex([signature, data ?? "0x"]);
2715
4216
  }
2716
4217
 
2717
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
4218
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
2718
4219
  function getChainContractAddress({ blockNumber, chain, contract: name }) {
2719
4220
  const contract = chain?.contracts?.[name];
2720
4221
  if (!contract)
@@ -2734,8 +4235,8 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
2734
4235
  return contract.address;
2735
4236
  }
2736
4237
 
2737
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/node.js
2738
- var ExecutionRevertedError = class extends BaseError {
4238
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/node.js
4239
+ var ExecutionRevertedError = class extends BaseError3 {
2739
4240
  constructor({ cause, message } = {}) {
2740
4241
  const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
2741
4242
  super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
@@ -2756,7 +4257,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
2756
4257
  writable: true,
2757
4258
  value: /execution reverted|gas required exceeds allowance/
2758
4259
  });
2759
- var FeeCapTooHighError = class extends BaseError {
4260
+ var FeeCapTooHighError = class extends BaseError3 {
2760
4261
  constructor({ cause, maxFeePerGas } = {}) {
2761
4262
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
2762
4263
  cause,
@@ -2770,7 +4271,7 @@ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
2770
4271
  writable: true,
2771
4272
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
2772
4273
  });
2773
- var FeeCapTooLowError = class extends BaseError {
4274
+ var FeeCapTooLowError = class extends BaseError3 {
2774
4275
  constructor({ cause, maxFeePerGas } = {}) {
2775
4276
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
2776
4277
  cause,
@@ -2784,7 +4285,7 @@ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
2784
4285
  writable: true,
2785
4286
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
2786
4287
  });
2787
- var NonceTooHighError = class extends BaseError {
4288
+ var NonceTooHighError = class extends BaseError3 {
2788
4289
  constructor({ cause, nonce } = {}) {
2789
4290
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause, name: "NonceTooHighError" });
2790
4291
  }
@@ -2795,7 +4296,7 @@ Object.defineProperty(NonceTooHighError, "nodeMessage", {
2795
4296
  writable: true,
2796
4297
  value: /nonce too high/
2797
4298
  });
2798
- var NonceTooLowError = class extends BaseError {
4299
+ var NonceTooLowError = class extends BaseError3 {
2799
4300
  constructor({ cause, nonce } = {}) {
2800
4301
  super([
2801
4302
  `Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
@@ -2809,7 +4310,7 @@ Object.defineProperty(NonceTooLowError, "nodeMessage", {
2809
4310
  writable: true,
2810
4311
  value: /nonce too low|transaction already imported|already known/
2811
4312
  });
2812
- var NonceMaxValueError = class extends BaseError {
4313
+ var NonceMaxValueError = class extends BaseError3 {
2813
4314
  constructor({ cause, nonce } = {}) {
2814
4315
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause, name: "NonceMaxValueError" });
2815
4316
  }
@@ -2820,7 +4321,7 @@ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
2820
4321
  writable: true,
2821
4322
  value: /nonce has max value/
2822
4323
  });
2823
- var InsufficientFundsError = class extends BaseError {
4324
+ var InsufficientFundsError = class extends BaseError3 {
2824
4325
  constructor({ cause } = {}) {
2825
4326
  super([
2826
4327
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -2846,7 +4347,7 @@ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
2846
4347
  writable: true,
2847
4348
  value: /insufficient funds|exceeds transaction sender account balance/
2848
4349
  });
2849
- var IntrinsicGasTooHighError = class extends BaseError {
4350
+ var IntrinsicGasTooHighError = class extends BaseError3 {
2850
4351
  constructor({ cause, gas } = {}) {
2851
4352
  super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
2852
4353
  cause,
@@ -2860,7 +4361,7 @@ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
2860
4361
  writable: true,
2861
4362
  value: /intrinsic gas too high|gas limit reached/
2862
4363
  });
2863
- var IntrinsicGasTooLowError = class extends BaseError {
4364
+ var IntrinsicGasTooLowError = class extends BaseError3 {
2864
4365
  constructor({ cause, gas } = {}) {
2865
4366
  super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
2866
4367
  cause,
@@ -2874,7 +4375,7 @@ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
2874
4375
  writable: true,
2875
4376
  value: /intrinsic gas too low/
2876
4377
  });
2877
- var TransactionTypeNotSupportedError = class extends BaseError {
4378
+ var TransactionTypeNotSupportedError = class extends BaseError3 {
2878
4379
  constructor({ cause }) {
2879
4380
  super("The transaction type is not supported for this chain.", {
2880
4381
  cause,
@@ -2888,7 +4389,7 @@ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
2888
4389
  writable: true,
2889
4390
  value: /transaction type not valid/
2890
4391
  });
2891
- var TipAboveFeeCapError = class extends BaseError {
4392
+ var TipAboveFeeCapError = class extends BaseError3 {
2892
4393
  constructor({ cause, maxPriorityFeePerGas, maxFeePerGas } = {}) {
2893
4394
  super([
2894
4395
  `The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}).`
@@ -2904,7 +4405,7 @@ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
2904
4405
  writable: true,
2905
4406
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
2906
4407
  });
2907
- var UnknownNodeError = class extends BaseError {
4408
+ var UnknownNodeError = class extends BaseError3 {
2908
4409
  constructor({ cause }) {
2909
4410
  super(`An error occurred while executing: ${cause?.shortMessage}`, {
2910
4411
  cause,
@@ -2913,8 +4414,8 @@ var UnknownNodeError = class extends BaseError {
2913
4414
  }
2914
4415
  };
2915
4416
 
2916
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/request.js
2917
- var HttpRequestError = class extends BaseError {
4417
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/request.js
4418
+ var HttpRequestError = class extends BaseError3 {
2918
4419
  constructor({ body, cause, details, headers, status, url }) {
2919
4420
  super("HTTP request failed.", {
2920
4421
  cause,
@@ -2922,7 +4423,7 @@ var HttpRequestError = class extends BaseError {
2922
4423
  metaMessages: [
2923
4424
  status && `Status: ${status}`,
2924
4425
  `URL: ${getUrl(url)}`,
2925
- body && `Request body: ${stringify(body)}`
4426
+ body && `Request body: ${stringify2(body)}`
2926
4427
  ].filter(Boolean),
2927
4428
  name: "HttpRequestError"
2928
4429
  });
@@ -2956,12 +4457,12 @@ var HttpRequestError = class extends BaseError {
2956
4457
  this.url = url;
2957
4458
  }
2958
4459
  };
2959
- var RpcRequestError = class extends BaseError {
4460
+ var RpcRequestError = class extends BaseError3 {
2960
4461
  constructor({ body, error, url }) {
2961
4462
  super("RPC Request failed.", {
2962
4463
  cause: error,
2963
4464
  details: error.message,
2964
- metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify(body)}`],
4465
+ metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify2(body)}`],
2965
4466
  name: "RpcRequestError"
2966
4467
  });
2967
4468
  Object.defineProperty(this, "code", {
@@ -2987,11 +4488,11 @@ var RpcRequestError = class extends BaseError {
2987
4488
  this.url = url;
2988
4489
  }
2989
4490
  };
2990
- var TimeoutError = class extends BaseError {
4491
+ var TimeoutError = class extends BaseError3 {
2991
4492
  constructor({ body, url }) {
2992
4493
  super("The request took too long to respond.", {
2993
4494
  details: "The request timed out.",
2994
- metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify(body)}`],
4495
+ metaMessages: [`URL: ${getUrl(url)}`, `Request body: ${stringify2(body)}`],
2995
4496
  name: "TimeoutError"
2996
4497
  });
2997
4498
  Object.defineProperty(this, "url", {
@@ -3004,9 +4505,9 @@ var TimeoutError = class extends BaseError {
3004
4505
  }
3005
4506
  };
3006
4507
 
3007
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/rpc.js
4508
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/rpc.js
3008
4509
  var unknownErrorCode = -1;
3009
- var RpcError = class extends BaseError {
4510
+ var RpcError = class extends BaseError3 {
3010
4511
  constructor(cause, { code, docsPath: docsPath6, metaMessages, name, shortMessage }) {
3011
4512
  super(shortMessage, {
3012
4513
  cause,
@@ -3447,11 +4948,11 @@ var UnknownRpcError = class extends RpcError {
3447
4948
  }
3448
4949
  };
3449
4950
 
3450
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getNodeError.js
4951
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/errors/getNodeError.js
3451
4952
  function getNodeError(err, args) {
3452
4953
  const message = (err.details || "").toLowerCase();
3453
- const executionRevertedError = err instanceof BaseError ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
3454
- if (executionRevertedError instanceof BaseError)
4954
+ const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
4955
+ if (executionRevertedError instanceof BaseError3)
3455
4956
  return new ExecutionRevertedError({
3456
4957
  cause: err,
3457
4958
  message: executionRevertedError.details
@@ -3496,7 +4997,7 @@ function getNodeError(err, args) {
3496
4997
  });
3497
4998
  }
3498
4999
 
3499
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/errors/getCallError.js
5000
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/errors/getCallError.js
3500
5001
  function getCallError(err, { docsPath: docsPath6, ...args }) {
3501
5002
  const cause = (() => {
3502
5003
  const cause2 = getNodeError(err, args);
@@ -3510,7 +5011,7 @@ function getCallError(err, { docsPath: docsPath6, ...args }) {
3510
5011
  });
3511
5012
  }
3512
5013
 
3513
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/extract.js
5014
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/formatters/extract.js
3514
5015
  function extract(value_, { format }) {
3515
5016
  if (!format)
3516
5017
  return {};
@@ -3529,7 +5030,7 @@ function extract(value_, { format }) {
3529
5030
  return value;
3530
5031
  }
3531
5032
 
3532
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/formatter.js
5033
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/formatters/formatter.js
3533
5034
  function defineFormatter(type, format) {
3534
5035
  return ({ exclude, format: overrides }) => {
3535
5036
  return {
@@ -3551,7 +5052,7 @@ function defineFormatter(type, format) {
3551
5052
  };
3552
5053
  }
3553
5054
 
3554
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/formatters/transactionRequest.js
5055
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/formatters/transactionRequest.js
3555
5056
  var rpcTransactionType = {
3556
5057
  legacy: "0x0",
3557
5058
  eip2930: "0x1",
@@ -3612,7 +5113,7 @@ function formatAuthorizationList(authorizationList) {
3612
5113
  }));
3613
5114
  }
3614
5115
 
3615
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/promise/withResolvers.js
5116
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/promise/withResolvers.js
3616
5117
  function withResolvers() {
3617
5118
  let resolve = () => void 0;
3618
5119
  let reject = () => void 0;
@@ -3623,7 +5124,7 @@ function withResolvers() {
3623
5124
  return { promise, resolve, reject };
3624
5125
  }
3625
5126
 
3626
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
5127
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
3627
5128
  var schedulerCache = /* @__PURE__ */ new Map();
3628
5129
  function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
3629
5130
  const exec = async () => {
@@ -3669,7 +5170,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
3669
5170
  };
3670
5171
  }
3671
5172
 
3672
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/stateOverride.js
5173
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/stateOverride.js
3673
5174
  function serializeStateMapping(stateMapping) {
3674
5175
  if (!stateMapping || stateMapping.length === 0)
3675
5176
  return void 0;
@@ -3722,7 +5223,7 @@ function serializeStateOverride(parameters) {
3722
5223
  return rpcStateOverride;
3723
5224
  }
3724
5225
 
3725
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/constants/number.js
5226
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/constants/number.js
3726
5227
  var maxInt8 = 2n ** (8n - 1n) - 1n;
3727
5228
  var maxInt16 = 2n ** (16n - 1n) - 1n;
3728
5229
  var maxInt24 = 2n ** (24n - 1n) - 1n;
@@ -3820,7 +5321,7 @@ var maxUint240 = 2n ** 240n - 1n;
3820
5321
  var maxUint248 = 2n ** 248n - 1n;
3821
5322
  var maxUint256 = 2n ** 256n - 1n;
3822
5323
 
3823
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/transaction/assertRequest.js
5324
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/transaction/assertRequest.js
3824
5325
  function assertRequest(args) {
3825
5326
  const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
3826
5327
  const account = account_ ? parseAccount(account_) : void 0;
@@ -3834,14 +5335,14 @@ function assertRequest(args) {
3834
5335
  throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
3835
5336
  }
3836
5337
 
3837
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/actions/public/call.js
5338
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/actions/public/call.js
3838
5339
  async function call(client, args) {
3839
5340
  const { account: account_ = client.account, authorizationList, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = client.experimental_blockTag ?? "latest", accessList, blobs, blockOverrides, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, ...rest } = args;
3840
5341
  const account = account_ ? parseAccount(account_) : void 0;
3841
5342
  if (code && (factory || factoryData))
3842
- throw new BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
5343
+ throw new BaseError3("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
3843
5344
  if (code && to)
3844
- throw new BaseError("Cannot provide both `code` & `to` as parameters.");
5345
+ throw new BaseError3("Cannot provide both `code` & `to` as parameters.");
3845
5346
  const deploylessCallViaBytecode = code && data_;
3846
5347
  const deploylessCallViaFactory = factory && factoryData && to && data_;
3847
5348
  const deploylessCall = deploylessCallViaBytecode || deploylessCallViaFactory;
@@ -3864,7 +5365,7 @@ async function call(client, args) {
3864
5365
  assertRequest(args);
3865
5366
  const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : void 0;
3866
5367
  const block = blockNumberHex || blockTag;
3867
- const rpcBlockOverrides = blockOverrides ? toRpc(blockOverrides) : void 0;
5368
+ const rpcBlockOverrides = blockOverrides ? toRpc2(blockOverrides) : void 0;
3868
5369
  const rpcStateOverride = serializeStateOverride(stateOverride);
3869
5370
  const chainFormat = client.chain?.formatters?.transactionRequest?.format;
3870
5371
  const format = chainFormat || formatTransactionRequest;
@@ -3919,7 +5420,7 @@ async function call(client, args) {
3919
5420
  return { data: response };
3920
5421
  } catch (err) {
3921
5422
  const data2 = getRevertErrorData(err);
3922
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-3TXHQUZ5.js");
5423
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-JEEJV65M.js");
3923
5424
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3924
5425
  return { data: await offchainLookup2(client, { data: data2, to }) };
3925
5426
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -3966,8 +5467,8 @@ async function scheduleMulticall(client, args) {
3966
5467
  id: `${client.uid}.${block}`,
3967
5468
  wait,
3968
5469
  shouldSplitBatch(args2) {
3969
- const size2 = args2.reduce((size3, { data: data2 }) => size3 + (data2.length - 2), 0);
3970
- return size2 > batchSize * 2;
5470
+ const size4 = args2.reduce((size5, { data: data2 }) => size5 + (data2.length - 2), 0);
5471
+ return size4 > batchSize * 2;
3971
5472
  },
3972
5473
  fn: async (requests) => {
3973
5474
  const calls = requests.map((request) => ({
@@ -4026,14 +5527,14 @@ function toDeploylessCallViaFactoryData(parameters) {
4026
5527
  });
4027
5528
  }
4028
5529
  function getRevertErrorData(err) {
4029
- if (!(err instanceof BaseError))
5530
+ if (!(err instanceof BaseError3))
4030
5531
  return void 0;
4031
5532
  const error = err.walk();
4032
5533
  return typeof error?.data === "object" ? error.data?.data : error.data;
4033
5534
  }
4034
5535
 
4035
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/ccip.js
4036
- var OffchainLookupError = class extends BaseError {
5536
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/errors/ccip.js
5537
+ var OffchainLookupError = class extends BaseError3 {
4037
5538
  constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
4038
5539
  super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
4039
5540
  cause,
@@ -4054,18 +5555,18 @@ var OffchainLookupError = class extends BaseError {
4054
5555
  });
4055
5556
  }
4056
5557
  };
4057
- var OffchainLookupResponseMalformedError = class extends BaseError {
5558
+ var OffchainLookupResponseMalformedError = class extends BaseError3 {
4058
5559
  constructor({ result, url }) {
4059
5560
  super("Offchain gateway response is malformed. Response data must be a hex value.", {
4060
5561
  metaMessages: [
4061
5562
  `Gateway URL: ${getUrl(url)}`,
4062
- `Response: ${stringify(result)}`
5563
+ `Response: ${stringify2(result)}`
4063
5564
  ],
4064
5565
  name: "OffchainLookupResponseMalformedError"
4065
5566
  });
4066
5567
  }
4067
5568
  };
4068
- var OffchainLookupSenderMismatchError = class extends BaseError {
5569
+ var OffchainLookupSenderMismatchError = class extends BaseError3 {
4069
5570
  constructor({ sender, to }) {
4070
5571
  super("Reverted sender address does not match target contract address (`to`).", {
4071
5572
  metaMessages: [
@@ -4077,7 +5578,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError {
4077
5578
  }
4078
5579
  };
4079
5580
 
4080
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddressEqual.js
5581
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/address/isAddressEqual.js
4081
5582
  function isAddressEqual(a, b) {
4082
5583
  if (!isAddress(a, { strict: false }))
4083
5584
  throw new InvalidAddressError({ address: a });
@@ -4086,10 +5587,10 @@ function isAddressEqual(a, b) {
4086
5587
  return a.toLowerCase() === b.toLowerCase();
4087
5588
  }
4088
5589
 
4089
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
5590
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
4090
5591
  function decodeFunctionData(parameters) {
4091
5592
  const { abi, data } = parameters;
4092
- const signature = slice(data, 0, 4);
5593
+ const signature = slice3(data, 0, 4);
4093
5594
  const description = abi.find((x) => x.type === "function" && signature === toFunctionSelector(formatAbiItem2(x)));
4094
5595
  if (!description)
4095
5596
  throw new AbiFunctionSignatureNotFoundError(signature, {
@@ -4097,11 +5598,11 @@ function decodeFunctionData(parameters) {
4097
5598
  });
4098
5599
  return {
4099
5600
  functionName: description.name,
4100
- args: "inputs" in description && description.inputs && description.inputs.length > 0 ? decodeAbiParameters(description.inputs, slice(data, 4)) : void 0
5601
+ args: "inputs" in description && description.inputs && description.inputs.length > 0 ? decodeAbiParameters(description.inputs, slice3(data, 4)) : void 0
4101
5602
  };
4102
5603
  }
4103
5604
 
4104
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
5605
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
4105
5606
  var docsPath4 = "/docs/contract/encodeErrorResult";
4106
5607
  function encodeErrorResult(parameters) {
4107
5608
  const { abi, errorName, args } = parameters;
@@ -4125,7 +5626,7 @@ function encodeErrorResult(parameters) {
4125
5626
  return concatHex([signature, data]);
4126
5627
  }
4127
5628
 
4128
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
5629
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
4129
5630
  var docsPath5 = "/docs/contract/encodeFunctionResult";
4130
5631
  function encodeFunctionResult(parameters) {
4131
5632
  const { abi, functionName, result } = parameters;
@@ -4152,7 +5653,7 @@ function encodeFunctionResult(parameters) {
4152
5653
  return encodeAbiParameters(abiItem.outputs, values);
4153
5654
  }
4154
5655
 
4155
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
5656
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
4156
5657
  var localBatchGatewayUrl = "x-batch-gateway:true";
4157
5658
  async function localBatchGatewayRequest(parameters) {
4158
5659
  const { data, ccipRequest: ccipRequest2 } = parameters;
@@ -4188,7 +5689,7 @@ function encodeError(error) {
4188
5689
  });
4189
5690
  }
4190
5691
 
4191
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/ccip.js
5692
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/ccip.js
4192
5693
  var offchainLookupSignature = "0x556f1830";
4193
5694
  var offchainLookupAbiItem = {
4194
5695
  name: "OffchainLookup",
@@ -4234,7 +5735,7 @@ async function offchainLookup(client, { blockNumber, blockTag, data, to }) {
4234
5735
  const { data: data_ } = await call(client, {
4235
5736
  blockNumber,
4236
5737
  blockTag,
4237
- data: concat([
5738
+ data: concat3([
4238
5739
  callbackSelector,
4239
5740
  encodeAbiParameters([{ type: "bytes" }, { type: "bytes" }], [result, extraData])
4240
5741
  ]),
@@ -4274,7 +5775,7 @@ async function ccipRequest({ data, sender, urls }) {
4274
5775
  if (!response.ok) {
4275
5776
  error = new HttpRequestError({
4276
5777
  body,
4277
- details: result?.error ? stringify(result.error) : response.statusText,
5778
+ details: result?.error ? stringify2(result.error) : response.statusText,
4278
5779
  headers: response.headers,
4279
5780
  status: response.status,
4280
5781
  url
@@ -4301,10 +5802,12 @@ async function ccipRequest({ data, sender, urls }) {
4301
5802
  }
4302
5803
 
4303
5804
  export {
5805
+ formatAbiParameters,
5806
+ parseAbiParameters,
4304
5807
  formatAbiItem2 as formatAbiItem,
4305
5808
  isHex,
4306
- size,
4307
- BaseError,
5809
+ size3 as size,
5810
+ BaseError3 as BaseError,
4308
5811
  AbiDecodingDataSizeTooSmallError,
4309
5812
  AbiDecodingZeroDataError,
4310
5813
  AbiEventSignatureEmptyTopicsError,
@@ -4314,8 +5817,8 @@ export {
4314
5817
  DecodeLogDataMismatch,
4315
5818
  DecodeLogTopicsMismatch,
4316
5819
  padHex,
4317
- InvalidHexValueError,
4318
- trim,
5820
+ InvalidHexValueError2 as InvalidHexValueError,
5821
+ trim3 as trim,
4319
5822
  hexToBigInt,
4320
5823
  hexToBool,
4321
5824
  hexToNumber,
@@ -4332,12 +5835,12 @@ export {
4332
5835
  checksumAddress,
4333
5836
  getAddress,
4334
5837
  isAddress,
4335
- concat,
5838
+ concat3 as concat,
4336
5839
  concatHex,
4337
- slice,
5840
+ slice3 as slice,
4338
5841
  sliceHex,
4339
- bytesRegex,
4340
- integerRegex,
5842
+ bytesRegex2 as bytesRegex,
5843
+ integerRegex2 as integerRegex,
4341
5844
  encodeAbiParameters,
4342
5845
  toFunctionSelector,
4343
5846
  getAbiItem,
@@ -4346,7 +5849,7 @@ export {
4346
5849
  PositionOutOfBoundsError,
4347
5850
  createCursor,
4348
5851
  decodeAbiParameters,
4349
- stringify,
5852
+ stringify2 as stringify,
4350
5853
  formatEther,
4351
5854
  formatGwei,
4352
5855
  prettyPrint,
@@ -4408,6 +5911,40 @@ export {
4408
5911
  assertRequest,
4409
5912
  isAddressEqual,
4410
5913
  decodeFunctionResult,
5914
+ BaseError2,
5915
+ stringify as stringify2,
5916
+ concat as concat2,
5917
+ from,
5918
+ fromHex,
5919
+ fromString,
5920
+ isEqual,
5921
+ size as size2,
5922
+ slice as slice2,
5923
+ toBigInt2 as toBigInt,
5924
+ toBoolean,
5925
+ toNumber2 as toNumber,
5926
+ toString,
5927
+ trimLeft,
5928
+ validate,
5929
+ assert2 as assert,
5930
+ concat2 as concat3,
5931
+ from2,
5932
+ fromBoolean,
5933
+ fromBytes,
5934
+ fromNumber,
5935
+ fromString2,
5936
+ padLeft,
5937
+ padRight,
5938
+ random2 as random,
5939
+ slice2 as slice3,
5940
+ size2 as size3,
5941
+ trimLeft2,
5942
+ toBigInt as toBigInt2,
5943
+ toNumber as toNumber2,
5944
+ toString2,
5945
+ validate2,
5946
+ IntegerOutOfRangeError,
5947
+ InvalidLengthError,
4411
5948
  multicall3Abi,
4412
5949
  erc1271Abi,
4413
5950
  erc6492SignatureValidatorAbi,
@@ -4426,4 +5963,4 @@ export {
4426
5963
  ccipRequest,
4427
5964
  call
4428
5965
  };
4429
- //# sourceMappingURL=chunk-ML6HST4W.js.map
5966
+ //# sourceMappingURL=chunk-A5X4KG7U.js.map