@zoralabs/protocol-deployments 0.6.4-PRE.0 → 0.6.4

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