@zoralabs/protocol-deployments 0.6.2 → 0.6.4-PRE.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,16 +1,34 @@
1
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/version.js
2
- var version = "1.0.7";
1
+ import {
2
+ Hash,
3
+ abytes,
4
+ aexists,
5
+ anumber,
6
+ aoutput,
7
+ clean,
8
+ createHasher,
9
+ rotlBH,
10
+ rotlBL,
11
+ rotlSH,
12
+ rotlSL,
13
+ split,
14
+ swap32IfBE,
15
+ toBytes,
16
+ u32
17
+ } from "./chunk-BYTNVMX7.js";
3
18
 
4
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/errors.js
19
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/version.js
20
+ var version = "1.1.0";
21
+
22
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/errors.js
5
23
  var BaseError = class _BaseError extends Error {
6
24
  constructor(shortMessage, args = {}) {
7
25
  const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
8
- const docsPath4 = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
26
+ const docsPath6 = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
9
27
  const message = [
10
28
  shortMessage || "An error occurred.",
11
29
  "",
12
30
  ...args.metaMessages ? [...args.metaMessages, ""] : [],
13
- ...docsPath4 ? [`Docs: https://abitype.dev${docsPath4}`] : [],
31
+ ...docsPath6 ? [`Docs: https://abitype.dev${docsPath6}`] : [],
14
32
  ...details ? [`Details: ${details}`] : [],
15
33
  `Version: abitype@${version}`
16
34
  ].join("\n");
@@ -48,13 +66,13 @@ var BaseError = class _BaseError extends Error {
48
66
  if (args.cause)
49
67
  this.cause = args.cause;
50
68
  this.details = details;
51
- this.docsPath = docsPath4;
69
+ this.docsPath = docsPath6;
52
70
  this.metaMessages = args.metaMessages;
53
71
  this.shortMessage = shortMessage;
54
72
  }
55
73
  };
56
74
 
57
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/regex.js
75
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/regex.js
58
76
  function execTyped(regex, string) {
59
77
  const match = regex.exec(string);
60
78
  return match?.groups;
@@ -63,7 +81,7 @@ var bytesRegex = /^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/;
63
81
  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)?$/;
64
82
  var isTupleRegex = /^\(.+?\).*?$/;
65
83
 
66
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
84
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
67
85
  var tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
68
86
  function formatAbiParameter(abiParameter) {
69
87
  let type = abiParameter.type;
@@ -90,7 +108,7 @@ function formatAbiParameter(abiParameter) {
90
108
  return type;
91
109
  }
92
110
 
93
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
111
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
94
112
  function formatAbiParameters(abiParameters) {
95
113
  let params = "";
96
114
  const length = abiParameters.length;
@@ -103,7 +121,7 @@ function formatAbiParameters(abiParameters) {
103
121
  return params;
104
122
  }
105
123
 
106
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
124
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
107
125
  function formatAbiItem(abiItem) {
108
126
  if (abiItem.type === "function")
109
127
  return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
@@ -118,7 +136,7 @@ function formatAbiItem(abiItem) {
118
136
  return "receive() external payable";
119
137
  }
120
138
 
121
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
139
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/runtime/signatures.js
122
140
  var errorSignatureRegex = /^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;
123
141
  function isErrorSignature(signature) {
124
142
  return errorSignatureRegex.test(signature);
@@ -158,6 +176,9 @@ var fallbackSignatureRegex = /^fallback\(\) external(?:\s(?<stateMutability>paya
158
176
  function isFallbackSignature(signature) {
159
177
  return fallbackSignatureRegex.test(signature);
160
178
  }
179
+ function execFallbackSignature(signature) {
180
+ return execTyped(fallbackSignatureRegex, signature);
181
+ }
161
182
  var receiveSignatureRegex = /^receive\(\) external payable$/;
162
183
  function isReceiveSignature(signature) {
163
184
  return receiveSignatureRegex.test(signature);
@@ -169,7 +190,7 @@ var functionModifiers = /* @__PURE__ */ new Set([
169
190
  "storage"
170
191
  ]);
171
192
 
172
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
193
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/errors/abiItem.js
173
194
  var UnknownTypeError = class extends BaseError {
174
195
  constructor({ type }) {
175
196
  super("Unknown type.", {
@@ -199,7 +220,7 @@ var UnknownSolidityTypeError = class extends BaseError {
199
220
  }
200
221
  };
201
222
 
202
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
223
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/errors/abiParameter.js
203
224
  var InvalidParameterError = class extends BaseError {
204
225
  constructor({ param }) {
205
226
  super("Invalid ABI parameter.", {
@@ -277,7 +298,7 @@ var InvalidAbiTypeParameterError = class extends BaseError {
277
298
  }
278
299
  };
279
300
 
280
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/errors/signature.js
301
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/errors/signature.js
281
302
  var InvalidSignatureError = class extends BaseError {
282
303
  constructor({ signature, type }) {
283
304
  super(`Invalid ${type} signature.`, {
@@ -319,7 +340,7 @@ var InvalidStructSignatureError = class extends BaseError {
319
340
  }
320
341
  };
321
342
 
322
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/errors/struct.js
343
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/errors/struct.js
323
344
  var CircularReferenceError = class extends BaseError {
324
345
  constructor({ type }) {
325
346
  super("Circular reference detected.", {
@@ -334,7 +355,7 @@ var CircularReferenceError = class extends BaseError {
334
355
  }
335
356
  };
336
357
 
337
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
358
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/errors/splitParameters.js
338
359
  var InvalidParenthesisError = class extends BaseError {
339
360
  constructor({ current, depth }) {
340
361
  super("Unbalanced parentheses.", {
@@ -352,7 +373,7 @@ var InvalidParenthesisError = class extends BaseError {
352
373
  }
353
374
  };
354
375
 
355
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
376
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/runtime/cache.js
356
377
  function getParameterCacheKey(param, type, structs) {
357
378
  let structKey = "";
358
379
  if (structs)
@@ -424,88 +445,18 @@ var parameterCache = /* @__PURE__ */ new Map([
424
445
  ]
425
446
  ]);
426
447
 
427
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
448
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/runtime/utils.js
428
449
  function parseSignature(signature, structs = {}) {
429
- if (isFunctionSignature(signature)) {
430
- const match = execFunctionSignature(signature);
431
- if (!match)
432
- throw new InvalidSignatureError({ signature, type: "function" });
433
- const inputParams = splitParameters(match.parameters);
434
- const inputs = [];
435
- const inputLength = inputParams.length;
436
- for (let i = 0; i < inputLength; i++) {
437
- inputs.push(parseAbiParameter(inputParams[i], {
438
- modifiers: functionModifiers,
439
- structs,
440
- type: "function"
441
- }));
442
- }
443
- const outputs = [];
444
- if (match.returns) {
445
- const outputParams = splitParameters(match.returns);
446
- const outputLength = outputParams.length;
447
- for (let i = 0; i < outputLength; i++) {
448
- outputs.push(parseAbiParameter(outputParams[i], {
449
- modifiers: functionModifiers,
450
- structs,
451
- type: "function"
452
- }));
453
- }
454
- }
455
- return {
456
- name: match.name,
457
- type: "function",
458
- stateMutability: match.stateMutability ?? "nonpayable",
459
- inputs,
460
- outputs
461
- };
462
- }
463
- if (isEventSignature(signature)) {
464
- const match = execEventSignature(signature);
465
- if (!match)
466
- throw new InvalidSignatureError({ signature, type: "event" });
467
- const params = splitParameters(match.parameters);
468
- const abiParameters = [];
469
- const length = params.length;
470
- for (let i = 0; i < length; i++) {
471
- abiParameters.push(parseAbiParameter(params[i], {
472
- modifiers: eventModifiers,
473
- structs,
474
- type: "event"
475
- }));
476
- }
477
- return { name: match.name, type: "event", inputs: abiParameters };
478
- }
479
- if (isErrorSignature(signature)) {
480
- const match = execErrorSignature(signature);
481
- if (!match)
482
- throw new InvalidSignatureError({ signature, type: "error" });
483
- const params = splitParameters(match.parameters);
484
- const abiParameters = [];
485
- const length = params.length;
486
- for (let i = 0; i < length; i++) {
487
- abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
488
- }
489
- return { name: match.name, type: "error", inputs: abiParameters };
490
- }
491
- if (isConstructorSignature(signature)) {
492
- const match = execConstructorSignature(signature);
493
- if (!match)
494
- throw new InvalidSignatureError({ signature, type: "constructor" });
495
- const params = splitParameters(match.parameters);
496
- const abiParameters = [];
497
- const length = params.length;
498
- for (let i = 0; i < length; i++) {
499
- abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
500
- }
501
- return {
502
- type: "constructor",
503
- stateMutability: match.stateMutability ?? "nonpayable",
504
- inputs: abiParameters
505
- };
506
- }
450
+ if (isFunctionSignature(signature))
451
+ return parseFunctionSignature(signature, structs);
452
+ if (isEventSignature(signature))
453
+ return parseEventSignature(signature, structs);
454
+ if (isErrorSignature(signature))
455
+ return parseErrorSignature(signature, structs);
456
+ if (isConstructorSignature(signature))
457
+ return parseConstructorSignature(signature, structs);
507
458
  if (isFallbackSignature(signature))
508
- return { type: "fallback" };
459
+ return parseFallbackSignature(signature);
509
460
  if (isReceiveSignature(signature))
510
461
  return {
511
462
  type: "receive",
@@ -513,7 +464,91 @@ function parseSignature(signature, structs = {}) {
513
464
  };
514
465
  throw new UnknownSignatureError({ signature });
515
466
  }
516
- var abiParameterWithoutTupleRegex = /^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
467
+ function parseFunctionSignature(signature, structs = {}) {
468
+ const match = execFunctionSignature(signature);
469
+ if (!match)
470
+ throw new InvalidSignatureError({ signature, type: "function" });
471
+ const inputParams = splitParameters(match.parameters);
472
+ const inputs = [];
473
+ const inputLength = inputParams.length;
474
+ for (let i = 0; i < inputLength; i++) {
475
+ inputs.push(parseAbiParameter(inputParams[i], {
476
+ modifiers: functionModifiers,
477
+ structs,
478
+ type: "function"
479
+ }));
480
+ }
481
+ const outputs = [];
482
+ if (match.returns) {
483
+ const outputParams = splitParameters(match.returns);
484
+ const outputLength = outputParams.length;
485
+ for (let i = 0; i < outputLength; i++) {
486
+ outputs.push(parseAbiParameter(outputParams[i], {
487
+ modifiers: functionModifiers,
488
+ structs,
489
+ type: "function"
490
+ }));
491
+ }
492
+ }
493
+ return {
494
+ name: match.name,
495
+ type: "function",
496
+ stateMutability: match.stateMutability ?? "nonpayable",
497
+ inputs,
498
+ outputs
499
+ };
500
+ }
501
+ function parseEventSignature(signature, structs = {}) {
502
+ const match = execEventSignature(signature);
503
+ if (!match)
504
+ throw new InvalidSignatureError({ signature, type: "event" });
505
+ const params = splitParameters(match.parameters);
506
+ const abiParameters = [];
507
+ const length = params.length;
508
+ for (let i = 0; i < length; i++)
509
+ abiParameters.push(parseAbiParameter(params[i], {
510
+ modifiers: eventModifiers,
511
+ structs,
512
+ type: "event"
513
+ }));
514
+ return { name: match.name, type: "event", inputs: abiParameters };
515
+ }
516
+ function parseErrorSignature(signature, structs = {}) {
517
+ const match = execErrorSignature(signature);
518
+ if (!match)
519
+ throw new InvalidSignatureError({ signature, type: "error" });
520
+ const params = splitParameters(match.parameters);
521
+ const abiParameters = [];
522
+ const length = params.length;
523
+ for (let i = 0; i < length; i++)
524
+ abiParameters.push(parseAbiParameter(params[i], { structs, type: "error" }));
525
+ return { name: match.name, type: "error", inputs: abiParameters };
526
+ }
527
+ function parseConstructorSignature(signature, structs = {}) {
528
+ const match = execConstructorSignature(signature);
529
+ if (!match)
530
+ throw new InvalidSignatureError({ signature, type: "constructor" });
531
+ const params = splitParameters(match.parameters);
532
+ const abiParameters = [];
533
+ const length = params.length;
534
+ for (let i = 0; i < length; i++)
535
+ abiParameters.push(parseAbiParameter(params[i], { structs, type: "constructor" }));
536
+ return {
537
+ type: "constructor",
538
+ stateMutability: match.stateMutability ?? "nonpayable",
539
+ inputs: abiParameters
540
+ };
541
+ }
542
+ function parseFallbackSignature(signature) {
543
+ const match = execFallbackSignature(signature);
544
+ if (!match)
545
+ throw new InvalidSignatureError({ signature, type: "fallback" });
546
+ return {
547
+ type: "fallback",
548
+ stateMutability: match.stateMutability ?? "nonpayable"
549
+ };
550
+ }
551
+ 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$_]*))?$/;
517
552
  var abiParameterWithTupleRegex = /^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/;
518
553
  var dynamicIntegerRegex = /^u?int$/;
519
554
  function parseAbiParameter(param, options) {
@@ -545,6 +580,8 @@ function parseAbiParameter(param, options) {
545
580
  components = { components: structs[match.type] };
546
581
  } else if (dynamicIntegerRegex.test(match.type)) {
547
582
  type = `${match.type}256`;
583
+ } else if (match.type === "address payable") {
584
+ type = "address";
548
585
  } else {
549
586
  type = match.type;
550
587
  if (!(options?.type === "struct") && !isSolidityType(type))
@@ -607,7 +644,7 @@ function isValidDataLocation(type, isArray) {
607
644
  return isArray || type === "bytes" || type === "string" || type === "tuple";
608
645
  }
609
646
 
610
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
647
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/runtime/structs.js
611
648
  function parseStructs(signatures) {
612
649
  const shallowStructs = {};
613
650
  const signaturesLength = signatures.length;
@@ -677,7 +714,7 @@ function resolveStructs(abiParameters, structs, ancestors = /* @__PURE__ */ new
677
714
  return components;
678
715
  }
679
716
 
680
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/parseAbi.js
717
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/human-readable/parseAbi.js
681
718
  function parseAbi(signatures) {
682
719
  const structs = parseStructs(signatures);
683
720
  const abi = [];
@@ -691,14 +728,226 @@ function parseAbi(signatures) {
691
728
  return abi;
692
729
  }
693
730
 
694
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/accounts/utils/parseAccount.js
731
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/version.js
732
+ var version2 = "0.1.1";
733
+
734
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/internal/errors.js
735
+ function getVersion() {
736
+ return version2;
737
+ }
738
+
739
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/Errors.js
740
+ var BaseError2 = class _BaseError extends Error {
741
+ constructor(shortMessage, options = {}) {
742
+ const details = (() => {
743
+ if (options.cause instanceof _BaseError) {
744
+ if (options.cause.details)
745
+ return options.cause.details;
746
+ if (options.cause.shortMessage)
747
+ return options.cause.shortMessage;
748
+ }
749
+ if (options.cause && "details" in options.cause && typeof options.cause.details === "string")
750
+ return options.cause.details;
751
+ if (options.cause?.message)
752
+ return options.cause.message;
753
+ return options.details;
754
+ })();
755
+ const docsPath6 = (() => {
756
+ if (options.cause instanceof _BaseError)
757
+ return options.cause.docsPath || options.docsPath;
758
+ return options.docsPath;
759
+ })();
760
+ const docsBaseUrl = "https://oxlib.sh";
761
+ const docs = `${docsBaseUrl}${docsPath6 ?? ""}`;
762
+ const message = [
763
+ shortMessage || "An error occurred.",
764
+ ...options.metaMessages ? ["", ...options.metaMessages] : [],
765
+ ...details || docsPath6 ? [
766
+ "",
767
+ details ? `Details: ${details}` : void 0,
768
+ docsPath6 ? `See: ${docs}` : void 0
769
+ ] : []
770
+ ].filter((x) => typeof x === "string").join("\n");
771
+ super(message, options.cause ? { cause: options.cause } : void 0);
772
+ Object.defineProperty(this, "details", {
773
+ enumerable: true,
774
+ configurable: true,
775
+ writable: true,
776
+ value: void 0
777
+ });
778
+ Object.defineProperty(this, "docs", {
779
+ enumerable: true,
780
+ configurable: true,
781
+ writable: true,
782
+ value: void 0
783
+ });
784
+ Object.defineProperty(this, "docsPath", {
785
+ enumerable: true,
786
+ configurable: true,
787
+ writable: true,
788
+ value: void 0
789
+ });
790
+ Object.defineProperty(this, "shortMessage", {
791
+ enumerable: true,
792
+ configurable: true,
793
+ writable: true,
794
+ value: void 0
795
+ });
796
+ Object.defineProperty(this, "cause", {
797
+ enumerable: true,
798
+ configurable: true,
799
+ writable: true,
800
+ value: void 0
801
+ });
802
+ Object.defineProperty(this, "name", {
803
+ enumerable: true,
804
+ configurable: true,
805
+ writable: true,
806
+ value: "BaseError"
807
+ });
808
+ Object.defineProperty(this, "version", {
809
+ enumerable: true,
810
+ configurable: true,
811
+ writable: true,
812
+ value: `ox@${getVersion()}`
813
+ });
814
+ this.cause = options.cause;
815
+ this.details = details;
816
+ this.docs = docs;
817
+ this.docsPath = docsPath6;
818
+ this.shortMessage = shortMessage;
819
+ }
820
+ walk(fn) {
821
+ return walk(this, fn);
822
+ }
823
+ };
824
+ function walk(err, fn) {
825
+ if (fn?.(err))
826
+ return err;
827
+ if (err && typeof err === "object" && "cause" in err && err.cause)
828
+ return walk(err.cause, fn);
829
+ return fn ? null : err;
830
+ }
831
+
832
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/internal/hex.js
833
+ function pad(hex_, options = {}) {
834
+ const { dir, size: size3 = 32 } = options;
835
+ if (size3 === 0)
836
+ return hex_;
837
+ const hex = hex_.replace("0x", "");
838
+ if (hex.length > size3 * 2)
839
+ throw new SizeExceedsPaddingSizeError({
840
+ size: Math.ceil(hex.length / 2),
841
+ targetSize: size3,
842
+ type: "Hex"
843
+ });
844
+ return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size3 * 2, "0")}`;
845
+ }
846
+
847
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/Hex.js
848
+ function fromNumber(value, options = {}) {
849
+ const { signed, size: size3 } = options;
850
+ const value_ = BigInt(value);
851
+ let maxValue;
852
+ if (size3) {
853
+ if (signed)
854
+ maxValue = (1n << BigInt(size3) * 8n - 1n) - 1n;
855
+ else
856
+ maxValue = 2n ** (BigInt(size3) * 8n) - 1n;
857
+ } else if (typeof value === "number") {
858
+ maxValue = BigInt(Number.MAX_SAFE_INTEGER);
859
+ }
860
+ const minValue = typeof maxValue === "bigint" && signed ? -maxValue - 1n : 0;
861
+ if (maxValue && value_ > maxValue || value_ < minValue) {
862
+ const suffix = typeof value === "bigint" ? "n" : "";
863
+ throw new IntegerOutOfRangeError({
864
+ max: maxValue ? `${maxValue}${suffix}` : void 0,
865
+ min: `${minValue}${suffix}`,
866
+ signed,
867
+ size: size3,
868
+ value: `${value}${suffix}`
869
+ });
870
+ }
871
+ const stringValue = (signed && value_ < 0 ? (1n << BigInt(size3 * 8)) + BigInt(value_) : value_).toString(16);
872
+ const hex = `0x${stringValue}`;
873
+ if (size3)
874
+ return padLeft(hex, size3);
875
+ return hex;
876
+ }
877
+ function padLeft(value, size3) {
878
+ return pad(value, { dir: "left", size: size3 });
879
+ }
880
+ var IntegerOutOfRangeError = class extends BaseError2 {
881
+ constructor({ max, min, signed, size: size3, value }) {
882
+ super(`Number \`${value}\` is not in safe${size3 ? ` ${size3 * 8}-bit` : ""}${signed ? " signed" : " unsigned"} integer range ${max ? `(\`${min}\` to \`${max}\`)` : `(above \`${min}\`)`}`);
883
+ Object.defineProperty(this, "name", {
884
+ enumerable: true,
885
+ configurable: true,
886
+ writable: true,
887
+ value: "Hex.IntegerOutOfRangeError"
888
+ });
889
+ }
890
+ };
891
+ var SizeExceedsPaddingSizeError = class extends BaseError2 {
892
+ constructor({ size: size3, targetSize, type }) {
893
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (\`${size3}\`) exceeds padding size (\`${targetSize}\`).`);
894
+ Object.defineProperty(this, "name", {
895
+ enumerable: true,
896
+ configurable: true,
897
+ writable: true,
898
+ value: "Hex.SizeExceedsPaddingSizeError"
899
+ });
900
+ }
901
+ };
902
+
903
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/Withdrawal.js
904
+ function toRpc(withdrawal) {
905
+ return {
906
+ address: withdrawal.address,
907
+ amount: fromNumber(withdrawal.amount),
908
+ index: fromNumber(withdrawal.index),
909
+ validatorIndex: fromNumber(withdrawal.validatorIndex)
910
+ };
911
+ }
912
+
913
+ // ../../node_modules/.pnpm/ox@0.9.6_typescript@5.9.3_zod@4.1.11/node_modules/ox/_esm/core/BlockOverrides.js
914
+ function toRpc2(blockOverrides) {
915
+ return {
916
+ ...typeof blockOverrides.baseFeePerGas === "bigint" && {
917
+ baseFeePerGas: fromNumber(blockOverrides.baseFeePerGas)
918
+ },
919
+ ...typeof blockOverrides.blobBaseFee === "bigint" && {
920
+ blobBaseFee: fromNumber(blockOverrides.blobBaseFee)
921
+ },
922
+ ...typeof blockOverrides.feeRecipient === "string" && {
923
+ feeRecipient: blockOverrides.feeRecipient
924
+ },
925
+ ...typeof blockOverrides.gasLimit === "bigint" && {
926
+ gasLimit: fromNumber(blockOverrides.gasLimit)
927
+ },
928
+ ...typeof blockOverrides.number === "bigint" && {
929
+ number: fromNumber(blockOverrides.number)
930
+ },
931
+ ...typeof blockOverrides.prevRandao === "bigint" && {
932
+ prevRandao: fromNumber(blockOverrides.prevRandao)
933
+ },
934
+ ...typeof blockOverrides.time === "bigint" && {
935
+ time: fromNumber(blockOverrides.time)
936
+ },
937
+ ...blockOverrides.withdrawals && {
938
+ withdrawals: blockOverrides.withdrawals.map(toRpc)
939
+ }
940
+ };
941
+ }
942
+
943
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/accounts/utils/parseAccount.js
695
944
  function parseAccount(account) {
696
945
  if (typeof account === "string")
697
946
  return { address: account, type: "json-rpc" };
698
947
  return account;
699
948
  }
700
949
 
701
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/abis.js
950
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/abis.js
702
951
  var multicall3Abi = [
703
952
  {
704
953
  inputs: [
@@ -740,28 +989,121 @@ var multicall3Abi = [
740
989
  ],
741
990
  stateMutability: "view",
742
991
  type: "function"
992
+ },
993
+ {
994
+ inputs: [],
995
+ name: "getCurrentBlockTimestamp",
996
+ outputs: [
997
+ {
998
+ internalType: "uint256",
999
+ name: "timestamp",
1000
+ type: "uint256"
1001
+ }
1002
+ ],
1003
+ stateMutability: "view",
1004
+ type: "function"
1005
+ }
1006
+ ];
1007
+ var batchGatewayAbi = [
1008
+ {
1009
+ name: "query",
1010
+ type: "function",
1011
+ stateMutability: "view",
1012
+ inputs: [
1013
+ {
1014
+ type: "tuple[]",
1015
+ name: "queries",
1016
+ components: [
1017
+ {
1018
+ type: "address",
1019
+ name: "sender"
1020
+ },
1021
+ {
1022
+ type: "string[]",
1023
+ name: "urls"
1024
+ },
1025
+ {
1026
+ type: "bytes",
1027
+ name: "data"
1028
+ }
1029
+ ]
1030
+ }
1031
+ ],
1032
+ outputs: [
1033
+ {
1034
+ type: "bool[]",
1035
+ name: "failures"
1036
+ },
1037
+ {
1038
+ type: "bytes[]",
1039
+ name: "responses"
1040
+ }
1041
+ ]
1042
+ },
1043
+ {
1044
+ name: "HttpError",
1045
+ type: "error",
1046
+ inputs: [
1047
+ {
1048
+ type: "uint16",
1049
+ name: "status"
1050
+ },
1051
+ {
1052
+ type: "string",
1053
+ name: "message"
1054
+ }
1055
+ ]
743
1056
  }
744
1057
  ];
745
1058
  var universalResolverErrors = [
746
1059
  {
747
- inputs: [],
748
- name: "ResolverNotFound",
1060
+ inputs: [
1061
+ {
1062
+ name: "dns",
1063
+ type: "bytes"
1064
+ }
1065
+ ],
1066
+ name: "DNSDecodingFailed",
1067
+ type: "error"
1068
+ },
1069
+ {
1070
+ inputs: [
1071
+ {
1072
+ name: "ens",
1073
+ type: "string"
1074
+ }
1075
+ ],
1076
+ name: "DNSEncodingFailed",
749
1077
  type: "error"
750
1078
  },
751
1079
  {
752
1080
  inputs: [],
753
- name: "ResolverWildcardNotSupported",
1081
+ name: "EmptyAddress",
1082
+ type: "error"
1083
+ },
1084
+ {
1085
+ inputs: [
1086
+ {
1087
+ name: "status",
1088
+ type: "uint16"
1089
+ },
1090
+ {
1091
+ name: "message",
1092
+ type: "string"
1093
+ }
1094
+ ],
1095
+ name: "HttpError",
754
1096
  type: "error"
755
1097
  },
756
1098
  {
757
1099
  inputs: [],
758
- name: "ResolverNotContract",
1100
+ name: "InvalidBatchGatewayResponse",
759
1101
  type: "error"
760
1102
  },
761
1103
  {
762
1104
  inputs: [
763
1105
  {
764
- name: "returnData",
1106
+ name: "errorData",
765
1107
  type: "bytes"
766
1108
  }
767
1109
  ],
@@ -771,41 +1113,57 @@ var universalResolverErrors = [
771
1113
  {
772
1114
  inputs: [
773
1115
  {
774
- components: [
775
- {
776
- name: "status",
777
- type: "uint16"
778
- },
779
- {
780
- name: "message",
781
- type: "string"
782
- }
783
- ],
784
- name: "errors",
785
- type: "tuple[]"
1116
+ name: "name",
1117
+ type: "bytes"
1118
+ },
1119
+ {
1120
+ name: "resolver",
1121
+ type: "address"
786
1122
  }
787
1123
  ],
788
- name: "HttpError",
1124
+ name: "ResolverNotContract",
789
1125
  type: "error"
790
- }
791
- ];
792
- var universalResolverResolveAbi = [
793
- ...universalResolverErrors,
1126
+ },
794
1127
  {
795
- name: "resolve",
796
- type: "function",
797
- stateMutability: "view",
798
1128
  inputs: [
799
- { name: "name", type: "bytes" },
800
- { name: "data", type: "bytes" }
1129
+ {
1130
+ name: "name",
1131
+ type: "bytes"
1132
+ }
801
1133
  ],
802
- outputs: [
803
- { name: "", type: "bytes" },
804
- { name: "address", type: "address" }
805
- ]
1134
+ name: "ResolverNotFound",
1135
+ type: "error"
1136
+ },
1137
+ {
1138
+ inputs: [
1139
+ {
1140
+ name: "primary",
1141
+ type: "string"
1142
+ },
1143
+ {
1144
+ name: "primaryAddress",
1145
+ type: "bytes"
1146
+ }
1147
+ ],
1148
+ name: "ReverseAddressMismatch",
1149
+ type: "error"
806
1150
  },
807
1151
  {
808
- name: "resolve",
1152
+ inputs: [
1153
+ {
1154
+ internalType: "bytes4",
1155
+ name: "selector",
1156
+ type: "bytes4"
1157
+ }
1158
+ ],
1159
+ name: "UnsupportedResolverProfile",
1160
+ type: "error"
1161
+ }
1162
+ ];
1163
+ var universalResolverResolveAbi = [
1164
+ ...universalResolverErrors,
1165
+ {
1166
+ name: "resolveWithGateways",
809
1167
  type: "function",
810
1168
  stateMutability: "view",
811
1169
  inputs: [
@@ -822,50 +1180,39 @@ var universalResolverResolveAbi = [
822
1180
  var universalResolverReverseAbi = [
823
1181
  ...universalResolverErrors,
824
1182
  {
825
- name: "reverse",
826
- type: "function",
827
- stateMutability: "view",
828
- inputs: [{ type: "bytes", name: "reverseName" }],
829
- outputs: [
830
- { type: "string", name: "resolvedName" },
831
- { type: "address", name: "resolvedAddress" },
832
- { type: "address", name: "reverseResolver" },
833
- { type: "address", name: "resolver" }
834
- ]
835
- },
836
- {
837
- name: "reverse",
1183
+ name: "reverseWithGateways",
838
1184
  type: "function",
839
1185
  stateMutability: "view",
840
1186
  inputs: [
841
1187
  { type: "bytes", name: "reverseName" },
1188
+ { type: "uint256", name: "coinType" },
842
1189
  { type: "string[]", name: "gateways" }
843
1190
  ],
844
1191
  outputs: [
845
1192
  { type: "string", name: "resolvedName" },
846
- { type: "address", name: "resolvedAddress" },
847
- { type: "address", name: "reverseResolver" },
848
- { type: "address", name: "resolver" }
1193
+ { type: "address", name: "resolver" },
1194
+ { type: "address", name: "reverseResolver" }
849
1195
  ]
850
1196
  }
851
1197
  ];
852
1198
 
853
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/contract.js
1199
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/contract.js
854
1200
  var aggregate3Signature = "0x82ad56cb";
855
1201
 
856
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/contracts.js
1202
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/contracts.js
857
1203
  var deploylessCallViaBytecodeBytecode = "0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe";
858
1204
  var deploylessCallViaFactoryBytecode = "0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";
1205
+ var multicall3Bytecode = "0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033";
859
1206
 
860
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/version.js
861
- var version2 = "2.22.12";
1207
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/version.js
1208
+ var version3 = "2.37.9";
862
1209
 
863
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/base.js
1210
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/base.js
864
1211
  var errorConfig = {
865
- getDocsUrl: ({ docsBaseUrl, docsPath: docsPath4 = "", docsSlug }) => docsPath4 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath4}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
866
- version: `viem@${version2}`
1212
+ getDocsUrl: ({ docsBaseUrl, docsPath: docsPath6 = "", docsSlug }) => docsPath6 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath6}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
1213
+ version: `viem@${version3}`
867
1214
  };
868
- var BaseError2 = class _BaseError extends Error {
1215
+ var BaseError3 = class _BaseError extends Error {
869
1216
  constructor(shortMessage, args = {}) {
870
1217
  const details = (() => {
871
1218
  if (args.cause instanceof _BaseError)
@@ -874,12 +1221,12 @@ var BaseError2 = class _BaseError extends Error {
874
1221
  return args.cause.message;
875
1222
  return args.details;
876
1223
  })();
877
- const docsPath4 = (() => {
1224
+ const docsPath6 = (() => {
878
1225
  if (args.cause instanceof _BaseError)
879
1226
  return args.cause.docsPath || args.docsPath;
880
1227
  return args.docsPath;
881
1228
  })();
882
- const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath: docsPath4 });
1229
+ const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath: docsPath6 });
883
1230
  const message = [
884
1231
  shortMessage || "An error occurred.",
885
1232
  "",
@@ -926,26 +1273,26 @@ var BaseError2 = class _BaseError extends Error {
926
1273
  value: "BaseError"
927
1274
  });
928
1275
  this.details = details;
929
- this.docsPath = docsPath4;
1276
+ this.docsPath = docsPath6;
930
1277
  this.metaMessages = args.metaMessages;
931
1278
  this.name = args.name ?? this.name;
932
1279
  this.shortMessage = shortMessage;
933
- this.version = version2;
1280
+ this.version = version3;
934
1281
  }
935
1282
  walk(fn) {
936
- return walk(this, fn);
1283
+ return walk2(this, fn);
937
1284
  }
938
1285
  };
939
- function walk(err, fn) {
1286
+ function walk2(err, fn) {
940
1287
  if (fn?.(err))
941
1288
  return err;
942
1289
  if (err && typeof err === "object" && "cause" in err && err.cause !== void 0)
943
- return walk(err.cause, fn);
1290
+ return walk2(err.cause, fn);
944
1291
  return fn ? null : err;
945
1292
  }
946
1293
 
947
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/chain.js
948
- var ChainDoesNotSupportContract = class extends BaseError2 {
1294
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/chain.js
1295
+ var ChainDoesNotSupportContract = class extends BaseError3 {
949
1296
  constructor({ blockNumber, chain, contract }) {
950
1297
  super(`Chain "${chain.name}" does not support contract "${contract.name}".`, {
951
1298
  metaMessages: [
@@ -960,7 +1307,7 @@ var ChainDoesNotSupportContract = class extends BaseError2 {
960
1307
  });
961
1308
  }
962
1309
  };
963
- var ClientChainNotConfiguredError = class extends BaseError2 {
1310
+ var ClientChainNotConfiguredError = class extends BaseError3 {
964
1311
  constructor() {
965
1312
  super("No chain was provided to the Client.", {
966
1313
  name: "ClientChainNotConfiguredError"
@@ -968,7 +1315,7 @@ var ClientChainNotConfiguredError = class extends BaseError2 {
968
1315
  }
969
1316
  };
970
1317
 
971
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/solidity.js
1318
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/solidity.js
972
1319
  var solidityError = {
973
1320
  inputs: [
974
1321
  {
@@ -990,7 +1337,7 @@ var solidityPanic = {
990
1337
  type: "error"
991
1338
  };
992
1339
 
993
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/formatAbiItem.js
1340
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/formatAbiItem.js
994
1341
  function formatAbiItem2(abiItem, { includeName = false } = {}) {
995
1342
  if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
996
1343
  throw new InvalidDefinitionTypeError(abiItem.type);
@@ -1008,7 +1355,7 @@ function formatAbiParam(param, { includeName }) {
1008
1355
  return param.type + (includeName && param.name ? ` ${param.name}` : "");
1009
1356
  }
1010
1357
 
1011
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/isHex.js
1358
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/isHex.js
1012
1359
  function isHex(value, { strict = true } = {}) {
1013
1360
  if (!value)
1014
1361
  return false;
@@ -1017,42 +1364,42 @@ function isHex(value, { strict = true } = {}) {
1017
1364
  return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
1018
1365
  }
1019
1366
 
1020
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/size.js
1021
- function size(value) {
1367
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/size.js
1368
+ function size2(value) {
1022
1369
  if (isHex(value, { strict: false }))
1023
1370
  return Math.ceil((value.length - 2) / 2);
1024
1371
  return value.length;
1025
1372
  }
1026
1373
 
1027
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js
1028
- var AbiConstructorNotFoundError = class extends BaseError2 {
1029
- constructor({ docsPath: docsPath4 }) {
1374
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/abi.js
1375
+ var AbiConstructorNotFoundError = class extends BaseError3 {
1376
+ constructor({ docsPath: docsPath6 }) {
1030
1377
  super([
1031
1378
  "A constructor was not found on the ABI.",
1032
1379
  "Make sure you are using the correct ABI and that the constructor exists on it."
1033
1380
  ].join("\n"), {
1034
- docsPath: docsPath4,
1381
+ docsPath: docsPath6,
1035
1382
  name: "AbiConstructorNotFoundError"
1036
1383
  });
1037
1384
  }
1038
1385
  };
1039
- var AbiConstructorParamsNotFoundError = class extends BaseError2 {
1040
- constructor({ docsPath: docsPath4 }) {
1386
+ var AbiConstructorParamsNotFoundError = class extends BaseError3 {
1387
+ constructor({ docsPath: docsPath6 }) {
1041
1388
  super([
1042
1389
  "Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.",
1043
1390
  "Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."
1044
1391
  ].join("\n"), {
1045
- docsPath: docsPath4,
1392
+ docsPath: docsPath6,
1046
1393
  name: "AbiConstructorParamsNotFoundError"
1047
1394
  });
1048
1395
  }
1049
1396
  };
1050
- var AbiDecodingDataSizeTooSmallError = class extends BaseError2 {
1051
- constructor({ data, params, size: size2 }) {
1052
- super([`Data size of ${size2} bytes is too small for given parameters.`].join("\n"), {
1397
+ var AbiDecodingDataSizeTooSmallError = class extends BaseError3 {
1398
+ constructor({ data, params, size: size3 }) {
1399
+ super([`Data size of ${size3} bytes is too small for given parameters.`].join("\n"), {
1053
1400
  metaMessages: [
1054
1401
  `Params: (${formatAbiParams(params, { includeName: true })})`,
1055
- `Data: ${data} (${size2} bytes)`
1402
+ `Data: ${data} (${size3} bytes)`
1056
1403
  ],
1057
1404
  name: "AbiDecodingDataSizeTooSmallError"
1058
1405
  });
@@ -1076,17 +1423,17 @@ var AbiDecodingDataSizeTooSmallError = class extends BaseError2 {
1076
1423
  });
1077
1424
  this.data = data;
1078
1425
  this.params = params;
1079
- this.size = size2;
1426
+ this.size = size3;
1080
1427
  }
1081
1428
  };
1082
- var AbiDecodingZeroDataError = class extends BaseError2 {
1429
+ var AbiDecodingZeroDataError = class extends BaseError3 {
1083
1430
  constructor() {
1084
1431
  super('Cannot decode zero data ("0x") with ABI parameters.', {
1085
1432
  name: "AbiDecodingZeroDataError"
1086
1433
  });
1087
1434
  }
1088
1435
  };
1089
- var AbiEncodingArrayLengthMismatchError = class extends BaseError2 {
1436
+ var AbiEncodingArrayLengthMismatchError = class extends BaseError3 {
1090
1437
  constructor({ expectedLength, givenLength, type }) {
1091
1438
  super([
1092
1439
  `ABI encoding array length mismatch for type ${type}.`,
@@ -1095,12 +1442,12 @@ var AbiEncodingArrayLengthMismatchError = class extends BaseError2 {
1095
1442
  ].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
1096
1443
  }
1097
1444
  };
1098
- var AbiEncodingBytesSizeMismatchError = class extends BaseError2 {
1445
+ var AbiEncodingBytesSizeMismatchError = class extends BaseError3 {
1099
1446
  constructor({ expectedSize, value }) {
1100
- super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
1447
+ super(`Size of bytes "${value}" (bytes${size2(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
1101
1448
  }
1102
1449
  };
1103
- var AbiEncodingLengthMismatchError = class extends BaseError2 {
1450
+ var AbiEncodingLengthMismatchError = class extends BaseError3 {
1104
1451
  constructor({ expectedLength, givenLength }) {
1105
1452
  super([
1106
1453
  "ABI encoding params/values length mismatch.",
@@ -1109,14 +1456,37 @@ var AbiEncodingLengthMismatchError = class extends BaseError2 {
1109
1456
  ].join("\n"), { name: "AbiEncodingLengthMismatchError" });
1110
1457
  }
1111
1458
  };
1112
- var AbiErrorSignatureNotFoundError = class extends BaseError2 {
1113
- constructor(signature, { docsPath: docsPath4 }) {
1459
+ var AbiErrorInputsNotFoundError = class extends BaseError3 {
1460
+ constructor(errorName, { docsPath: docsPath6 }) {
1461
+ super([
1462
+ `Arguments (\`args\`) were provided to "${errorName}", but "${errorName}" on the ABI does not contain any parameters (\`inputs\`).`,
1463
+ "Cannot encode error result without knowing what the parameter types are.",
1464
+ "Make sure you are using the correct ABI and that the inputs exist on it."
1465
+ ].join("\n"), {
1466
+ docsPath: docsPath6,
1467
+ name: "AbiErrorInputsNotFoundError"
1468
+ });
1469
+ }
1470
+ };
1471
+ var AbiErrorNotFoundError = class extends BaseError3 {
1472
+ constructor(errorName, { docsPath: docsPath6 } = {}) {
1473
+ super([
1474
+ `Error ${errorName ? `"${errorName}" ` : ""}not found on ABI.`,
1475
+ "Make sure you are using the correct ABI and that the error exists on it."
1476
+ ].join("\n"), {
1477
+ docsPath: docsPath6,
1478
+ name: "AbiErrorNotFoundError"
1479
+ });
1480
+ }
1481
+ };
1482
+ var AbiErrorSignatureNotFoundError = class extends BaseError3 {
1483
+ constructor(signature, { docsPath: docsPath6 }) {
1114
1484
  super([
1115
1485
  `Encoded error signature "${signature}" not found on ABI.`,
1116
1486
  "Make sure you are using the correct ABI and that the error exists on it.",
1117
1487
  `You can look up the decoded signature here: https://openchain.xyz/signatures?query=${signature}.`
1118
1488
  ].join("\n"), {
1119
- docsPath: docsPath4,
1489
+ docsPath: docsPath6,
1120
1490
  name: "AbiErrorSignatureNotFoundError"
1121
1491
  });
1122
1492
  Object.defineProperty(this, "signature", {
@@ -1128,30 +1498,42 @@ var AbiErrorSignatureNotFoundError = class extends BaseError2 {
1128
1498
  this.signature = signature;
1129
1499
  }
1130
1500
  };
1131
- var AbiFunctionNotFoundError = class extends BaseError2 {
1132
- constructor(functionName, { docsPath: docsPath4 } = {}) {
1501
+ var AbiFunctionNotFoundError = class extends BaseError3 {
1502
+ constructor(functionName, { docsPath: docsPath6 } = {}) {
1133
1503
  super([
1134
1504
  `Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
1135
1505
  "Make sure you are using the correct ABI and that the function exists on it."
1136
1506
  ].join("\n"), {
1137
- docsPath: docsPath4,
1507
+ docsPath: docsPath6,
1138
1508
  name: "AbiFunctionNotFoundError"
1139
1509
  });
1140
1510
  }
1141
1511
  };
1142
- var AbiFunctionOutputsNotFoundError = class extends BaseError2 {
1143
- constructor(functionName, { docsPath: docsPath4 }) {
1512
+ var AbiFunctionOutputsNotFoundError = class extends BaseError3 {
1513
+ constructor(functionName, { docsPath: docsPath6 }) {
1144
1514
  super([
1145
1515
  `Function "${functionName}" does not contain any \`outputs\` on ABI.`,
1146
1516
  "Cannot decode function result without knowing what the parameter types are.",
1147
1517
  "Make sure you are using the correct ABI and that the function exists on it."
1148
1518
  ].join("\n"), {
1149
- docsPath: docsPath4,
1519
+ docsPath: docsPath6,
1150
1520
  name: "AbiFunctionOutputsNotFoundError"
1151
1521
  });
1152
1522
  }
1153
1523
  };
1154
- var AbiItemAmbiguityError = class extends BaseError2 {
1524
+ var AbiFunctionSignatureNotFoundError = class extends BaseError3 {
1525
+ constructor(signature, { docsPath: docsPath6 }) {
1526
+ super([
1527
+ `Encoded function signature "${signature}" not found on ABI.`,
1528
+ "Make sure you are using the correct ABI and that the function exists on it.",
1529
+ `You can look up the signature here: https://openchain.xyz/signatures?query=${signature}.`
1530
+ ].join("\n"), {
1531
+ docsPath: docsPath6,
1532
+ name: "AbiFunctionSignatureNotFoundError"
1533
+ });
1534
+ }
1535
+ };
1536
+ var AbiItemAmbiguityError = class extends BaseError3 {
1155
1537
  constructor(x, y) {
1156
1538
  super("Found ambiguous types in overloaded ABI items.", {
1157
1539
  metaMessages: [
@@ -1165,30 +1547,30 @@ var AbiItemAmbiguityError = class extends BaseError2 {
1165
1547
  });
1166
1548
  }
1167
1549
  };
1168
- var InvalidAbiEncodingTypeError = class extends BaseError2 {
1169
- constructor(type, { docsPath: docsPath4 }) {
1550
+ var InvalidAbiEncodingTypeError = class extends BaseError3 {
1551
+ constructor(type, { docsPath: docsPath6 }) {
1170
1552
  super([
1171
1553
  `Type "${type}" is not a valid encoding type.`,
1172
1554
  "Please provide a valid ABI type."
1173
- ].join("\n"), { docsPath: docsPath4, name: "InvalidAbiEncodingType" });
1555
+ ].join("\n"), { docsPath: docsPath6, name: "InvalidAbiEncodingType" });
1174
1556
  }
1175
1557
  };
1176
- var InvalidAbiDecodingTypeError = class extends BaseError2 {
1177
- constructor(type, { docsPath: docsPath4 }) {
1558
+ var InvalidAbiDecodingTypeError = class extends BaseError3 {
1559
+ constructor(type, { docsPath: docsPath6 }) {
1178
1560
  super([
1179
1561
  `Type "${type}" is not a valid decoding type.`,
1180
1562
  "Please provide a valid ABI type."
1181
- ].join("\n"), { docsPath: docsPath4, name: "InvalidAbiDecodingType" });
1563
+ ].join("\n"), { docsPath: docsPath6, name: "InvalidAbiDecodingType" });
1182
1564
  }
1183
1565
  };
1184
- var InvalidArrayError = class extends BaseError2 {
1566
+ var InvalidArrayError = class extends BaseError3 {
1185
1567
  constructor(value) {
1186
1568
  super([`Value "${value}" is not a valid array.`].join("\n"), {
1187
1569
  name: "InvalidArrayError"
1188
1570
  });
1189
1571
  }
1190
1572
  };
1191
- var InvalidDefinitionTypeError = class extends BaseError2 {
1573
+ var InvalidDefinitionTypeError = class extends BaseError3 {
1192
1574
  constructor(type) {
1193
1575
  super([
1194
1576
  `"${type}" is not a valid definition type.`,
@@ -1197,24 +1579,24 @@ var InvalidDefinitionTypeError = class extends BaseError2 {
1197
1579
  }
1198
1580
  };
1199
1581
 
1200
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js
1201
- var SliceOffsetOutOfBoundsError = class extends BaseError2 {
1202
- constructor({ offset, position, size: size2 }) {
1203
- super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2}).`, { name: "SliceOffsetOutOfBoundsError" });
1582
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/data.js
1583
+ var SliceOffsetOutOfBoundsError2 = class extends BaseError3 {
1584
+ constructor({ offset, position, size: size3 }) {
1585
+ super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size3}).`, { name: "SliceOffsetOutOfBoundsError" });
1204
1586
  }
1205
1587
  };
1206
- var SizeExceedsPaddingSizeError = class extends BaseError2 {
1207
- constructor({ size: size2, targetSize, type }) {
1208
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
1588
+ var SizeExceedsPaddingSizeError2 = class extends BaseError3 {
1589
+ constructor({ size: size3, targetSize, type }) {
1590
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size3}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
1209
1591
  }
1210
1592
  };
1211
- var InvalidBytesLengthError = class extends BaseError2 {
1212
- constructor({ size: size2, targetSize, type }) {
1213
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size2} ${type} long.`, { name: "InvalidBytesLengthError" });
1593
+ var InvalidBytesLengthError = class extends BaseError3 {
1594
+ constructor({ size: size3, targetSize, type }) {
1595
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} is expected to be ${targetSize} ${type} long, but is ${size3} ${type} long.`, { name: "InvalidBytesLengthError" });
1214
1596
  }
1215
1597
  };
1216
1598
 
1217
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js
1599
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/slice.js
1218
1600
  function slice(value, start, end, { strict } = {}) {
1219
1601
  if (isHex(value, { strict: false }))
1220
1602
  return sliceHex(value, start, end, {
@@ -1224,94 +1606,94 @@ function slice(value, start, end, { strict } = {}) {
1224
1606
  strict
1225
1607
  });
1226
1608
  }
1227
- function assertStartOffset(value, start) {
1228
- if (typeof start === "number" && start > 0 && start > size(value) - 1)
1229
- throw new SliceOffsetOutOfBoundsError({
1609
+ function assertStartOffset2(value, start) {
1610
+ if (typeof start === "number" && start > 0 && start > size2(value) - 1)
1611
+ throw new SliceOffsetOutOfBoundsError2({
1230
1612
  offset: start,
1231
1613
  position: "start",
1232
- size: size(value)
1614
+ size: size2(value)
1233
1615
  });
1234
1616
  }
1235
- function assertEndOffset(value, start, end) {
1236
- if (typeof start === "number" && typeof end === "number" && size(value) !== end - start) {
1237
- throw new SliceOffsetOutOfBoundsError({
1617
+ function assertEndOffset2(value, start, end) {
1618
+ if (typeof start === "number" && typeof end === "number" && size2(value) !== end - start) {
1619
+ throw new SliceOffsetOutOfBoundsError2({
1238
1620
  offset: end,
1239
1621
  position: "end",
1240
- size: size(value)
1622
+ size: size2(value)
1241
1623
  });
1242
1624
  }
1243
1625
  }
1244
1626
  function sliceBytes(value_, start, end, { strict } = {}) {
1245
- assertStartOffset(value_, start);
1627
+ assertStartOffset2(value_, start);
1246
1628
  const value = value_.slice(start, end);
1247
1629
  if (strict)
1248
- assertEndOffset(value, start, end);
1630
+ assertEndOffset2(value, start, end);
1249
1631
  return value;
1250
1632
  }
1251
1633
  function sliceHex(value_, start, end, { strict } = {}) {
1252
- assertStartOffset(value_, start);
1634
+ assertStartOffset2(value_, start);
1253
1635
  const value = `0x${value_.replace("0x", "").slice((start ?? 0) * 2, (end ?? value_.length) * 2)}`;
1254
1636
  if (strict)
1255
- assertEndOffset(value, start, end);
1637
+ assertEndOffset2(value, start, end);
1256
1638
  return value;
1257
1639
  }
1258
1640
 
1259
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js
1260
- function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
1641
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/pad.js
1642
+ function pad2(hexOrBytes, { dir, size: size3 = 32 } = {}) {
1261
1643
  if (typeof hexOrBytes === "string")
1262
- return padHex(hexOrBytes, { dir, size: size2 });
1263
- return padBytes(hexOrBytes, { dir, size: size2 });
1644
+ return padHex(hexOrBytes, { dir, size: size3 });
1645
+ return padBytes(hexOrBytes, { dir, size: size3 });
1264
1646
  }
1265
- function padHex(hex_, { dir, size: size2 = 32 } = {}) {
1266
- if (size2 === null)
1647
+ function padHex(hex_, { dir, size: size3 = 32 } = {}) {
1648
+ if (size3 === null)
1267
1649
  return hex_;
1268
1650
  const hex = hex_.replace("0x", "");
1269
- if (hex.length > size2 * 2)
1270
- throw new SizeExceedsPaddingSizeError({
1651
+ if (hex.length > size3 * 2)
1652
+ throw new SizeExceedsPaddingSizeError2({
1271
1653
  size: Math.ceil(hex.length / 2),
1272
- targetSize: size2,
1654
+ targetSize: size3,
1273
1655
  type: "hex"
1274
1656
  });
1275
- return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size2 * 2, "0")}`;
1657
+ return `0x${hex[dir === "right" ? "padEnd" : "padStart"](size3 * 2, "0")}`;
1276
1658
  }
1277
- function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
1278
- if (size2 === null)
1659
+ function padBytes(bytes, { dir, size: size3 = 32 } = {}) {
1660
+ if (size3 === null)
1279
1661
  return bytes;
1280
- if (bytes.length > size2)
1281
- throw new SizeExceedsPaddingSizeError({
1662
+ if (bytes.length > size3)
1663
+ throw new SizeExceedsPaddingSizeError2({
1282
1664
  size: bytes.length,
1283
- targetSize: size2,
1665
+ targetSize: size3,
1284
1666
  type: "bytes"
1285
1667
  });
1286
- const paddedBytes = new Uint8Array(size2);
1287
- for (let i = 0; i < size2; i++) {
1668
+ const paddedBytes = new Uint8Array(size3);
1669
+ for (let i = 0; i < size3; i++) {
1288
1670
  const padEnd = dir === "right";
1289
- paddedBytes[padEnd ? i : size2 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
1671
+ paddedBytes[padEnd ? i : size3 - i - 1] = bytes[padEnd ? i : bytes.length - i - 1];
1290
1672
  }
1291
1673
  return paddedBytes;
1292
1674
  }
1293
1675
 
1294
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js
1295
- var IntegerOutOfRangeError = class extends BaseError2 {
1296
- constructor({ max, min, signed, size: size2, value }) {
1297
- super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
1676
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/encoding.js
1677
+ var IntegerOutOfRangeError2 = class extends BaseError3 {
1678
+ constructor({ max, min, signed, size: size3, value }) {
1679
+ super(`Number "${value}" is not in safe ${size3 ? `${size3 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
1298
1680
  }
1299
1681
  };
1300
- var InvalidBytesBooleanError = class extends BaseError2 {
1682
+ var InvalidBytesBooleanError = class extends BaseError3 {
1301
1683
  constructor(bytes) {
1302
1684
  super(`Bytes value "${bytes}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`, {
1303
1685
  name: "InvalidBytesBooleanError"
1304
1686
  });
1305
1687
  }
1306
1688
  };
1307
- var SizeOverflowError = class extends BaseError2 {
1689
+ var SizeOverflowError2 = class extends BaseError3 {
1308
1690
  constructor({ givenSize, maxSize }) {
1309
1691
  super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
1310
1692
  }
1311
1693
  };
1312
1694
 
1313
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/trim.js
1314
- function trim(hexOrBytes, { dir = "left" } = {}) {
1695
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/trim.js
1696
+ function trim2(hexOrBytes, { dir = "left" } = {}) {
1315
1697
  let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
1316
1698
  let sliceLength = 0;
1317
1699
  for (let i = 0; i < data.length - 1; i++) {
@@ -1329,32 +1711,32 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
1329
1711
  return data;
1330
1712
  }
1331
1713
 
1332
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js
1333
- function assertSize(hexOrBytes, { size: size2 }) {
1334
- if (size(hexOrBytes) > size2)
1335
- throw new SizeOverflowError({
1336
- givenSize: size(hexOrBytes),
1337
- maxSize: size2
1714
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/fromHex.js
1715
+ function assertSize2(hexOrBytes, { size: size3 }) {
1716
+ if (size2(hexOrBytes) > size3)
1717
+ throw new SizeOverflowError2({
1718
+ givenSize: size2(hexOrBytes),
1719
+ maxSize: size3
1338
1720
  });
1339
1721
  }
1340
1722
  function hexToBigInt(hex, opts = {}) {
1341
1723
  const { signed } = opts;
1342
1724
  if (opts.size)
1343
- assertSize(hex, { size: opts.size });
1725
+ assertSize2(hex, { size: opts.size });
1344
1726
  const value = BigInt(hex);
1345
1727
  if (!signed)
1346
1728
  return value;
1347
- const size2 = (hex.length - 2) / 2;
1348
- const max = (1n << BigInt(size2) * 8n - 1n) - 1n;
1729
+ const size3 = (hex.length - 2) / 2;
1730
+ const max = (1n << BigInt(size3) * 8n - 1n) - 1n;
1349
1731
  if (value <= max)
1350
1732
  return value;
1351
- return value - BigInt(`0x${"f".padStart(size2 * 2, "f")}`) - 1n;
1733
+ return value - BigInt(`0x${"f".padStart(size3 * 2, "f")}`) - 1n;
1352
1734
  }
1353
1735
  function hexToNumber(hex, opts = {}) {
1354
1736
  return Number(hexToBigInt(hex, opts));
1355
1737
  }
1356
1738
 
1357
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js
1739
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/toHex.js
1358
1740
  var hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_v, i) => i.toString(16).padStart(2, "0"));
1359
1741
  function toHex(value, opts = {}) {
1360
1742
  if (typeof value === "number" || typeof value === "bigint")
@@ -1369,8 +1751,8 @@ function toHex(value, opts = {}) {
1369
1751
  function boolToHex(value, opts = {}) {
1370
1752
  const hex = `0x${Number(value)}`;
1371
1753
  if (typeof opts.size === "number") {
1372
- assertSize(hex, { size: opts.size });
1373
- return pad(hex, { size: opts.size });
1754
+ assertSize2(hex, { size: opts.size });
1755
+ return pad2(hex, { size: opts.size });
1374
1756
  }
1375
1757
  return hex;
1376
1758
  }
@@ -1381,37 +1763,37 @@ function bytesToHex(value, opts = {}) {
1381
1763
  }
1382
1764
  const hex = `0x${string}`;
1383
1765
  if (typeof opts.size === "number") {
1384
- assertSize(hex, { size: opts.size });
1385
- return pad(hex, { dir: "right", size: opts.size });
1766
+ assertSize2(hex, { size: opts.size });
1767
+ return pad2(hex, { dir: "right", size: opts.size });
1386
1768
  }
1387
1769
  return hex;
1388
1770
  }
1389
1771
  function numberToHex(value_, opts = {}) {
1390
- const { signed, size: size2 } = opts;
1772
+ const { signed, size: size3 } = opts;
1391
1773
  const value = BigInt(value_);
1392
1774
  let maxValue;
1393
- if (size2) {
1775
+ if (size3) {
1394
1776
  if (signed)
1395
- maxValue = (1n << BigInt(size2) * 8n - 1n) - 1n;
1777
+ maxValue = (1n << BigInt(size3) * 8n - 1n) - 1n;
1396
1778
  else
1397
- maxValue = 2n ** (BigInt(size2) * 8n) - 1n;
1779
+ maxValue = 2n ** (BigInt(size3) * 8n) - 1n;
1398
1780
  } else if (typeof value_ === "number") {
1399
1781
  maxValue = BigInt(Number.MAX_SAFE_INTEGER);
1400
1782
  }
1401
1783
  const minValue = typeof maxValue === "bigint" && signed ? -maxValue - 1n : 0;
1402
1784
  if (maxValue && value > maxValue || value < minValue) {
1403
1785
  const suffix = typeof value_ === "bigint" ? "n" : "";
1404
- throw new IntegerOutOfRangeError({
1786
+ throw new IntegerOutOfRangeError2({
1405
1787
  max: maxValue ? `${maxValue}${suffix}` : void 0,
1406
1788
  min: `${minValue}${suffix}`,
1407
1789
  signed,
1408
- size: size2,
1790
+ size: size3,
1409
1791
  value: `${value_}${suffix}`
1410
1792
  });
1411
1793
  }
1412
- const hex = `0x${(signed && value < 0 ? (1n << BigInt(size2 * 8)) + BigInt(value) : value).toString(16)}`;
1413
- if (size2)
1414
- return pad(hex, { size: size2 });
1794
+ const hex = `0x${(signed && value < 0 ? (1n << BigInt(size3 * 8)) + BigInt(value) : value).toString(16)}`;
1795
+ if (size3)
1796
+ return pad2(hex, { size: size3 });
1415
1797
  return hex;
1416
1798
  }
1417
1799
  var encoder = /* @__PURE__ */ new TextEncoder();
@@ -1420,9 +1802,9 @@ function stringToHex(value_, opts = {}) {
1420
1802
  return bytesToHex(value, opts);
1421
1803
  }
1422
1804
 
1423
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js
1805
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/toBytes.js
1424
1806
  var encoder2 = /* @__PURE__ */ new TextEncoder();
1425
- function toBytes(value, opts = {}) {
1807
+ function toBytes2(value, opts = {}) {
1426
1808
  if (typeof value === "number" || typeof value === "bigint")
1427
1809
  return numberToBytes(value, opts);
1428
1810
  if (typeof value === "boolean")
@@ -1435,8 +1817,8 @@ function boolToBytes(value, opts = {}) {
1435
1817
  const bytes = new Uint8Array(1);
1436
1818
  bytes[0] = Number(value);
1437
1819
  if (typeof opts.size === "number") {
1438
- assertSize(bytes, { size: opts.size });
1439
- return pad(bytes, { size: opts.size });
1820
+ assertSize2(bytes, { size: opts.size });
1821
+ return pad2(bytes, { size: opts.size });
1440
1822
  }
1441
1823
  return bytes;
1442
1824
  }
@@ -1460,8 +1842,8 @@ function charCodeToBase16(char) {
1460
1842
  function hexToBytes(hex_, opts = {}) {
1461
1843
  let hex = hex_;
1462
1844
  if (opts.size) {
1463
- assertSize(hex, { size: opts.size });
1464
- hex = pad(hex, { dir: "right", size: opts.size });
1845
+ assertSize2(hex, { size: opts.size });
1846
+ hex = pad2(hex, { dir: "right", size: opts.size });
1465
1847
  }
1466
1848
  let hexString = hex.slice(2);
1467
1849
  if (hexString.length % 2)
@@ -1472,7 +1854,7 @@ function hexToBytes(hex_, opts = {}) {
1472
1854
  const nibbleLeft = charCodeToBase16(hexString.charCodeAt(j++));
1473
1855
  const nibbleRight = charCodeToBase16(hexString.charCodeAt(j++));
1474
1856
  if (nibbleLeft === void 0 || nibbleRight === void 0) {
1475
- throw new BaseError2(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
1857
+ throw new BaseError3(`Invalid byte sequence ("${hexString[j - 2]}${hexString[j - 1]}" in "${hexString}").`);
1476
1858
  }
1477
1859
  bytes[index] = nibbleLeft * 16 + nibbleRight;
1478
1860
  }
@@ -1485,115 +1867,22 @@ function numberToBytes(value, opts) {
1485
1867
  function stringToBytes(value, opts = {}) {
1486
1868
  const bytes = encoder2.encode(value);
1487
1869
  if (typeof opts.size === "number") {
1488
- assertSize(bytes, { size: opts.size });
1489
- return pad(bytes, { dir: "right", size: opts.size });
1870
+ assertSize2(bytes, { size: opts.size });
1871
+ return pad2(bytes, { dir: "right", size: opts.size });
1490
1872
  }
1491
1873
  return bytes;
1492
1874
  }
1493
1875
 
1494
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js
1495
- function anumber(n) {
1496
- if (!Number.isSafeInteger(n) || n < 0)
1497
- throw new Error("positive integer expected, got " + n);
1498
- }
1499
- function isBytes(a) {
1500
- return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
1501
- }
1502
- function abytes(b, ...lengths) {
1503
- if (!isBytes(b))
1504
- throw new Error("Uint8Array expected");
1505
- if (lengths.length > 0 && !lengths.includes(b.length))
1506
- throw new Error("Uint8Array expected of length " + lengths + ", got length=" + b.length);
1507
- }
1508
- function aexists(instance, checkFinished = true) {
1509
- if (instance.destroyed)
1510
- throw new Error("Hash instance has been destroyed");
1511
- if (checkFinished && instance.finished)
1512
- throw new Error("Hash#digest() has already been called");
1513
- }
1514
- function aoutput(out, instance) {
1515
- abytes(out);
1516
- const min = instance.outputLen;
1517
- if (out.length < min) {
1518
- throw new Error("digestInto() expects output buffer of length at least " + min);
1519
- }
1520
- }
1521
-
1522
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js
1523
- var U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
1524
- var _32n = /* @__PURE__ */ BigInt(32);
1525
- function fromBig(n, le = false) {
1526
- if (le)
1527
- return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
1528
- return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
1529
- }
1530
- function split(lst, le = false) {
1531
- let Ah = new Uint32Array(lst.length);
1532
- let Al = new Uint32Array(lst.length);
1533
- for (let i = 0; i < lst.length; i++) {
1534
- const { h, l } = fromBig(lst[i], le);
1535
- [Ah[i], Al[i]] = [h, l];
1536
- }
1537
- return [Ah, Al];
1538
- }
1539
- var rotlSH = (h, l, s) => h << s | l >>> 32 - s;
1540
- var rotlSL = (h, l, s) => l << s | h >>> 32 - s;
1541
- var rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
1542
- var rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
1543
-
1544
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js
1545
- var u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
1546
- var isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
1547
- var byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
1548
- function byteSwap32(arr) {
1549
- for (let i = 0; i < arr.length; i++) {
1550
- arr[i] = byteSwap(arr[i]);
1551
- }
1552
- }
1553
- function utf8ToBytes(str) {
1554
- if (typeof str !== "string")
1555
- throw new Error("utf8ToBytes expected string, got " + typeof str);
1556
- return new Uint8Array(new TextEncoder().encode(str));
1557
- }
1558
- function toBytes2(data) {
1559
- if (typeof data === "string")
1560
- data = utf8ToBytes(data);
1561
- abytes(data);
1562
- return data;
1563
- }
1564
- var Hash = class {
1565
- // Safe version that clones internal state
1566
- clone() {
1567
- return this._cloneInto();
1568
- }
1569
- };
1570
- function wrapConstructor(hashCons) {
1571
- const hashC = (msg) => hashCons().update(toBytes2(msg)).digest();
1572
- const tmp = hashCons();
1573
- hashC.outputLen = tmp.outputLen;
1574
- hashC.blockLen = tmp.blockLen;
1575
- hashC.create = () => hashCons();
1576
- return hashC;
1577
- }
1578
- function wrapXOFConstructorWithOpts(hashCons) {
1579
- const hashC = (msg, opts) => hashCons(opts).update(toBytes2(msg)).digest();
1580
- const tmp = hashCons({});
1581
- hashC.outputLen = tmp.outputLen;
1582
- hashC.blockLen = tmp.blockLen;
1583
- hashC.create = (opts) => hashCons(opts);
1584
- return hashC;
1585
- }
1586
-
1587
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js
1876
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
1877
+ var _0n = BigInt(0);
1878
+ var _1n = BigInt(1);
1879
+ var _2n = BigInt(2);
1880
+ var _7n = BigInt(7);
1881
+ var _256n = BigInt(256);
1882
+ var _0x71n = BigInt(113);
1588
1883
  var SHA3_PI = [];
1589
1884
  var SHA3_ROTL = [];
1590
1885
  var _SHA3_IOTA = [];
1591
- var _0n = /* @__PURE__ */ BigInt(0);
1592
- var _1n = /* @__PURE__ */ BigInt(1);
1593
- var _2n = /* @__PURE__ */ BigInt(2);
1594
- var _7n = /* @__PURE__ */ BigInt(7);
1595
- var _256n = /* @__PURE__ */ BigInt(256);
1596
- var _0x71n = /* @__PURE__ */ BigInt(113);
1597
1886
  for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
1598
1887
  [x, y] = [y, (2 * x + 3 * y) % 5];
1599
1888
  SHA3_PI.push(2 * (5 * y + x));
@@ -1606,7 +1895,9 @@ for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
1606
1895
  }
1607
1896
  _SHA3_IOTA.push(t);
1608
1897
  }
1609
- var [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
1898
+ var IOTAS = split(_SHA3_IOTA, true);
1899
+ var SHA3_IOTA_H = IOTAS[0];
1900
+ var SHA3_IOTA_L = IOTAS[1];
1610
1901
  var rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
1611
1902
  var rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
1612
1903
  function keccakP(s, rounds = 24) {
@@ -1647,40 +1938,43 @@ function keccakP(s, rounds = 24) {
1647
1938
  s[0] ^= SHA3_IOTA_H[round];
1648
1939
  s[1] ^= SHA3_IOTA_L[round];
1649
1940
  }
1650
- B.fill(0);
1941
+ clean(B);
1651
1942
  }
1652
1943
  var Keccak = class _Keccak extends Hash {
1653
1944
  // NOTE: we accept arguments in bytes instead of bits here.
1654
1945
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
1655
1946
  super();
1947
+ this.pos = 0;
1948
+ this.posOut = 0;
1949
+ this.finished = false;
1950
+ this.destroyed = false;
1951
+ this.enableXOF = false;
1656
1952
  this.blockLen = blockLen;
1657
1953
  this.suffix = suffix;
1658
1954
  this.outputLen = outputLen;
1659
1955
  this.enableXOF = enableXOF;
1660
1956
  this.rounds = rounds;
1661
- this.pos = 0;
1662
- this.posOut = 0;
1663
- this.finished = false;
1664
- this.destroyed = false;
1665
1957
  anumber(outputLen);
1666
- if (0 >= this.blockLen || this.blockLen >= 200)
1667
- throw new Error("Sha3 supports only keccak-f1600 function");
1958
+ if (!(0 < blockLen && blockLen < 200))
1959
+ throw new Error("only keccak-f1600 function is supported");
1668
1960
  this.state = new Uint8Array(200);
1669
1961
  this.state32 = u32(this.state);
1670
1962
  }
1963
+ clone() {
1964
+ return this._cloneInto();
1965
+ }
1671
1966
  keccak() {
1672
- if (!isLE)
1673
- byteSwap32(this.state32);
1967
+ swap32IfBE(this.state32);
1674
1968
  keccakP(this.state32, this.rounds);
1675
- if (!isLE)
1676
- byteSwap32(this.state32);
1969
+ swap32IfBE(this.state32);
1677
1970
  this.posOut = 0;
1678
1971
  this.pos = 0;
1679
1972
  }
1680
1973
  update(data) {
1681
1974
  aexists(this);
1975
+ data = toBytes(data);
1976
+ abytes(data);
1682
1977
  const { blockLen, state } = this;
1683
- data = toBytes2(data);
1684
1978
  const len = data.length;
1685
1979
  for (let pos = 0; pos < len; ) {
1686
1980
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -1740,7 +2034,7 @@ var Keccak = class _Keccak extends Hash {
1740
2034
  }
1741
2035
  destroy() {
1742
2036
  this.destroyed = true;
1743
- this.state.fill(0);
2037
+ clean(this.state);
1744
2038
  }
1745
2039
  _cloneInto(to) {
1746
2040
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
@@ -1757,35 +2051,25 @@ var Keccak = class _Keccak extends Hash {
1757
2051
  return to;
1758
2052
  }
1759
2053
  };
1760
- var gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
1761
- var sha3_224 = /* @__PURE__ */ gen(6, 144, 224 / 8);
1762
- var sha3_256 = /* @__PURE__ */ gen(6, 136, 256 / 8);
1763
- var sha3_384 = /* @__PURE__ */ gen(6, 104, 384 / 8);
1764
- var sha3_512 = /* @__PURE__ */ gen(6, 72, 512 / 8);
1765
- var keccak_224 = /* @__PURE__ */ gen(1, 144, 224 / 8);
1766
- var keccak_256 = /* @__PURE__ */ gen(1, 136, 256 / 8);
1767
- var keccak_384 = /* @__PURE__ */ gen(1, 104, 384 / 8);
1768
- var keccak_512 = /* @__PURE__ */ gen(1, 72, 512 / 8);
1769
- var genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true));
1770
- var shake128 = /* @__PURE__ */ genShake(31, 168, 128 / 8);
1771
- var shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
1772
-
1773
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js
2054
+ var gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
2055
+ var keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
2056
+
2057
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/keccak256.js
1774
2058
  function keccak256(value, to_) {
1775
2059
  const to = to_ || "hex";
1776
- const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
2060
+ const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes2(value) : value);
1777
2061
  if (to === "bytes")
1778
2062
  return bytes;
1779
2063
  return toHex(bytes);
1780
2064
  }
1781
2065
 
1782
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js
1783
- var hash = (value) => keccak256(toBytes(value));
2066
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/hashSignature.js
2067
+ var hash = (value) => keccak256(toBytes2(value));
1784
2068
  function hashSignature(sig) {
1785
2069
  return hash(sig);
1786
2070
  }
1787
2071
 
1788
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js
2072
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/normalizeSignature.js
1789
2073
  function normalizeSignature(signature) {
1790
2074
  let active = true;
1791
2075
  let current = "";
@@ -1825,11 +2109,11 @@ function normalizeSignature(signature) {
1825
2109
  current += char;
1826
2110
  }
1827
2111
  if (!valid)
1828
- throw new BaseError2("Unable to normalize signature.");
2112
+ throw new BaseError3("Unable to normalize signature.");
1829
2113
  return result;
1830
2114
  }
1831
2115
 
1832
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js
2116
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toSignature.js
1833
2117
  var toSignature = (def) => {
1834
2118
  const def_ = (() => {
1835
2119
  if (typeof def === "string")
@@ -1839,16 +2123,16 @@ var toSignature = (def) => {
1839
2123
  return normalizeSignature(def_);
1840
2124
  };
1841
2125
 
1842
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js
2126
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1843
2127
  function toSignatureHash(fn) {
1844
2128
  return hashSignature(toSignature(fn));
1845
2129
  }
1846
2130
 
1847
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
2131
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1848
2132
  var toFunctionSelector = (fn) => slice(toSignatureHash(fn), 0, 4);
1849
2133
 
1850
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js
1851
- var InvalidAddressError = class extends BaseError2 {
2134
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/address.js
2135
+ var InvalidAddressError = class extends BaseError3 {
1852
2136
  constructor({ address }) {
1853
2137
  super(`Address "${address}" is invalid.`, {
1854
2138
  metaMessages: [
@@ -1860,9 +2144,9 @@ var InvalidAddressError = class extends BaseError2 {
1860
2144
  }
1861
2145
  };
1862
2146
 
1863
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js
2147
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/lru.js
1864
2148
  var LruMap = class extends Map {
1865
- constructor(size2) {
2149
+ constructor(size3) {
1866
2150
  super();
1867
2151
  Object.defineProperty(this, "maxSize", {
1868
2152
  enumerable: true,
@@ -1870,7 +2154,7 @@ var LruMap = class extends Map {
1870
2154
  writable: true,
1871
2155
  value: void 0
1872
2156
  });
1873
- this.maxSize = size2;
2157
+ this.maxSize = size3;
1874
2158
  }
1875
2159
  get(key) {
1876
2160
  const value = super.get(key);
@@ -1891,7 +2175,7 @@ var LruMap = class extends Map {
1891
2175
  }
1892
2176
  };
1893
2177
 
1894
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js
2178
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/isAddress.js
1895
2179
  var addressRegex = /^0x[a-fA-F0-9]{40}$/;
1896
2180
  var isAddressCache = /* @__PURE__ */ new LruMap(8192);
1897
2181
  function isAddress(address, options) {
@@ -1912,7 +2196,7 @@ function isAddress(address, options) {
1912
2196
  return result;
1913
2197
  }
1914
2198
 
1915
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js
2199
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/getAddress.js
1916
2200
  var checksumAddressCache = /* @__PURE__ */ new LruMap(8192);
1917
2201
  function checksumAddress(address_, chainId) {
1918
2202
  if (checksumAddressCache.has(`${address_}.${chainId}`))
@@ -1933,26 +2217,26 @@ function checksumAddress(address_, chainId) {
1933
2217
  return result;
1934
2218
  }
1935
2219
 
1936
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/cursor.js
1937
- var NegativeOffsetError = class extends BaseError2 {
2220
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/cursor.js
2221
+ var NegativeOffsetError = class extends BaseError3 {
1938
2222
  constructor({ offset }) {
1939
2223
  super(`Offset \`${offset}\` cannot be negative.`, {
1940
2224
  name: "NegativeOffsetError"
1941
2225
  });
1942
2226
  }
1943
2227
  };
1944
- var PositionOutOfBoundsError = class extends BaseError2 {
2228
+ var PositionOutOfBoundsError = class extends BaseError3 {
1945
2229
  constructor({ length, position }) {
1946
2230
  super(`Position \`${position}\` is out of bounds (\`0 < position < ${length}\`).`, { name: "PositionOutOfBoundsError" });
1947
2231
  }
1948
2232
  };
1949
- var RecursiveReadLimitExceededError = class extends BaseError2 {
2233
+ var RecursiveReadLimitExceededError = class extends BaseError3 {
1950
2234
  constructor({ count, limit }) {
1951
2235
  super(`Recursive read limit of \`${limit}\` exceeded (recursive read count: \`${count}\`).`, { name: "RecursiveReadLimitExceededError" });
1952
2236
  }
1953
2237
  };
1954
2238
 
1955
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/cursor.js
2239
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/cursor.js
1956
2240
  var staticCursor = {
1957
2241
  bytes: new Uint8Array(),
1958
2242
  dataView: new DataView(new ArrayBuffer(0)),
@@ -2059,11 +2343,11 @@ var staticCursor = {
2059
2343
  this.position++;
2060
2344
  return value;
2061
2345
  },
2062
- readBytes(length, size2) {
2346
+ readBytes(length, size3) {
2063
2347
  this.assertReadLimit();
2064
2348
  this._touch();
2065
2349
  const value = this.inspectBytes(length);
2066
- this.position += size2 ?? length;
2350
+ this.position += size3 ?? length;
2067
2351
  return value;
2068
2352
  },
2069
2353
  readUint8() {
@@ -2121,18 +2405,18 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
2121
2405
  return cursor;
2122
2406
  }
2123
2407
 
2124
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromBytes.js
2408
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/fromBytes.js
2125
2409
  function bytesToBigInt(bytes, opts = {}) {
2126
2410
  if (typeof opts.size !== "undefined")
2127
- assertSize(bytes, { size: opts.size });
2411
+ assertSize2(bytes, { size: opts.size });
2128
2412
  const hex = bytesToHex(bytes, opts);
2129
2413
  return hexToBigInt(hex, opts);
2130
2414
  }
2131
2415
  function bytesToBool(bytes_, opts = {}) {
2132
2416
  let bytes = bytes_;
2133
2417
  if (typeof opts.size !== "undefined") {
2134
- assertSize(bytes, { size: opts.size });
2135
- bytes = trim(bytes);
2418
+ assertSize2(bytes, { size: opts.size });
2419
+ bytes = trim2(bytes);
2136
2420
  }
2137
2421
  if (bytes.length > 1 || bytes[0] > 1)
2138
2422
  throw new InvalidBytesBooleanError(bytes);
@@ -2140,20 +2424,20 @@ function bytesToBool(bytes_, opts = {}) {
2140
2424
  }
2141
2425
  function bytesToNumber(bytes, opts = {}) {
2142
2426
  if (typeof opts.size !== "undefined")
2143
- assertSize(bytes, { size: opts.size });
2427
+ assertSize2(bytes, { size: opts.size });
2144
2428
  const hex = bytesToHex(bytes, opts);
2145
2429
  return hexToNumber(hex, opts);
2146
2430
  }
2147
2431
  function bytesToString(bytes_, opts = {}) {
2148
2432
  let bytes = bytes_;
2149
2433
  if (typeof opts.size !== "undefined") {
2150
- assertSize(bytes, { size: opts.size });
2151
- bytes = trim(bytes, { dir: "right" });
2434
+ assertSize2(bytes, { size: opts.size });
2435
+ bytes = trim2(bytes, { dir: "right" });
2152
2436
  }
2153
2437
  return new TextDecoder().decode(bytes);
2154
2438
  }
2155
2439
 
2156
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js
2440
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/concat.js
2157
2441
  function concat(values) {
2158
2442
  if (typeof values[0] === "string")
2159
2443
  return concatHex(values);
@@ -2176,10 +2460,10 @@ function concatHex(values) {
2176
2460
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
2177
2461
  }
2178
2462
 
2179
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js
2463
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/regex.js
2180
2464
  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)?$/;
2181
2465
 
2182
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
2466
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
2183
2467
  function encodeAbiParameters(params, values) {
2184
2468
  if (params.length !== values.length)
2185
2469
  throw new AbiEncodingLengthMismatchError({
@@ -2221,10 +2505,10 @@ function prepareParam({ param, value }) {
2221
2505
  }
2222
2506
  if (param.type.startsWith("uint") || param.type.startsWith("int")) {
2223
2507
  const signed = param.type.startsWith("int");
2224
- const [, , size2 = "256"] = integerRegex2.exec(param.type) ?? [];
2508
+ const [, , size3 = "256"] = integerRegex2.exec(param.type) ?? [];
2225
2509
  return encodeNumber(value, {
2226
2510
  signed,
2227
- size: Number(size2)
2511
+ size: Number(size3)
2228
2512
  });
2229
2513
  }
2230
2514
  if (param.type.startsWith("bytes")) {
@@ -2244,7 +2528,7 @@ function encodeParams(preparedParams) {
2244
2528
  if (dynamic)
2245
2529
  staticSize += 32;
2246
2530
  else
2247
- staticSize += size(encoded);
2531
+ staticSize += size2(encoded);
2248
2532
  }
2249
2533
  const staticParams = [];
2250
2534
  const dynamicParams = [];
@@ -2254,7 +2538,7 @@ function encodeParams(preparedParams) {
2254
2538
  if (dynamic) {
2255
2539
  staticParams.push(numberToHex(staticSize + dynamicSize, { size: 32 }));
2256
2540
  dynamicParams.push(encoded);
2257
- dynamicSize += size(encoded);
2541
+ dynamicSize += size2(encoded);
2258
2542
  } else {
2259
2543
  staticParams.push(encoded);
2260
2544
  }
@@ -2303,7 +2587,7 @@ function encodeArray(value, { length, param }) {
2303
2587
  }
2304
2588
  function encodeBytes(value, { param }) {
2305
2589
  const [, paramSize] = param.type.split("bytes");
2306
- const bytesSize = size(value);
2590
+ const bytesSize = size2(value);
2307
2591
  if (!paramSize) {
2308
2592
  let value_ = value;
2309
2593
  if (bytesSize % 32 !== 0)
@@ -2316,28 +2600,28 @@ function encodeBytes(value, { param }) {
2316
2600
  encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
2317
2601
  };
2318
2602
  }
2319
- if (bytesSize !== Number.parseInt(paramSize))
2603
+ if (bytesSize !== Number.parseInt(paramSize, 10))
2320
2604
  throw new AbiEncodingBytesSizeMismatchError({
2321
- expectedSize: Number.parseInt(paramSize),
2605
+ expectedSize: Number.parseInt(paramSize, 10),
2322
2606
  value
2323
2607
  });
2324
2608
  return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
2325
2609
  }
2326
2610
  function encodeBool(value) {
2327
2611
  if (typeof value !== "boolean")
2328
- throw new BaseError2(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
2612
+ throw new BaseError3(`Invalid boolean value: "${value}" (type: ${typeof value}). Expected: \`true\` or \`false\`.`);
2329
2613
  return { dynamic: false, encoded: padHex(boolToHex(value)) };
2330
2614
  }
2331
- function encodeNumber(value, { signed, size: size2 = 256 }) {
2332
- if (typeof size2 === "number") {
2333
- const max = 2n ** (BigInt(size2) - (signed ? 1n : 0n)) - 1n;
2615
+ function encodeNumber(value, { signed, size: size3 = 256 }) {
2616
+ if (typeof size3 === "number") {
2617
+ const max = 2n ** (BigInt(size3) - (signed ? 1n : 0n)) - 1n;
2334
2618
  const min = signed ? -max - 1n : 0n;
2335
2619
  if (value > max || value < min)
2336
- throw new IntegerOutOfRangeError({
2620
+ throw new IntegerOutOfRangeError2({
2337
2621
  max: max.toString(),
2338
2622
  min: min.toString(),
2339
2623
  signed,
2340
- size: size2 / 8,
2624
+ size: size3 / 8,
2341
2625
  value: value.toString()
2342
2626
  });
2343
2627
  }
@@ -2351,7 +2635,7 @@ function encodeNumber(value, { signed, size: size2 = 256 }) {
2351
2635
  }
2352
2636
  function encodeString(value) {
2353
2637
  const hexValue = stringToHex(value);
2354
- const partsLength = Math.ceil(size(hexValue) / 32);
2638
+ const partsLength = Math.ceil(size2(hexValue) / 32);
2355
2639
  const parts = [];
2356
2640
  for (let i = 0; i < partsLength; i++) {
2357
2641
  parts.push(padHex(slice(hexValue, i * 32, (i + 1) * 32), {
@@ -2361,7 +2645,7 @@ function encodeString(value) {
2361
2645
  return {
2362
2646
  dynamic: true,
2363
2647
  encoded: concat([
2364
- padHex(numberToHex(size(hexValue), { size: 32 })),
2648
+ padHex(numberToHex(size2(hexValue), { size: 32 })),
2365
2649
  ...parts
2366
2650
  ])
2367
2651
  };
@@ -2393,17 +2677,17 @@ function getArrayComponents(type) {
2393
2677
  ) : void 0;
2394
2678
  }
2395
2679
 
2396
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
2680
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
2397
2681
  function decodeAbiParameters(params, data) {
2398
2682
  const bytes = typeof data === "string" ? hexToBytes(data) : data;
2399
2683
  const cursor = createCursor(bytes);
2400
- if (size(bytes) === 0 && params.length > 0)
2684
+ if (size2(bytes) === 0 && params.length > 0)
2401
2685
  throw new AbiDecodingZeroDataError();
2402
- if (size(data) && size(data) < 32)
2686
+ if (size2(data) && size2(data) < 32)
2403
2687
  throw new AbiDecodingDataSizeTooSmallError({
2404
2688
  data: typeof data === "string" ? data : bytesToHex(data),
2405
2689
  params,
2406
- size: size(data)
2690
+ size: size2(data)
2407
2691
  });
2408
2692
  let consumed = 0;
2409
2693
  const values = [];
@@ -2496,8 +2780,8 @@ function decodeBool(cursor) {
2496
2780
  return [bytesToBool(cursor.readBytes(32), { size: 32 }), 32];
2497
2781
  }
2498
2782
  function decodeBytes(cursor, param, { staticPosition }) {
2499
- const [_, size2] = param.type.split("bytes");
2500
- if (!size2) {
2783
+ const [_, size3] = param.type.split("bytes");
2784
+ if (!size3) {
2501
2785
  const offset = bytesToNumber(cursor.readBytes(32));
2502
2786
  cursor.setPosition(staticPosition + offset);
2503
2787
  const length = bytesToNumber(cursor.readBytes(32));
@@ -2509,15 +2793,15 @@ function decodeBytes(cursor, param, { staticPosition }) {
2509
2793
  cursor.setPosition(staticPosition + 32);
2510
2794
  return [bytesToHex(data), 32];
2511
2795
  }
2512
- const value = bytesToHex(cursor.readBytes(Number.parseInt(size2), 32));
2796
+ const value = bytesToHex(cursor.readBytes(Number.parseInt(size3, 10), 32));
2513
2797
  return [value, 32];
2514
2798
  }
2515
2799
  function decodeNumber(cursor, param) {
2516
2800
  const signed = param.type.startsWith("int");
2517
- const size2 = Number.parseInt(param.type.split("int")[1] || "256");
2801
+ const size3 = Number.parseInt(param.type.split("int")[1] || "256", 10);
2518
2802
  const value = cursor.readBytes(32);
2519
2803
  return [
2520
- size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
2804
+ size3 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
2521
2805
  32
2522
2806
  ];
2523
2807
  }
@@ -2560,7 +2844,7 @@ function decodeString(cursor, { staticPosition }) {
2560
2844
  return ["", 32];
2561
2845
  }
2562
2846
  const data = cursor.readBytes(length, 32);
2563
- const value = bytesToString(trim(data));
2847
+ const value = bytesToString(trim2(data));
2564
2848
  cursor.setPosition(staticPosition + 32);
2565
2849
  return [value, 32];
2566
2850
  }
@@ -2580,7 +2864,7 @@ function hasDynamicChild(param) {
2580
2864
  return false;
2581
2865
  }
2582
2866
 
2583
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
2867
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/decodeErrorResult.js
2584
2868
  function decodeErrorResult(parameters) {
2585
2869
  const { abi, data } = parameters;
2586
2870
  const signature = slice(data, 0, 4);
@@ -2599,16 +2883,16 @@ function decodeErrorResult(parameters) {
2599
2883
  };
2600
2884
  }
2601
2885
 
2602
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/stringify.js
2886
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/stringify.js
2603
2887
  var stringify = (value, replacer, space) => JSON.stringify(value, (key, value_) => {
2604
2888
  const value2 = typeof value_ === "bigint" ? value_.toString() : value_;
2605
2889
  return typeof replacer === "function" ? replacer(key, value2) : value2;
2606
2890
  }, space);
2607
2891
 
2608
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js
2892
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toEventSelector.js
2609
2893
  var toEventSelector = toSignatureHash;
2610
2894
 
2611
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js
2895
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/getAbiItem.js
2612
2896
  function getAbiItem(parameters) {
2613
2897
  const { abi, args = [], name } = parameters;
2614
2898
  const isSelector = isHex(name, { strict: false });
@@ -2626,7 +2910,7 @@ function getAbiItem(parameters) {
2626
2910
  return void 0;
2627
2911
  if (abiItems.length === 1)
2628
2912
  return abiItems[0];
2629
- let matchedAbiItem = void 0;
2913
+ let matchedAbiItem;
2630
2914
  for (const abiItem of abiItems) {
2631
2915
  if (!("inputs" in abiItem))
2632
2916
  continue;
@@ -2720,7 +3004,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
2720
3004
  return;
2721
3005
  }
2722
3006
 
2723
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js
3007
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/unit.js
2724
3008
  var etherUnits = {
2725
3009
  gwei: 9,
2726
3010
  wei: 18
@@ -2730,7 +3014,7 @@ var gweiUnits = {
2730
3014
  wei: 9
2731
3015
  };
2732
3016
 
2733
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/formatUnits.js
3017
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/formatUnits.js
2734
3018
  function formatUnits(value, decimals) {
2735
3019
  let display = value.toString();
2736
3020
  const negative = display.startsWith("-");
@@ -2745,25 +3029,25 @@ function formatUnits(value, decimals) {
2745
3029
  return `${negative ? "-" : ""}${integer || "0"}${fraction ? `.${fraction}` : ""}`;
2746
3030
  }
2747
3031
 
2748
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/formatEther.js
3032
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/formatEther.js
2749
3033
  function formatEther(wei, unit = "wei") {
2750
3034
  return formatUnits(wei, etherUnits[unit]);
2751
3035
  }
2752
3036
 
2753
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/formatGwei.js
3037
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/formatGwei.js
2754
3038
  function formatGwei(wei, unit = "wei") {
2755
3039
  return formatUnits(wei, gweiUnits[unit]);
2756
3040
  }
2757
3041
 
2758
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/stateOverride.js
2759
- var AccountStateConflictError = class extends BaseError2 {
3042
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/stateOverride.js
3043
+ var AccountStateConflictError = class extends BaseError3 {
2760
3044
  constructor({ address }) {
2761
3045
  super(`State for account "${address}" is set multiple times.`, {
2762
3046
  name: "AccountStateConflictError"
2763
3047
  });
2764
3048
  }
2765
3049
  };
2766
- var StateAssignmentConflictError = class extends BaseError2 {
3050
+ var StateAssignmentConflictError = class extends BaseError3 {
2767
3051
  constructor() {
2768
3052
  super("state and stateDiff are set on the same account.", {
2769
3053
  name: "StateAssignmentConflictError"
@@ -2801,7 +3085,7 @@ function prettyStateOverride(stateOverride) {
2801
3085
  }, " State Override:\n").slice(0, -1);
2802
3086
  }
2803
3087
 
2804
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/transaction.js
3088
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/transaction.js
2805
3089
  function prettyPrint(args) {
2806
3090
  const entries = Object.entries(args).map(([key, value]) => {
2807
3091
  if (value === void 0 || value === false)
@@ -2811,7 +3095,7 @@ function prettyPrint(args) {
2811
3095
  const maxLength = entries.reduce((acc, [key]) => Math.max(acc, key.length), 0);
2812
3096
  return entries.map(([key, value]) => ` ${`${key}:`.padEnd(maxLength + 1)} ${value}`).join("\n");
2813
3097
  }
2814
- var FeeConflictError = class extends BaseError2 {
3098
+ var FeeConflictError = class extends BaseError3 {
2815
3099
  constructor() {
2816
3100
  super([
2817
3101
  "Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.",
@@ -2820,12 +3104,12 @@ var FeeConflictError = class extends BaseError2 {
2820
3104
  }
2821
3105
  };
2822
3106
 
2823
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/utils.js
3107
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/utils.js
2824
3108
  var getUrl = (url) => url;
2825
3109
 
2826
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/contract.js
2827
- var CallExecutionError = class extends BaseError2 {
2828
- constructor(cause, { account: account_, docsPath: docsPath4, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
3110
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/contract.js
3111
+ var CallExecutionError = class extends BaseError3 {
3112
+ constructor(cause, { account: account_, docsPath: docsPath6, chain, data, gas, gasPrice, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride }) {
2829
3113
  const account = account_ ? parseAccount(account_) : void 0;
2830
3114
  let prettyArgs = prettyPrint({
2831
3115
  from: account?.address,
@@ -2844,7 +3128,7 @@ ${prettyStateOverride(stateOverride)}`;
2844
3128
  }
2845
3129
  super(cause.shortMessage, {
2846
3130
  cause,
2847
- docsPath: docsPath4,
3131
+ docsPath: docsPath6,
2848
3132
  metaMessages: [
2849
3133
  ...cause.metaMessages ? [...cause.metaMessages, " "] : [],
2850
3134
  "Raw Call Arguments:",
@@ -2861,7 +3145,7 @@ ${prettyStateOverride(stateOverride)}`;
2861
3145
  this.cause = cause;
2862
3146
  }
2863
3147
  };
2864
- var CounterfactualDeploymentFailedError = class extends BaseError2 {
3148
+ var CounterfactualDeploymentFailedError = class extends BaseError3 {
2865
3149
  constructor({ factory }) {
2866
3150
  super(`Deployment for counterfactual contract call failed${factory ? ` for factory "${factory}".` : ""}`, {
2867
3151
  metaMessages: [
@@ -2873,7 +3157,7 @@ var CounterfactualDeploymentFailedError = class extends BaseError2 {
2873
3157
  });
2874
3158
  }
2875
3159
  };
2876
- var RawContractError = class extends BaseError2 {
3160
+ var RawContractError = class extends BaseError3 {
2877
3161
  constructor({ data, message }) {
2878
3162
  super(message || "", { name: "RawContractError" });
2879
3163
  Object.defineProperty(this, "code", {
@@ -2892,7 +3176,7 @@ var RawContractError = class extends BaseError2 {
2892
3176
  }
2893
3177
  };
2894
3178
 
2895
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
3179
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
2896
3180
  var docsPath = "/docs/contract/decodeFunctionResult";
2897
3181
  function decodeFunctionResult(parameters) {
2898
3182
  const { abi, args, functionName, data } = parameters;
@@ -2915,7 +3199,7 @@ function decodeFunctionResult(parameters) {
2915
3199
  return void 0;
2916
3200
  }
2917
3201
 
2918
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeDeployData.js
3202
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeDeployData.js
2919
3203
  var docsPath2 = "/docs/contract/encodeDeployData";
2920
3204
  function encodeDeployData(parameters) {
2921
3205
  const { abi, args, bytecode } = parameters;
@@ -2932,7 +3216,7 @@ function encodeDeployData(parameters) {
2932
3216
  return concatHex([bytecode, data]);
2933
3217
  }
2934
3218
 
2935
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
3219
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
2936
3220
  var docsPath3 = "/docs/contract/encodeFunctionData";
2937
3221
  function prepareEncodeFunctionData(parameters) {
2938
3222
  const { abi, args, functionName } = parameters;
@@ -2955,7 +3239,7 @@ function prepareEncodeFunctionData(parameters) {
2955
3239
  };
2956
3240
  }
2957
3241
 
2958
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
3242
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
2959
3243
  function encodeFunctionData(parameters) {
2960
3244
  const { args } = parameters;
2961
3245
  const { abi, functionName } = (() => {
@@ -2969,7 +3253,7 @@ function encodeFunctionData(parameters) {
2969
3253
  return concatHex([signature, data ?? "0x"]);
2970
3254
  }
2971
3255
 
2972
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
3256
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/chain/getChainContractAddress.js
2973
3257
  function getChainContractAddress({ blockNumber, chain, contract: name }) {
2974
3258
  const contract = chain?.contracts?.[name];
2975
3259
  if (!contract)
@@ -2989,8 +3273,8 @@ function getChainContractAddress({ blockNumber, chain, contract: name }) {
2989
3273
  return contract.address;
2990
3274
  }
2991
3275
 
2992
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/node.js
2993
- var ExecutionRevertedError = class extends BaseError2 {
3276
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/node.js
3277
+ var ExecutionRevertedError = class extends BaseError3 {
2994
3278
  constructor({ cause, message } = {}) {
2995
3279
  const reason = message?.replace("execution reverted: ", "")?.replace("execution reverted", "");
2996
3280
  super(`Execution reverted ${reason ? `with reason: ${reason}` : "for an unknown reason"}.`, {
@@ -3011,7 +3295,7 @@ Object.defineProperty(ExecutionRevertedError, "nodeMessage", {
3011
3295
  writable: true,
3012
3296
  value: /execution reverted/
3013
3297
  });
3014
- var FeeCapTooHighError = class extends BaseError2 {
3298
+ var FeeCapTooHighError = class extends BaseError3 {
3015
3299
  constructor({ cause, maxFeePerGas } = {}) {
3016
3300
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}) cannot be higher than the maximum allowed value (2^256-1).`, {
3017
3301
  cause,
@@ -3025,7 +3309,7 @@ Object.defineProperty(FeeCapTooHighError, "nodeMessage", {
3025
3309
  writable: true,
3026
3310
  value: /max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/
3027
3311
  });
3028
- var FeeCapTooLowError = class extends BaseError2 {
3312
+ var FeeCapTooLowError = class extends BaseError3 {
3029
3313
  constructor({ cause, maxFeePerGas } = {}) {
3030
3314
  super(`The fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)}` : ""} gwei) cannot be lower than the block base fee.`, {
3031
3315
  cause,
@@ -3039,7 +3323,7 @@ Object.defineProperty(FeeCapTooLowError, "nodeMessage", {
3039
3323
  writable: true,
3040
3324
  value: /max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/
3041
3325
  });
3042
- var NonceTooHighError = class extends BaseError2 {
3326
+ var NonceTooHighError = class extends BaseError3 {
3043
3327
  constructor({ cause, nonce } = {}) {
3044
3328
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is higher than the next one expected.`, { cause, name: "NonceTooHighError" });
3045
3329
  }
@@ -3050,7 +3334,7 @@ Object.defineProperty(NonceTooHighError, "nodeMessage", {
3050
3334
  writable: true,
3051
3335
  value: /nonce too high/
3052
3336
  });
3053
- var NonceTooLowError = class extends BaseError2 {
3337
+ var NonceTooLowError = class extends BaseError3 {
3054
3338
  constructor({ cause, nonce } = {}) {
3055
3339
  super([
3056
3340
  `Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}is lower than the current nonce of the account.`,
@@ -3064,7 +3348,7 @@ Object.defineProperty(NonceTooLowError, "nodeMessage", {
3064
3348
  writable: true,
3065
3349
  value: /nonce too low|transaction already imported|already known/
3066
3350
  });
3067
- var NonceMaxValueError = class extends BaseError2 {
3351
+ var NonceMaxValueError = class extends BaseError3 {
3068
3352
  constructor({ cause, nonce } = {}) {
3069
3353
  super(`Nonce provided for the transaction ${nonce ? `(${nonce}) ` : ""}exceeds the maximum allowed nonce.`, { cause, name: "NonceMaxValueError" });
3070
3354
  }
@@ -3075,7 +3359,7 @@ Object.defineProperty(NonceMaxValueError, "nodeMessage", {
3075
3359
  writable: true,
3076
3360
  value: /nonce has max value/
3077
3361
  });
3078
- var InsufficientFundsError = class extends BaseError2 {
3362
+ var InsufficientFundsError = class extends BaseError3 {
3079
3363
  constructor({ cause } = {}) {
3080
3364
  super([
3081
3365
  "The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."
@@ -3101,7 +3385,7 @@ Object.defineProperty(InsufficientFundsError, "nodeMessage", {
3101
3385
  writable: true,
3102
3386
  value: /insufficient funds|exceeds transaction sender account balance/
3103
3387
  });
3104
- var IntrinsicGasTooHighError = class extends BaseError2 {
3388
+ var IntrinsicGasTooHighError = class extends BaseError3 {
3105
3389
  constructor({ cause, gas } = {}) {
3106
3390
  super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction exceeds the limit allowed for the block.`, {
3107
3391
  cause,
@@ -3115,7 +3399,7 @@ Object.defineProperty(IntrinsicGasTooHighError, "nodeMessage", {
3115
3399
  writable: true,
3116
3400
  value: /intrinsic gas too high|gas limit reached/
3117
3401
  });
3118
- var IntrinsicGasTooLowError = class extends BaseError2 {
3402
+ var IntrinsicGasTooLowError = class extends BaseError3 {
3119
3403
  constructor({ cause, gas } = {}) {
3120
3404
  super(`The amount of gas ${gas ? `(${gas}) ` : ""}provided for the transaction is too low.`, {
3121
3405
  cause,
@@ -3129,7 +3413,7 @@ Object.defineProperty(IntrinsicGasTooLowError, "nodeMessage", {
3129
3413
  writable: true,
3130
3414
  value: /intrinsic gas too low/
3131
3415
  });
3132
- var TransactionTypeNotSupportedError = class extends BaseError2 {
3416
+ var TransactionTypeNotSupportedError = class extends BaseError3 {
3133
3417
  constructor({ cause }) {
3134
3418
  super("The transaction type is not supported for this chain.", {
3135
3419
  cause,
@@ -3143,7 +3427,7 @@ Object.defineProperty(TransactionTypeNotSupportedError, "nodeMessage", {
3143
3427
  writable: true,
3144
3428
  value: /transaction type not valid/
3145
3429
  });
3146
- var TipAboveFeeCapError = class extends BaseError2 {
3430
+ var TipAboveFeeCapError = class extends BaseError3 {
3147
3431
  constructor({ cause, maxPriorityFeePerGas, maxFeePerGas } = {}) {
3148
3432
  super([
3149
3433
  `The provided tip (\`maxPriorityFeePerGas\`${maxPriorityFeePerGas ? ` = ${formatGwei(maxPriorityFeePerGas)} gwei` : ""}) cannot be higher than the fee cap (\`maxFeePerGas\`${maxFeePerGas ? ` = ${formatGwei(maxFeePerGas)} gwei` : ""}).`
@@ -3159,7 +3443,7 @@ Object.defineProperty(TipAboveFeeCapError, "nodeMessage", {
3159
3443
  writable: true,
3160
3444
  value: /max priority fee per gas higher than max fee per gas|tip higher than fee cap/
3161
3445
  });
3162
- var UnknownNodeError = class extends BaseError2 {
3446
+ var UnknownNodeError = class extends BaseError3 {
3163
3447
  constructor({ cause }) {
3164
3448
  super(`An error occurred while executing: ${cause?.shortMessage}`, {
3165
3449
  cause,
@@ -3168,8 +3452,8 @@ var UnknownNodeError = class extends BaseError2 {
3168
3452
  }
3169
3453
  };
3170
3454
 
3171
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/request.js
3172
- var HttpRequestError = class extends BaseError2 {
3455
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/request.js
3456
+ var HttpRequestError = class extends BaseError3 {
3173
3457
  constructor({ body, cause, details, headers, status, url }) {
3174
3458
  super("HTTP request failed.", {
3175
3459
  cause,
@@ -3212,11 +3496,11 @@ var HttpRequestError = class extends BaseError2 {
3212
3496
  }
3213
3497
  };
3214
3498
 
3215
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/errors/getNodeError.js
3499
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/errors/getNodeError.js
3216
3500
  function getNodeError(err, args) {
3217
3501
  const message = (err.details || "").toLowerCase();
3218
- const executionRevertedError = err instanceof BaseError2 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
3219
- if (executionRevertedError instanceof BaseError2)
3502
+ const executionRevertedError = err instanceof BaseError3 ? err.walk((e) => e?.code === ExecutionRevertedError.code) : err;
3503
+ if (executionRevertedError instanceof BaseError3)
3220
3504
  return new ExecutionRevertedError({
3221
3505
  cause: err,
3222
3506
  message: executionRevertedError.details
@@ -3261,8 +3545,8 @@ function getNodeError(err, args) {
3261
3545
  });
3262
3546
  }
3263
3547
 
3264
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/errors/getCallError.js
3265
- function getCallError(err, { docsPath: docsPath4, ...args }) {
3548
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/errors/getCallError.js
3549
+ function getCallError(err, { docsPath: docsPath6, ...args }) {
3266
3550
  const cause = (() => {
3267
3551
  const cause2 = getNodeError(err, args);
3268
3552
  if (cause2 instanceof UnknownNodeError)
@@ -3270,12 +3554,12 @@ function getCallError(err, { docsPath: docsPath4, ...args }) {
3270
3554
  return cause2;
3271
3555
  })();
3272
3556
  return new CallExecutionError(cause, {
3273
- docsPath: docsPath4,
3557
+ docsPath: docsPath6,
3274
3558
  ...args
3275
3559
  });
3276
3560
  }
3277
3561
 
3278
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/formatters/extract.js
3562
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/formatters/extract.js
3279
3563
  function extract(value_, { format }) {
3280
3564
  if (!format)
3281
3565
  return {};
@@ -3294,7 +3578,7 @@ function extract(value_, { format }) {
3294
3578
  return value;
3295
3579
  }
3296
3580
 
3297
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/formatters/transactionRequest.js
3581
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/formatters/transactionRequest.js
3298
3582
  var rpcTransactionType = {
3299
3583
  legacy: "0x0",
3300
3584
  eip2930: "0x1",
@@ -3342,9 +3626,9 @@ function formatTransactionRequest(request) {
3342
3626
  }
3343
3627
  function formatAuthorizationList(authorizationList) {
3344
3628
  return authorizationList.map((authorization) => ({
3345
- address: authorization.contractAddress,
3346
- r: authorization.r,
3347
- s: authorization.s,
3629
+ address: authorization.address,
3630
+ r: authorization.r ? numberToHex(BigInt(authorization.r)) : authorization.r,
3631
+ s: authorization.s ? numberToHex(BigInt(authorization.s)) : authorization.s,
3348
3632
  chainId: numberToHex(authorization.chainId),
3349
3633
  nonce: numberToHex(authorization.nonce),
3350
3634
  ...typeof authorization.yParity !== "undefined" ? { yParity: numberToHex(authorization.yParity) } : {},
@@ -3352,7 +3636,7 @@ function formatAuthorizationList(authorizationList) {
3352
3636
  }));
3353
3637
  }
3354
3638
 
3355
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/promise/withResolvers.js
3639
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/promise/withResolvers.js
3356
3640
  function withResolvers() {
3357
3641
  let resolve = () => void 0;
3358
3642
  let reject = () => void 0;
@@ -3363,7 +3647,7 @@ function withResolvers() {
3363
3647
  return { promise, resolve, reject };
3364
3648
  }
3365
3649
 
3366
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
3650
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/promise/createBatchScheduler.js
3367
3651
  var schedulerCache = /* @__PURE__ */ new Map();
3368
3652
  function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
3369
3653
  const exec = async () => {
@@ -3409,7 +3693,7 @@ function createBatchScheduler({ fn, id, shouldSplitBatch, wait = 0, sort }) {
3409
3693
  };
3410
3694
  }
3411
3695
 
3412
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/stateOverride.js
3696
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/stateOverride.js
3413
3697
  function serializeStateMapping(stateMapping) {
3414
3698
  if (!stateMapping || stateMapping.length === 0)
3415
3699
  return void 0;
@@ -3462,7 +3746,7 @@ function serializeStateOverride(parameters) {
3462
3746
  return rpcStateOverride;
3463
3747
  }
3464
3748
 
3465
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/number.js
3749
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/number.js
3466
3750
  var maxInt8 = 2n ** (8n - 1n) - 1n;
3467
3751
  var maxInt16 = 2n ** (16n - 1n) - 1n;
3468
3752
  var maxInt24 = 2n ** (24n - 1n) - 1n;
@@ -3560,7 +3844,7 @@ var maxUint240 = 2n ** 240n - 1n;
3560
3844
  var maxUint248 = 2n ** 248n - 1n;
3561
3845
  var maxUint256 = 2n ** 256n - 1n;
3562
3846
 
3563
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/transaction/assertRequest.js
3847
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/transaction/assertRequest.js
3564
3848
  function assertRequest(args) {
3565
3849
  const { account: account_, gasPrice, maxFeePerGas, maxPriorityFeePerGas, to } = args;
3566
3850
  const account = account_ ? parseAccount(account_) : void 0;
@@ -3576,14 +3860,14 @@ function assertRequest(args) {
3576
3860
  throw new TipAboveFeeCapError({ maxFeePerGas, maxPriorityFeePerGas });
3577
3861
  }
3578
3862
 
3579
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/actions/public/call.js
3863
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/actions/public/call.js
3580
3864
  async function call(client, args) {
3581
- const { account: account_ = client.account, batch = Boolean(client.batch?.multicall), blockNumber, blockTag = "latest", accessList, blobs, code, data: data_, factory, factoryData, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, to, value, stateOverride, ...rest } = args;
3865
+ 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;
3582
3866
  const account = account_ ? parseAccount(account_) : void 0;
3583
3867
  if (code && (factory || factoryData))
3584
- throw new BaseError2("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
3868
+ throw new BaseError3("Cannot provide both `code` & `factory`/`factoryData` as parameters.");
3585
3869
  if (code && to)
3586
- throw new BaseError2("Cannot provide both `code` & `to` as parameters.");
3870
+ throw new BaseError3("Cannot provide both `code` & `to` as parameters.");
3587
3871
  const deploylessCallViaBytecode = code && data_;
3588
3872
  const deploylessCallViaFactory = factory && factoryData && to && data_;
3589
3873
  const deploylessCall = deploylessCallViaBytecode || deploylessCallViaFactory;
@@ -3604,8 +3888,9 @@ async function call(client, args) {
3604
3888
  })();
3605
3889
  try {
3606
3890
  assertRequest(args);
3607
- const blockNumberHex = blockNumber ? numberToHex(blockNumber) : void 0;
3891
+ const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : void 0;
3608
3892
  const block = blockNumberHex || blockTag;
3893
+ const rpcBlockOverrides = blockOverrides ? toRpc2(blockOverrides) : void 0;
3609
3894
  const rpcStateOverride = serializeStateOverride(stateOverride);
3610
3895
  const chainFormat = client.chain?.formatters?.transactionRequest?.format;
3611
3896
  const format = chainFormat || formatTransactionRequest;
@@ -3614,6 +3899,7 @@ async function call(client, args) {
3614
3899
  ...extract(rest, { format: chainFormat }),
3615
3900
  from: account?.address,
3616
3901
  accessList,
3902
+ authorizationList,
3617
3903
  blobs,
3618
3904
  data,
3619
3905
  gas,
@@ -3625,7 +3911,7 @@ async function call(client, args) {
3625
3911
  to: deploylessCall ? void 0 : to,
3626
3912
  value
3627
3913
  });
3628
- if (batch && shouldPerformMulticall({ request }) && !rpcStateOverride) {
3914
+ if (batch && shouldPerformMulticall({ request }) && !rpcStateOverride && !rpcBlockOverrides) {
3629
3915
  try {
3630
3916
  return await scheduleMulticall(client, {
3631
3917
  ...request,
@@ -3637,20 +3923,29 @@ async function call(client, args) {
3637
3923
  throw err;
3638
3924
  }
3639
3925
  }
3926
+ const params = (() => {
3927
+ const base = [
3928
+ request,
3929
+ block
3930
+ ];
3931
+ if (rpcStateOverride && rpcBlockOverrides)
3932
+ return [...base, rpcStateOverride, rpcBlockOverrides];
3933
+ if (rpcStateOverride)
3934
+ return [...base, rpcStateOverride];
3935
+ if (rpcBlockOverrides)
3936
+ return [...base, {}, rpcBlockOverrides];
3937
+ return base;
3938
+ })();
3640
3939
  const response = await client.request({
3641
3940
  method: "eth_call",
3642
- params: rpcStateOverride ? [
3643
- request,
3644
- block,
3645
- rpcStateOverride
3646
- ] : [request, block]
3941
+ params
3647
3942
  });
3648
3943
  if (response === "0x")
3649
3944
  return { data: void 0 };
3650
3945
  return { data: response };
3651
3946
  } catch (err) {
3652
3947
  const data2 = getRevertErrorData(err);
3653
- const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-C5WONSSK.js");
3948
+ const { offchainLookup: offchainLookup2, offchainLookupSignature: offchainLookupSignature2 } = await import("./ccip-4Y6T462U.js");
3654
3949
  if (client.ccipRead !== false && data2?.slice(0, 10) === offchainLookupSignature2 && to)
3655
3950
  return { data: await offchainLookup2(client, { data: data2, to }) };
3656
3951
  if (deploylessCall && data2?.slice(0, 10) === "0x101bb98d")
@@ -3675,26 +3970,30 @@ function shouldPerformMulticall({ request }) {
3675
3970
  return true;
3676
3971
  }
3677
3972
  async function scheduleMulticall(client, args) {
3678
- const { batchSize = 1024, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
3679
- const { blockNumber, blockTag = "latest", data, multicallAddress: multicallAddress_, to } = args;
3680
- let multicallAddress = multicallAddress_;
3681
- if (!multicallAddress) {
3682
- if (!client.chain)
3683
- throw new ClientChainNotConfiguredError();
3684
- multicallAddress = getChainContractAddress({
3685
- blockNumber,
3686
- chain: client.chain,
3687
- contract: "multicall3"
3688
- });
3689
- }
3690
- const blockNumberHex = blockNumber ? numberToHex(blockNumber) : void 0;
3973
+ const { batchSize = 1024, deployless = false, wait = 0 } = typeof client.batch?.multicall === "object" ? client.batch.multicall : {};
3974
+ const { blockNumber, blockTag = client.experimental_blockTag ?? "latest", data, to } = args;
3975
+ const multicallAddress = (() => {
3976
+ if (deployless)
3977
+ return null;
3978
+ if (args.multicallAddress)
3979
+ return args.multicallAddress;
3980
+ if (client.chain) {
3981
+ return getChainContractAddress({
3982
+ blockNumber,
3983
+ chain: client.chain,
3984
+ contract: "multicall3"
3985
+ });
3986
+ }
3987
+ throw new ClientChainNotConfiguredError();
3988
+ })();
3989
+ const blockNumberHex = typeof blockNumber === "bigint" ? numberToHex(blockNumber) : void 0;
3691
3990
  const block = blockNumberHex || blockTag;
3692
3991
  const { schedule } = createBatchScheduler({
3693
3992
  id: `${client.uid}.${block}`,
3694
3993
  wait,
3695
3994
  shouldSplitBatch(args2) {
3696
- const size2 = args2.reduce((size3, { data: data2 }) => size3 + (data2.length - 2), 0);
3697
- return size2 > batchSize * 2;
3995
+ const size3 = args2.reduce((size4, { data: data2 }) => size4 + (data2.length - 2), 0);
3996
+ return size3 > batchSize * 2;
3698
3997
  },
3699
3998
  fn: async (requests) => {
3700
3999
  const calls = requests.map((request) => ({
@@ -3711,8 +4010,12 @@ async function scheduleMulticall(client, args) {
3711
4010
  method: "eth_call",
3712
4011
  params: [
3713
4012
  {
3714
- data: calldata,
3715
- to: multicallAddress
4013
+ ...multicallAddress === null ? {
4014
+ data: toDeploylessCallViaBytecodeData({
4015
+ code: multicall3Bytecode,
4016
+ data: calldata
4017
+ })
4018
+ } : { to: multicallAddress, data: calldata }
3716
4019
  },
3717
4020
  block
3718
4021
  ]
@@ -3749,14 +4052,14 @@ function toDeploylessCallViaFactoryData(parameters) {
3749
4052
  });
3750
4053
  }
3751
4054
  function getRevertErrorData(err) {
3752
- if (!(err instanceof BaseError2))
4055
+ if (!(err instanceof BaseError3))
3753
4056
  return void 0;
3754
4057
  const error = err.walk();
3755
4058
  return typeof error?.data === "object" ? error.data?.data : error.data;
3756
4059
  }
3757
4060
 
3758
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/ccip.js
3759
- var OffchainLookupError = class extends BaseError2 {
4061
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/ccip.js
4062
+ var OffchainLookupError = class extends BaseError3 {
3760
4063
  constructor({ callbackSelector, cause, data, extraData, sender, urls }) {
3761
4064
  super(cause.shortMessage || "An error occurred while fetching for an offchain result.", {
3762
4065
  cause,
@@ -3777,7 +4080,7 @@ var OffchainLookupError = class extends BaseError2 {
3777
4080
  });
3778
4081
  }
3779
4082
  };
3780
- var OffchainLookupResponseMalformedError = class extends BaseError2 {
4083
+ var OffchainLookupResponseMalformedError = class extends BaseError3 {
3781
4084
  constructor({ result, url }) {
3782
4085
  super("Offchain gateway response is malformed. Response data must be a hex value.", {
3783
4086
  metaMessages: [
@@ -3788,7 +4091,7 @@ var OffchainLookupResponseMalformedError = class extends BaseError2 {
3788
4091
  });
3789
4092
  }
3790
4093
  };
3791
- var OffchainLookupSenderMismatchError = class extends BaseError2 {
4094
+ var OffchainLookupSenderMismatchError = class extends BaseError3 {
3792
4095
  constructor({ sender, to }) {
3793
4096
  super("Reverted sender address does not match target contract address (`to`).", {
3794
4097
  metaMessages: [
@@ -3800,7 +4103,7 @@ var OffchainLookupSenderMismatchError = class extends BaseError2 {
3800
4103
  }
3801
4104
  };
3802
4105
 
3803
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddressEqual.js
4106
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/isAddressEqual.js
3804
4107
  function isAddressEqual(a, b) {
3805
4108
  if (!isAddress(a, { strict: false }))
3806
4109
  throw new InvalidAddressError({ address: a });
@@ -3809,7 +4112,109 @@ function isAddressEqual(a, b) {
3809
4112
  return a.toLowerCase() === b.toLowerCase();
3810
4113
  }
3811
4114
 
3812
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/ccip.js
4115
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/decodeFunctionData.js
4116
+ function decodeFunctionData(parameters) {
4117
+ const { abi, data } = parameters;
4118
+ const signature = slice(data, 0, 4);
4119
+ const description = abi.find((x) => x.type === "function" && signature === toFunctionSelector(formatAbiItem2(x)));
4120
+ if (!description)
4121
+ throw new AbiFunctionSignatureNotFoundError(signature, {
4122
+ docsPath: "/docs/contract/decodeFunctionData"
4123
+ });
4124
+ return {
4125
+ functionName: description.name,
4126
+ args: "inputs" in description && description.inputs && description.inputs.length > 0 ? decodeAbiParameters(description.inputs, slice(data, 4)) : void 0
4127
+ };
4128
+ }
4129
+
4130
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeErrorResult.js
4131
+ var docsPath4 = "/docs/contract/encodeErrorResult";
4132
+ function encodeErrorResult(parameters) {
4133
+ const { abi, errorName, args } = parameters;
4134
+ let abiItem = abi[0];
4135
+ if (errorName) {
4136
+ const item = getAbiItem({ abi, args, name: errorName });
4137
+ if (!item)
4138
+ throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath4 });
4139
+ abiItem = item;
4140
+ }
4141
+ if (abiItem.type !== "error")
4142
+ throw new AbiErrorNotFoundError(void 0, { docsPath: docsPath4 });
4143
+ const definition = formatAbiItem2(abiItem);
4144
+ const signature = toFunctionSelector(definition);
4145
+ let data = "0x";
4146
+ if (args && args.length > 0) {
4147
+ if (!abiItem.inputs)
4148
+ throw new AbiErrorInputsNotFoundError(abiItem.name, { docsPath: docsPath4 });
4149
+ data = encodeAbiParameters(abiItem.inputs, args);
4150
+ }
4151
+ return concatHex([signature, data]);
4152
+ }
4153
+
4154
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
4155
+ var docsPath5 = "/docs/contract/encodeFunctionResult";
4156
+ function encodeFunctionResult(parameters) {
4157
+ const { abi, functionName, result } = parameters;
4158
+ let abiItem = abi[0];
4159
+ if (functionName) {
4160
+ const item = getAbiItem({ abi, name: functionName });
4161
+ if (!item)
4162
+ throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath5 });
4163
+ abiItem = item;
4164
+ }
4165
+ if (abiItem.type !== "function")
4166
+ throw new AbiFunctionNotFoundError(void 0, { docsPath: docsPath5 });
4167
+ if (!abiItem.outputs)
4168
+ throw new AbiFunctionOutputsNotFoundError(abiItem.name, { docsPath: docsPath5 });
4169
+ const values = (() => {
4170
+ if (abiItem.outputs.length === 0)
4171
+ return [];
4172
+ if (abiItem.outputs.length === 1)
4173
+ return [result];
4174
+ if (Array.isArray(result))
4175
+ return result;
4176
+ throw new InvalidArrayError(result);
4177
+ })();
4178
+ return encodeAbiParameters(abiItem.outputs, values);
4179
+ }
4180
+
4181
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/ens/localBatchGatewayRequest.js
4182
+ var localBatchGatewayUrl = "x-batch-gateway:true";
4183
+ async function localBatchGatewayRequest(parameters) {
4184
+ const { data, ccipRequest: ccipRequest2 } = parameters;
4185
+ const { args: [queries] } = decodeFunctionData({ abi: batchGatewayAbi, data });
4186
+ const failures = [];
4187
+ const responses = [];
4188
+ await Promise.all(queries.map(async (query, i) => {
4189
+ try {
4190
+ responses[i] = query.urls.includes(localBatchGatewayUrl) ? await localBatchGatewayRequest({ data: query.data, ccipRequest: ccipRequest2 }) : await ccipRequest2(query);
4191
+ failures[i] = false;
4192
+ } catch (err) {
4193
+ failures[i] = true;
4194
+ responses[i] = encodeError(err);
4195
+ }
4196
+ }));
4197
+ return encodeFunctionResult({
4198
+ abi: batchGatewayAbi,
4199
+ functionName: "query",
4200
+ result: [failures, responses]
4201
+ });
4202
+ }
4203
+ function encodeError(error) {
4204
+ if (error.name === "HttpRequestError" && error.status)
4205
+ return encodeErrorResult({
4206
+ abi: batchGatewayAbi,
4207
+ errorName: "HttpError",
4208
+ args: [error.status, error.shortMessage]
4209
+ });
4210
+ return encodeErrorResult({
4211
+ abi: [solidityError],
4212
+ errorName: "Error",
4213
+ args: ["shortMessage" in error ? error.shortMessage : error.message]
4214
+ });
4215
+ }
4216
+
4217
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/ccip.js
3813
4218
  var offchainLookupSignature = "0x556f1830";
3814
4219
  var offchainLookupAbiItem = {
3815
4220
  name: "OffchainLookup",
@@ -3848,7 +4253,10 @@ async function offchainLookup(client, { blockNumber, blockTag, data, to }) {
3848
4253
  try {
3849
4254
  if (!isAddressEqual(to, sender))
3850
4255
  throw new OffchainLookupSenderMismatchError({ sender, to });
3851
- const result = await ccipRequest_({ data: callData, sender, urls });
4256
+ const result = urls.includes(localBatchGatewayUrl) ? await localBatchGatewayRequest({
4257
+ data: callData,
4258
+ ccipRequest: ccipRequest_
4259
+ }) : await ccipRequest_({ data: callData, sender, urls });
3852
4260
  const { data: data_ } = await call(client, {
3853
4261
  blockNumber,
3854
4262
  blockTag,
@@ -3878,7 +4286,7 @@ async function ccipRequest({ data, sender, urls }) {
3878
4286
  const body = method === "POST" ? { data, sender } : void 0;
3879
4287
  const headers = method === "POST" ? { "Content-Type": "application/json" } : {};
3880
4288
  try {
3881
- const response = await fetch(url.replace("{sender}", sender).replace("{data}", data), {
4289
+ const response = await fetch(url.replace("{sender}", sender.toLowerCase()).replace("{data}", data), {
3882
4290
  body: JSON.stringify(body),
3883
4291
  headers,
3884
4292
  method
@@ -3919,12 +4327,11 @@ async function ccipRequest({ data, sender, urls }) {
3919
4327
  }
3920
4328
 
3921
4329
  export {
3922
- BaseError2 as BaseError,
4330
+ BaseError3 as BaseError,
3923
4331
  toHex,
3924
4332
  keccak256,
3925
4333
  encodeAbiParameters,
3926
4334
  getAbiItem,
3927
- encodeFunctionData,
3928
4335
  decodeAbiParameters,
3929
4336
  etherUnits,
3930
4337
  offchainLookupSignature,
@@ -3932,9 +4339,4 @@ export {
3932
4339
  offchainLookup,
3933
4340
  ccipRequest
3934
4341
  };
3935
- /*! Bundled license information:
3936
-
3937
- @noble/hashes/esm/utils.js:
3938
- (*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
3939
- */
3940
- //# sourceMappingURL=chunk-NPNNGXR4.js.map
4342
+ //# sourceMappingURL=chunk-KMBLRPCX.js.map