@t2000/cli 0.26.1 → 0.27.0

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.
@@ -1,23 +1,781 @@
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
- } from "./chunk-EI3GHTKX.js";
3
+ keccak_256
4
+ } from "./chunk-77SWBATH.js";
7
5
  import {
8
6
  equalBytes
9
7
  } from "./chunk-7LGHVVIJ.js";
10
8
 
11
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/version.js
12
- var version = "0.1.1";
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";
13
11
 
14
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/errors.js
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
15
773
  function getVersion() {
16
- return version;
774
+ return version2;
17
775
  }
18
776
 
19
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Errors.js
20
- var BaseError = class _BaseError extends Error {
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 {
21
779
  static setStaticOptions(options) {
22
780
  _BaseError.prototype.docsOrigin = options.docsOrigin;
23
781
  _BaseError.prototype.showVersion = options.showVersion;
@@ -45,7 +803,7 @@ var BaseError = class _BaseError extends Error {
45
803
  const docsBaseUrl = options.docsOrigin ?? _BaseError.prototype.docsOrigin;
46
804
  const docs = `${docsBaseUrl}${docsPath6 ?? ""}`;
47
805
  const showVersion = Boolean(options.version ?? _BaseError.prototype.showVersion);
48
- const version3 = options.version ?? _BaseError.prototype.version;
806
+ const version4 = options.version ?? _BaseError.prototype.version;
49
807
  const message = [
50
808
  shortMessage || "An error occurred.",
51
809
  ...options.metaMessages ? ["", ...options.metaMessages] : [],
@@ -53,7 +811,7 @@ var BaseError = class _BaseError extends Error {
53
811
  "",
54
812
  details ? `Details: ${details}` : void 0,
55
813
  docsPath6 ? `See: ${docs}` : void 0,
56
- showVersion ? `Version: ${version3}` : void 0
814
+ showVersion ? `Version: ${version4}` : void 0
57
815
  ] : []
58
816
  ].filter((x) => typeof x === "string").join("\n");
59
817
  super(message, options.cause ? { cause: options.cause } : void 0);
@@ -118,13 +876,13 @@ var BaseError = class _BaseError extends Error {
118
876
  this.docsPath = docsPath6;
119
877
  this.shortMessage = shortMessage;
120
878
  this.showVersion = showVersion;
121
- this.version = version3;
879
+ this.version = version4;
122
880
  }
123
881
  walk(fn) {
124
882
  return walk(this, fn);
125
883
  }
126
884
  };
127
- Object.defineProperty(BaseError, "defaultStaticOptions", {
885
+ Object.defineProperty(BaseError2, "defaultStaticOptions", {
128
886
  enumerable: true,
129
887
  configurable: true,
130
888
  writable: true,
@@ -135,7 +893,7 @@ Object.defineProperty(BaseError, "defaultStaticOptions", {
135
893
  }
136
894
  });
137
895
  (() => {
138
- BaseError.setStaticOptions(BaseError.defaultStaticOptions);
896
+ BaseError2.setStaticOptions(BaseError2.defaultStaticOptions);
139
897
  })();
140
898
  function walk(err, fn) {
141
899
  if (fn?.(err))
@@ -145,7 +903,7 @@ function walk(err, fn) {
145
903
  return fn ? null : err;
146
904
  }
147
905
 
148
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/bytes.js
906
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/bytes.js
149
907
  function assertSize(bytes, size_) {
150
908
  if (size(bytes) > size_)
151
909
  throw new SizeOverflowError({
@@ -218,7 +976,7 @@ function trim(value, options = {}) {
218
976
  return data;
219
977
  }
220
978
 
221
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/internal/hex.js
979
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/internal/hex.js
222
980
  function assertSize2(hex, size_) {
223
981
  if (size2(hex) > size_)
224
982
  throw new SizeOverflowError2({
@@ -274,7 +1032,7 @@ function trim2(value, options = {}) {
274
1032
  return `0x${data}`;
275
1033
  }
276
1034
 
277
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Json.js
1035
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Json.js
278
1036
  var bigIntSuffix = "#__bigint";
279
1037
  function stringify(value, replacer, space) {
280
1038
  return JSON.stringify(value, (key, value2) => {
@@ -286,7 +1044,7 @@ function stringify(value, replacer, space) {
286
1044
  }, space);
287
1045
  }
288
1046
 
289
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Bytes.js
1047
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Bytes.js
290
1048
  var decoder = /* @__PURE__ */ new TextDecoder();
291
1049
  var encoder = /* @__PURE__ */ new TextEncoder();
292
1050
  function assert(value) {
@@ -340,7 +1098,7 @@ function fromHex(value, options = {}) {
340
1098
  const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
341
1099
  const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
342
1100
  if (nibbleLeft === void 0 || nibbleRight === void 0) {
343
- throw new BaseError(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
1101
+ throw new BaseError2(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
344
1102
  }
345
1103
  bytes[index] = nibbleLeft << 4 | nibbleRight;
346
1104
  }
@@ -423,7 +1181,7 @@ function validate(value) {
423
1181
  return false;
424
1182
  }
425
1183
  }
426
- var InvalidBytesBooleanError = class extends BaseError {
1184
+ var InvalidBytesBooleanError = class extends BaseError2 {
427
1185
  constructor(bytes) {
428
1186
  super(`Bytes value \`${bytes}\` is not a valid boolean.`, {
429
1187
  metaMessages: [
@@ -438,7 +1196,7 @@ var InvalidBytesBooleanError = class extends BaseError {
438
1196
  });
439
1197
  }
440
1198
  };
441
- var InvalidBytesTypeError = class extends BaseError {
1199
+ var InvalidBytesTypeError = class extends BaseError2 {
442
1200
  constructor(value) {
443
1201
  super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid Bytes value.`, {
444
1202
  metaMessages: ["Bytes values must be of type `Bytes`."]
@@ -451,7 +1209,7 @@ var InvalidBytesTypeError = class extends BaseError {
451
1209
  });
452
1210
  }
453
1211
  };
454
- var SizeOverflowError = class extends BaseError {
1212
+ var SizeOverflowError = class extends BaseError2 {
455
1213
  constructor({ givenSize, maxSize }) {
456
1214
  super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
457
1215
  Object.defineProperty(this, "name", {
@@ -462,7 +1220,7 @@ var SizeOverflowError = class extends BaseError {
462
1220
  });
463
1221
  }
464
1222
  };
465
- var SliceOffsetOutOfBoundsError = class extends BaseError {
1223
+ var SliceOffsetOutOfBoundsError = class extends BaseError2 {
466
1224
  constructor({ offset, position, size: size4 }) {
467
1225
  super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
468
1226
  Object.defineProperty(this, "name", {
@@ -473,7 +1231,7 @@ var SliceOffsetOutOfBoundsError = class extends BaseError {
473
1231
  });
474
1232
  }
475
1233
  };
476
- var SizeExceedsPaddingSizeError = class extends BaseError {
1234
+ var SizeExceedsPaddingSizeError = class extends BaseError2 {
477
1235
  constructor({ size: size4, targetSize, type }) {
478
1236
  super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
479
1237
  Object.defineProperty(this, "name", {
@@ -485,7 +1243,7 @@ var SizeExceedsPaddingSizeError = class extends BaseError {
485
1243
  }
486
1244
  };
487
1245
 
488
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Hex.js
1246
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Hex.js
489
1247
  var encoder2 = /* @__PURE__ */ new TextEncoder();
490
1248
  var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
491
1249
  function assert2(value, options = {}) {
@@ -623,7 +1381,7 @@ function validate2(value, options = {}) {
623
1381
  return false;
624
1382
  }
625
1383
  }
626
- var IntegerOutOfRangeError = class extends BaseError {
1384
+ var IntegerOutOfRangeError = class extends BaseError2 {
627
1385
  constructor({ max, min, signed, size: size4, value }) {
628
1386
  super(`Number \`${value}\` is not in safe${size4 ? ` ${size4 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
629
1387
  Object.defineProperty(this, "name", {
@@ -634,7 +1392,7 @@ var IntegerOutOfRangeError = class extends BaseError {
634
1392
  });
635
1393
  }
636
1394
  };
637
- var InvalidHexTypeError = class extends BaseError {
1395
+ var InvalidHexTypeError = class extends BaseError2 {
638
1396
  constructor(value) {
639
1397
  super(`Value \`${typeof value === "object" ? stringify(value) : value}\` of type \`${typeof value}\` is an invalid hex type.`, {
640
1398
  metaMessages: ['Hex types must be represented as `"0x${string}"`.']
@@ -647,7 +1405,7 @@ var InvalidHexTypeError = class extends BaseError {
647
1405
  });
648
1406
  }
649
1407
  };
650
- var InvalidHexValueError = class extends BaseError {
1408
+ var InvalidHexValueError = class extends BaseError2 {
651
1409
  constructor(value) {
652
1410
  super(`Value \`${value}\` is an invalid hex value.`, {
653
1411
  metaMessages: [
@@ -662,7 +1420,7 @@ var InvalidHexValueError = class extends BaseError {
662
1420
  });
663
1421
  }
664
1422
  };
665
- var InvalidLengthError = class extends BaseError {
1423
+ var InvalidLengthError = class extends BaseError2 {
666
1424
  constructor(value) {
667
1425
  super(`Hex value \`"${value}"\` is an odd length (${value.length - 2} nibbles).`, {
668
1426
  metaMessages: ["It must be an even length."]
@@ -675,7 +1433,7 @@ var InvalidLengthError = class extends BaseError {
675
1433
  });
676
1434
  }
677
1435
  };
678
- var SizeOverflowError2 = class extends BaseError {
1436
+ var SizeOverflowError2 = class extends BaseError2 {
679
1437
  constructor({ givenSize, maxSize }) {
680
1438
  super(`Size cannot exceed \`${maxSize}\` bytes. Given size: \`${givenSize}\` bytes.`);
681
1439
  Object.defineProperty(this, "name", {
@@ -686,7 +1444,7 @@ var SizeOverflowError2 = class extends BaseError {
686
1444
  });
687
1445
  }
688
1446
  };
689
- var SliceOffsetOutOfBoundsError2 = class extends BaseError {
1447
+ var SliceOffsetOutOfBoundsError2 = class extends BaseError2 {
690
1448
  constructor({ offset, position, size: size4 }) {
691
1449
  super(`Slice ${position === "start" ? "starting" : "ending"} at offset \`${offset}\` is out-of-bounds (size: \`${size4}\`).`);
692
1450
  Object.defineProperty(this, "name", {
@@ -697,7 +1455,7 @@ var SliceOffsetOutOfBoundsError2 = class extends BaseError {
697
1455
  });
698
1456
  }
699
1457
  };
700
- var SizeExceedsPaddingSizeError2 = class extends BaseError {
1458
+ var SizeExceedsPaddingSizeError2 = class extends BaseError2 {
701
1459
  constructor({ size: size4, targetSize, type }) {
702
1460
  super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size4}\`) exceeds padding size (\`${targetSize}\`).`);
703
1461
  Object.defineProperty(this, "name", {
@@ -709,7 +1467,7 @@ var SizeExceedsPaddingSizeError2 = class extends BaseError {
709
1467
  }
710
1468
  };
711
1469
 
712
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/Withdrawal.js
1470
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/Withdrawal.js
713
1471
  function toRpc(withdrawal) {
714
1472
  return {
715
1473
  address: withdrawal.address,
@@ -719,7 +1477,7 @@ function toRpc(withdrawal) {
719
1477
  };
720
1478
  }
721
1479
 
722
- // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@4.3.6/node_modules/ox/_esm/core/BlockOverrides.js
1480
+ // ../../node_modules/.pnpm/ox@0.14.5_typescript@5.9.3_zod@3.25.76/node_modules/ox/_esm/core/BlockOverrides.js
723
1481
  function toRpc2(blockOverrides) {
724
1482
  return {
725
1483
  ...typeof blockOverrides.baseFeePerGas === "bigint" && {
@@ -749,14 +1507,14 @@ function toRpc2(blockOverrides) {
749
1507
  };
750
1508
  }
751
1509
 
752
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/accounts/utils/parseAccount.js
1510
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/accounts/utils/parseAccount.js
753
1511
  function parseAccount(account) {
754
1512
  if (typeof account === "string")
755
1513
  return { address: account, type: "json-rpc" };
756
1514
  return account;
757
1515
  }
758
1516
 
759
- // ../../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
760
1518
  var multicall3Abi = [
761
1519
  {
762
1520
  inputs: [
@@ -1078,24 +1836,24 @@ var erc6492SignatureValidatorAbi = [
1078
1836
  }
1079
1837
  ];
1080
1838
 
1081
- // ../../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
1082
1840
  var aggregate3Signature = "0x82ad56cb";
1083
1841
 
1084
- // ../../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
1085
1843
  var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
1086
1844
  var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
1087
1845
  var erc6492SignatureValidatorByteCode = "0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572";
1088
1846
  var multicall3Bytecode = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
1089
1847
 
1090
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/version.js
1091
- var version2 = "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";
1092
1850
 
1093
- // ../../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
1094
1852
  var errorConfig = {
1095
1853
  getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
1096
- version: `viem@${version2}`
1854
+ version: `viem@${version3}`
1097
1855
  };
1098
- var BaseError2 = class _BaseError extends Error {
1856
+ var BaseError3 = class _BaseError extends Error {
1099
1857
  constructor(shortMessage, args = {}) {
1100
1858
  const details = (() => {
1101
1859
  if (args.cause instanceof _BaseError)
@@ -1160,7 +1918,7 @@ var BaseError2 = class _BaseError extends Error {
1160
1918
  this.metaMessages = args.metaMessages;
1161
1919
  this.name = args.name ?? this.name;
1162
1920
  this.shortMessage = shortMessage;
1163
- this.version = version2;
1921
+ this.version = version3;
1164
1922
  }
1165
1923
  walk(fn) {
1166
1924
  return walk2(this, fn);
@@ -1174,8 +1932,8 @@ function walk2(err, fn) {
1174
1932
  return fn ? null : err;
1175
1933
  }
1176
1934
 
1177
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/chain.js
1178
- var ChainDoesNotSupportContract = class extends BaseError2 {
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 {
1179
1937
  constructor({ blockNumber, chain, contract }) {
1180
1938
  super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
1181
1939
  metaMessages: [
@@ -1190,7 +1948,7 @@ var ChainDoesNotSupportContract = class extends BaseError2 {
1190
1948
  });
1191
1949
  }
1192
1950
  };
1193
- var ChainMismatchError = class extends BaseError2 {
1951
+ var ChainMismatchError = class extends BaseError3 {
1194
1952
  constructor({ chain, currentChainId }) {
1195
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}).`, {
1196
1954
  metaMessages: [
@@ -1201,7 +1959,7 @@ var ChainMismatchError = class extends BaseError2 {
1201
1959
  });
1202
1960
  }
1203
1961
  };
1204
- var ChainNotFoundError = class extends BaseError2 {
1962
+ var ChainNotFoundError = class extends BaseError3 {
1205
1963
  constructor() {
1206
1964
  super([
1207
1965
  "No chain was provided to the request.",
@@ -1211,20 +1969,20 @@ var ChainNotFoundError = class extends BaseError2 {
1211
1969
  });
1212
1970
  }
1213
1971
  };
1214
- var ClientChainNotConfiguredError = class extends BaseError2 {
1972
+ var ClientChainNotConfiguredError = class extends BaseError3 {
1215
1973
  constructor() {
1216
1974
  super("No chain was provided to the Client.", {
1217
1975
  name: "ClientChainNotConfiguredError"
1218
1976
  });
1219
1977
  }
1220
1978
  };
1221
- var InvalidChainIdError = class extends BaseError2 {
1979
+ var InvalidChainIdError = class extends BaseError3 {
1222
1980
  constructor({ chainId }) {
1223
1981
  super(typeof chainId === "number" ? `Chain ID "${chainId}" is invalid.` : "Chain ID is invalid.", { name: "InvalidChainIdError" });
1224
1982
  }
1225
1983
  };
1226
1984
 
1227
- // ../../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
1228
1986
  var panicReasons = {
1229
1987
  1: "An `assert` condition failed.",
1230
1988
  17: "Arithmetic operation resulted in underflow or overflow.",
@@ -1257,7 +2015,7 @@ var solidityPanic = {
1257
2015
  type: "error"
1258
2016
  };
1259
2017
 
1260
- // ../../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
1261
2019
  function formatAbiItem2(abiItem, { includeName = false } = {}) {
1262
2020
  if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
1263
2021
  throw new InvalidDefinitionTypeError(abiItem.type);
@@ -1275,7 +2033,7 @@ function formatAbiParam(param, { includeName }) {
1275
2033
  return param.type + (includeName && param.name ? ` ${param.name}` : "");
1276
2034
  }
1277
2035
 
1278
- // ../../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
1279
2037
  function isHex(value, { strict = true } = {}) {
1280
2038
  if (!value)
1281
2039
  return false;
@@ -1284,15 +2042,15 @@ function isHex(value, { strict = true } = {}) {
1284
2042
  return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
1285
2043
  }
1286
2044
 
1287
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js
2045
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/size.js
1288
2046
  function size3(value) {
1289
2047
  if (isHex(value, { strict: false }))
1290
2048
  return Math.ceil((value.length - 2) / 2);
1291
2049
  return value.length;
1292
2050
  }
1293
2051
 
1294
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/abi.js
1295
- var AbiConstructorNotFoundError = class extends BaseError2 {
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 {
1296
2054
  constructor({ docsPath: docsPath6 }) {
1297
2055
  super([
1298
2056
  "A constructor was not found on the ABI.",
@@ -1303,7 +2061,7 @@ var AbiConstructorNotFoundError = class extends BaseError2 {
1303
2061
  });
1304
2062
  }
1305
2063
  };
1306
- var AbiConstructorParamsNotFoundError = class extends BaseError2 {
2064
+ var AbiConstructorParamsNotFoundError = class extends BaseError3 {
1307
2065
  constructor({ docsPath: docsPath6 }) {
1308
2066
  super([
1309
2067
  "Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
@@ -1314,7 +2072,7 @@ var AbiConstructorParamsNotFoundError = class extends BaseError2 {
1314
2072
  });
1315
2073
  }
1316
2074
  };
1317
- var AbiDecodingDataSizeTooSmallError = class extends BaseError2 {
2075
+ var AbiDecodingDataSizeTooSmallError = class extends BaseError3 {
1318
2076
  constructor({ data, params, size: size4 }) {
1319
2077
  super([`Data size of ${size4} bytes is too small for given parameters.`].join("\n"), {
1320
2078
  metaMessages: [
@@ -1346,7 +2104,7 @@ var AbiDecodingDataSizeTooSmallError = class extends BaseError2 {
1346
2104
  this.size = size4;
1347
2105
  }
1348
2106
  };
1349
- var AbiDecodingZeroDataError = class extends BaseError2 {
2107
+ var AbiDecodingZeroDataError = class extends BaseError3 {
1350
2108
  constructor({ cause } = {}) {
1351
2109
  super('Cannot decode zero data ("0x") with ABI parameters.', {
1352
2110
  name: "AbiDecodingZeroDataError",
@@ -1354,7 +2112,7 @@ var AbiDecodingZeroDataError = class extends BaseError2 {
1354
2112
  });
1355
2113
  }
1356
2114
  };
1357
- var AbiEncodingArrayLengthMismatchError = class extends BaseError2 {
2115
+ var AbiEncodingArrayLengthMismatchError = class extends BaseError3 {
1358
2116
  constructor({ expectedLength, givenLength, type }) {
1359
2117
  super([
1360
2118
  `ABI encoding array length mismatch for type ${type}.`,
@@ -1363,12 +2121,12 @@ var AbiEncodingArrayLengthMismatchError = class extends BaseError2 {
1363
2121
  ].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
1364
2122
  }
1365
2123
  };
1366
- var AbiEncodingBytesSizeMismatchError = class extends BaseError2 {
2124
+ var AbiEncodingBytesSizeMismatchError = class extends BaseError3 {
1367
2125
  constructor({ expectedSize, value }) {
1368
2126
  super(`Size of bytes "${value}" (bytes${size3(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
1369
2127
  }
1370
2128
  };
1371
- var AbiEncodingLengthMismatchError = class extends BaseError2 {
2129
+ var AbiEncodingLengthMismatchError = class extends BaseError3 {
1372
2130
  constructor({ expectedLength, givenLength }) {
1373
2131
  super([
1374
2132
  "ABI encoding params/values length mismatch.",
@@ -1377,7 +2135,7 @@ var AbiEncodingLengthMismatchError = class extends BaseError2 {
1377
2135
  ].join("\n"), { name: "AbiEncodingLengthMismatchError" });
1378
2136
  }
1379
2137
  };
1380
- var AbiErrorInputsNotFoundError = class extends BaseError2 {
2138
+ var AbiErrorInputsNotFoundError = class extends BaseError3 {
1381
2139
  constructor(errorName, { docsPath: docsPath6 }) {
1382
2140
  super([
1383
2141
  `Arguments (\`args\`) were provided to "${errorName}", but "${errorName}" on the ABI does not contain any parameters (\`inputs\`).`,
@@ -1389,7 +2147,7 @@ var AbiErrorInputsNotFoundError = class extends BaseError2 {
1389
2147
  });
1390
2148
  }
1391
2149
  };
1392
- var AbiErrorNotFoundError = class extends BaseError2 {
2150
+ var AbiErrorNotFoundError = class extends BaseError3 {
1393
2151
  constructor(errorName, { docsPath: docsPath6 } = {}) {
1394
2152
  super([
1395
2153
  `Error ${errorName ? `"${errorName}" ` : ""}not found on ABI.`,
@@ -1400,7 +2158,7 @@ var AbiErrorNotFoundError = class extends BaseError2 {
1400
2158
  });
1401
2159
  }
1402
2160
  };
1403
- var AbiErrorSignatureNotFoundError = class extends BaseError2 {
2161
+ var AbiErrorSignatureNotFoundError = class extends BaseError3 {
1404
2162
  constructor(signature, { docsPath: docsPath6, cause }) {
1405
2163
  super([
1406
2164
  `Encoded error signature "${signature}" not found on ABI.`,
@@ -1420,7 +2178,7 @@ var AbiErrorSignatureNotFoundError = class extends BaseError2 {
1420
2178
  this.signature = signature;
1421
2179
  }
1422
2180
  };
1423
- var AbiEventSignatureEmptyTopicsError = class extends BaseError2 {
2181
+ var AbiEventSignatureEmptyTopicsError = class extends BaseError3 {
1424
2182
  constructor({ docsPath: docsPath6 }) {
1425
2183
  super("Cannot extract event signature from empty topics.", {
1426
2184
  docsPath: docsPath6,
@@ -1428,7 +2186,7 @@ var AbiEventSignatureEmptyTopicsError = class extends BaseError2 {
1428
2186
  });
1429
2187
  }
1430
2188
  };
1431
- var AbiEventSignatureNotFoundError = class extends BaseError2 {
2189
+ var AbiEventSignatureNotFoundError = class extends BaseError3 {
1432
2190
  constructor(signature, { docsPath: docsPath6 }) {
1433
2191
  super([
1434
2192
  `Encoded event signature "${signature}" not found on ABI.`,
@@ -1440,7 +2198,7 @@ var AbiEventSignatureNotFoundError = class extends BaseError2 {
1440
2198
  });
1441
2199
  }
1442
2200
  };
1443
- var AbiEventNotFoundError = class extends BaseError2 {
2201
+ var AbiEventNotFoundError = class extends BaseError3 {
1444
2202
  constructor(eventName, { docsPath: docsPath6 } = {}) {
1445
2203
  super([
1446
2204
  `Event ${eventName ? `"${eventName}" ` : ""}not found on ABI.`,
@@ -1451,7 +2209,7 @@ var AbiEventNotFoundError = class extends BaseError2 {
1451
2209
  });
1452
2210
  }
1453
2211
  };
1454
- var AbiFunctionNotFoundError = class extends BaseError2 {
2212
+ var AbiFunctionNotFoundError = class extends BaseError3 {
1455
2213
  constructor(functionName, { docsPath: docsPath6 } = {}) {
1456
2214
  super([
1457
2215
  `Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
@@ -1462,7 +2220,7 @@ var AbiFunctionNotFoundError = class extends BaseError2 {
1462
2220
  });
1463
2221
  }
1464
2222
  };
1465
- var AbiFunctionOutputsNotFoundError = class extends BaseError2 {
2223
+ var AbiFunctionOutputsNotFoundError = class extends BaseError3 {
1466
2224
  constructor(functionName, { docsPath: docsPath6 }) {
1467
2225
  super([
1468
2226
  `Function "${functionName}" does not contain any \`outputs\` on ABI.`,
@@ -1474,7 +2232,7 @@ var AbiFunctionOutputsNotFoundError = class extends BaseError2 {
1474
2232
  });
1475
2233
  }
1476
2234
  };
1477
- var AbiFunctionSignatureNotFoundError = class extends BaseError2 {
2235
+ var AbiFunctionSignatureNotFoundError = class extends BaseError3 {
1478
2236
  constructor(signature, { docsPath: docsPath6 }) {
1479
2237
  super([
1480
2238
  `Encoded function signature "${signature}" not found on ABI.`,
@@ -1486,7 +2244,7 @@ var AbiFunctionSignatureNotFoundError = class extends BaseError2 {
1486
2244
  });
1487
2245
  }
1488
2246
  };
1489
- var AbiItemAmbiguityError = class extends BaseError2 {
2247
+ var AbiItemAmbiguityError = class extends BaseError3 {
1490
2248
  constructor(x, y) {
1491
2249
  super("Found ambiguous types in overloaded ABI items.", {
1492
2250
  metaMessages: [
@@ -1500,14 +2258,14 @@ var AbiItemAmbiguityError = class extends BaseError2 {
1500
2258
  });
1501
2259
  }
1502
2260
  };
1503
- var BytesSizeMismatchError = class extends BaseError2 {
2261
+ var BytesSizeMismatchError = class extends BaseError3 {
1504
2262
  constructor({ expectedSize, givenSize }) {
1505
2263
  super(`Expected bytes${expectedSize}, got bytes${givenSize}.`, {
1506
2264
  name: "BytesSizeMismatchError"
1507
2265
  });
1508
2266
  }
1509
2267
  };
1510
- var DecodeLogDataMismatch = class extends BaseError2 {
2268
+ var DecodeLogDataMismatch = class extends BaseError3 {
1511
2269
  constructor({ abiItem, data, params, size: size4 }) {
1512
2270
  super([
1513
2271
  `Data size of ${size4} bytes is too small for non-indexed event parameters.`
@@ -1548,7 +2306,7 @@ var DecodeLogDataMismatch = class extends BaseError2 {
1548
2306
  this.size = size4;
1549
2307
  }
1550
2308
  };
1551
- var DecodeLogTopicsMismatch = class extends BaseError2 {
2309
+ var DecodeLogTopicsMismatch = class extends BaseError3 {
1552
2310
  constructor({ abiItem, param }) {
1553
2311
  super([
1554
2312
  `Expected a topic for indexed event parameter${param.name ? ` "${param.name}"` : ""} on event "${formatAbiItem2(abiItem, { includeName: true })}".`
@@ -1562,7 +2320,7 @@ var DecodeLogTopicsMismatch = class extends BaseError2 {
1562
2320
  this.abiItem = abiItem;
1563
2321
  }
1564
2322
  };
1565
- var InvalidAbiEncodingTypeError = class extends BaseError2 {
2323
+ var InvalidAbiEncodingTypeError = class extends BaseError3 {
1566
2324
  constructor(type, { docsPath: docsPath6 }) {
1567
2325
  super([
1568
2326
  `Type "${type}" is not a valid encoding type.`,
@@ -1570,7 +2328,7 @@ var InvalidAbiEncodingTypeError = class extends BaseError2 {
1570
2328
  ].join("\n"), { docsPath: docsPath6, name: "InvalidAbiEncodingType" });
1571
2329
  }
1572
2330
  };
1573
- var InvalidAbiDecodingTypeError = class extends BaseError2 {
2331
+ var InvalidAbiDecodingTypeError = class extends BaseError3 {
1574
2332
  constructor(type, { docsPath: docsPath6 }) {
1575
2333
  super([
1576
2334
  `Type "${type}" is not a valid decoding type.`,
@@ -1578,14 +2336,14 @@ var InvalidAbiDecodingTypeError = class extends BaseError2 {
1578
2336
  ].join("\n"), { docsPath: docsPath6, name: "InvalidAbiDecodingType" });
1579
2337
  }
1580
2338
  };
1581
- var InvalidArrayError = class extends BaseError2 {
2339
+ var InvalidArrayError = class extends BaseError3 {
1582
2340
  constructor(value) {
1583
2341
  super([`Value "${value}" is not a valid array.`].join("\n"), {
1584
2342
  name: "InvalidArrayError"
1585
2343
  });
1586
2344
  }
1587
2345
  };
1588
- var InvalidDefinitionTypeError = class extends BaseError2 {
2346
+ var InvalidDefinitionTypeError = class extends BaseError3 {
1589
2347
  constructor(type) {
1590
2348
  super([
1591
2349
  `"${type}" is not a valid definition type.`,
@@ -1594,24 +2352,24 @@ var InvalidDefinitionTypeError = class extends BaseError2 {
1594
2352
  }
1595
2353
  };
1596
2354
 
1597
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/data.js
1598
- var SliceOffsetOutOfBoundsError3 = class extends BaseError2 {
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 {
1599
2357
  constructor({ offset, position, size: size4 }) {
1600
2358
  super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size4}).`, { name: "SliceOffsetOutOfBoundsError" });
1601
2359
  }
1602
2360
  };
1603
- var SizeExceedsPaddingSizeError3 = class extends BaseError2 {
2361
+ var SizeExceedsPaddingSizeError3 = class extends BaseError3 {
1604
2362
  constructor({ size: size4, targetSize, type }) {
1605
2363
  super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size4}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
1606
2364
  }
1607
2365
  };
1608
- var InvalidBytesLengthError = class extends BaseError2 {
2366
+ var InvalidBytesLengthError = class extends BaseError3 {
1609
2367
  constructor({ size: size4, targetSize, type }) {
1610
2368
  super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size4} ${type} long.`, { name: "InvalidBytesLengthError" });
1611
2369
  }
1612
2370
  };
1613
2371
 
1614
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js
2372
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/slice.js
1615
2373
  function slice3(value, start, end, { strict } = {}) {
1616
2374
  if (isHex(value, { strict: false }))
1617
2375
  return sliceHex(value, start, end, {
@@ -1653,7 +2411,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
1653
2411
  return value;
1654
2412
  }
1655
2413
 
1656
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js
2414
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/pad.js
1657
2415
  function pad3(hexOrBytes, { dir, size: size4 = 32 } = {}) {
1658
2416
  if (typeof hexOrBytes === "string")
1659
2417
  return padHex(hexOrBytes, { dir, size: size4 });
@@ -1688,36 +2446,36 @@ function padBytes(bytes, { dir, size: size4 = 32 } = {}) {
1688
2446
  return paddedBytes;
1689
2447
  }
1690
2448
 
1691
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js
1692
- var IntegerOutOfRangeError2 = class extends BaseError2 {
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 {
1693
2451
  constructor({ max, min, signed, size: size4, value }) {
1694
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" });
1695
2453
  }
1696
2454
  };
1697
- var InvalidBytesBooleanError2 = class extends BaseError2 {
2455
+ var InvalidBytesBooleanError2 = class extends BaseError3 {
1698
2456
  constructor(bytes) {
1699
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.`, {
1700
2458
  name: "InvalidBytesBooleanError"
1701
2459
  });
1702
2460
  }
1703
2461
  };
1704
- var InvalidHexBooleanError = class extends BaseError2 {
2462
+ var InvalidHexBooleanError = class extends BaseError3 {
1705
2463
  constructor(hex) {
1706
2464
  super(`Hex value "${hex}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`, { name: "InvalidHexBooleanError" });
1707
2465
  }
1708
2466
  };
1709
- var InvalidHexValueError2 = class extends BaseError2 {
2467
+ var InvalidHexValueError2 = class extends BaseError3 {
1710
2468
  constructor(value) {
1711
2469
  super(`Hex value "${value}" is an odd length (${value.length}). It must be an even length.`, { name: "InvalidHexValueError" });
1712
2470
  }
1713
2471
  };
1714
- var SizeOverflowError3 = class extends BaseError2 {
2472
+ var SizeOverflowError3 = class extends BaseError3 {
1715
2473
  constructor({ givenSize, maxSize }) {
1716
2474
  super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
1717
2475
  }
1718
2476
  };
1719
2477
 
1720
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js
2478
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/trim.js
1721
2479
  function trim3(hexOrBytes, { dir = "left" } = {}) {
1722
2480
  let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
1723
2481
  let sliceLength = 0;
@@ -1736,7 +2494,7 @@ function trim3(hexOrBytes, { dir = "left" } = {}) {
1736
2494
  return data;
1737
2495
  }
1738
2496
 
1739
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js
2497
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromHex.js
1740
2498
  function assertSize3(hexOrBytes, { size: size4 }) {
1741
2499
  if (size3(hexOrBytes) > size4)
1742
2500
  throw new SizeOverflowError3({
@@ -1783,7 +2541,7 @@ function hexToNumber(hex, opts = {}) {
1783
2541
  return number;
1784
2542
  }
1785
2543
 
1786
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
2544
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toHex.js
1787
2545
  var hexes2 = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
1788
2546
  function toHex(value, opts = {}) {
1789
2547
  if (typeof value === "number" || typeof value === "bigint")
@@ -1849,7 +2607,7 @@ function stringToHex(value_, opts = {}) {
1849
2607
  return bytesToHex(value, opts);
1850
2608
  }
1851
2609
 
1852
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js
2610
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toBytes.js
1853
2611
  var encoder4 = /* @__PURE__ */ new TextEncoder();
1854
2612
  function toBytes(value, opts = {}) {
1855
2613
  if (typeof value === "number" || typeof value === "bigint")
@@ -1901,7 +2659,7 @@ function hexToBytes(hex_, opts = {}) {
1901
2659
  const nibbleLeft = charCodeToBase162(hexString.charCodeAt(j++));
1902
2660
  const nibbleRight = charCodeToBase162(hexString.charCodeAt(j++));
1903
2661
  if (nibbleLeft === void 0 || nibbleRight === void 0) {
1904
- throw new BaseError2(`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}").`);
1905
2663
  }
1906
2664
  bytes[index] = nibbleLeft * 16 + nibbleRight;
1907
2665
  }
@@ -1920,7 +2678,7 @@ function stringToBytes(value, opts = {}) {
1920
2678
  return bytes;
1921
2679
  }
1922
2680
 
1923
- // ../../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
1924
2682
  function keccak256(value, to_) {
1925
2683
  const to = to_ || "hex";
1926
2684
  const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
@@ -1929,13 +2687,13 @@ function keccak256(value, to_) {
1929
2687
  return toHex(bytes);
1930
2688
  }
1931
2689
 
1932
- // ../../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
1933
2691
  var hash = (value) => keccak256(toBytes(value));
1934
2692
  function hashSignature(sig) {
1935
2693
  return hash(sig);
1936
2694
  }
1937
2695
 
1938
- // ../../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
1939
2697
  function normalizeSignature(signature) {
1940
2698
  let active = true;
1941
2699
  let current = "";
@@ -1975,11 +2733,11 @@ function normalizeSignature(signature) {
1975
2733
  current += char;
1976
2734
  }
1977
2735
  if (!valid)
1978
- throw new BaseError2("Unable to normalize signature.");
2736
+ throw new BaseError3("Unable to normalize signature.");
1979
2737
  return result;
1980
2738
  }
1981
2739
 
1982
- // ../../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
1983
2741
  var toSignature = (def) => {
1984
2742
  const def_ = (() => {
1985
2743
  if (typeof def === "string")
@@ -1989,16 +2747,16 @@ var toSignature = (def) => {
1989
2747
  return normalizeSignature(def_);
1990
2748
  };
1991
2749
 
1992
- // ../../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
1993
2751
  function toSignatureHash(fn) {
1994
2752
  return hashSignature(toSignature(fn));
1995
2753
  }
1996
2754
 
1997
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
2755
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1998
2756
  var toFunctionSelector = (fn) => slice3(toSignatureHash(fn), 0, 4);
1999
2757
 
2000
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/address.js
2001
- var InvalidAddressError = class extends BaseError2 {
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 {
2002
2760
  constructor({ address }) {
2003
2761
  super(`Address "${address}" is invalid.`, {
2004
2762
  metaMessages: [
@@ -2010,7 +2768,7 @@ var InvalidAddressError = class extends BaseError2 {
2010
2768
  }
2011
2769
  };
2012
2770
 
2013
- // ../../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
2014
2772
  var LruMap = class extends Map {
2015
2773
  constructor(size4) {
2016
2774
  super();
@@ -2043,7 +2801,7 @@ var LruMap = class extends Map {
2043
2801
  }
2044
2802
  };
2045
2803
 
2046
- // ../../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
2047
2805
  var addressRegex = /^0x[a-fA-F0-9]{40}$/;
2048
2806
  var isAddressCache = /* @__PURE__ */ new LruMap(8192);
2049
2807
  function isAddress(address, options) {
@@ -2064,7 +2822,7 @@ function isAddress(address, options) {
2064
2822
  return result;
2065
2823
  }
2066
2824
 
2067
- // ../../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
2068
2826
  var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
2069
2827
  function checksumAddress(address_, chainId) {
2070
2828
  if (checksumAddressCache.has(`${address_}.${chainId}`))
@@ -2090,26 +2848,26 @@ function getAddress(address, chainId) {
2090
2848
  return checksumAddress(address, chainId);
2091
2849
  }
2092
2850
 
2093
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js
2094
- var NegativeOffsetError = class extends BaseError2 {
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 {
2095
2853
  constructor({ offset }) {
2096
2854
  super(`Offset \`${offset}\` cannot be negative.`, {
2097
2855
  name: "NegativeOffsetError"
2098
2856
  });
2099
2857
  }
2100
2858
  };
2101
- var PositionOutOfBoundsError = class extends BaseError2 {
2859
+ var PositionOutOfBoundsError = class extends BaseError3 {
2102
2860
  constructor({ length, position }) {
2103
2861
  super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`, { name: "PositionOutOfBoundsError" });
2104
2862
  }
2105
2863
  };
2106
- var RecursiveReadLimitExceededError = class extends BaseError2 {
2864
+ var RecursiveReadLimitExceededError = class extends BaseError3 {
2107
2865
  constructor({ count, limit }) {
2108
2866
  super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`, { name: "RecursiveReadLimitExceededError" });
2109
2867
  }
2110
2868
  };
2111
2869
 
2112
- // ../../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
2113
2871
  var staticCursor = {
2114
2872
  bytes: new Uint8Array(),
2115
2873
  dataView: new DataView(new ArrayBuffer(0)),
@@ -2278,7 +3036,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
2278
3036
  return cursor;
2279
3037
  }
2280
3038
 
2281
- // ../../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
2282
3040
  function bytesToBigInt(bytes, opts = {}) {
2283
3041
  if (typeof opts.size !== "undefined")
2284
3042
  assertSize3(bytes, { size: opts.size });
@@ -2310,7 +3068,7 @@ function bytesToString(bytes_, opts = {}) {
2310
3068
  return new TextDecoder().decode(bytes);
2311
3069
  }
2312
3070
 
2313
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js
3071
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/data/concat.js
2314
3072
  function concat3(values) {
2315
3073
  if (typeof values[0] === "string")
2316
3074
  return concatHex(values);
@@ -2333,11 +3091,11 @@ function concatHex(values) {
2333
3091
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
2334
3092
  }
2335
3093
 
2336
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/regex.js
2337
- var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
2338
- 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)?$/;
2339
3097
 
2340
- // ../../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
2341
3099
  function encodeAbiParameters(params, values) {
2342
3100
  if (params.length !== values.length)
2343
3101
  throw new AbiEncodingLengthMismatchError({
@@ -2379,7 +3137,7 @@ function prepareParam({ param, value }) {
2379
3137
  }
2380
3138
  if (param.type.startsWith("uint") || param.type.startsWith("int")) {
2381
3139
  const signed = param.type.startsWith("int");
2382
- const [, , size4 = "256"] = integerRegex.exec(param.type) ?? [];
3140
+ const [, , size4 = "256"] = integerRegex2.exec(param.type) ?? [];
2383
3141
  return encodeNumber(value, {
2384
3142
  signed,
2385
3143
  size: Number(size4)
@@ -2483,7 +3241,7 @@ function encodeBytes(value, { param }) {
2483
3241
  }
2484
3242
  function encodeBool(value) {
2485
3243
  if (typeof value !== "boolean")
2486
- throw new BaseError2(`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\`.`);
2487
3245
  return { dynamic: false, encoded: padHex(boolToHex(value)) };
2488
3246
  }
2489
3247
  function encodeNumber(value, { signed, size: size4 = 256 }) {
@@ -2551,7 +3309,7 @@ function getArrayComponents(type) {
2551
3309
  ) : void 0;
2552
3310
  }
2553
3311
 
2554
- // ../../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
2555
3313
  function decodeAbiParameters(params, data) {
2556
3314
  const bytes = typeof data === "string" ? hexToBytes(data) : data;
2557
3315
  const cursor = createCursor(bytes);
@@ -2738,7 +3496,7 @@ function hasDynamicChild(param) {
2738
3496
  return false;
2739
3497
  }
2740
3498
 
2741
- // ../../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
2742
3500
  function decodeErrorResult(parameters) {
2743
3501
  const { abi, data, cause } = parameters;
2744
3502
  const signature = slice3(data, 0, 4);
@@ -2758,13 +3516,13 @@ function decodeErrorResult(parameters) {
2758
3516
  };
2759
3517
  }
2760
3518
 
2761
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/utils/stringify.js
3519
+ // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@3.25.76/node_modules/viem/_esm/utils/stringify.js
2762
3520
  var stringify2 = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
2763
3521
  const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
2764
3522
  return typeof replacer === "function" ? replacer(key, value2) : value2;
2765
3523
  }, space);
2766
3524
 
2767
- // ../../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
2768
3526
  function formatAbiItemWithArgs({ abiItem, args, includeFunctionName = true, includeName = false }) {
2769
3527
  if (!("name" in abiItem))
2770
3528
  return;
@@ -2775,10 +3533,10 @@ function formatAbiItemWithArgs({ abiItem, args, includeFunctionName = true, incl
2775
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(", ")})`;
2776
3534
  }
2777
3535
 
2778
- // ../../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
2779
3537
  var toEventSelector = toSignatureHash;
2780
3538
 
2781
- // ../../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
2782
3540
  function getAbiItem(parameters) {
2783
3541
  const { abi, args = [], name } = parameters;
2784
3542
  const isSelector = isHex(name, { strict: false });
@@ -2890,7 +3648,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
2890
3648
  return;
2891
3649
  }
2892
3650
 
2893
- // ../../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
2894
3652
  var etherUnits = {
2895
3653
  gwei: 9,
2896
3654
  wei: 18
@@ -2900,7 +3658,7 @@ var gweiUnits = {
2900
3658
  wei: 9
2901
3659
  };
2902
3660
 
2903
- // ../../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
2904
3662
  function formatUnits(value, decimals) {
2905
3663
  let display = value.toString();
2906
3664
  const negative = display.startsWith("-");
@@ -2915,25 +3673,25 @@ function formatUnits(value, decimals) {
2915
3673
  return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
2916
3674
  }
2917
3675
 
2918
- // ../../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
2919
3677
  function formatEther(wei, unit = "wei") {
2920
3678
  return formatUnits(wei, etherUnits[unit]);
2921
3679
  }
2922
3680
 
2923
- // ../../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
2924
3682
  function formatGwei(wei, unit = "wei") {
2925
3683
  return formatUnits(wei, gweiUnits[unit]);
2926
3684
  }
2927
3685
 
2928
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/stateOverride.js
2929
- var AccountStateConflictError = class extends BaseError2 {
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 {
2930
3688
  constructor({ address }) {
2931
3689
  super(`State for account "${address}" is set multiple times.`, {
2932
3690
  name: "AccountStateConflictError"
2933
3691
  });
2934
3692
  }
2935
3693
  };
2936
- var StateAssignmentConflictError = class extends BaseError2 {
3694
+ var StateAssignmentConflictError = class extends BaseError3 {
2937
3695
  constructor() {
2938
3696
  super("state and stateDiff are set on the same account.", {
2939
3697
  name: "StateAssignmentConflictError"
@@ -2971,7 +3729,7 @@ function prettyStateOverride(stateOverride) {
2971
3729
  }, " State Override:\n").slice(0, -1);
2972
3730
  }
2973
3731
 
2974
- // ../../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
2975
3733
  function prettyPrint(args) {
2976
3734
  const entries = Object.entries(args).map(([key, value]) => {
2977
3735
  if (value === void 0 || value === false)
@@ -2981,14 +3739,14 @@ function prettyPrint(args) {
2981
3739
  const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
2982
3740
  return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
2983
3741
  }
2984
- var InvalidLegacyVError = class extends BaseError2 {
3742
+ var InvalidLegacyVError = class extends BaseError3 {
2985
3743
  constructor({ v }) {
2986
3744
  super(`Invalid \`v\` value "${v}". Expected 27 or 28.`, {
2987
3745
  name: "InvalidLegacyVError"
2988
3746
  });
2989
3747
  }
2990
3748
  };
2991
- var InvalidSerializableTransactionError = class extends BaseError2 {
3749
+ var InvalidSerializableTransactionError = class extends BaseError3 {
2992
3750
  constructor({ transaction }) {
2993
3751
  super("Cannot infer a transaction type from provided transaction.", {
2994
3752
  metaMessages: [
@@ -3009,7 +3767,7 @@ var InvalidSerializableTransactionError = class extends BaseError2 {
3009
3767
  });
3010
3768
  }
3011
3769
  };
3012
- var InvalidSerializedTransactionTypeError = class extends BaseError2 {
3770
+ var InvalidSerializedTransactionTypeError = class extends BaseError3 {
3013
3771
  constructor({ serializedType }) {
3014
3772
  super(`Serialized transaction type "${serializedType}" is invalid.`, {
3015
3773
  name: "InvalidSerializedTransactionType"
@@ -3023,7 +3781,7 @@ var InvalidSerializedTransactionTypeError = class extends BaseError2 {
3023
3781
  this.serializedType = serializedType;
3024
3782
  }
3025
3783
  };
3026
- var InvalidSerializedTransactionError = class extends BaseError2 {
3784
+ var InvalidSerializedTransactionError = class extends BaseError3 {
3027
3785
  constructor({ attributes, serializedTransaction, type }) {
3028
3786
  const missing = Object.entries(attributes).map(([key, value]) => typeof value === "undefined" ? key : void 0).filter(Boolean);
3029
3787
  super(`Invalid serialized transaction of type "${type}" was provided.`, {
@@ -3049,12 +3807,12 @@ var InvalidSerializedTransactionError = class extends BaseError2 {
3049
3807
  this.type = type;
3050
3808
  }
3051
3809
  };
3052
- var InvalidStorageKeySizeError = class extends BaseError2 {
3810
+ var InvalidStorageKeySizeError = class extends BaseError3 {
3053
3811
  constructor({ storageKey }) {
3054
3812
  super(`Size for storage key "${storageKey}" is invalid. Expected 32 bytes. Got ${Math.floor((storageKey.length - 2) / 2)} bytes.`, { name: "InvalidStorageKeySizeError" });
3055
3813
  }
3056
3814
  };
3057
- var TransactionExecutionError = class extends BaseError2 {
3815
+ var TransactionExecutionError = class extends BaseError3 {
3058
3816
  constructor(cause, { account, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value }) {
3059
3817
  const prettyArgs = prettyPrint({
3060
3818
  chain: chain && `${chain?.name} (id: ${chain?.id})`,
@@ -3087,7 +3845,7 @@ var TransactionExecutionError = class extends BaseError2 {
3087
3845
  this.cause = cause;
3088
3846
  }
3089
3847
  };
3090
- var TransactionNotFoundError = class extends BaseError2 {
3848
+ var TransactionNotFoundError = class extends BaseError3 {
3091
3849
  constructor({ blockHash, blockNumber, blockTag, hash: hash2, index }) {
3092
3850
  let identifier = "Transaction";
3093
3851
  if (blockTag && index !== void 0)
@@ -3103,14 +3861,14 @@ var TransactionNotFoundError = class extends BaseError2 {
3103
3861
  });
3104
3862
  }
3105
3863
  };
3106
- var TransactionReceiptNotFoundError = class extends BaseError2 {
3864
+ var TransactionReceiptNotFoundError = class extends BaseError3 {
3107
3865
  constructor({ hash: hash2 }) {
3108
3866
  super(`Transaction receipt with hash "${hash2}" could not be found. The Transaction may not be processed on a block yet.`, {
3109
3867
  name: "TransactionReceiptNotFoundError"
3110
3868
  });
3111
3869
  }
3112
3870
  };
3113
- var TransactionReceiptRevertedError = class extends BaseError2 {
3871
+ var TransactionReceiptRevertedError = class extends BaseError3 {
3114
3872
  constructor({ receipt }) {
3115
3873
  super(`Transaction with hash "${receipt.transactionHash}" reverted.`, {
3116
3874
  metaMessages: [
@@ -3131,18 +3889,18 @@ var TransactionReceiptRevertedError = class extends BaseError2 {
3131
3889
  this.receipt = receipt;
3132
3890
  }
3133
3891
  };
3134
- var WaitForTransactionReceiptTimeoutError = class extends BaseError2 {
3892
+ var WaitForTransactionReceiptTimeoutError = class extends BaseError3 {
3135
3893
  constructor({ hash: hash2 }) {
3136
3894
  super(`Timed out while waiting for transaction with hash "${hash2}" to be confirmed.`, { name: "WaitForTransactionReceiptTimeoutError" });
3137
3895
  }
3138
3896
  };
3139
3897
 
3140
- // ../../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
3141
3899
  var getContractAddress = (address) => address;
3142
3900
  var getUrl = (url) => url;
3143
3901
 
3144
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/contract.js
3145
- var CallExecutionError = class extends BaseError2 {
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 {
3146
3904
  constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
3147
3905
  const account = account_ ? parseAccount(account_) : void 0;
3148
3906
  let prettyArgs = prettyPrint({
@@ -3179,7 +3937,7 @@ ${prettyStateOverride(stateOverride)}`;
3179
3937
  this.cause = cause;
3180
3938
  }
3181
3939
  };
3182
- var ContractFunctionExecutionError = class extends BaseError2 {
3940
+ var ContractFunctionExecutionError = class extends BaseError3 {
3183
3941
  constructor(cause, { abi, args, contractAddress, docsPath: docsPath6, functionName, sender }) {
3184
3942
  const abiItem = getAbiItem({ abi, args, name: functionName });
3185
3943
  const formattedArgs = abiItem ? formatAbiItemWithArgs({
@@ -3255,7 +4013,7 @@ var ContractFunctionExecutionError = class extends BaseError2 {
3255
4013
  this.sender = sender;
3256
4014
  }
3257
4015
  };
3258
- var ContractFunctionRevertedError = class extends BaseError2 {
4016
+ var ContractFunctionRevertedError = class extends BaseError3 {
3259
4017
  constructor({ abi, data, functionName, message, cause: error }) {
3260
4018
  let cause;
3261
4019
  let decodedData;
@@ -3335,7 +4093,7 @@ var ContractFunctionRevertedError = class extends BaseError2 {
3335
4093
  this.signature = signature;
3336
4094
  }
3337
4095
  };
3338
- var ContractFunctionZeroDataError = class extends BaseError2 {
4096
+ var ContractFunctionZeroDataError = class extends BaseError3 {
3339
4097
  constructor({ functionName, cause }) {
3340
4098
  super(`The contract function "${functionName}" returned no data ("0x").`, {
3341
4099
  metaMessages: [
@@ -3349,7 +4107,7 @@ var ContractFunctionZeroDataError = class extends BaseError2 {
3349
4107
  });
3350
4108
  }
3351
4109
  };
3352
- var CounterfactualDeploymentFailedError = class extends BaseError2 {
4110
+ var CounterfactualDeploymentFailedError = class extends BaseError3 {
3353
4111
  constructor({ factory }) {
3354
4112
  super(`Deployment for counterfactual contract call failed${factory ? ` for factory "${factory}".` : ""}`, {
3355
4113
  metaMessages: [
@@ -3361,7 +4119,7 @@ var CounterfactualDeploymentFailedError = class extends BaseError2 {
3361
4119
  });
3362
4120
  }
3363
4121
  };
3364
- var RawContractError = class extends BaseError2 {
4122
+ var RawContractError = class extends BaseError3 {
3365
4123
  constructor({ data, message }) {
3366
4124
  super(message || "", { name: "RawContractError" });
3367
4125
  Object.defineProperty(this, "code", {
@@ -3380,7 +4138,7 @@ var RawContractError = class extends BaseError2 {
3380
4138
  }
3381
4139
  };
3382
4140
 
3383
- // ../../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
3384
4142
  var docsPath = "/docs/contract/decodeFunctionResult";
3385
4143
  function decodeFunctionResult(parameters) {
3386
4144
  const { abi, args, functionName, data } = parameters;
@@ -3403,7 +4161,7 @@ function decodeFunctionResult(parameters) {
3403
4161
  return void 0;
3404
4162
  }
3405
4163
 
3406
- // ../../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
3407
4165
  var docsPath2 = "/docs/contract/encodeDeployData";
3408
4166
  function encodeDeployData(parameters) {
3409
4167
  const { abi, args, bytecode } = parameters;
@@ -3420,7 +4178,7 @@ function encodeDeployData(parameters) {
3420
4178
  return concatHex([bytecode, data]);
3421
4179
  }
3422
4180
 
3423
- // ../../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
3424
4182
  var docsPath3 = "/docs/contract/encodeFunctionData";
3425
4183
  function prepareEncodeFunctionData(parameters) {
3426
4184
  const { abi, args, functionName } = parameters;
@@ -3443,7 +4201,7 @@ function prepareEncodeFunctionData(parameters) {
3443
4201
  };
3444
4202
  }
3445
4203
 
3446
- // ../../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
3447
4205
  function encodeFunctionData(parameters) {
3448
4206
  const { args } = parameters;
3449
4207
  const { abi, functionName } = (() => {
@@ -3457,7 +4215,7 @@ function encodeFunctionData(parameters) {
3457
4215
  return concatHex([signature, data ?? "0x"]);
3458
4216
  }
3459
4217
 
3460
- // ../../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
3461
4219
  function getChainContractAddress({ blockNumber, chain, contract: name }) {
3462
4220
  const contract = chain?.contracts?.[name];
3463
4221
  if (!contract)
@@ -3477,8 +4235,8 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
3477
4235
  return contract.address;
3478
4236
  }
3479
4237
 
3480
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/node.js
3481
- var ExecutionRevertedError = class extends BaseError2 {
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 {
3482
4240
  constructor({ cause, message } = {}) {
3483
4241
  const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
3484
4242
  super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
@@ -3499,7 +4257,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
3499
4257
  writable: true,
3500
4258
  value: /execution reverted|gas required exceeds allowance/
3501
4259
  });
3502
- var FeeCapTooHighError = class extends BaseError2 {
4260
+ var FeeCapTooHighError = class extends BaseError3 {
3503
4261
  constructor({ cause, maxFeePerGas } = {}) {
3504
4262
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
3505
4263
  cause,
@@ -3513,7 +4271,7 @@ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
3513
4271
  writable: true,
3514
4272
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
3515
4273
  });
3516
- var FeeCapTooLowError = class extends BaseError2 {
4274
+ var FeeCapTooLowError = class extends BaseError3 {
3517
4275
  constructor({ cause, maxFeePerGas } = {}) {
3518
4276
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
3519
4277
  cause,
@@ -3527,7 +4285,7 @@ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
3527
4285
  writable: true,
3528
4286
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
3529
4287
  });
3530
- var NonceTooHighError = class extends BaseError2 {
4288
+ var NonceTooHighError = class extends BaseError3 {
3531
4289
  constructor({ cause, nonce } = {}) {
3532
4290
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause, name: "NonceTooHighError" });
3533
4291
  }
@@ -3538,7 +4296,7 @@ Object.defineProperty(NonceTooHighError, "nodeMessage", {
3538
4296
  writable: true,
3539
4297
  value: /nonce too high/
3540
4298
  });
3541
- var NonceTooLowError = class extends BaseError2 {
4299
+ var NonceTooLowError = class extends BaseError3 {
3542
4300
  constructor({ cause, nonce } = {}) {
3543
4301
  super([
3544
4302
  `Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
@@ -3552,7 +4310,7 @@ Object.defineProperty(NonceTooLowError, "nodeMessage", {
3552
4310
  writable: true,
3553
4311
  value: /nonce too low|transaction already imported|already known/
3554
4312
  });
3555
- var NonceMaxValueError = class extends BaseError2 {
4313
+ var NonceMaxValueError = class extends BaseError3 {
3556
4314
  constructor({ cause, nonce } = {}) {
3557
4315
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause, name: "NonceMaxValueError" });
3558
4316
  }
@@ -3563,7 +4321,7 @@ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
3563
4321
  writable: true,
3564
4322
  value: /nonce has max value/
3565
4323
  });
3566
- var InsufficientFundsError = class extends BaseError2 {
4324
+ var InsufficientFundsError = class extends BaseError3 {
3567
4325
  constructor({ cause } = {}) {
3568
4326
  super([
3569
4327
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -3589,7 +4347,7 @@ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
3589
4347
  writable: true,
3590
4348
  value: /insufficient funds|exceeds transaction sender account balance/
3591
4349
  });
3592
- var IntrinsicGasTooHighError = class extends BaseError2 {
4350
+ var IntrinsicGasTooHighError = class extends BaseError3 {
3593
4351
  constructor({ cause, gas } = {}) {
3594
4352
  super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
3595
4353
  cause,
@@ -3603,7 +4361,7 @@ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
3603
4361
  writable: true,
3604
4362
  value: /intrinsic gas too high|gas limit reached/
3605
4363
  });
3606
- var IntrinsicGasTooLowError = class extends BaseError2 {
4364
+ var IntrinsicGasTooLowError = class extends BaseError3 {
3607
4365
  constructor({ cause, gas } = {}) {
3608
4366
  super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
3609
4367
  cause,
@@ -3617,7 +4375,7 @@ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
3617
4375
  writable: true,
3618
4376
  value: /intrinsic gas too low/
3619
4377
  });
3620
- var TransactionTypeNotSupportedError = class extends BaseError2 {
4378
+ var TransactionTypeNotSupportedError = class extends BaseError3 {
3621
4379
  constructor({ cause }) {
3622
4380
  super("The transaction type is not supported for this chain.", {
3623
4381
  cause,
@@ -3631,7 +4389,7 @@ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
3631
4389
  writable: true,
3632
4390
  value: /transaction type not valid/
3633
4391
  });
3634
- var TipAboveFeeCapError = class extends BaseError2 {
4392
+ var TipAboveFeeCapError = class extends BaseError3 {
3635
4393
  constructor({ cause, maxPriorityFeePerGas, maxFeePerGas } = {}) {
3636
4394
  super([
3637
4395
  `The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}).`
@@ -3647,7 +4405,7 @@ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
3647
4405
  writable: true,
3648
4406
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
3649
4407
  });
3650
- var UnknownNodeError = class extends BaseError2 {
4408
+ var UnknownNodeError = class extends BaseError3 {
3651
4409
  constructor({ cause }) {
3652
4410
  super(`An error occurred while executing: ${cause?.shortMessage}`, {
3653
4411
  cause,
@@ -3656,8 +4414,8 @@ var UnknownNodeError = class extends BaseError2 {
3656
4414
  }
3657
4415
  };
3658
4416
 
3659
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/request.js
3660
- var HttpRequestError = class extends BaseError2 {
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 {
3661
4419
  constructor({ body, cause, details, headers, status, url }) {
3662
4420
  super("HTTP request failed.", {
3663
4421
  cause,
@@ -3699,7 +4457,7 @@ var HttpRequestError = class extends BaseError2 {
3699
4457
  this.url = url;
3700
4458
  }
3701
4459
  };
3702
- var RpcRequestError = class extends BaseError2 {
4460
+ var RpcRequestError = class extends BaseError3 {
3703
4461
  constructor({ body, error, url }) {
3704
4462
  super("RPC Request failed.", {
3705
4463
  cause: error,
@@ -3730,7 +4488,7 @@ var RpcRequestError = class extends BaseError2 {
3730
4488
  this.url = url;
3731
4489
  }
3732
4490
  };
3733
- var TimeoutError = class extends BaseError2 {
4491
+ var TimeoutError = class extends BaseError3 {
3734
4492
  constructor({ body, url }) {
3735
4493
  super("The request took too long to respond.", {
3736
4494
  details: "The request timed out.",
@@ -3747,9 +4505,9 @@ var TimeoutError = class extends BaseError2 {
3747
4505
  }
3748
4506
  };
3749
4507
 
3750
- // ../../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
3751
4509
  var unknownErrorCode = -1;
3752
- var RpcError = class extends BaseError2 {
4510
+ var RpcError = class extends BaseError3 {
3753
4511
  constructor(cause, { code, docsPath: docsPath6, metaMessages, name, shortMessage }) {
3754
4512
  super(shortMessage, {
3755
4513
  cause,
@@ -4190,11 +4948,11 @@ var UnknownRpcError = class extends RpcError {
4190
4948
  }
4191
4949
  };
4192
4950
 
4193
- // ../../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
4194
4952
  function getNodeError(err, args) {
4195
4953
  const message = (err.details || "").toLowerCase();
4196
- const executionRevertedError = err instanceof BaseError2 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
4197
- if (executionRevertedError instanceof BaseError2)
4954
+ const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
4955
+ if (executionRevertedError instanceof BaseError3)
4198
4956
  return new ExecutionRevertedError({
4199
4957
  cause: err,
4200
4958
  message: executionRevertedError.details
@@ -4239,7 +4997,7 @@ function getNodeError(err, args) {
4239
4997
  });
4240
4998
  }
4241
4999
 
4242
- // ../../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
4243
5001
  function getCallError(err, { docsPath: docsPath6, ...args }) {
4244
5002
  const cause = (() => {
4245
5003
  const cause2 = getNodeError(err, args);
@@ -4253,7 +5011,7 @@ function getCallError(err, { docsPath: docsPath6, ...args }) {
4253
5011
  });
4254
5012
  }
4255
5013
 
4256
- // ../../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
4257
5015
  function extract(value_, { format }) {
4258
5016
  if (!format)
4259
5017
  return {};
@@ -4272,7 +5030,7 @@ function extract(value_, { format }) {
4272
5030
  return value;
4273
5031
  }
4274
5032
 
4275
- // ../../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
4276
5034
  function defineFormatter(type, format) {
4277
5035
  return ({ exclude, format: overrides }) => {
4278
5036
  return {
@@ -4294,7 +5052,7 @@ function defineFormatter(type, format) {
4294
5052
  };
4295
5053
  }
4296
5054
 
4297
- // ../../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
4298
5056
  var rpcTransactionType = {
4299
5057
  legacy: "0x0",
4300
5058
  eip2930: "0x1",
@@ -4355,7 +5113,7 @@ function formatAuthorizationList(authorizationList) {
4355
5113
  }));
4356
5114
  }
4357
5115
 
4358
- // ../../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
4359
5117
  function withResolvers() {
4360
5118
  let resolve = () => void 0;
4361
5119
  let reject = () => void 0;
@@ -4366,7 +5124,7 @@ function withResolvers() {
4366
5124
  return { promise, resolve, reject };
4367
5125
  }
4368
5126
 
4369
- // ../../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
4370
5128
  var schedulerCache = /* @__PURE__ */ new Map();
4371
5129
  function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
4372
5130
  const exec = async () => {
@@ -4412,7 +5170,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
4412
5170
  };
4413
5171
  }
4414
5172
 
4415
- // ../../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
4416
5174
  function serializeStateMapping(stateMapping) {
4417
5175
  if (!stateMapping || stateMapping.length === 0)
4418
5176
  return void 0;
@@ -4465,7 +5223,7 @@ function serializeStateOverride(parameters) {
4465
5223
  return rpcStateOverride;
4466
5224
  }
4467
5225
 
4468
- // ../../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
4469
5227
  var maxInt8 = 2n ** (8n - 1n) - 1n;
4470
5228
  var maxInt16 = 2n ** (16n - 1n) - 1n;
4471
5229
  var maxInt24 = 2n ** (24n - 1n) - 1n;
@@ -4563,7 +5321,7 @@ var maxUint240 = 2n ** 240n - 1n;
4563
5321
  var maxUint248 = 2n ** 248n - 1n;
4564
5322
  var maxUint256 = 2n ** 256n - 1n;
4565
5323
 
4566
- // ../../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
4567
5325
  function assertRequest(args) {
4568
5326
  const { account: account_, maxFeePerGas, maxPriorityFeePerGas, to } = args;
4569
5327
  const account = account_ ? parseAccount(account_) : void 0;
@@ -4577,14 +5335,14 @@ function assertRequest(args) {
4577
5335
  throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
4578
5336
  }
4579
5337
 
4580
- // ../../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
4581
5339
  async function call(client, args) {
4582
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;
4583
5341
  const account = account_ ? parseAccount(account_) : void 0;
4584
5342
  if (code && (factory || factoryData))
4585
- throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
5343
+ throw new BaseError3("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
4586
5344
  if (code && to)
4587
- throw new BaseError2("Cannot provide both `code` & `to` as parameters.");
5345
+ throw new BaseError3("Cannot provide both `code` & `to` as parameters.");
4588
5346
  const deploylessCallViaBytecode = code && data_;
4589
5347
  const deploylessCallViaFactory = factory && factoryData && to && data_;
4590
5348
  const deploylessCall = deploylessCallViaBytecode || deploylessCallViaFactory;
@@ -4662,7 +5420,7 @@ async function call(client, args) {
4662
5420
  return { data: response };
4663
5421
  } catch (err) {
4664
5422
  const data2 = getRevertErrorData(err);
4665
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-XP27NGI7.js");
5423
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-JEEJV65M.js");
4666
5424
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
4667
5425
  return { data: await offchainLookup2(client, { data: data2, to }) };
4668
5426
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -4769,14 +5527,14 @@ function toDeploylessCallViaFactoryData(parameters) {
4769
5527
  });
4770
5528
  }
4771
5529
  function getRevertErrorData(err) {
4772
- if (!(err instanceof BaseError2))
5530
+ if (!(err instanceof BaseError3))
4773
5531
  return void 0;
4774
5532
  const error = err.walk();
4775
5533
  return typeof error?.data === "object" ? error.data?.data : error.data;
4776
5534
  }
4777
5535
 
4778
- // ../../node_modules/.pnpm/viem@2.47.5_typescript@5.9.3_zod@4.3.6/node_modules/viem/_esm/errors/ccip.js
4779
- var OffchainLookupError = class extends BaseError2 {
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 {
4780
5538
  constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
4781
5539
  super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
4782
5540
  cause,
@@ -4797,7 +5555,7 @@ var OffchainLookupError = class extends BaseError2 {
4797
5555
  });
4798
5556
  }
4799
5557
  };
4800
- var OffchainLookupResponseMalformedError = class extends BaseError2 {
5558
+ var OffchainLookupResponseMalformedError = class extends BaseError3 {
4801
5559
  constructor({ result, url }) {
4802
5560
  super("Offchain gateway response is malformed. Response data must be a hex value.", {
4803
5561
  metaMessages: [
@@ -4808,7 +5566,7 @@ var OffchainLookupResponseMalformedError = class extends BaseError2 {
4808
5566
  });
4809
5567
  }
4810
5568
  };
4811
- var OffchainLookupSenderMismatchError = class extends BaseError2 {
5569
+ var OffchainLookupSenderMismatchError = class extends BaseError3 {
4812
5570
  constructor({ sender, to }) {
4813
5571
  super("Reverted sender address does not match target contract address (`to`).", {
4814
5572
  metaMessages: [
@@ -4820,7 +5578,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError2 {
4820
5578
  }
4821
5579
  };
4822
5580
 
4823
- // ../../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
4824
5582
  function isAddressEqual(a, b) {
4825
5583
  if (!isAddress(a, { strict: false }))
4826
5584
  throw new InvalidAddressError({ address: a });
@@ -4829,7 +5587,7 @@ function isAddressEqual(a, b) {
4829
5587
  return a.toLowerCase() === b.toLowerCase();
4830
5588
  }
4831
5589
 
4832
- // ../../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
4833
5591
  function decodeFunctionData(parameters) {
4834
5592
  const { abi, data } = parameters;
4835
5593
  const signature = slice3(data, 0, 4);
@@ -4844,7 +5602,7 @@ function decodeFunctionData(parameters) {
4844
5602
  };
4845
5603
  }
4846
5604
 
4847
- // ../../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
4848
5606
  var docsPath4 = "/docs/contract/encodeErrorResult";
4849
5607
  function encodeErrorResult(parameters) {
4850
5608
  const { abi, errorName, args } = parameters;
@@ -4868,7 +5626,7 @@ function encodeErrorResult(parameters) {
4868
5626
  return concatHex([signature, data]);
4869
5627
  }
4870
5628
 
4871
- // ../../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
4872
5630
  var docsPath5 = "/docs/contract/encodeFunctionResult";
4873
5631
  function encodeFunctionResult(parameters) {
4874
5632
  const { abi, functionName, result } = parameters;
@@ -4895,7 +5653,7 @@ function encodeFunctionResult(parameters) {
4895
5653
  return encodeAbiParameters(abiItem.outputs, values);
4896
5654
  }
4897
5655
 
4898
- // ../../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
4899
5657
  var localBatchGatewayUrl = "x-batch-gateway:true";
4900
5658
  async function localBatchGatewayRequest(parameters) {
4901
5659
  const { data, ccipRequest: ccipRequest2 } = parameters;
@@ -4931,7 +5689,7 @@ function encodeError(error) {
4931
5689
  });
4932
5690
  }
4933
5691
 
4934
- // ../../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
4935
5693
  var offchainLookupSignature = "0x556f1830";
4936
5694
  var offchainLookupAbiItem = {
4937
5695
  name: "OffchainLookup",
@@ -5044,10 +5802,12 @@ async function ccipRequest({ data, sender, urls }) {
5044
5802
  }
5045
5803
 
5046
5804
  export {
5805
+ formatAbiParameters,
5806
+ parseAbiParameters,
5047
5807
  formatAbiItem2 as formatAbiItem,
5048
5808
  isHex,
5049
5809
  size3 as size,
5050
- BaseError2 as BaseError,
5810
+ BaseError3 as BaseError,
5051
5811
  AbiDecodingDataSizeTooSmallError,
5052
5812
  AbiDecodingZeroDataError,
5053
5813
  AbiEventSignatureEmptyTopicsError,
@@ -5079,8 +5839,8 @@ export {
5079
5839
  concatHex,
5080
5840
  slice3 as slice,
5081
5841
  sliceHex,
5082
- bytesRegex,
5083
- integerRegex,
5842
+ bytesRegex2 as bytesRegex,
5843
+ integerRegex2 as integerRegex,
5084
5844
  encodeAbiParameters,
5085
5845
  toFunctionSelector,
5086
5846
  getAbiItem,
@@ -5151,7 +5911,7 @@ export {
5151
5911
  assertRequest,
5152
5912
  isAddressEqual,
5153
5913
  decodeFunctionResult,
5154
- BaseError as BaseError2,
5914
+ BaseError2,
5155
5915
  stringify as stringify2,
5156
5916
  concat as concat2,
5157
5917
  from,
@@ -5203,4 +5963,4 @@ export {
5203
5963
  ccipRequest,
5204
5964
  call
5205
5965
  };
5206
- //# sourceMappingURL=chunk-3I6VJOM6.js.map
5966
+ //# sourceMappingURL=chunk-A5X4KG7U.js.map