@zoralabs/protocol-deployments 0.7.2 → 0.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -20,18 +20,18 @@ var __copyProps = (to, from, except, desc) => {
20
20
  };
21
21
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
22
22
 
23
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/regex.js
23
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/regex.js
24
24
  function execTyped(regex, string) {
25
25
  const match = regex.exec(string);
26
26
  return match?.groups;
27
27
  }
28
28
  var init_regex = __esm({
29
- "../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/regex.js"() {
29
+ "../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/regex.js"() {
30
30
  "use strict";
31
31
  }
32
32
  });
33
33
 
34
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
34
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
35
35
  function formatAbiParameter(abiParameter) {
36
36
  let type = abiParameter.type;
37
37
  if (tupleRegex.test(abiParameter.type) && "components" in abiParameter) {
@@ -44,7 +44,7 @@ function formatAbiParameter(abiParameter) {
44
44
  type += ", ";
45
45
  }
46
46
  const result = execTyped(tupleRegex, abiParameter.type);
47
- type += `)${result?.array ?? ""}`;
47
+ type += `)${result?.array || ""}`;
48
48
  return formatAbiParameter({
49
49
  ...abiParameter,
50
50
  type
@@ -58,14 +58,14 @@ function formatAbiParameter(abiParameter) {
58
58
  }
59
59
  var tupleRegex;
60
60
  var init_formatAbiParameter = __esm({
61
- "../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
61
+ "../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
62
62
  "use strict";
63
63
  init_regex();
64
64
  tupleRegex = /^tuple(?<array>(\[(\d*)\])*)$/;
65
65
  }
66
66
  });
67
67
 
68
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
68
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
69
69
  function formatAbiParameters(abiParameters) {
70
70
  let params = "";
71
71
  const length = abiParameters.length;
@@ -78,13 +78,13 @@ function formatAbiParameters(abiParameters) {
78
78
  return params;
79
79
  }
80
80
  var init_formatAbiParameters = __esm({
81
- "../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
81
+ "../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
82
82
  "use strict";
83
83
  init_formatAbiParameter();
84
84
  }
85
85
  });
86
86
 
87
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
87
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
88
88
  function formatAbiItem(abiItem) {
89
89
  if (abiItem.type === "function")
90
90
  return `function ${abiItem.name}(${formatAbiParameters(abiItem.inputs)})${abiItem.stateMutability && abiItem.stateMutability !== "nonpayable" ? ` ${abiItem.stateMutability}` : ""}${abiItem.outputs?.length ? ` returns (${formatAbiParameters(abiItem.outputs)})` : ""}`;
@@ -99,21 +99,21 @@ function formatAbiItem(abiItem) {
99
99
  return "receive() external payable";
100
100
  }
101
101
  var init_formatAbiItem = __esm({
102
- "../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
102
+ "../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
103
103
  "use strict";
104
104
  init_formatAbiParameters();
105
105
  }
106
106
  });
107
107
 
108
- // ../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/exports/index.js
108
+ // ../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/exports/index.js
109
109
  var init_exports = __esm({
110
- "../../node_modules/.pnpm/abitype@1.0.7_typescript@5.9.3_zod@3.25.76/node_modules/abitype/dist/esm/exports/index.js"() {
110
+ "../../node_modules/.pnpm/abitype@1.2.3_typescript@5.9.3_zod@4.3.6/node_modules/abitype/dist/esm/exports/index.js"() {
111
111
  "use strict";
112
112
  init_formatAbiItem();
113
113
  }
114
114
  });
115
115
 
116
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/formatAbiItem.js
116
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItem.js
117
117
  function formatAbiItem2(abiItem, { includeName = false } = {}) {
118
118
  if (abiItem.type !== "function" && abiItem.type !== "event" && abiItem.type !== "error")
119
119
  throw new InvalidDefinitionTypeError(abiItem.type);
@@ -131,13 +131,13 @@ function formatAbiParam(param, { includeName }) {
131
131
  return param.type + (includeName && param.name ? ` ${param.name}` : "");
132
132
  }
133
133
  var init_formatAbiItem2 = __esm({
134
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
134
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
135
135
  "use strict";
136
136
  init_abi();
137
137
  }
138
138
  });
139
139
 
140
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/isHex.js
140
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js
141
141
  function isHex(value, { strict = true } = {}) {
142
142
  if (!value)
143
143
  return false;
@@ -146,34 +146,34 @@ function isHex(value, { strict = true } = {}) {
146
146
  return strict ? /^0x[0-9a-fA-F]*$/.test(value) : value.startsWith("0x");
147
147
  }
148
148
  var init_isHex = __esm({
149
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/isHex.js"() {
149
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/isHex.js"() {
150
150
  "use strict";
151
151
  }
152
152
  });
153
153
 
154
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/size.js
154
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js
155
155
  function size(value) {
156
156
  if (isHex(value, { strict: false }))
157
157
  return Math.ceil((value.length - 2) / 2);
158
158
  return value.length;
159
159
  }
160
160
  var init_size = __esm({
161
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/size.js"() {
161
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/size.js"() {
162
162
  "use strict";
163
163
  init_isHex();
164
164
  }
165
165
  });
166
166
 
167
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/version.js
167
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/version.js
168
168
  var version;
169
169
  var init_version = __esm({
170
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/version.js"() {
170
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/version.js"() {
171
171
  "use strict";
172
- version = "2.22.12";
172
+ version = "2.53.1";
173
173
  }
174
174
  });
175
175
 
176
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/base.js
176
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/base.js
177
177
  function walk(err, fn) {
178
178
  if (fn?.(err))
179
179
  return err;
@@ -183,7 +183,7 @@ function walk(err, fn) {
183
183
  }
184
184
  var errorConfig, BaseError;
185
185
  var init_base = __esm({
186
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/base.js"() {
186
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/base.js"() {
187
187
  "use strict";
188
188
  init_version();
189
189
  errorConfig = {
@@ -264,10 +264,10 @@ var init_base = __esm({
264
264
  }
265
265
  });
266
266
 
267
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/abi.js
267
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/abi.js
268
268
  var AbiDecodingDataSizeTooSmallError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidAbiDecodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
269
269
  var init_abi = __esm({
270
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/abi.js"() {
270
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/abi.js"() {
271
271
  "use strict";
272
272
  init_formatAbiItem2();
273
273
  init_size();
@@ -305,9 +305,10 @@ var init_abi = __esm({
305
305
  }
306
306
  };
307
307
  AbiDecodingZeroDataError = class extends BaseError {
308
- constructor() {
308
+ constructor({ cause } = {}) {
309
309
  super('Cannot decode zero data ("0x") with ABI parameters.', {
310
- name: "AbiDecodingZeroDataError"
310
+ name: "AbiDecodingZeroDataError",
311
+ cause
311
312
  });
312
313
  }
313
314
  };
@@ -382,10 +383,10 @@ var init_abi = __esm({
382
383
  }
383
384
  });
384
385
 
385
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/data.js
386
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/data.js
386
387
  var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
387
388
  var init_data = __esm({
388
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/data.js"() {
389
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/data.js"() {
389
390
  "use strict";
390
391
  init_base();
391
392
  SliceOffsetOutOfBoundsError = class extends BaseError {
@@ -401,7 +402,7 @@ var init_data = __esm({
401
402
  }
402
403
  });
403
404
 
404
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/pad.js
405
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js
405
406
  function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
406
407
  if (typeof hexOrBytes === "string")
407
408
  return padHex(hexOrBytes, { dir, size: size2 });
@@ -436,16 +437,16 @@ function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
436
437
  return paddedBytes;
437
438
  }
438
439
  var init_pad = __esm({
439
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/pad.js"() {
440
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/pad.js"() {
440
441
  "use strict";
441
442
  init_data();
442
443
  }
443
444
  });
444
445
 
445
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/encoding.js
446
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js
446
447
  var IntegerOutOfRangeError, InvalidBytesBooleanError, SizeOverflowError;
447
448
  var init_encoding = __esm({
448
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/encoding.js"() {
449
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/encoding.js"() {
449
450
  "use strict";
450
451
  init_base();
451
452
  IntegerOutOfRangeError = class extends BaseError {
@@ -468,7 +469,7 @@ var init_encoding = __esm({
468
469
  }
469
470
  });
470
471
 
471
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/trim.js
472
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js
472
473
  function trim(hexOrBytes, { dir = "left" } = {}) {
473
474
  let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
474
475
  let sliceLength = 0;
@@ -487,12 +488,12 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
487
488
  return data;
488
489
  }
489
490
  var init_trim = __esm({
490
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/trim.js"() {
491
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/trim.js"() {
491
492
  "use strict";
492
493
  }
493
494
  });
494
495
 
495
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromHex.js
496
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js
496
497
  function assertSize(hexOrBytes, { size: size2 }) {
497
498
  if (size(hexOrBytes) > size2)
498
499
  throw new SizeOverflowError({
@@ -514,17 +515,27 @@ function hexToBigInt(hex, opts = {}) {
514
515
  return value - BigInt(`0x${"f".padStart(size2 * 2, "f")}`) - 1n;
515
516
  }
516
517
  function hexToNumber(hex, opts = {}) {
517
- return Number(hexToBigInt(hex, opts));
518
+ const value = hexToBigInt(hex, opts);
519
+ const number = Number(value);
520
+ if (!Number.isSafeInteger(number))
521
+ throw new IntegerOutOfRangeError({
522
+ max: `${Number.MAX_SAFE_INTEGER}`,
523
+ min: `${Number.MIN_SAFE_INTEGER}`,
524
+ signed: opts.signed,
525
+ size: opts.size,
526
+ value: `${value}n`
527
+ });
528
+ return number;
518
529
  }
519
530
  var init_fromHex = __esm({
520
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
531
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
521
532
  "use strict";
522
533
  init_encoding();
523
534
  init_size();
524
535
  }
525
536
  });
526
537
 
527
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toHex.js
538
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js
528
539
  function toHex(value, opts = {}) {
529
540
  if (typeof value === "number" || typeof value === "bigint")
530
541
  return numberToHex(value, opts);
@@ -589,7 +600,7 @@ function stringToHex(value_, opts = {}) {
589
600
  }
590
601
  var hexes, encoder;
591
602
  var init_toHex = __esm({
592
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toHex.js"() {
603
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toHex.js"() {
593
604
  "use strict";
594
605
  init_encoding();
595
606
  init_pad();
@@ -599,7 +610,7 @@ var init_toHex = __esm({
599
610
  }
600
611
  });
601
612
 
602
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toBytes.js
613
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js
603
614
  function toBytes(value, opts = {}) {
604
615
  if (typeof value === "number" || typeof value === "bigint")
605
616
  return numberToBytes(value, opts);
@@ -662,7 +673,7 @@ function stringToBytes(value, opts = {}) {
662
673
  }
663
674
  var encoder2, charCodeMap;
664
675
  var init_toBytes = __esm({
665
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
676
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
666
677
  "use strict";
667
678
  init_base();
668
679
  init_isHex();
@@ -681,14 +692,43 @@ var init_toBytes = __esm({
681
692
  }
682
693
  });
683
694
 
684
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js
685
- function anumber(n) {
686
- if (!Number.isSafeInteger(n) || n < 0)
687
- throw new Error("positive integer expected, got " + n);
695
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
696
+ function fromBig(n, le = false) {
697
+ if (le)
698
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
699
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
700
+ }
701
+ function split(lst, le = false) {
702
+ const len = lst.length;
703
+ let Ah = new Uint32Array(len);
704
+ let Al = new Uint32Array(len);
705
+ for (let i = 0; i < len; i++) {
706
+ const { h, l } = fromBig(lst[i], le);
707
+ [Ah[i], Al[i]] = [h, l];
708
+ }
709
+ return [Ah, Al];
688
710
  }
711
+ var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
712
+ var init_u64 = __esm({
713
+ "../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js"() {
714
+ "use strict";
715
+ U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
716
+ _32n = /* @__PURE__ */ BigInt(32);
717
+ rotlSH = (h, l, s) => h << s | l >>> 32 - s;
718
+ rotlSL = (h, l, s) => l << s | h >>> 32 - s;
719
+ rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
720
+ rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
721
+ }
722
+ });
723
+
724
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
689
725
  function isBytes(a) {
690
726
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
691
727
  }
728
+ function anumber(n) {
729
+ if (!Number.isSafeInteger(n) || n < 0)
730
+ throw new Error("positive integer expected, got " + n);
731
+ }
692
732
  function abytes(b, ...lengths) {
693
733
  if (!isBytes(b))
694
734
  throw new Error("Uint8Array expected");
@@ -708,49 +748,26 @@ function aoutput(out, instance) {
708
748
  throw new Error("digestInto() expects output buffer of length at least " + min);
709
749
  }
710
750
  }
711
- var init_assert = __esm({
712
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js"() {
713
- "use strict";
714
- }
715
- });
716
-
717
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js
718
- function fromBig(n, le = false) {
719
- if (le)
720
- return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
721
- return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
751
+ function u32(arr) {
752
+ return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
722
753
  }
723
- function split(lst, le = false) {
724
- let Ah = new Uint32Array(lst.length);
725
- let Al = new Uint32Array(lst.length);
726
- for (let i = 0; i < lst.length; i++) {
727
- const { h, l } = fromBig(lst[i], le);
728
- [Ah[i], Al[i]] = [h, l];
754
+ function clean(...arrays) {
755
+ for (let i = 0; i < arrays.length; i++) {
756
+ arrays[i].fill(0);
729
757
  }
730
- return [Ah, Al];
731
758
  }
732
- var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
733
- var init_u64 = __esm({
734
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js"() {
735
- "use strict";
736
- U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
737
- _32n = /* @__PURE__ */ BigInt(32);
738
- rotlSH = (h, l, s) => h << s | l >>> 32 - s;
739
- rotlSL = (h, l, s) => l << s | h >>> 32 - s;
740
- rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
741
- rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
742
- }
743
- });
744
-
745
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js
759
+ function byteSwap(word) {
760
+ return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
761
+ }
746
762
  function byteSwap32(arr) {
747
763
  for (let i = 0; i < arr.length; i++) {
748
764
  arr[i] = byteSwap(arr[i]);
749
765
  }
766
+ return arr;
750
767
  }
751
768
  function utf8ToBytes(str) {
752
769
  if (typeof str !== "string")
753
- throw new Error("utf8ToBytes expected string, got " + typeof str);
770
+ throw new Error("string expected");
754
771
  return new Uint8Array(new TextEncoder().encode(str));
755
772
  }
756
773
  function toBytes2(data) {
@@ -759,7 +776,7 @@ function toBytes2(data) {
759
776
  abytes(data);
760
777
  return data;
761
778
  }
762
- function wrapConstructor(hashCons) {
779
+ function createHasher(hashCons) {
763
780
  const hashC = (msg) => hashCons().update(toBytes2(msg)).digest();
764
781
  const tmp = hashCons();
765
782
  hashC.outputLen = tmp.outputLen;
@@ -767,32 +784,18 @@ function wrapConstructor(hashCons) {
767
784
  hashC.create = () => hashCons();
768
785
  return hashC;
769
786
  }
770
- function wrapXOFConstructorWithOpts(hashCons) {
771
- const hashC = (msg, opts) => hashCons(opts).update(toBytes2(msg)).digest();
772
- const tmp = hashCons({});
773
- hashC.outputLen = tmp.outputLen;
774
- hashC.blockLen = tmp.blockLen;
775
- hashC.create = (opts) => hashCons(opts);
776
- return hashC;
777
- }
778
- var u32, isLE, byteSwap, Hash;
787
+ var isLE, swap32IfBE, Hash;
779
788
  var init_utils = __esm({
780
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js"() {
789
+ "../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js"() {
781
790
  "use strict";
782
- init_assert();
783
- u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
784
791
  isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
785
- byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
792
+ swap32IfBE = isLE ? (u) => u : byteSwap32;
786
793
  Hash = class {
787
- // Safe version that clones internal state
788
- clone() {
789
- return this._cloneInto();
790
- }
791
794
  };
792
795
  }
793
796
  });
794
797
 
795
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js
798
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
796
799
  function keccakP(s, rounds = 24) {
797
800
  const B = new Uint32Array(5 * 2);
798
801
  for (let round = 24 - rounds; round < 24; round++) {
@@ -831,24 +834,23 @@ function keccakP(s, rounds = 24) {
831
834
  s[0] ^= SHA3_IOTA_H[round];
832
835
  s[1] ^= SHA3_IOTA_L[round];
833
836
  }
834
- B.fill(0);
837
+ clean(B);
835
838
  }
836
- var SHA3_PI, SHA3_ROTL, _SHA3_IOTA, _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_IOTA_H, SHA3_IOTA_L, rotlH, rotlL, Keccak, gen, sha3_224, sha3_256, sha3_384, sha3_512, keccak_224, keccak_256, keccak_384, keccak_512, genShake, shake128, shake256;
839
+ var _0n, _1n, _2n, _7n, _256n, _0x71n, SHA3_PI, SHA3_ROTL, _SHA3_IOTA, IOTAS, SHA3_IOTA_H, SHA3_IOTA_L, rotlH, rotlL, Keccak, gen, keccak_256;
837
840
  var init_sha3 = __esm({
838
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js"() {
841
+ "../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js"() {
839
842
  "use strict";
840
- init_assert();
841
843
  init_u64();
842
844
  init_utils();
845
+ _0n = BigInt(0);
846
+ _1n = BigInt(1);
847
+ _2n = BigInt(2);
848
+ _7n = BigInt(7);
849
+ _256n = BigInt(256);
850
+ _0x71n = BigInt(113);
843
851
  SHA3_PI = [];
844
852
  SHA3_ROTL = [];
845
853
  _SHA3_IOTA = [];
846
- _0n = /* @__PURE__ */ BigInt(0);
847
- _1n = /* @__PURE__ */ BigInt(1);
848
- _2n = /* @__PURE__ */ BigInt(2);
849
- _7n = /* @__PURE__ */ BigInt(7);
850
- _256n = /* @__PURE__ */ BigInt(256);
851
- _0x71n = /* @__PURE__ */ BigInt(113);
852
854
  for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
853
855
  [x, y] = [y, (2 * x + 3 * y) % 5];
854
856
  SHA3_PI.push(2 * (5 * y + x));
@@ -861,41 +863,46 @@ var init_sha3 = __esm({
861
863
  }
862
864
  _SHA3_IOTA.push(t);
863
865
  }
864
- [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
866
+ IOTAS = split(_SHA3_IOTA, true);
867
+ SHA3_IOTA_H = IOTAS[0];
868
+ SHA3_IOTA_L = IOTAS[1];
865
869
  rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
866
870
  rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
867
871
  Keccak = class _Keccak extends Hash {
868
872
  // NOTE: we accept arguments in bytes instead of bits here.
869
873
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
870
874
  super();
875
+ this.pos = 0;
876
+ this.posOut = 0;
877
+ this.finished = false;
878
+ this.destroyed = false;
879
+ this.enableXOF = false;
871
880
  this.blockLen = blockLen;
872
881
  this.suffix = suffix;
873
882
  this.outputLen = outputLen;
874
883
  this.enableXOF = enableXOF;
875
884
  this.rounds = rounds;
876
- this.pos = 0;
877
- this.posOut = 0;
878
- this.finished = false;
879
- this.destroyed = false;
880
885
  anumber(outputLen);
881
- if (0 >= this.blockLen || this.blockLen >= 200)
882
- throw new Error("Sha3 supports only keccak-f1600 function");
886
+ if (!(0 < blockLen && blockLen < 200))
887
+ throw new Error("only keccak-f1600 function is supported");
883
888
  this.state = new Uint8Array(200);
884
889
  this.state32 = u32(this.state);
885
890
  }
891
+ clone() {
892
+ return this._cloneInto();
893
+ }
886
894
  keccak() {
887
- if (!isLE)
888
- byteSwap32(this.state32);
895
+ swap32IfBE(this.state32);
889
896
  keccakP(this.state32, this.rounds);
890
- if (!isLE)
891
- byteSwap32(this.state32);
897
+ swap32IfBE(this.state32);
892
898
  this.posOut = 0;
893
899
  this.pos = 0;
894
900
  }
895
901
  update(data) {
896
902
  aexists(this);
897
- const { blockLen, state } = this;
898
903
  data = toBytes2(data);
904
+ abytes(data);
905
+ const { blockLen, state } = this;
899
906
  const len = data.length;
900
907
  for (let pos = 0; pos < len; ) {
901
908
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -955,7 +962,7 @@ var init_sha3 = __esm({
955
962
  }
956
963
  destroy() {
957
964
  this.destroyed = true;
958
- this.state.fill(0);
965
+ clean(this.state);
959
966
  }
960
967
  _cloneInto(to) {
961
968
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
@@ -972,22 +979,12 @@ var init_sha3 = __esm({
972
979
  return to;
973
980
  }
974
981
  };
975
- gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
976
- sha3_224 = /* @__PURE__ */ gen(6, 144, 224 / 8);
977
- sha3_256 = /* @__PURE__ */ gen(6, 136, 256 / 8);
978
- sha3_384 = /* @__PURE__ */ gen(6, 104, 384 / 8);
979
- sha3_512 = /* @__PURE__ */ gen(6, 72, 512 / 8);
980
- keccak_224 = /* @__PURE__ */ gen(1, 144, 224 / 8);
981
- keccak_256 = /* @__PURE__ */ gen(1, 136, 256 / 8);
982
- keccak_384 = /* @__PURE__ */ gen(1, 104, 384 / 8);
983
- keccak_512 = /* @__PURE__ */ gen(1, 72, 512 / 8);
984
- genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true));
985
- shake128 = /* @__PURE__ */ genShake(31, 168, 128 / 8);
986
- shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
982
+ gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
983
+ keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
987
984
  }
988
985
  });
989
986
 
990
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/keccak256.js
987
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js
991
988
  function keccak256(value, to_) {
992
989
  const to = to_ || "hex";
993
990
  const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
@@ -996,7 +993,7 @@ function keccak256(value, to_) {
996
993
  return toHex(bytes);
997
994
  }
998
995
  var init_keccak256 = __esm({
999
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/keccak256.js"() {
996
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/keccak256.js"() {
1000
997
  "use strict";
1001
998
  init_sha3();
1002
999
  init_isHex();
@@ -1005,13 +1002,13 @@ var init_keccak256 = __esm({
1005
1002
  }
1006
1003
  });
1007
1004
 
1008
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/hashSignature.js
1005
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/hashSignature.js
1009
1006
  function hashSignature(sig) {
1010
1007
  return hash(sig);
1011
1008
  }
1012
1009
  var hash;
1013
1010
  var init_hashSignature = __esm({
1014
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
1011
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
1015
1012
  "use strict";
1016
1013
  init_toBytes();
1017
1014
  init_keccak256();
@@ -1019,7 +1016,7 @@ var init_hashSignature = __esm({
1019
1016
  }
1020
1017
  });
1021
1018
 
1022
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/normalizeSignature.js
1019
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/normalizeSignature.js
1023
1020
  function normalizeSignature(signature) {
1024
1021
  let active = true;
1025
1022
  let current = "";
@@ -1063,16 +1060,16 @@ function normalizeSignature(signature) {
1063
1060
  return result;
1064
1061
  }
1065
1062
  var init_normalizeSignature = __esm({
1066
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
1063
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
1067
1064
  "use strict";
1068
1065
  init_base();
1069
1066
  }
1070
1067
  });
1071
1068
 
1072
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toSignature.js
1069
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignature.js
1073
1070
  var toSignature;
1074
1071
  var init_toSignature = __esm({
1075
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toSignature.js"() {
1072
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignature.js"() {
1076
1073
  "use strict";
1077
1074
  init_exports();
1078
1075
  init_normalizeSignature();
@@ -1087,32 +1084,32 @@ var init_toSignature = __esm({
1087
1084
  }
1088
1085
  });
1089
1086
 
1090
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1087
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1091
1088
  function toSignatureHash(fn) {
1092
1089
  return hashSignature(toSignature(fn));
1093
1090
  }
1094
1091
  var init_toSignatureHash = __esm({
1095
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
1092
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
1096
1093
  "use strict";
1097
1094
  init_hashSignature();
1098
1095
  init_toSignature();
1099
1096
  }
1100
1097
  });
1101
1098
 
1102
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toEventSelector.js
1099
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toEventSelector.js
1103
1100
  var toEventSelector;
1104
1101
  var init_toEventSelector = __esm({
1105
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
1102
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
1106
1103
  "use strict";
1107
1104
  init_toSignatureHash();
1108
1105
  toEventSelector = toSignatureHash;
1109
1106
  }
1110
1107
  });
1111
1108
 
1112
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/address.js
1109
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/address.js
1113
1110
  var InvalidAddressError;
1114
1111
  var init_address = __esm({
1115
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/address.js"() {
1112
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/address.js"() {
1116
1113
  "use strict";
1117
1114
  init_base();
1118
1115
  InvalidAddressError = class extends BaseError {
@@ -1129,10 +1126,10 @@ var init_address = __esm({
1129
1126
  }
1130
1127
  });
1131
1128
 
1132
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/lru.js
1129
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/lru.js
1133
1130
  var LruMap;
1134
1131
  var init_lru = __esm({
1135
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/lru.js"() {
1132
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/lru.js"() {
1136
1133
  "use strict";
1137
1134
  LruMap = class extends Map {
1138
1135
  constructor(size2) {
@@ -1147,18 +1144,20 @@ var init_lru = __esm({
1147
1144
  }
1148
1145
  get(key) {
1149
1146
  const value = super.get(key);
1150
- if (super.has(key) && value !== void 0) {
1151
- this.delete(key);
1147
+ if (super.has(key)) {
1148
+ super.delete(key);
1152
1149
  super.set(key, value);
1153
1150
  }
1154
1151
  return value;
1155
1152
  }
1156
1153
  set(key, value) {
1154
+ if (super.has(key))
1155
+ super.delete(key);
1157
1156
  super.set(key, value);
1158
1157
  if (this.maxSize && this.size > this.maxSize) {
1159
- const firstKey = this.keys().next().value;
1160
- if (firstKey)
1161
- this.delete(firstKey);
1158
+ const firstKey = super.keys().next().value;
1159
+ if (firstKey !== void 0)
1160
+ super.delete(firstKey);
1162
1161
  }
1163
1162
  return this;
1164
1163
  }
@@ -1166,7 +1165,7 @@ var init_lru = __esm({
1166
1165
  }
1167
1166
  });
1168
1167
 
1169
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/address/getAddress.js
1168
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js
1170
1169
  function checksumAddress(address_, chainId) {
1171
1170
  if (checksumAddressCache.has(`${address_}.${chainId}`))
1172
1171
  return checksumAddressCache.get(`${address_}.${chainId}`);
@@ -1187,7 +1186,7 @@ function checksumAddress(address_, chainId) {
1187
1186
  }
1188
1187
  var checksumAddressCache;
1189
1188
  var init_getAddress = __esm({
1190
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/address/getAddress.js"() {
1189
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/getAddress.js"() {
1191
1190
  "use strict";
1192
1191
  init_toBytes();
1193
1192
  init_keccak256();
@@ -1196,7 +1195,7 @@ var init_getAddress = __esm({
1196
1195
  }
1197
1196
  });
1198
1197
 
1199
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/address/isAddress.js
1198
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js
1200
1199
  function isAddress(address, options) {
1201
1200
  const { strict = true } = options ?? {};
1202
1201
  const cacheKey = `${address}.${strict}`;
@@ -1216,7 +1215,7 @@ function isAddress(address, options) {
1216
1215
  }
1217
1216
  var addressRegex, isAddressCache;
1218
1217
  var init_isAddress = __esm({
1219
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/address/isAddress.js"() {
1218
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/address/isAddress.js"() {
1220
1219
  "use strict";
1221
1220
  init_lru();
1222
1221
  init_getAddress();
@@ -1225,7 +1224,7 @@ var init_isAddress = __esm({
1225
1224
  }
1226
1225
  });
1227
1226
 
1228
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/concat.js
1227
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js
1229
1228
  function concat(values) {
1230
1229
  if (typeof values[0] === "string")
1231
1230
  return concatHex(values);
@@ -1248,12 +1247,12 @@ function concatHex(values) {
1248
1247
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
1249
1248
  }
1250
1249
  var init_concat = __esm({
1251
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/concat.js"() {
1250
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/concat.js"() {
1252
1251
  "use strict";
1253
1252
  }
1254
1253
  });
1255
1254
 
1256
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/slice.js
1255
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js
1257
1256
  function slice(value, start, end, { strict } = {}) {
1258
1257
  if (isHex(value, { strict: false }))
1259
1258
  return sliceHex(value, start, end, {
@@ -1295,7 +1294,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
1295
1294
  return value;
1296
1295
  }
1297
1296
  var init_slice = __esm({
1298
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/data/slice.js"() {
1297
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/data/slice.js"() {
1299
1298
  "use strict";
1300
1299
  init_data();
1301
1300
  init_isHex();
@@ -1303,16 +1302,16 @@ var init_slice = __esm({
1303
1302
  }
1304
1303
  });
1305
1304
 
1306
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/regex.js
1305
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/regex.js
1307
1306
  var integerRegex;
1308
1307
  var init_regex2 = __esm({
1309
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/regex.js"() {
1308
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/regex.js"() {
1310
1309
  "use strict";
1311
1310
  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)?$/;
1312
1311
  }
1313
1312
  });
1314
1313
 
1315
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1314
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1316
1315
  function encodeAbiParameters(params, values) {
1317
1316
  if (params.length !== values.length)
1318
1317
  throw new AbiEncodingLengthMismatchError({
@@ -1449,9 +1448,9 @@ function encodeBytes(value, { param }) {
1449
1448
  encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
1450
1449
  };
1451
1450
  }
1452
- if (bytesSize !== Number.parseInt(paramSize))
1451
+ if (bytesSize !== Number.parseInt(paramSize, 10))
1453
1452
  throw new AbiEncodingBytesSizeMismatchError({
1454
- expectedSize: Number.parseInt(paramSize),
1453
+ expectedSize: Number.parseInt(paramSize, 10),
1455
1454
  value
1456
1455
  });
1457
1456
  return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
@@ -1526,7 +1525,7 @@ function getArrayComponents(type) {
1526
1525
  ) : void 0;
1527
1526
  }
1528
1527
  var init_encodeAbiParameters = __esm({
1529
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
1528
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
1530
1529
  "use strict";
1531
1530
  init_abi();
1532
1531
  init_address();
@@ -1542,10 +1541,10 @@ var init_encodeAbiParameters = __esm({
1542
1541
  }
1543
1542
  });
1544
1543
 
1545
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1544
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1546
1545
  var toFunctionSelector;
1547
1546
  var init_toFunctionSelector = __esm({
1548
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
1547
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
1549
1548
  "use strict";
1550
1549
  init_slice();
1551
1550
  init_toSignatureHash();
@@ -1553,7 +1552,7 @@ var init_toFunctionSelector = __esm({
1553
1552
  }
1554
1553
  });
1555
1554
 
1556
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/getAbiItem.js
1555
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/getAbiItem.js
1557
1556
  function getAbiItem(parameters) {
1558
1557
  const { abi, args = [], name } = parameters;
1559
1558
  const isSelector = isHex(name, { strict: false });
@@ -1571,7 +1570,7 @@ function getAbiItem(parameters) {
1571
1570
  return void 0;
1572
1571
  if (abiItems.length === 1)
1573
1572
  return abiItems[0];
1574
- let matchedAbiItem = void 0;
1573
+ let matchedAbiItem;
1575
1574
  for (const abiItem of abiItems) {
1576
1575
  if (!("inputs" in abiItem))
1577
1576
  continue;
@@ -1626,7 +1625,7 @@ function isArgOfType(arg, abiParameter) {
1626
1625
  default: {
1627
1626
  if (abiParameterType === "tuple" && "components" in abiParameter)
1628
1627
  return Object.values(abiParameter.components).every((component, index) => {
1629
- return isArgOfType(Object.values(arg)[index], component);
1628
+ return argType === "object" && isArgOfType(Object.values(arg)[index], component);
1630
1629
  });
1631
1630
  if (/^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)?$/.test(abiParameterType))
1632
1631
  return argType === "number" || argType === "bigint";
@@ -1665,7 +1664,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
1665
1664
  return;
1666
1665
  }
1667
1666
  var init_getAbiItem = __esm({
1668
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
1667
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
1669
1668
  "use strict";
1670
1669
  init_abi();
1671
1670
  init_isHex();
@@ -1675,10 +1674,10 @@ var init_getAbiItem = __esm({
1675
1674
  }
1676
1675
  });
1677
1676
 
1678
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/cursor.js
1677
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js
1679
1678
  var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
1680
1679
  var init_cursor = __esm({
1681
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/cursor.js"() {
1680
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/cursor.js"() {
1682
1681
  "use strict";
1683
1682
  init_base();
1684
1683
  NegativeOffsetError = class extends BaseError {
@@ -1701,18 +1700,18 @@ var init_cursor = __esm({
1701
1700
  }
1702
1701
  });
1703
1702
 
1704
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/cursor.js
1703
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js
1705
1704
  function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
1706
1705
  const cursor = Object.create(staticCursor);
1707
1706
  cursor.bytes = bytes;
1708
- cursor.dataView = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
1707
+ cursor.dataView = new DataView(bytes.buffer ?? bytes, bytes.byteOffset, bytes.byteLength);
1709
1708
  cursor.positionReadCount = /* @__PURE__ */ new Map();
1710
1709
  cursor.recursiveReadLimit = recursiveReadLimit;
1711
1710
  return cursor;
1712
1711
  }
1713
1712
  var staticCursor;
1714
1713
  var init_cursor2 = __esm({
1715
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/cursor.js"() {
1714
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/cursor.js"() {
1716
1715
  "use strict";
1717
1716
  init_cursor();
1718
1717
  staticCursor = {
@@ -1877,7 +1876,7 @@ var init_cursor2 = __esm({
1877
1876
  }
1878
1877
  });
1879
1878
 
1880
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromBytes.js
1879
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromBytes.js
1881
1880
  function bytesToBigInt(bytes, opts = {}) {
1882
1881
  if (typeof opts.size !== "undefined")
1883
1882
  assertSize(bytes, { size: opts.size });
@@ -1909,7 +1908,7 @@ function bytesToString(bytes_, opts = {}) {
1909
1908
  return new TextDecoder().decode(bytes);
1910
1909
  }
1911
1910
  var init_fromBytes = __esm({
1912
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/encoding/fromBytes.js"() {
1911
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/encoding/fromBytes.js"() {
1913
1912
  "use strict";
1914
1913
  init_encoding();
1915
1914
  init_trim();
@@ -1918,7 +1917,7 @@ var init_fromBytes = __esm({
1918
1917
  }
1919
1918
  });
1920
1919
 
1921
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
1920
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
1922
1921
  function decodeAbiParameters(params, data) {
1923
1922
  const bytes = typeof data === "string" ? hexToBytes(data) : data;
1924
1923
  const cursor = createCursor(bytes);
@@ -2032,12 +2031,12 @@ function decodeBytes(cursor, param, { staticPosition }) {
2032
2031
  cursor.setPosition(staticPosition + 32);
2033
2032
  return [bytesToHex(data), 32];
2034
2033
  }
2035
- const value = bytesToHex(cursor.readBytes(Number.parseInt(size2), 32));
2034
+ const value = bytesToHex(cursor.readBytes(Number.parseInt(size2, 10), 32));
2036
2035
  return [value, 32];
2037
2036
  }
2038
2037
  function decodeNumber(cursor, param) {
2039
2038
  const signed = param.type.startsWith("int");
2040
- const size2 = Number.parseInt(param.type.split("int")[1] || "256");
2039
+ const size2 = Number.parseInt(param.type.split("int")[1] || "256", 10);
2041
2040
  const value = cursor.readBytes(32);
2042
2041
  return [
2043
2042
  size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
@@ -2104,7 +2103,7 @@ function hasDynamicChild(param) {
2104
2103
  }
2105
2104
  var sizeOfLength, sizeOfOffset;
2106
2105
  var init_decodeAbiParameters = __esm({
2107
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"() {
2106
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"() {
2108
2107
  "use strict";
2109
2108
  init_abi();
2110
2109
  init_getAddress();
@@ -2121,10 +2120,10 @@ var init_decodeAbiParameters = __esm({
2121
2120
  }
2122
2121
  });
2123
2122
 
2124
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/constants/unit.js
2123
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/unit.js
2125
2124
  var etherUnits;
2126
2125
  var init_unit = __esm({
2127
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/constants/unit.js"() {
2126
+ "../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/constants/unit.js"() {
2128
2127
  "use strict";
2129
2128
  etherUnits = {
2130
2129
  gwei: 9,
@@ -2222,6 +2221,12 @@ __export(index_exports, {
2222
2221
  uniswapV3SwapRouterABI: () => uniswapV3SwapRouterABI,
2223
2222
  uniswapV3SwapRouterAddress: () => uniswapV3SwapRouterAddress,
2224
2223
  uniswapV3SwapRouterConfig: () => uniswapV3SwapRouterConfig,
2224
+ uniswapV4PoolManagerABI: () => uniswapV4PoolManagerABI,
2225
+ uniswapV4PoolManagerAddress: () => uniswapV4PoolManagerAddress,
2226
+ uniswapV4PoolManagerConfig: () => uniswapV4PoolManagerConfig,
2227
+ universalRouterABI: () => universalRouterABI,
2228
+ universalRouterAddress: () => universalRouterAddress,
2229
+ universalRouterConfig: () => universalRouterConfig,
2225
2230
  upgradeGateABI: () => upgradeGateABI,
2226
2231
  upgradeGateAddress: () => upgradeGateAddress,
2227
2232
  upgradeGateConfig: () => upgradeGateConfig,
@@ -4641,6 +4646,7 @@ var coinABI = [
4641
4646
  ],
4642
4647
  name: "InvalidAccountNonce"
4643
4648
  },
4649
+ { type: "error", inputs: [], name: "InvalidCurrency" },
4644
4650
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
4645
4651
  { type: "error", inputs: [], name: "InvalidInitialization" },
4646
4652
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -4690,6 +4696,7 @@ var coinFactoryABI = [
4690
4696
  inputs: [
4691
4697
  { name: "coinV4Impl_", internalType: "address", type: "address" },
4692
4698
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
4699
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
4693
4700
  { name: "hook_", internalType: "address", type: "address" },
4694
4701
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
4695
4702
  ],
@@ -4862,6 +4869,20 @@ var coinFactoryABI = [
4862
4869
  ],
4863
4870
  stateMutability: "payable"
4864
4871
  },
4872
+ {
4873
+ type: "function",
4874
+ inputs: [
4875
+ { name: "symbol", internalType: "string", type: "string" },
4876
+ { name: "postDeployHook", internalType: "address", type: "address" },
4877
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
4878
+ ],
4879
+ name: "deployTrendCoin",
4880
+ outputs: [
4881
+ { name: "coin", internalType: "address", type: "address" },
4882
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
4883
+ ],
4884
+ stateMutability: "payable"
4885
+ },
4865
4886
  {
4866
4887
  type: "function",
4867
4888
  inputs: [
@@ -4940,6 +4961,27 @@ var coinFactoryABI = [
4940
4961
  outputs: [],
4941
4962
  stateMutability: "nonpayable"
4942
4963
  },
4964
+ {
4965
+ type: "function",
4966
+ inputs: [
4967
+ { name: "currency", internalType: "address", type: "address" },
4968
+ { name: "tickLower", internalType: "int24[]", type: "int24[]" },
4969
+ { name: "tickUpper", internalType: "int24[]", type: "int24[]" },
4970
+ {
4971
+ name: "numDiscoveryPositions",
4972
+ internalType: "uint16[]",
4973
+ type: "uint16[]"
4974
+ },
4975
+ {
4976
+ name: "maxDiscoverySupplyShare",
4977
+ internalType: "uint256[]",
4978
+ type: "uint256[]"
4979
+ }
4980
+ ],
4981
+ name: "setTrendCoinPoolConfig",
4982
+ outputs: [],
4983
+ stateMutability: "nonpayable"
4984
+ },
4943
4985
  {
4944
4986
  type: "function",
4945
4987
  inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
@@ -4947,6 +4989,27 @@ var coinFactoryABI = [
4947
4989
  outputs: [],
4948
4990
  stateMutability: "nonpayable"
4949
4991
  },
4992
+ {
4993
+ type: "function",
4994
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
4995
+ name: "trendCoinAddress",
4996
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4997
+ stateMutability: "view"
4998
+ },
4999
+ {
5000
+ type: "function",
5001
+ inputs: [],
5002
+ name: "trendCoinImpl",
5003
+ outputs: [{ name: "", internalType: "address", type: "address" }],
5004
+ stateMutability: "view"
5005
+ },
5006
+ {
5007
+ type: "function",
5008
+ inputs: [],
5009
+ name: "trendCoinPoolConfig",
5010
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
5011
+ stateMutability: "view"
5012
+ },
4950
5013
  {
4951
5014
  type: "function",
4952
5015
  inputs: [
@@ -5212,6 +5275,75 @@ var coinFactoryABI = [
5212
5275
  ],
5213
5276
  name: "OwnershipTransferred"
5214
5277
  },
5278
+ {
5279
+ type: "event",
5280
+ anonymous: false,
5281
+ inputs: [
5282
+ {
5283
+ name: "caller",
5284
+ internalType: "address",
5285
+ type: "address",
5286
+ indexed: true
5287
+ },
5288
+ {
5289
+ name: "symbol",
5290
+ internalType: "string",
5291
+ type: "string",
5292
+ indexed: false
5293
+ },
5294
+ {
5295
+ name: "coin",
5296
+ internalType: "address",
5297
+ type: "address",
5298
+ indexed: false
5299
+ },
5300
+ {
5301
+ name: "poolKey",
5302
+ internalType: "struct PoolKey",
5303
+ type: "tuple",
5304
+ components: [
5305
+ { name: "currency0", internalType: "Currency", type: "address" },
5306
+ { name: "currency1", internalType: "Currency", type: "address" },
5307
+ { name: "fee", internalType: "uint24", type: "uint24" },
5308
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
5309
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
5310
+ ],
5311
+ indexed: false
5312
+ },
5313
+ {
5314
+ name: "poolKeyHash",
5315
+ internalType: "bytes32",
5316
+ type: "bytes32",
5317
+ indexed: false
5318
+ },
5319
+ {
5320
+ name: "poolConfig",
5321
+ internalType: "bytes",
5322
+ type: "bytes",
5323
+ indexed: false
5324
+ },
5325
+ {
5326
+ name: "version",
5327
+ internalType: "string",
5328
+ type: "string",
5329
+ indexed: false
5330
+ }
5331
+ ],
5332
+ name: "TrendCoinCreated"
5333
+ },
5334
+ {
5335
+ type: "event",
5336
+ anonymous: false,
5337
+ inputs: [
5338
+ {
5339
+ name: "poolConfig",
5340
+ internalType: "bytes",
5341
+ type: "bytes",
5342
+ indexed: false
5343
+ }
5344
+ ],
5345
+ name: "TrendCoinPoolConfigUpdated"
5346
+ },
5215
5347
  {
5216
5348
  type: "event",
5217
5349
  anonymous: false,
@@ -5285,6 +5417,15 @@ var coinFactoryABI = [
5285
5417
  name: "OwnableUnauthorizedAccount"
5286
5418
  },
5287
5419
  { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
5420
+ {
5421
+ type: "error",
5422
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
5423
+ name: "TickerAlreadyUsed"
5424
+ },
5425
+ { type: "error", inputs: [], name: "TickerInvalidCharacters" },
5426
+ { type: "error", inputs: [], name: "TickerTooLong" },
5427
+ { type: "error", inputs: [], name: "TickerTooShort" },
5428
+ { type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
5288
5429
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
5289
5430
  {
5290
5431
  type: "error",
@@ -5299,6 +5440,7 @@ var coinFactoryABI = [
5299
5440
  ],
5300
5441
  name: "UpgradeToMismatchedContractName"
5301
5442
  },
5443
+ { type: "error", inputs: [], name: "UseSpecificTrendCoinInitialize" },
5302
5444
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
5303
5445
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
5304
5446
  { type: "error", inputs: [], name: "AddressZero" },
@@ -5406,6 +5548,7 @@ var coinFactoryABI = [
5406
5548
  ],
5407
5549
  name: "InvalidAccountNonce"
5408
5550
  },
5551
+ { type: "error", inputs: [], name: "InvalidCurrency" },
5409
5552
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
5410
5553
  { type: "error", inputs: [], name: "InvalidInitialization" },
5411
5554
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -8743,6 +8886,7 @@ var devCoinFactoryABI = [
8743
8886
  inputs: [
8744
8887
  { name: "coinV4Impl_", internalType: "address", type: "address" },
8745
8888
  { name: "creatorCoinImpl_", internalType: "address", type: "address" },
8889
+ { name: "trendCoinImpl_", internalType: "address", type: "address" },
8746
8890
  { name: "hook_", internalType: "address", type: "address" },
8747
8891
  { name: "zoraHookRegistry_", internalType: "address", type: "address" }
8748
8892
  ],
@@ -8915,6 +9059,20 @@ var devCoinFactoryABI = [
8915
9059
  ],
8916
9060
  stateMutability: "payable"
8917
9061
  },
9062
+ {
9063
+ type: "function",
9064
+ inputs: [
9065
+ { name: "symbol", internalType: "string", type: "string" },
9066
+ { name: "postDeployHook", internalType: "address", type: "address" },
9067
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" }
9068
+ ],
9069
+ name: "deployTrendCoin",
9070
+ outputs: [
9071
+ { name: "coin", internalType: "address", type: "address" },
9072
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
9073
+ ],
9074
+ stateMutability: "payable"
9075
+ },
8918
9076
  {
8919
9077
  type: "function",
8920
9078
  inputs: [
@@ -8993,6 +9151,27 @@ var devCoinFactoryABI = [
8993
9151
  outputs: [],
8994
9152
  stateMutability: "nonpayable"
8995
9153
  },
9154
+ {
9155
+ type: "function",
9156
+ inputs: [
9157
+ { name: "currency", internalType: "address", type: "address" },
9158
+ { name: "tickLower", internalType: "int24[]", type: "int24[]" },
9159
+ { name: "tickUpper", internalType: "int24[]", type: "int24[]" },
9160
+ {
9161
+ name: "numDiscoveryPositions",
9162
+ internalType: "uint16[]",
9163
+ type: "uint16[]"
9164
+ },
9165
+ {
9166
+ name: "maxDiscoverySupplyShare",
9167
+ internalType: "uint256[]",
9168
+ type: "uint256[]"
9169
+ }
9170
+ ],
9171
+ name: "setTrendCoinPoolConfig",
9172
+ outputs: [],
9173
+ stateMutability: "nonpayable"
9174
+ },
8996
9175
  {
8997
9176
  type: "function",
8998
9177
  inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
@@ -9000,6 +9179,27 @@ var devCoinFactoryABI = [
9000
9179
  outputs: [],
9001
9180
  stateMutability: "nonpayable"
9002
9181
  },
9182
+ {
9183
+ type: "function",
9184
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
9185
+ name: "trendCoinAddress",
9186
+ outputs: [{ name: "", internalType: "address", type: "address" }],
9187
+ stateMutability: "view"
9188
+ },
9189
+ {
9190
+ type: "function",
9191
+ inputs: [],
9192
+ name: "trendCoinImpl",
9193
+ outputs: [{ name: "", internalType: "address", type: "address" }],
9194
+ stateMutability: "view"
9195
+ },
9196
+ {
9197
+ type: "function",
9198
+ inputs: [],
9199
+ name: "trendCoinPoolConfig",
9200
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
9201
+ stateMutability: "view"
9202
+ },
9003
9203
  {
9004
9204
  type: "function",
9005
9205
  inputs: [
@@ -9270,20 +9470,89 @@ var devCoinFactoryABI = [
9270
9470
  anonymous: false,
9271
9471
  inputs: [
9272
9472
  {
9273
- name: "implementation",
9473
+ name: "caller",
9274
9474
  internalType: "address",
9275
9475
  type: "address",
9276
9476
  indexed: true
9277
- }
9278
- ],
9279
- name: "Upgraded"
9280
- },
9281
- {
9282
- type: "error",
9283
- inputs: [{ name: "target", internalType: "address", type: "address" }],
9284
- name: "AddressEmptyCode"
9285
- },
9286
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
9477
+ },
9478
+ {
9479
+ name: "symbol",
9480
+ internalType: "string",
9481
+ type: "string",
9482
+ indexed: false
9483
+ },
9484
+ {
9485
+ name: "coin",
9486
+ internalType: "address",
9487
+ type: "address",
9488
+ indexed: false
9489
+ },
9490
+ {
9491
+ name: "poolKey",
9492
+ internalType: "struct PoolKey",
9493
+ type: "tuple",
9494
+ components: [
9495
+ { name: "currency0", internalType: "Currency", type: "address" },
9496
+ { name: "currency1", internalType: "Currency", type: "address" },
9497
+ { name: "fee", internalType: "uint24", type: "uint24" },
9498
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
9499
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
9500
+ ],
9501
+ indexed: false
9502
+ },
9503
+ {
9504
+ name: "poolKeyHash",
9505
+ internalType: "bytes32",
9506
+ type: "bytes32",
9507
+ indexed: false
9508
+ },
9509
+ {
9510
+ name: "poolConfig",
9511
+ internalType: "bytes",
9512
+ type: "bytes",
9513
+ indexed: false
9514
+ },
9515
+ {
9516
+ name: "version",
9517
+ internalType: "string",
9518
+ type: "string",
9519
+ indexed: false
9520
+ }
9521
+ ],
9522
+ name: "TrendCoinCreated"
9523
+ },
9524
+ {
9525
+ type: "event",
9526
+ anonymous: false,
9527
+ inputs: [
9528
+ {
9529
+ name: "poolConfig",
9530
+ internalType: "bytes",
9531
+ type: "bytes",
9532
+ indexed: false
9533
+ }
9534
+ ],
9535
+ name: "TrendCoinPoolConfigUpdated"
9536
+ },
9537
+ {
9538
+ type: "event",
9539
+ anonymous: false,
9540
+ inputs: [
9541
+ {
9542
+ name: "implementation",
9543
+ internalType: "address",
9544
+ type: "address",
9545
+ indexed: true
9546
+ }
9547
+ ],
9548
+ name: "Upgraded"
9549
+ },
9550
+ {
9551
+ type: "error",
9552
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
9553
+ name: "AddressEmptyCode"
9554
+ },
9555
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
9287
9556
  { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
9288
9557
  { type: "error", inputs: [], name: "Deprecated" },
9289
9558
  {
@@ -9338,6 +9607,15 @@ var devCoinFactoryABI = [
9338
9607
  name: "OwnableUnauthorizedAccount"
9339
9608
  },
9340
9609
  { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
9610
+ {
9611
+ type: "error",
9612
+ inputs: [{ name: "symbol", internalType: "string", type: "string" }],
9613
+ name: "TickerAlreadyUsed"
9614
+ },
9615
+ { type: "error", inputs: [], name: "TickerInvalidCharacters" },
9616
+ { type: "error", inputs: [], name: "TickerTooLong" },
9617
+ { type: "error", inputs: [], name: "TickerTooShort" },
9618
+ { type: "error", inputs: [], name: "TrendCoinPoolConfigNotSet" },
9341
9619
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
9342
9620
  {
9343
9621
  type: "error",
@@ -9352,6 +9630,7 @@ var devCoinFactoryABI = [
9352
9630
  ],
9353
9631
  name: "UpgradeToMismatchedContractName"
9354
9632
  },
9633
+ { type: "error", inputs: [], name: "UseSpecificTrendCoinInitialize" },
9355
9634
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
9356
9635
  { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
9357
9636
  { type: "error", inputs: [], name: "AddressZero" },
@@ -9459,6 +9738,7 @@ var devCoinFactoryABI = [
9459
9738
  ],
9460
9739
  name: "InvalidAccountNonce"
9461
9740
  },
9741
+ { type: "error", inputs: [], name: "InvalidCurrency" },
9462
9742
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
9463
9743
  { type: "error", inputs: [], name: "InvalidInitialization" },
9464
9744
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -10252,6 +10532,7 @@ var devZoraLimitOrderBookABI = [
10252
10532
  ],
10253
10533
  name: "InvalidAccountNonce"
10254
10534
  },
10535
+ { type: "error", inputs: [], name: "InvalidCurrency" },
10255
10536
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
10256
10537
  { type: "error", inputs: [], name: "InvalidInitialization" },
10257
10538
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -10361,7 +10642,40 @@ var devZoraLimitOrderBookABI = [
10361
10642
  name: "UpgradePathNotRegistered"
10362
10643
  },
10363
10644
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
10364
- { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
10645
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
10646
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
10647
+ {
10648
+ type: "error",
10649
+ inputs: [
10650
+ { name: "currency0", internalType: "address", type: "address" },
10651
+ { name: "currency1", internalType: "address", type: "address" }
10652
+ ],
10653
+ name: "CurrenciesOutOfOrderOrEqual"
10654
+ },
10655
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
10656
+ { type: "error", inputs: [], name: "InvalidCaller" },
10657
+ { type: "error", inputs: [], name: "ManagerLocked" },
10658
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
10659
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
10660
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
10661
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
10662
+ {
10663
+ type: "error",
10664
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
10665
+ name: "ProtocolFeeTooLarge"
10666
+ },
10667
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
10668
+ {
10669
+ type: "error",
10670
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
10671
+ name: "TickSpacingTooLarge"
10672
+ },
10673
+ {
10674
+ type: "error",
10675
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
10676
+ name: "TickSpacingTooSmall"
10677
+ },
10678
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
10365
10679
  ];
10366
10680
  var devZoraLimitOrderBookAddress = {
10367
10681
  8453: "0xCe2C8032F85aB6a7148138F8a1235d2b17D53Dc5"
@@ -10735,6 +11049,65 @@ var devZoraRouterABI = [
10735
11049
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
10736
11050
  { type: "error", inputs: [], name: "ZeroSwapDelta" },
10737
11051
  { type: "error", inputs: [], name: "AddressZero" },
11052
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
11053
+ { type: "error", inputs: [], name: "CallerNotPermitted" },
11054
+ {
11055
+ type: "error",
11056
+ inputs: [
11057
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
11058
+ { name: "expectedCoin", internalType: "address", type: "address" },
11059
+ { name: "actualCoin", internalType: "address", type: "address" }
11060
+ ],
11061
+ name: "CoinMismatch"
11062
+ },
11063
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
11064
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
11065
+ {
11066
+ type: "error",
11067
+ inputs: [
11068
+ { name: "startTick", internalType: "int24", type: "int24" },
11069
+ { name: "endTick", internalType: "int24", type: "int24" },
11070
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
11071
+ ],
11072
+ name: "InvalidFillWindow"
11073
+ },
11074
+ { type: "error", inputs: [], name: "InvalidOrder" },
11075
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
11076
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
11077
+ {
11078
+ type: "error",
11079
+ inputs: [
11080
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
11081
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
11082
+ ],
11083
+ name: "MinAmountNotReached"
11084
+ },
11085
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
11086
+ { type: "error", inputs: [], name: "NotPoolManager" },
11087
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
11088
+ { type: "error", inputs: [], name: "OrderClosed" },
11089
+ { type: "error", inputs: [], name: "OrderFillable" },
11090
+ { type: "error", inputs: [], name: "OrderNotMaker" },
11091
+ {
11092
+ type: "error",
11093
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
11094
+ name: "OwnableInvalidOwner"
11095
+ },
11096
+ {
11097
+ type: "error",
11098
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
11099
+ name: "OwnableUnauthorizedAccount"
11100
+ },
11101
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
11102
+ { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
11103
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
11104
+ { type: "error", inputs: [], name: "UnknownCallback" },
11105
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
11106
+ { type: "error", inputs: [], name: "WethTransferFailed" },
11107
+ { type: "error", inputs: [], name: "ZeroMaker" },
11108
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
11109
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
11110
+ { type: "error", inputs: [], name: "AddressZero" },
10738
11111
  { type: "error", inputs: [], name: "AlreadyOwner" },
10739
11112
  { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
10740
11113
  {
@@ -10820,6 +11193,7 @@ var devZoraRouterABI = [
10820
11193
  ],
10821
11194
  name: "InvalidAccountNonce"
10822
11195
  },
11196
+ { type: "error", inputs: [], name: "InvalidCurrency" },
10823
11197
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
10824
11198
  { type: "error", inputs: [], name: "InvalidInitialization" },
10825
11199
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -10930,65 +11304,51 @@ var devZoraRouterABI = [
10930
11304
  },
10931
11305
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
10932
11306
  { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
10933
- { type: "error", inputs: [], name: "AddressZero" },
10934
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
10935
- { type: "error", inputs: [], name: "CallerNotPermitted" },
11307
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
10936
11308
  {
10937
11309
  type: "error",
10938
11310
  inputs: [
10939
- { name: "orderId", internalType: "bytes32", type: "bytes32" },
10940
- { name: "expectedCoin", internalType: "address", type: "address" },
10941
- { name: "actualCoin", internalType: "address", type: "address" }
11311
+ { name: "currency0", internalType: "address", type: "address" },
11312
+ { name: "currency1", internalType: "address", type: "address" }
10942
11313
  ],
10943
- name: "CoinMismatch"
11314
+ name: "CurrenciesOutOfOrderOrEqual"
10944
11315
  },
10945
- { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
10946
- { type: "error", inputs: [], name: "InsufficientTransferFunds" },
11316
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
11317
+ { type: "error", inputs: [], name: "InvalidCaller" },
11318
+ { type: "error", inputs: [], name: "ManagerLocked" },
11319
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
11320
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
11321
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
11322
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
10947
11323
  {
10948
11324
  type: "error",
10949
- inputs: [
10950
- { name: "startTick", internalType: "int24", type: "int24" },
10951
- { name: "endTick", internalType: "int24", type: "int24" },
10952
- { name: "isCurrency0", internalType: "bool", type: "bool" }
10953
- ],
10954
- name: "InvalidFillWindow"
11325
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
11326
+ name: "ProtocolFeeTooLarge"
10955
11327
  },
10956
- { type: "error", inputs: [], name: "InvalidOrder" },
10957
- { type: "error", inputs: [], name: "InvalidPoolKey" },
10958
- { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
11328
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
10959
11329
  {
10960
11330
  type: "error",
10961
- inputs: [
10962
- { name: "withdrawn", internalType: "uint256", type: "uint256" },
10963
- { name: "minAmountOut", internalType: "uint256", type: "uint256" }
10964
- ],
10965
- name: "MinAmountNotReached"
11331
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
11332
+ name: "TickSpacingTooLarge"
10966
11333
  },
10967
- { type: "error", inputs: [], name: "NativeValueMismatch" },
10968
- { type: "error", inputs: [], name: "NotPoolManager" },
10969
- { type: "error", inputs: [], name: "OnlyZoraHook" },
10970
- { type: "error", inputs: [], name: "OrderClosed" },
10971
- { type: "error", inputs: [], name: "OrderFillable" },
10972
- { type: "error", inputs: [], name: "OrderNotMaker" },
10973
11334
  {
10974
11335
  type: "error",
10975
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
10976
- name: "OwnableInvalidOwner"
11336
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
11337
+ name: "TickSpacingTooSmall"
10977
11338
  },
11339
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" },
11340
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
10978
11341
  {
10979
11342
  type: "error",
10980
- inputs: [{ name: "account", internalType: "address", type: "address" }],
10981
- name: "OwnableUnauthorizedAccount"
11343
+ inputs: [
11344
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
11345
+ { name: "message", internalType: "bytes", type: "bytes" }
11346
+ ],
11347
+ name: "ExecutionFailed"
10982
11348
  },
10983
- { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
10984
- { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
10985
- { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
10986
- { type: "error", inputs: [], name: "UnknownCallback" },
10987
- { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
10988
- { type: "error", inputs: [], name: "WethTransferFailed" },
10989
- { type: "error", inputs: [], name: "ZeroMaker" },
10990
- { type: "error", inputs: [], name: "ZeroOrderSize" },
10991
- { type: "error", inputs: [], name: "ZeroRealizedOrder" }
11349
+ { type: "error", inputs: [], name: "InvalidEthSender" },
11350
+ { type: "error", inputs: [], name: "LengthMismatch" },
11351
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
10992
11352
  ];
10993
11353
  var devZoraRouterAddress = {
10994
11354
  8453: "0x1F35FB3E07e68bC1Bf020c2d59cBF91Ccf5736b8"
@@ -14567,113 +14927,804 @@ var uniswapV3SwapRouterABI = [
14567
14927
  ]
14568
14928
  }
14569
14929
  ],
14570
- name: "exactInput",
14571
- outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
14572
- stateMutability: "payable"
14930
+ name: "exactInput",
14931
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
14932
+ stateMutability: "payable"
14933
+ },
14934
+ {
14935
+ type: "function",
14936
+ inputs: [
14937
+ {
14938
+ name: "params",
14939
+ internalType: "struct ISwapRouter.ExactInputSingleParams",
14940
+ type: "tuple",
14941
+ components: [
14942
+ { name: "tokenIn", internalType: "address", type: "address" },
14943
+ { name: "tokenOut", internalType: "address", type: "address" },
14944
+ { name: "fee", internalType: "uint24", type: "uint24" },
14945
+ { name: "recipient", internalType: "address", type: "address" },
14946
+ { name: "amountIn", internalType: "uint256", type: "uint256" },
14947
+ {
14948
+ name: "amountOutMinimum",
14949
+ internalType: "uint256",
14950
+ type: "uint256"
14951
+ },
14952
+ {
14953
+ name: "sqrtPriceLimitX96",
14954
+ internalType: "uint160",
14955
+ type: "uint160"
14956
+ }
14957
+ ]
14958
+ }
14959
+ ],
14960
+ name: "exactInputSingle",
14961
+ outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
14962
+ stateMutability: "payable"
14963
+ },
14964
+ {
14965
+ type: "function",
14966
+ inputs: [
14967
+ {
14968
+ name: "params",
14969
+ internalType: "struct ISwapRouter.ExactOutputParams",
14970
+ type: "tuple",
14971
+ components: [
14972
+ { name: "path", internalType: "bytes", type: "bytes" },
14973
+ { name: "recipient", internalType: "address", type: "address" },
14974
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
14975
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" }
14976
+ ]
14977
+ }
14978
+ ],
14979
+ name: "exactOutput",
14980
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
14981
+ stateMutability: "payable"
14982
+ },
14983
+ {
14984
+ type: "function",
14985
+ inputs: [
14986
+ {
14987
+ name: "params",
14988
+ internalType: "struct ISwapRouter.ExactOutputSingleParams",
14989
+ type: "tuple",
14990
+ components: [
14991
+ { name: "tokenIn", internalType: "address", type: "address" },
14992
+ { name: "tokenOut", internalType: "address", type: "address" },
14993
+ { name: "fee", internalType: "uint24", type: "uint24" },
14994
+ { name: "recipient", internalType: "address", type: "address" },
14995
+ { name: "amountOut", internalType: "uint256", type: "uint256" },
14996
+ { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
14997
+ {
14998
+ name: "sqrtPriceLimitX96",
14999
+ internalType: "uint160",
15000
+ type: "uint160"
15001
+ }
15002
+ ]
15003
+ }
15004
+ ],
15005
+ name: "exactOutputSingle",
15006
+ outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
15007
+ stateMutability: "payable"
15008
+ },
15009
+ {
15010
+ type: "function",
15011
+ inputs: [
15012
+ { name: "amount0Delta", internalType: "int256", type: "int256" },
15013
+ { name: "amount1Delta", internalType: "int256", type: "int256" },
15014
+ { name: "data", internalType: "bytes", type: "bytes" }
15015
+ ],
15016
+ name: "uniswapV3SwapCallback",
15017
+ outputs: [],
15018
+ stateMutability: "nonpayable"
15019
+ }
15020
+ ];
15021
+ var uniswapV3SwapRouterAddress = {
15022
+ 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
15023
+ 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
15024
+ 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
15025
+ 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
15026
+ 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
15027
+ 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
15028
+ 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
15029
+ 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
15030
+ 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
15031
+ 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
15032
+ 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
15033
+ };
15034
+ var uniswapV3SwapRouterConfig = {
15035
+ address: uniswapV3SwapRouterAddress,
15036
+ abi: uniswapV3SwapRouterABI
15037
+ };
15038
+ var uniswapV4PoolManagerABI = [
15039
+ {
15040
+ type: "function",
15041
+ inputs: [
15042
+ { name: "owner", internalType: "address", type: "address" },
15043
+ { name: "spender", internalType: "address", type: "address" },
15044
+ { name: "id", internalType: "uint256", type: "uint256" }
15045
+ ],
15046
+ name: "allowance",
15047
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
15048
+ stateMutability: "view"
15049
+ },
15050
+ {
15051
+ type: "function",
15052
+ inputs: [
15053
+ { name: "spender", internalType: "address", type: "address" },
15054
+ { name: "id", internalType: "uint256", type: "uint256" },
15055
+ { name: "amount", internalType: "uint256", type: "uint256" }
15056
+ ],
15057
+ name: "approve",
15058
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
15059
+ stateMutability: "nonpayable"
15060
+ },
15061
+ {
15062
+ type: "function",
15063
+ inputs: [
15064
+ { name: "owner", internalType: "address", type: "address" },
15065
+ { name: "id", internalType: "uint256", type: "uint256" }
15066
+ ],
15067
+ name: "balanceOf",
15068
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
15069
+ stateMutability: "view"
15070
+ },
15071
+ {
15072
+ type: "function",
15073
+ inputs: [
15074
+ { name: "from", internalType: "address", type: "address" },
15075
+ { name: "id", internalType: "uint256", type: "uint256" },
15076
+ { name: "amount", internalType: "uint256", type: "uint256" }
15077
+ ],
15078
+ name: "burn",
15079
+ outputs: [],
15080
+ stateMutability: "nonpayable"
15081
+ },
15082
+ {
15083
+ type: "function",
15084
+ inputs: [
15085
+ { name: "currency", internalType: "Currency", type: "address" },
15086
+ { name: "amount", internalType: "uint256", type: "uint256" }
15087
+ ],
15088
+ name: "clear",
15089
+ outputs: [],
15090
+ stateMutability: "nonpayable"
15091
+ },
15092
+ {
15093
+ type: "function",
15094
+ inputs: [
15095
+ { name: "recipient", internalType: "address", type: "address" },
15096
+ { name: "currency", internalType: "Currency", type: "address" },
15097
+ { name: "amount", internalType: "uint256", type: "uint256" }
15098
+ ],
15099
+ name: "collectProtocolFees",
15100
+ outputs: [
15101
+ { name: "amountCollected", internalType: "uint256", type: "uint256" }
15102
+ ],
15103
+ stateMutability: "nonpayable"
15104
+ },
15105
+ {
15106
+ type: "function",
15107
+ inputs: [
15108
+ {
15109
+ name: "key",
15110
+ internalType: "struct PoolKey",
15111
+ type: "tuple",
15112
+ components: [
15113
+ { name: "currency0", internalType: "Currency", type: "address" },
15114
+ { name: "currency1", internalType: "Currency", type: "address" },
15115
+ { name: "fee", internalType: "uint24", type: "uint24" },
15116
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
15117
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
15118
+ ]
15119
+ },
15120
+ { name: "amount0", internalType: "uint256", type: "uint256" },
15121
+ { name: "amount1", internalType: "uint256", type: "uint256" },
15122
+ { name: "hookData", internalType: "bytes", type: "bytes" }
15123
+ ],
15124
+ name: "donate",
15125
+ outputs: [{ name: "", internalType: "BalanceDelta", type: "int256" }],
15126
+ stateMutability: "nonpayable"
15127
+ },
15128
+ {
15129
+ type: "function",
15130
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
15131
+ name: "extsload",
15132
+ outputs: [{ name: "value", internalType: "bytes32", type: "bytes32" }],
15133
+ stateMutability: "view"
15134
+ },
15135
+ {
15136
+ type: "function",
15137
+ inputs: [
15138
+ { name: "startSlot", internalType: "bytes32", type: "bytes32" },
15139
+ { name: "nSlots", internalType: "uint256", type: "uint256" }
15140
+ ],
15141
+ name: "extsload",
15142
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
15143
+ stateMutability: "view"
15144
+ },
15145
+ {
15146
+ type: "function",
15147
+ inputs: [{ name: "slots", internalType: "bytes32[]", type: "bytes32[]" }],
15148
+ name: "extsload",
15149
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
15150
+ stateMutability: "view"
15151
+ },
15152
+ {
15153
+ type: "function",
15154
+ inputs: [{ name: "slots", internalType: "bytes32[]", type: "bytes32[]" }],
15155
+ name: "exttload",
15156
+ outputs: [{ name: "values", internalType: "bytes32[]", type: "bytes32[]" }],
15157
+ stateMutability: "view"
15158
+ },
15159
+ {
15160
+ type: "function",
15161
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
15162
+ name: "exttload",
15163
+ outputs: [{ name: "value", internalType: "bytes32", type: "bytes32" }],
15164
+ stateMutability: "view"
15165
+ },
15166
+ {
15167
+ type: "function",
15168
+ inputs: [
15169
+ {
15170
+ name: "key",
15171
+ internalType: "struct PoolKey",
15172
+ type: "tuple",
15173
+ components: [
15174
+ { name: "currency0", internalType: "Currency", type: "address" },
15175
+ { name: "currency1", internalType: "Currency", type: "address" },
15176
+ { name: "fee", internalType: "uint24", type: "uint24" },
15177
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
15178
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
15179
+ ]
15180
+ },
15181
+ { name: "sqrtPriceX96", internalType: "uint160", type: "uint160" }
15182
+ ],
15183
+ name: "initialize",
15184
+ outputs: [{ name: "tick", internalType: "int24", type: "int24" }],
15185
+ stateMutability: "nonpayable"
15186
+ },
15187
+ {
15188
+ type: "function",
15189
+ inputs: [
15190
+ { name: "owner", internalType: "address", type: "address" },
15191
+ { name: "spender", internalType: "address", type: "address" }
15192
+ ],
15193
+ name: "isOperator",
15194
+ outputs: [{ name: "approved", internalType: "bool", type: "bool" }],
15195
+ stateMutability: "view"
15196
+ },
15197
+ {
15198
+ type: "function",
15199
+ inputs: [
15200
+ { name: "to", internalType: "address", type: "address" },
15201
+ { name: "id", internalType: "uint256", type: "uint256" },
15202
+ { name: "amount", internalType: "uint256", type: "uint256" }
15203
+ ],
15204
+ name: "mint",
15205
+ outputs: [],
15206
+ stateMutability: "nonpayable"
15207
+ },
15208
+ {
15209
+ type: "function",
15210
+ inputs: [
15211
+ {
15212
+ name: "key",
15213
+ internalType: "struct PoolKey",
15214
+ type: "tuple",
15215
+ components: [
15216
+ { name: "currency0", internalType: "Currency", type: "address" },
15217
+ { name: "currency1", internalType: "Currency", type: "address" },
15218
+ { name: "fee", internalType: "uint24", type: "uint24" },
15219
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
15220
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
15221
+ ]
15222
+ },
15223
+ {
15224
+ name: "params",
15225
+ internalType: "struct ModifyLiquidityParams",
15226
+ type: "tuple",
15227
+ components: [
15228
+ { name: "tickLower", internalType: "int24", type: "int24" },
15229
+ { name: "tickUpper", internalType: "int24", type: "int24" },
15230
+ { name: "liquidityDelta", internalType: "int256", type: "int256" },
15231
+ { name: "salt", internalType: "bytes32", type: "bytes32" }
15232
+ ]
15233
+ },
15234
+ { name: "hookData", internalType: "bytes", type: "bytes" }
15235
+ ],
15236
+ name: "modifyLiquidity",
15237
+ outputs: [
15238
+ { name: "callerDelta", internalType: "BalanceDelta", type: "int256" },
15239
+ { name: "feesAccrued", internalType: "BalanceDelta", type: "int256" }
15240
+ ],
15241
+ stateMutability: "nonpayable"
15242
+ },
15243
+ {
15244
+ type: "function",
15245
+ inputs: [],
15246
+ name: "protocolFeeController",
15247
+ outputs: [{ name: "", internalType: "address", type: "address" }],
15248
+ stateMutability: "view"
15249
+ },
15250
+ {
15251
+ type: "function",
15252
+ inputs: [{ name: "currency", internalType: "Currency", type: "address" }],
15253
+ name: "protocolFeesAccrued",
15254
+ outputs: [{ name: "amount", internalType: "uint256", type: "uint256" }],
15255
+ stateMutability: "view"
15256
+ },
15257
+ {
15258
+ type: "function",
15259
+ inputs: [
15260
+ { name: "operator", internalType: "address", type: "address" },
15261
+ { name: "approved", internalType: "bool", type: "bool" }
15262
+ ],
15263
+ name: "setOperator",
15264
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
15265
+ stateMutability: "nonpayable"
15266
+ },
15267
+ {
15268
+ type: "function",
15269
+ inputs: [
15270
+ {
15271
+ name: "key",
15272
+ internalType: "struct PoolKey",
15273
+ type: "tuple",
15274
+ components: [
15275
+ { name: "currency0", internalType: "Currency", type: "address" },
15276
+ { name: "currency1", internalType: "Currency", type: "address" },
15277
+ { name: "fee", internalType: "uint24", type: "uint24" },
15278
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
15279
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
15280
+ ]
15281
+ },
15282
+ { name: "newProtocolFee", internalType: "uint24", type: "uint24" }
15283
+ ],
15284
+ name: "setProtocolFee",
15285
+ outputs: [],
15286
+ stateMutability: "nonpayable"
15287
+ },
15288
+ {
15289
+ type: "function",
15290
+ inputs: [{ name: "controller", internalType: "address", type: "address" }],
15291
+ name: "setProtocolFeeController",
15292
+ outputs: [],
15293
+ stateMutability: "nonpayable"
15294
+ },
15295
+ {
15296
+ type: "function",
15297
+ inputs: [],
15298
+ name: "settle",
15299
+ outputs: [{ name: "paid", internalType: "uint256", type: "uint256" }],
15300
+ stateMutability: "payable"
15301
+ },
15302
+ {
15303
+ type: "function",
15304
+ inputs: [{ name: "recipient", internalType: "address", type: "address" }],
15305
+ name: "settleFor",
15306
+ outputs: [{ name: "paid", internalType: "uint256", type: "uint256" }],
15307
+ stateMutability: "payable"
15308
+ },
15309
+ {
15310
+ type: "function",
15311
+ inputs: [
15312
+ {
15313
+ name: "key",
15314
+ internalType: "struct PoolKey",
15315
+ type: "tuple",
15316
+ components: [
15317
+ { name: "currency0", internalType: "Currency", type: "address" },
15318
+ { name: "currency1", internalType: "Currency", type: "address" },
15319
+ { name: "fee", internalType: "uint24", type: "uint24" },
15320
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
15321
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
15322
+ ]
15323
+ },
15324
+ {
15325
+ name: "params",
15326
+ internalType: "struct SwapParams",
15327
+ type: "tuple",
15328
+ components: [
15329
+ { name: "zeroForOne", internalType: "bool", type: "bool" },
15330
+ { name: "amountSpecified", internalType: "int256", type: "int256" },
15331
+ {
15332
+ name: "sqrtPriceLimitX96",
15333
+ internalType: "uint160",
15334
+ type: "uint160"
15335
+ }
15336
+ ]
15337
+ },
15338
+ { name: "hookData", internalType: "bytes", type: "bytes" }
15339
+ ],
15340
+ name: "swap",
15341
+ outputs: [
15342
+ { name: "swapDelta", internalType: "BalanceDelta", type: "int256" }
15343
+ ],
15344
+ stateMutability: "nonpayable"
15345
+ },
15346
+ {
15347
+ type: "function",
15348
+ inputs: [{ name: "currency", internalType: "Currency", type: "address" }],
15349
+ name: "sync",
15350
+ outputs: [],
15351
+ stateMutability: "nonpayable"
15352
+ },
15353
+ {
15354
+ type: "function",
15355
+ inputs: [
15356
+ { name: "currency", internalType: "Currency", type: "address" },
15357
+ { name: "to", internalType: "address", type: "address" },
15358
+ { name: "amount", internalType: "uint256", type: "uint256" }
15359
+ ],
15360
+ name: "take",
15361
+ outputs: [],
15362
+ stateMutability: "nonpayable"
15363
+ },
15364
+ {
15365
+ type: "function",
15366
+ inputs: [
15367
+ { name: "receiver", internalType: "address", type: "address" },
15368
+ { name: "id", internalType: "uint256", type: "uint256" },
15369
+ { name: "amount", internalType: "uint256", type: "uint256" }
15370
+ ],
15371
+ name: "transfer",
15372
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
15373
+ stateMutability: "nonpayable"
15374
+ },
15375
+ {
15376
+ type: "function",
15377
+ inputs: [
15378
+ { name: "sender", internalType: "address", type: "address" },
15379
+ { name: "receiver", internalType: "address", type: "address" },
15380
+ { name: "id", internalType: "uint256", type: "uint256" },
15381
+ { name: "amount", internalType: "uint256", type: "uint256" }
15382
+ ],
15383
+ name: "transferFrom",
15384
+ outputs: [{ name: "", internalType: "bool", type: "bool" }],
15385
+ stateMutability: "nonpayable"
15386
+ },
15387
+ {
15388
+ type: "function",
15389
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
15390
+ name: "unlock",
15391
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
15392
+ stateMutability: "nonpayable"
15393
+ },
15394
+ {
15395
+ type: "function",
15396
+ inputs: [
15397
+ {
15398
+ name: "key",
15399
+ internalType: "struct PoolKey",
15400
+ type: "tuple",
15401
+ components: [
15402
+ { name: "currency0", internalType: "Currency", type: "address" },
15403
+ { name: "currency1", internalType: "Currency", type: "address" },
15404
+ { name: "fee", internalType: "uint24", type: "uint24" },
15405
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
15406
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
15407
+ ]
15408
+ },
15409
+ { name: "newDynamicLPFee", internalType: "uint24", type: "uint24" }
15410
+ ],
15411
+ name: "updateDynamicLPFee",
15412
+ outputs: [],
15413
+ stateMutability: "nonpayable"
15414
+ },
15415
+ {
15416
+ type: "event",
15417
+ anonymous: false,
15418
+ inputs: [
15419
+ {
15420
+ name: "owner",
15421
+ internalType: "address",
15422
+ type: "address",
15423
+ indexed: true
15424
+ },
15425
+ {
15426
+ name: "spender",
15427
+ internalType: "address",
15428
+ type: "address",
15429
+ indexed: true
15430
+ },
15431
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true },
15432
+ {
15433
+ name: "amount",
15434
+ internalType: "uint256",
15435
+ type: "uint256",
15436
+ indexed: false
15437
+ }
15438
+ ],
15439
+ name: "Approval"
15440
+ },
15441
+ {
15442
+ type: "event",
15443
+ anonymous: false,
15444
+ inputs: [
15445
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
15446
+ {
15447
+ name: "sender",
15448
+ internalType: "address",
15449
+ type: "address",
15450
+ indexed: true
15451
+ },
15452
+ {
15453
+ name: "amount0",
15454
+ internalType: "uint256",
15455
+ type: "uint256",
15456
+ indexed: false
15457
+ },
15458
+ {
15459
+ name: "amount1",
15460
+ internalType: "uint256",
15461
+ type: "uint256",
15462
+ indexed: false
15463
+ }
15464
+ ],
15465
+ name: "Donate"
15466
+ },
15467
+ {
15468
+ type: "event",
15469
+ anonymous: false,
15470
+ inputs: [
15471
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
15472
+ {
15473
+ name: "currency0",
15474
+ internalType: "Currency",
15475
+ type: "address",
15476
+ indexed: true
15477
+ },
15478
+ {
15479
+ name: "currency1",
15480
+ internalType: "Currency",
15481
+ type: "address",
15482
+ indexed: true
15483
+ },
15484
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: false },
15485
+ {
15486
+ name: "tickSpacing",
15487
+ internalType: "int24",
15488
+ type: "int24",
15489
+ indexed: false
15490
+ },
15491
+ {
15492
+ name: "hooks",
15493
+ internalType: "contract IHooks",
15494
+ type: "address",
15495
+ indexed: false
15496
+ },
15497
+ {
15498
+ name: "sqrtPriceX96",
15499
+ internalType: "uint160",
15500
+ type: "uint160",
15501
+ indexed: false
15502
+ },
15503
+ { name: "tick", internalType: "int24", type: "int24", indexed: false }
15504
+ ],
15505
+ name: "Initialize"
15506
+ },
15507
+ {
15508
+ type: "event",
15509
+ anonymous: false,
15510
+ inputs: [
15511
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
15512
+ {
15513
+ name: "sender",
15514
+ internalType: "address",
15515
+ type: "address",
15516
+ indexed: true
15517
+ },
15518
+ {
15519
+ name: "tickLower",
15520
+ internalType: "int24",
15521
+ type: "int24",
15522
+ indexed: false
15523
+ },
15524
+ {
15525
+ name: "tickUpper",
15526
+ internalType: "int24",
15527
+ type: "int24",
15528
+ indexed: false
15529
+ },
15530
+ {
15531
+ name: "liquidityDelta",
15532
+ internalType: "int256",
15533
+ type: "int256",
15534
+ indexed: false
15535
+ },
15536
+ {
15537
+ name: "salt",
15538
+ internalType: "bytes32",
15539
+ type: "bytes32",
15540
+ indexed: false
15541
+ }
15542
+ ],
15543
+ name: "ModifyLiquidity"
15544
+ },
15545
+ {
15546
+ type: "event",
15547
+ anonymous: false,
15548
+ inputs: [
15549
+ {
15550
+ name: "owner",
15551
+ internalType: "address",
15552
+ type: "address",
15553
+ indexed: true
15554
+ },
15555
+ {
15556
+ name: "operator",
15557
+ internalType: "address",
15558
+ type: "address",
15559
+ indexed: true
15560
+ },
15561
+ { name: "approved", internalType: "bool", type: "bool", indexed: false }
15562
+ ],
15563
+ name: "OperatorSet"
15564
+ },
15565
+ {
15566
+ type: "event",
15567
+ anonymous: false,
15568
+ inputs: [
15569
+ {
15570
+ name: "protocolFeeController",
15571
+ internalType: "address",
15572
+ type: "address",
15573
+ indexed: true
15574
+ }
15575
+ ],
15576
+ name: "ProtocolFeeControllerUpdated"
15577
+ },
15578
+ {
15579
+ type: "event",
15580
+ anonymous: false,
15581
+ inputs: [
15582
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
15583
+ {
15584
+ name: "protocolFee",
15585
+ internalType: "uint24",
15586
+ type: "uint24",
15587
+ indexed: false
15588
+ }
15589
+ ],
15590
+ name: "ProtocolFeeUpdated"
15591
+ },
15592
+ {
15593
+ type: "event",
15594
+ anonymous: false,
15595
+ inputs: [
15596
+ { name: "id", internalType: "PoolId", type: "bytes32", indexed: true },
15597
+ {
15598
+ name: "sender",
15599
+ internalType: "address",
15600
+ type: "address",
15601
+ indexed: true
15602
+ },
15603
+ {
15604
+ name: "amount0",
15605
+ internalType: "int128",
15606
+ type: "int128",
15607
+ indexed: false
15608
+ },
15609
+ {
15610
+ name: "amount1",
15611
+ internalType: "int128",
15612
+ type: "int128",
15613
+ indexed: false
15614
+ },
15615
+ {
15616
+ name: "sqrtPriceX96",
15617
+ internalType: "uint160",
15618
+ type: "uint160",
15619
+ indexed: false
15620
+ },
15621
+ {
15622
+ name: "liquidity",
15623
+ internalType: "uint128",
15624
+ type: "uint128",
15625
+ indexed: false
15626
+ },
15627
+ { name: "tick", internalType: "int24", type: "int24", indexed: false },
15628
+ { name: "fee", internalType: "uint24", type: "uint24", indexed: false }
15629
+ ],
15630
+ name: "Swap"
14573
15631
  },
14574
15632
  {
14575
- type: "function",
15633
+ type: "event",
15634
+ anonymous: false,
14576
15635
  inputs: [
14577
15636
  {
14578
- name: "params",
14579
- internalType: "struct ISwapRouter.ExactInputSingleParams",
14580
- type: "tuple",
14581
- components: [
14582
- { name: "tokenIn", internalType: "address", type: "address" },
14583
- { name: "tokenOut", internalType: "address", type: "address" },
14584
- { name: "fee", internalType: "uint24", type: "uint24" },
14585
- { name: "recipient", internalType: "address", type: "address" },
14586
- { name: "amountIn", internalType: "uint256", type: "uint256" },
14587
- {
14588
- name: "amountOutMinimum",
14589
- internalType: "uint256",
14590
- type: "uint256"
14591
- },
14592
- {
14593
- name: "sqrtPriceLimitX96",
14594
- internalType: "uint160",
14595
- type: "uint160"
14596
- }
14597
- ]
15637
+ name: "caller",
15638
+ internalType: "address",
15639
+ type: "address",
15640
+ indexed: false
15641
+ },
15642
+ { name: "from", internalType: "address", type: "address", indexed: true },
15643
+ { name: "to", internalType: "address", type: "address", indexed: true },
15644
+ { name: "id", internalType: "uint256", type: "uint256", indexed: true },
15645
+ {
15646
+ name: "amount",
15647
+ internalType: "uint256",
15648
+ type: "uint256",
15649
+ indexed: false
14598
15650
  }
14599
15651
  ],
14600
- name: "exactInputSingle",
14601
- outputs: [{ name: "amountOut", internalType: "uint256", type: "uint256" }],
14602
- stateMutability: "payable"
15652
+ name: "Transfer"
14603
15653
  },
15654
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
14604
15655
  {
14605
- type: "function",
15656
+ type: "error",
14606
15657
  inputs: [
14607
- {
14608
- name: "params",
14609
- internalType: "struct ISwapRouter.ExactOutputParams",
14610
- type: "tuple",
14611
- components: [
14612
- { name: "path", internalType: "bytes", type: "bytes" },
14613
- { name: "recipient", internalType: "address", type: "address" },
14614
- { name: "amountOut", internalType: "uint256", type: "uint256" },
14615
- { name: "amountInMaximum", internalType: "uint256", type: "uint256" }
14616
- ]
14617
- }
15658
+ { name: "currency0", internalType: "address", type: "address" },
15659
+ { name: "currency1", internalType: "address", type: "address" }
14618
15660
  ],
14619
- name: "exactOutput",
14620
- outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
14621
- stateMutability: "payable"
15661
+ name: "CurrenciesOutOfOrderOrEqual"
15662
+ },
15663
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
15664
+ { type: "error", inputs: [], name: "InvalidCaller" },
15665
+ { type: "error", inputs: [], name: "ManagerLocked" },
15666
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
15667
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
15668
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
15669
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
15670
+ {
15671
+ type: "error",
15672
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
15673
+ name: "ProtocolFeeTooLarge"
15674
+ },
15675
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
15676
+ {
15677
+ type: "error",
15678
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
15679
+ name: "TickSpacingTooLarge"
15680
+ },
15681
+ {
15682
+ type: "error",
15683
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
15684
+ name: "TickSpacingTooSmall"
14622
15685
  },
15686
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
15687
+ ];
15688
+ var uniswapV4PoolManagerAddress = {
15689
+ 8453: "0x498581fF718922c3f8e6A244956aF099B2652b2b",
15690
+ 84532: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408"
15691
+ };
15692
+ var uniswapV4PoolManagerConfig = {
15693
+ address: uniswapV4PoolManagerAddress,
15694
+ abi: uniswapV4PoolManagerABI
15695
+ };
15696
+ var universalRouterABI = [
14623
15697
  {
14624
15698
  type: "function",
14625
15699
  inputs: [
14626
- {
14627
- name: "params",
14628
- internalType: "struct ISwapRouter.ExactOutputSingleParams",
14629
- type: "tuple",
14630
- components: [
14631
- { name: "tokenIn", internalType: "address", type: "address" },
14632
- { name: "tokenOut", internalType: "address", type: "address" },
14633
- { name: "fee", internalType: "uint24", type: "uint24" },
14634
- { name: "recipient", internalType: "address", type: "address" },
14635
- { name: "amountOut", internalType: "uint256", type: "uint256" },
14636
- { name: "amountInMaximum", internalType: "uint256", type: "uint256" },
14637
- {
14638
- name: "sqrtPriceLimitX96",
14639
- internalType: "uint160",
14640
- type: "uint160"
14641
- }
14642
- ]
14643
- }
15700
+ { name: "commands", internalType: "bytes", type: "bytes" },
15701
+ { name: "inputs", internalType: "bytes[]", type: "bytes[]" },
15702
+ { name: "deadline", internalType: "uint256", type: "uint256" }
14644
15703
  ],
14645
- name: "exactOutputSingle",
14646
- outputs: [{ name: "amountIn", internalType: "uint256", type: "uint256" }],
15704
+ name: "execute",
15705
+ outputs: [],
14647
15706
  stateMutability: "payable"
14648
15707
  },
15708
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
14649
15709
  {
14650
- type: "function",
15710
+ type: "error",
14651
15711
  inputs: [
14652
- { name: "amount0Delta", internalType: "int256", type: "int256" },
14653
- { name: "amount1Delta", internalType: "int256", type: "int256" },
14654
- { name: "data", internalType: "bytes", type: "bytes" }
15712
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
15713
+ { name: "message", internalType: "bytes", type: "bytes" }
14655
15714
  ],
14656
- name: "uniswapV3SwapCallback",
14657
- outputs: [],
14658
- stateMutability: "nonpayable"
14659
- }
15715
+ name: "ExecutionFailed"
15716
+ },
15717
+ { type: "error", inputs: [], name: "InvalidEthSender" },
15718
+ { type: "error", inputs: [], name: "LengthMismatch" },
15719
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
14660
15720
  ];
14661
- var uniswapV3SwapRouterAddress = {
14662
- 1: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
14663
- 10: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
14664
- 8453: "0x2626664c2603336E57B271c5C0b26F421741e481",
14665
- 42161: "0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45",
14666
- 81457: "0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",
14667
- 84532: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
14668
- 421614: "0x101F443B4d1b059569D643917553c771E1b9663E",
14669
- 7777777: "0x7De04c96BE5159c3b5CeffC82aa176dc81281557",
14670
- 11155111: "0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",
14671
- 11155420: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
14672
- 999999999: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a"
15721
+ var universalRouterAddress = {
15722
+ 8453: "0x6fF5693b99212Da76ad316178A184AB56D299b43",
15723
+ 84532: "0x492E6456D9528771018DeB9E87ef7750EF184104"
14673
15724
  };
14674
- var uniswapV3SwapRouterConfig = {
14675
- address: uniswapV3SwapRouterAddress,
14676
- abi: uniswapV3SwapRouterABI
15725
+ var universalRouterConfig = {
15726
+ address: universalRouterAddress,
15727
+ abi: universalRouterABI
14677
15728
  };
14678
15729
  var upgradeGateABI = [
14679
15730
  { type: "constructor", inputs: [], stateMutability: "nonpayable" },
@@ -19733,6 +20784,7 @@ var zoraLimitOrderBookABI = [
19733
20784
  ],
19734
20785
  name: "InvalidAccountNonce"
19735
20786
  },
20787
+ { type: "error", inputs: [], name: "InvalidCurrency" },
19736
20788
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
19737
20789
  { type: "error", inputs: [], name: "InvalidInitialization" },
19738
20790
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -19842,10 +20894,43 @@ var zoraLimitOrderBookABI = [
19842
20894
  name: "UpgradePathNotRegistered"
19843
20895
  },
19844
20896
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
19845
- { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" }
20897
+ { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
20898
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
20899
+ {
20900
+ type: "error",
20901
+ inputs: [
20902
+ { name: "currency0", internalType: "address", type: "address" },
20903
+ { name: "currency1", internalType: "address", type: "address" }
20904
+ ],
20905
+ name: "CurrenciesOutOfOrderOrEqual"
20906
+ },
20907
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
20908
+ { type: "error", inputs: [], name: "InvalidCaller" },
20909
+ { type: "error", inputs: [], name: "ManagerLocked" },
20910
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
20911
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
20912
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
20913
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
20914
+ {
20915
+ type: "error",
20916
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
20917
+ name: "ProtocolFeeTooLarge"
20918
+ },
20919
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
20920
+ {
20921
+ type: "error",
20922
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
20923
+ name: "TickSpacingTooLarge"
20924
+ },
20925
+ {
20926
+ type: "error",
20927
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
20928
+ name: "TickSpacingTooSmall"
20929
+ },
20930
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" }
19846
20931
  ];
19847
20932
  var zoraLimitOrderBookAddress = {
19848
- 8453: "0x7777777A5906659b67CE61511489Ae76DA63920f"
20933
+ 8453: "0x7777777C783bAD88daCaf9A19E04238341E4497B"
19849
20934
  };
19850
20935
  var zoraLimitOrderBookConfig = {
19851
20936
  address: zoraLimitOrderBookAddress,
@@ -21881,6 +22966,65 @@ var zoraRouterABI = [
21881
22966
  { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
21882
22967
  { type: "error", inputs: [], name: "ZeroSwapDelta" },
21883
22968
  { type: "error", inputs: [], name: "AddressZero" },
22969
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
22970
+ { type: "error", inputs: [], name: "CallerNotPermitted" },
22971
+ {
22972
+ type: "error",
22973
+ inputs: [
22974
+ { name: "orderId", internalType: "bytes32", type: "bytes32" },
22975
+ { name: "expectedCoin", internalType: "address", type: "address" },
22976
+ { name: "actualCoin", internalType: "address", type: "address" }
22977
+ ],
22978
+ name: "CoinMismatch"
22979
+ },
22980
+ { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
22981
+ { type: "error", inputs: [], name: "InsufficientTransferFunds" },
22982
+ {
22983
+ type: "error",
22984
+ inputs: [
22985
+ { name: "startTick", internalType: "int24", type: "int24" },
22986
+ { name: "endTick", internalType: "int24", type: "int24" },
22987
+ { name: "isCurrency0", internalType: "bool", type: "bool" }
22988
+ ],
22989
+ name: "InvalidFillWindow"
22990
+ },
22991
+ { type: "error", inputs: [], name: "InvalidOrder" },
22992
+ { type: "error", inputs: [], name: "InvalidPoolKey" },
22993
+ { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
22994
+ {
22995
+ type: "error",
22996
+ inputs: [
22997
+ { name: "withdrawn", internalType: "uint256", type: "uint256" },
22998
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
22999
+ ],
23000
+ name: "MinAmountNotReached"
23001
+ },
23002
+ { type: "error", inputs: [], name: "NativeValueMismatch" },
23003
+ { type: "error", inputs: [], name: "NotPoolManager" },
23004
+ { type: "error", inputs: [], name: "OnlyZoraHook" },
23005
+ { type: "error", inputs: [], name: "OrderClosed" },
23006
+ { type: "error", inputs: [], name: "OrderFillable" },
23007
+ { type: "error", inputs: [], name: "OrderNotMaker" },
23008
+ {
23009
+ type: "error",
23010
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
23011
+ name: "OwnableInvalidOwner"
23012
+ },
23013
+ {
23014
+ type: "error",
23015
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
23016
+ name: "OwnableUnauthorizedAccount"
23017
+ },
23018
+ { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
23019
+ { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
23020
+ { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
23021
+ { type: "error", inputs: [], name: "UnknownCallback" },
23022
+ { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
23023
+ { type: "error", inputs: [], name: "WethTransferFailed" },
23024
+ { type: "error", inputs: [], name: "ZeroMaker" },
23025
+ { type: "error", inputs: [], name: "ZeroOrderSize" },
23026
+ { type: "error", inputs: [], name: "ZeroRealizedOrder" },
23027
+ { type: "error", inputs: [], name: "AddressZero" },
21884
23028
  { type: "error", inputs: [], name: "AlreadyOwner" },
21885
23029
  { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
21886
23030
  {
@@ -21966,6 +23110,7 @@ var zoraRouterABI = [
21966
23110
  ],
21967
23111
  name: "InvalidAccountNonce"
21968
23112
  },
23113
+ { type: "error", inputs: [], name: "InvalidCurrency" },
21969
23114
  { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
21970
23115
  { type: "error", inputs: [], name: "InvalidInitialization" },
21971
23116
  { type: "error", inputs: [], name: "InvalidMarketType" },
@@ -22076,68 +23221,54 @@ var zoraRouterABI = [
22076
23221
  },
22077
23222
  { type: "error", inputs: [], name: "ZoraHookRegistryCannotBeZeroAddress" },
22078
23223
  { type: "error", inputs: [], name: "ZoraLimitOrderBookCannotBeZeroAddress" },
22079
- { type: "error", inputs: [], name: "AddressZero" },
22080
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
22081
- { type: "error", inputs: [], name: "CallerNotPermitted" },
23224
+ { type: "error", inputs: [], name: "AlreadyUnlocked" },
22082
23225
  {
22083
23226
  type: "error",
22084
23227
  inputs: [
22085
- { name: "orderId", internalType: "bytes32", type: "bytes32" },
22086
- { name: "expectedCoin", internalType: "address", type: "address" },
22087
- { name: "actualCoin", internalType: "address", type: "address" }
23228
+ { name: "currency0", internalType: "address", type: "address" },
23229
+ { name: "currency1", internalType: "address", type: "address" }
22088
23230
  ],
22089
- name: "CoinMismatch"
23231
+ name: "CurrenciesOutOfOrderOrEqual"
22090
23232
  },
22091
- { type: "error", inputs: [], name: "InsufficientForwardedFunds" },
22092
- { type: "error", inputs: [], name: "InsufficientTransferFunds" },
23233
+ { type: "error", inputs: [], name: "CurrencyNotSettled" },
23234
+ { type: "error", inputs: [], name: "InvalidCaller" },
23235
+ { type: "error", inputs: [], name: "ManagerLocked" },
23236
+ { type: "error", inputs: [], name: "MustClearExactPositiveDelta" },
23237
+ { type: "error", inputs: [], name: "NonzeroNativeValue" },
23238
+ { type: "error", inputs: [], name: "PoolNotInitialized" },
23239
+ { type: "error", inputs: [], name: "ProtocolFeeCurrencySynced" },
22093
23240
  {
22094
23241
  type: "error",
22095
- inputs: [
22096
- { name: "startTick", internalType: "int24", type: "int24" },
22097
- { name: "endTick", internalType: "int24", type: "int24" },
22098
- { name: "isCurrency0", internalType: "bool", type: "bool" }
22099
- ],
22100
- name: "InvalidFillWindow"
23242
+ inputs: [{ name: "fee", internalType: "uint24", type: "uint24" }],
23243
+ name: "ProtocolFeeTooLarge"
22101
23244
  },
22102
- { type: "error", inputs: [], name: "InvalidOrder" },
22103
- { type: "error", inputs: [], name: "InvalidPoolKey" },
22104
- { type: "error", inputs: [], name: "MaxFillCountCannotBeZero" },
23245
+ { type: "error", inputs: [], name: "SwapAmountCannotBeZero" },
22105
23246
  {
22106
23247
  type: "error",
22107
- inputs: [
22108
- { name: "withdrawn", internalType: "uint256", type: "uint256" },
22109
- { name: "minAmountOut", internalType: "uint256", type: "uint256" }
22110
- ],
22111
- name: "MinAmountNotReached"
23248
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
23249
+ name: "TickSpacingTooLarge"
22112
23250
  },
22113
- { type: "error", inputs: [], name: "NativeValueMismatch" },
22114
- { type: "error", inputs: [], name: "NotPoolManager" },
22115
- { type: "error", inputs: [], name: "OnlyZoraHook" },
22116
- { type: "error", inputs: [], name: "OrderClosed" },
22117
- { type: "error", inputs: [], name: "OrderFillable" },
22118
- { type: "error", inputs: [], name: "OrderNotMaker" },
22119
23251
  {
22120
23252
  type: "error",
22121
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
22122
- name: "OwnableInvalidOwner"
23253
+ inputs: [{ name: "tickSpacing", internalType: "int24", type: "int24" }],
23254
+ name: "TickSpacingTooSmall"
22123
23255
  },
23256
+ { type: "error", inputs: [], name: "UnauthorizedDynamicLPFeeUpdate" },
23257
+ { type: "error", inputs: [], name: "ETHNotAccepted" },
22124
23258
  {
22125
23259
  type: "error",
22126
- inputs: [{ name: "account", internalType: "address", type: "address" }],
22127
- name: "OwnableUnauthorizedAccount"
23260
+ inputs: [
23261
+ { name: "commandIndex", internalType: "uint256", type: "uint256" },
23262
+ { name: "message", internalType: "bytes", type: "bytes" }
23263
+ ],
23264
+ name: "ExecutionFailed"
22128
23265
  },
22129
- { type: "error", inputs: [], name: "PathMustHaveAtLeastOneStep" },
22130
- { type: "error", inputs: [], name: "PermittedCallersLengthMismatch" },
22131
- { type: "error", inputs: [], name: "RouterMsgSenderInvalid" },
22132
- { type: "error", inputs: [], name: "UnknownCallback" },
22133
- { type: "error", inputs: [], name: "UnlockedFillNotAllowed" },
22134
- { type: "error", inputs: [], name: "WethTransferFailed" },
22135
- { type: "error", inputs: [], name: "ZeroMaker" },
22136
- { type: "error", inputs: [], name: "ZeroOrderSize" },
22137
- { type: "error", inputs: [], name: "ZeroRealizedOrder" }
23266
+ { type: "error", inputs: [], name: "InvalidEthSender" },
23267
+ { type: "error", inputs: [], name: "LengthMismatch" },
23268
+ { type: "error", inputs: [], name: "TransactionDeadlinePassed" }
22138
23269
  ];
22139
23270
  var zoraRouterAddress = {
22140
- 8453: "0x7777777f62529Ea64736E24ad9ad3E4a39eB97c2"
23271
+ 8453: "0x77777777Eb762Cf86F634763e79d17dE44330887"
22141
23272
  };
22142
23273
  var zoraRouterConfig = {
22143
23274
  address: zoraRouterAddress,
@@ -24184,7 +25315,10 @@ var zoraTimedSaleStrategyConfig = {
24184
25315
  abi: zoraTimedSaleStrategyABI
24185
25316
  };
24186
25317
 
24187
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/errors/unit.js
25318
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseEther.js
25319
+ init_unit();
25320
+
25321
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/errors/unit.js
24188
25322
  init_base();
24189
25323
  var InvalidDecimalNumberError = class extends BaseError {
24190
25324
  constructor({ value }) {
@@ -24194,7 +25328,7 @@ var InvalidDecimalNumberError = class extends BaseError {
24194
25328
  }
24195
25329
  };
24196
25330
 
24197
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/unit/parseUnits.js
25331
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseUnits.js
24198
25332
  function parseUnits(value, decimals) {
24199
25333
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
24200
25334
  throw new InvalidDecimalNumberError({ value });
@@ -24229,13 +25363,12 @@ function parseUnits(value, decimals) {
24229
25363
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
24230
25364
  }
24231
25365
 
24232
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/utils/unit/parseEther.js
24233
- init_unit();
25366
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/utils/unit/parseEther.js
24234
25367
  function parseEther(ether, unit = "wei") {
24235
25368
  return parseUnits(ether, etherUnits[unit]);
24236
25369
  }
24237
25370
 
24238
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@3.25.76/node_modules/viem/_esm/index.js
25371
+ // ../../node_modules/.pnpm/viem@2.53.1_bufferutil@4.1.0_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.3.6/node_modules/viem/_esm/index.js
24239
25372
  init_decodeAbiParameters();
24240
25373
  init_encodeAbiParameters();
24241
25374
  init_getAbiItem();
@@ -25003,6 +26136,7 @@ var chainConfigs2 = {
25003
26136
  DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
25004
26137
  PROXY_ADMIN: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
25005
26138
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
26139
+ METADATA_MANAGER: "0x004d6611884B4A661749B64b2ADc78505c3e1AB3",
25006
26140
  WETH: "0x4200000000000000000000000000000000000006",
25007
26141
  UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
25008
26142
  UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
@@ -25031,6 +26165,7 @@ var chainConfigs2 = {
25031
26165
  DOPPLER_AIRLOCK: "0xa24E35a5d71d02a59b41E7c93567626302da1958",
25032
26166
  PROXY_ADMIN: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
25033
26167
  ZORA_RECIPIENT: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
26168
+ METADATA_MANAGER: "0x5F14C23983c9e0840Dc60dA880349622f0785420",
25034
26169
  WETH: "0x4200000000000000000000000000000000000006",
25035
26170
  UNISWAP_V4_POOL_MANAGER: "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",
25036
26171
  UNISWAP_V4_POSITION_MANAGER: "0x4b2c77d209d3405f41a037ec6c77f7f5b8e2ca80",
@@ -25080,6 +26215,7 @@ var chainConfigs2 = {
25080
26215
  DOPPLER_AIRLOCK: "0x660eAaEdEBc968f8f3694354FA8EC0b4c5Ba8D12",
25081
26216
  PROXY_ADMIN: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
25082
26217
  ZORA_RECIPIENT: "0x7bf90111Ad7C22bec9E9dFf8A01A44713CC1b1B6",
26218
+ METADATA_MANAGER: "0xEAB37fbA9E4F99602815E173A7FeAee0f4eF980B",
25083
26219
  WETH: "0x4200000000000000000000000000000000000006",
25084
26220
  UNISWAP_V4_POOL_MANAGER: "0x498581ff718922c3f8e6a244956af099b2652b2b",
25085
26221
  UNISWAP_V4_POSITION_MANAGER: "0x7c5f5a4bbd8fd63184577525326123b519429bdc",
@@ -25242,6 +26378,12 @@ var addresses2 = {
25242
26378
  uniswapV3SwapRouterABI,
25243
26379
  uniswapV3SwapRouterAddress,
25244
26380
  uniswapV3SwapRouterConfig,
26381
+ uniswapV4PoolManagerABI,
26382
+ uniswapV4PoolManagerAddress,
26383
+ uniswapV4PoolManagerConfig,
26384
+ universalRouterABI,
26385
+ universalRouterAddress,
26386
+ universalRouterConfig,
25245
26387
  upgradeGateABI,
25246
26388
  upgradeGateAddress,
25247
26389
  upgradeGateConfig,