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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/regex.js
23
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/regex.js"() {
29
+ "../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
34
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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) {
@@ -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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
61
+ "../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
68
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
81
+ "../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
87
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
102
+ "../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.8.3_zod@3.24.1/node_modules/abitype/dist/esm/exports/index.js
108
+ // ../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/node_modules/abitype/dist/esm/exports/index.js
109
109
  var init_exports = __esm({
110
- "../../node_modules/.pnpm/abitype@1.0.7_typescript@5.8.3_zod@3.24.1/node_modules/abitype/dist/esm/exports/index.js"() {
110
+ "../../node_modules/.pnpm/abitype@1.1.0_typescript@5.9.3_zod@4.1.11/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.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/formatAbiItem.js
116
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/formatAbiItem.js
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.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
134
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
135
135
  "use strict";
136
136
  init_abi();
137
137
  }
138
138
  });
139
139
 
140
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/isHex.js
140
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/isHex.js
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.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/isHex.js"() {
149
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/isHex.js"() {
150
150
  "use strict";
151
151
  }
152
152
  });
153
153
 
154
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/size.js
154
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/size.js
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.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/size.js"() {
161
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/size.js"() {
162
162
  "use strict";
163
163
  init_isHex();
164
164
  }
165
165
  });
166
166
 
167
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/version.js
167
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/version.js
168
168
  var version;
169
169
  var init_version = __esm({
170
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/version.js"() {
170
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/version.js"() {
171
171
  "use strict";
172
- version = "2.22.12";
172
+ version = "2.37.9";
173
173
  }
174
174
  });
175
175
 
176
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/base.js
176
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/base.js
177
177
  function walk(err, fn) {
178
178
  if (fn?.(err))
179
179
  return err;
@@ -183,11 +183,11 @@ 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.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/base.js"() {
186
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/base.js"() {
187
187
  "use strict";
188
188
  init_version();
189
189
  errorConfig = {
190
- getDocsUrl: ({ docsBaseUrl, docsPath: docsPath2 = "", docsSlug }) => docsPath2 ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath2}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
190
+ getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
191
191
  version: `viem@${version}`
192
192
  };
193
193
  BaseError = class _BaseError extends Error {
@@ -199,12 +199,12 @@ var init_base = __esm({
199
199
  return args.cause.message;
200
200
  return args.details;
201
201
  })();
202
- const docsPath2 = (() => {
202
+ const docsPath = (() => {
203
203
  if (args.cause instanceof _BaseError)
204
204
  return args.cause.docsPath || args.docsPath;
205
205
  return args.docsPath;
206
206
  })();
207
- const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath: docsPath2 });
207
+ const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath });
208
208
  const message = [
209
209
  shortMessage || "An error occurred.",
210
210
  "",
@@ -251,7 +251,7 @@ var init_base = __esm({
251
251
  value: "BaseError"
252
252
  });
253
253
  this.details = details;
254
- this.docsPath = docsPath2;
254
+ this.docsPath = docsPath;
255
255
  this.metaMessages = args.metaMessages;
256
256
  this.name = args.name ?? this.name;
257
257
  this.shortMessage = shortMessage;
@@ -264,10 +264,10 @@ var init_base = __esm({
264
264
  }
265
265
  });
266
266
 
267
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js
268
- var AbiDecodingDataSizeTooSmallError, AbiDecodingZeroDataError, AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiFunctionNotFoundError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidAbiDecodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
267
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/abi.js
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.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/abi.js"() {
270
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/abi.js"() {
271
271
  "use strict";
272
272
  init_formatAbiItem2();
273
273
  init_size();
@@ -334,17 +334,6 @@ var init_abi = __esm({
334
334
  ].join("\n"), { name: "AbiEncodingLengthMismatchError" });
335
335
  }
336
336
  };
337
- AbiFunctionNotFoundError = class extends BaseError {
338
- constructor(functionName, { docsPath: docsPath2 } = {}) {
339
- super([
340
- `Function ${functionName ? `"${functionName}" ` : ""}not found on ABI.`,
341
- "Make sure you are using the correct ABI and that the function exists on it."
342
- ].join("\n"), {
343
- docsPath: docsPath2,
344
- name: "AbiFunctionNotFoundError"
345
- });
346
- }
347
- };
348
337
  AbiItemAmbiguityError = class extends BaseError {
349
338
  constructor(x, y) {
350
339
  super("Found ambiguous types in overloaded ABI items.", {
@@ -360,19 +349,19 @@ var init_abi = __esm({
360
349
  }
361
350
  };
362
351
  InvalidAbiEncodingTypeError = class extends BaseError {
363
- constructor(type, { docsPath: docsPath2 }) {
352
+ constructor(type, { docsPath }) {
364
353
  super([
365
354
  `Type "${type}" is not a valid encoding type.`,
366
355
  "Please provide a valid ABI type."
367
- ].join("\n"), { docsPath: docsPath2, name: "InvalidAbiEncodingType" });
356
+ ].join("\n"), { docsPath, name: "InvalidAbiEncodingType" });
368
357
  }
369
358
  };
370
359
  InvalidAbiDecodingTypeError = class extends BaseError {
371
- constructor(type, { docsPath: docsPath2 }) {
360
+ constructor(type, { docsPath }) {
372
361
  super([
373
362
  `Type "${type}" is not a valid decoding type.`,
374
363
  "Please provide a valid ABI type."
375
- ].join("\n"), { docsPath: docsPath2, name: "InvalidAbiDecodingType" });
364
+ ].join("\n"), { docsPath, name: "InvalidAbiDecodingType" });
376
365
  }
377
366
  };
378
367
  InvalidArrayError = class extends BaseError {
@@ -393,10 +382,10 @@ var init_abi = __esm({
393
382
  }
394
383
  });
395
384
 
396
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js
385
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/data.js
397
386
  var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
398
387
  var init_data = __esm({
399
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/data.js"() {
388
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/data.js"() {
400
389
  "use strict";
401
390
  init_base();
402
391
  SliceOffsetOutOfBoundsError = class extends BaseError {
@@ -412,7 +401,7 @@ var init_data = __esm({
412
401
  }
413
402
  });
414
403
 
415
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js
404
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/pad.js
416
405
  function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
417
406
  if (typeof hexOrBytes === "string")
418
407
  return padHex(hexOrBytes, { dir, size: size2 });
@@ -447,16 +436,16 @@ function padBytes(bytes, { dir, size: size2 = 32 } = {}) {
447
436
  return paddedBytes;
448
437
  }
449
438
  var init_pad = __esm({
450
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/pad.js"() {
439
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/pad.js"() {
451
440
  "use strict";
452
441
  init_data();
453
442
  }
454
443
  });
455
444
 
456
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js
445
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/encoding.js
457
446
  var IntegerOutOfRangeError, InvalidBytesBooleanError, SizeOverflowError;
458
447
  var init_encoding = __esm({
459
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/encoding.js"() {
448
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/encoding.js"() {
460
449
  "use strict";
461
450
  init_base();
462
451
  IntegerOutOfRangeError = class extends BaseError {
@@ -479,7 +468,7 @@ var init_encoding = __esm({
479
468
  }
480
469
  });
481
470
 
482
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/trim.js
471
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/trim.js
483
472
  function trim(hexOrBytes, { dir = "left" } = {}) {
484
473
  let data = typeof hexOrBytes === "string" ? hexOrBytes.replace("0x", "") : hexOrBytes;
485
474
  let sliceLength = 0;
@@ -498,12 +487,12 @@ function trim(hexOrBytes, { dir = "left" } = {}) {
498
487
  return data;
499
488
  }
500
489
  var init_trim = __esm({
501
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/trim.js"() {
490
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/trim.js"() {
502
491
  "use strict";
503
492
  }
504
493
  });
505
494
 
506
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js
495
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/fromHex.js
507
496
  function assertSize(hexOrBytes, { size: size2 }) {
508
497
  if (size(hexOrBytes) > size2)
509
498
  throw new SizeOverflowError({
@@ -528,14 +517,14 @@ function hexToNumber(hex, opts = {}) {
528
517
  return Number(hexToBigInt(hex, opts));
529
518
  }
530
519
  var init_fromHex = __esm({
531
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
520
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
532
521
  "use strict";
533
522
  init_encoding();
534
523
  init_size();
535
524
  }
536
525
  });
537
526
 
538
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js
527
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/toHex.js
539
528
  function toHex(value, opts = {}) {
540
529
  if (typeof value === "number" || typeof value === "bigint")
541
530
  return numberToHex(value, opts);
@@ -600,7 +589,7 @@ function stringToHex(value_, opts = {}) {
600
589
  }
601
590
  var hexes, encoder;
602
591
  var init_toHex = __esm({
603
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toHex.js"() {
592
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/toHex.js"() {
604
593
  "use strict";
605
594
  init_encoding();
606
595
  init_pad();
@@ -610,7 +599,7 @@ var init_toHex = __esm({
610
599
  }
611
600
  });
612
601
 
613
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js
602
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/toBytes.js
614
603
  function toBytes(value, opts = {}) {
615
604
  if (typeof value === "number" || typeof value === "bigint")
616
605
  return numberToBytes(value, opts);
@@ -673,7 +662,7 @@ function stringToBytes(value, opts = {}) {
673
662
  }
674
663
  var encoder2, charCodeMap;
675
664
  var init_toBytes = __esm({
676
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
665
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
677
666
  "use strict";
678
667
  init_base();
679
668
  init_isHex();
@@ -692,14 +681,43 @@ var init_toBytes = __esm({
692
681
  }
693
682
  });
694
683
 
695
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js
696
- function anumber(n) {
697
- if (!Number.isSafeInteger(n) || n < 0)
698
- throw new Error("positive integer expected, got " + n);
684
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js
685
+ function fromBig(n, le = false) {
686
+ if (le)
687
+ return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
688
+ return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
689
+ }
690
+ function split(lst, le = false) {
691
+ const len = lst.length;
692
+ let Ah = new Uint32Array(len);
693
+ let Al = new Uint32Array(len);
694
+ for (let i = 0; i < len; i++) {
695
+ const { h, l } = fromBig(lst[i], le);
696
+ [Ah[i], Al[i]] = [h, l];
697
+ }
698
+ return [Ah, Al];
699
699
  }
700
+ var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
701
+ var init_u64 = __esm({
702
+ "../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/_u64.js"() {
703
+ "use strict";
704
+ U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
705
+ _32n = /* @__PURE__ */ BigInt(32);
706
+ rotlSH = (h, l, s) => h << s | l >>> 32 - s;
707
+ rotlSL = (h, l, s) => l << s | h >>> 32 - s;
708
+ rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
709
+ rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
710
+ }
711
+ });
712
+
713
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js
700
714
  function isBytes(a) {
701
715
  return a instanceof Uint8Array || ArrayBuffer.isView(a) && a.constructor.name === "Uint8Array";
702
716
  }
717
+ function anumber(n) {
718
+ if (!Number.isSafeInteger(n) || n < 0)
719
+ throw new Error("positive integer expected, got " + n);
720
+ }
703
721
  function abytes(b, ...lengths) {
704
722
  if (!isBytes(b))
705
723
  throw new Error("Uint8Array expected");
@@ -719,49 +737,26 @@ function aoutput(out, instance) {
719
737
  throw new Error("digestInto() expects output buffer of length at least " + min);
720
738
  }
721
739
  }
722
- var init_assert = __esm({
723
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_assert.js"() {
724
- "use strict";
725
- }
726
- });
727
-
728
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js
729
- function fromBig(n, le = false) {
730
- if (le)
731
- return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
732
- return { h: Number(n >> _32n & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 };
740
+ function u32(arr) {
741
+ return new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
733
742
  }
734
- function split(lst, le = false) {
735
- let Ah = new Uint32Array(lst.length);
736
- let Al = new Uint32Array(lst.length);
737
- for (let i = 0; i < lst.length; i++) {
738
- const { h, l } = fromBig(lst[i], le);
739
- [Ah[i], Al[i]] = [h, l];
743
+ function clean(...arrays) {
744
+ for (let i = 0; i < arrays.length; i++) {
745
+ arrays[i].fill(0);
740
746
  }
741
- return [Ah, Al];
742
747
  }
743
- var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
744
- var init_u64 = __esm({
745
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/_u64.js"() {
746
- "use strict";
747
- U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
748
- _32n = /* @__PURE__ */ BigInt(32);
749
- rotlSH = (h, l, s) => h << s | l >>> 32 - s;
750
- rotlSL = (h, l, s) => l << s | h >>> 32 - s;
751
- rotlBH = (h, l, s) => l << s - 32 | h >>> 64 - s;
752
- rotlBL = (h, l, s) => h << s - 32 | l >>> 64 - s;
753
- }
754
- });
755
-
756
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js
748
+ function byteSwap(word) {
749
+ return word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
750
+ }
757
751
  function byteSwap32(arr) {
758
752
  for (let i = 0; i < arr.length; i++) {
759
753
  arr[i] = byteSwap(arr[i]);
760
754
  }
755
+ return arr;
761
756
  }
762
757
  function utf8ToBytes(str) {
763
758
  if (typeof str !== "string")
764
- throw new Error("utf8ToBytes expected string, got " + typeof str);
759
+ throw new Error("string expected");
765
760
  return new Uint8Array(new TextEncoder().encode(str));
766
761
  }
767
762
  function toBytes2(data) {
@@ -770,7 +765,7 @@ function toBytes2(data) {
770
765
  abytes(data);
771
766
  return data;
772
767
  }
773
- function wrapConstructor(hashCons) {
768
+ function createHasher(hashCons) {
774
769
  const hashC = (msg) => hashCons().update(toBytes2(msg)).digest();
775
770
  const tmp = hashCons();
776
771
  hashC.outputLen = tmp.outputLen;
@@ -778,32 +773,18 @@ function wrapConstructor(hashCons) {
778
773
  hashC.create = () => hashCons();
779
774
  return hashC;
780
775
  }
781
- function wrapXOFConstructorWithOpts(hashCons) {
782
- const hashC = (msg, opts) => hashCons(opts).update(toBytes2(msg)).digest();
783
- const tmp = hashCons({});
784
- hashC.outputLen = tmp.outputLen;
785
- hashC.blockLen = tmp.blockLen;
786
- hashC.create = (opts) => hashCons(opts);
787
- return hashC;
788
- }
789
- var u32, isLE, byteSwap, Hash;
776
+ var isLE, swap32IfBE, Hash;
790
777
  var init_utils = __esm({
791
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/utils.js"() {
778
+ "../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/utils.js"() {
792
779
  "use strict";
793
- init_assert();
794
- u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
795
780
  isLE = /* @__PURE__ */ (() => new Uint8Array(new Uint32Array([287454020]).buffer)[0] === 68)();
796
- byteSwap = (word) => word << 24 & 4278190080 | word << 8 & 16711680 | word >>> 8 & 65280 | word >>> 24 & 255;
781
+ swap32IfBE = isLE ? (u) => u : byteSwap32;
797
782
  Hash = class {
798
- // Safe version that clones internal state
799
- clone() {
800
- return this._cloneInto();
801
- }
802
783
  };
803
784
  }
804
785
  });
805
786
 
806
- // ../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js
787
+ // ../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js
807
788
  function keccakP(s, rounds = 24) {
808
789
  const B = new Uint32Array(5 * 2);
809
790
  for (let round = 24 - rounds; round < 24; round++) {
@@ -842,24 +823,23 @@ function keccakP(s, rounds = 24) {
842
823
  s[0] ^= SHA3_IOTA_H[round];
843
824
  s[1] ^= SHA3_IOTA_L[round];
844
825
  }
845
- B.fill(0);
826
+ clean(B);
846
827
  }
847
- 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;
828
+ 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;
848
829
  var init_sha3 = __esm({
849
- "../../node_modules/.pnpm/@noble+hashes@1.6.1/node_modules/@noble/hashes/esm/sha3.js"() {
830
+ "../../node_modules/.pnpm/@noble+hashes@1.8.0/node_modules/@noble/hashes/esm/sha3.js"() {
850
831
  "use strict";
851
- init_assert();
852
832
  init_u64();
853
833
  init_utils();
834
+ _0n = BigInt(0);
835
+ _1n = BigInt(1);
836
+ _2n = BigInt(2);
837
+ _7n = BigInt(7);
838
+ _256n = BigInt(256);
839
+ _0x71n = BigInt(113);
854
840
  SHA3_PI = [];
855
841
  SHA3_ROTL = [];
856
842
  _SHA3_IOTA = [];
857
- _0n = /* @__PURE__ */ BigInt(0);
858
- _1n = /* @__PURE__ */ BigInt(1);
859
- _2n = /* @__PURE__ */ BigInt(2);
860
- _7n = /* @__PURE__ */ BigInt(7);
861
- _256n = /* @__PURE__ */ BigInt(256);
862
- _0x71n = /* @__PURE__ */ BigInt(113);
863
843
  for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) {
864
844
  [x, y] = [y, (2 * x + 3 * y) % 5];
865
845
  SHA3_PI.push(2 * (5 * y + x));
@@ -872,41 +852,46 @@ var init_sha3 = __esm({
872
852
  }
873
853
  _SHA3_IOTA.push(t);
874
854
  }
875
- [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true);
855
+ IOTAS = split(_SHA3_IOTA, true);
856
+ SHA3_IOTA_H = IOTAS[0];
857
+ SHA3_IOTA_L = IOTAS[1];
876
858
  rotlH = (h, l, s) => s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s);
877
859
  rotlL = (h, l, s) => s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s);
878
860
  Keccak = class _Keccak extends Hash {
879
861
  // NOTE: we accept arguments in bytes instead of bits here.
880
862
  constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) {
881
863
  super();
864
+ this.pos = 0;
865
+ this.posOut = 0;
866
+ this.finished = false;
867
+ this.destroyed = false;
868
+ this.enableXOF = false;
882
869
  this.blockLen = blockLen;
883
870
  this.suffix = suffix;
884
871
  this.outputLen = outputLen;
885
872
  this.enableXOF = enableXOF;
886
873
  this.rounds = rounds;
887
- this.pos = 0;
888
- this.posOut = 0;
889
- this.finished = false;
890
- this.destroyed = false;
891
874
  anumber(outputLen);
892
- if (0 >= this.blockLen || this.blockLen >= 200)
893
- throw new Error("Sha3 supports only keccak-f1600 function");
875
+ if (!(0 < blockLen && blockLen < 200))
876
+ throw new Error("only keccak-f1600 function is supported");
894
877
  this.state = new Uint8Array(200);
895
878
  this.state32 = u32(this.state);
896
879
  }
880
+ clone() {
881
+ return this._cloneInto();
882
+ }
897
883
  keccak() {
898
- if (!isLE)
899
- byteSwap32(this.state32);
884
+ swap32IfBE(this.state32);
900
885
  keccakP(this.state32, this.rounds);
901
- if (!isLE)
902
- byteSwap32(this.state32);
886
+ swap32IfBE(this.state32);
903
887
  this.posOut = 0;
904
888
  this.pos = 0;
905
889
  }
906
890
  update(data) {
907
891
  aexists(this);
908
- const { blockLen, state } = this;
909
892
  data = toBytes2(data);
893
+ abytes(data);
894
+ const { blockLen, state } = this;
910
895
  const len = data.length;
911
896
  for (let pos = 0; pos < len; ) {
912
897
  const take = Math.min(blockLen - this.pos, len - pos);
@@ -966,7 +951,7 @@ var init_sha3 = __esm({
966
951
  }
967
952
  destroy() {
968
953
  this.destroyed = true;
969
- this.state.fill(0);
954
+ clean(this.state);
970
955
  }
971
956
  _cloneInto(to) {
972
957
  const { blockLen, suffix, outputLen, rounds, enableXOF } = this;
@@ -983,22 +968,12 @@ var init_sha3 = __esm({
983
968
  return to;
984
969
  }
985
970
  };
986
- gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen));
987
- sha3_224 = /* @__PURE__ */ gen(6, 144, 224 / 8);
988
- sha3_256 = /* @__PURE__ */ gen(6, 136, 256 / 8);
989
- sha3_384 = /* @__PURE__ */ gen(6, 104, 384 / 8);
990
- sha3_512 = /* @__PURE__ */ gen(6, 72, 512 / 8);
991
- keccak_224 = /* @__PURE__ */ gen(1, 144, 224 / 8);
992
- keccak_256 = /* @__PURE__ */ gen(1, 136, 256 / 8);
993
- keccak_384 = /* @__PURE__ */ gen(1, 104, 384 / 8);
994
- keccak_512 = /* @__PURE__ */ gen(1, 72, 512 / 8);
995
- genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === void 0 ? outputLen : opts.dkLen, true));
996
- shake128 = /* @__PURE__ */ genShake(31, 168, 128 / 8);
997
- shake256 = /* @__PURE__ */ genShake(31, 136, 256 / 8);
971
+ gen = (suffix, blockLen, outputLen) => createHasher(() => new Keccak(blockLen, suffix, outputLen));
972
+ keccak_256 = /* @__PURE__ */ (() => gen(1, 136, 256 / 8))();
998
973
  }
999
974
  });
1000
975
 
1001
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js
976
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/keccak256.js
1002
977
  function keccak256(value, to_) {
1003
978
  const to = to_ || "hex";
1004
979
  const bytes = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
@@ -1007,7 +982,7 @@ function keccak256(value, to_) {
1007
982
  return toHex(bytes);
1008
983
  }
1009
984
  var init_keccak256 = __esm({
1010
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/keccak256.js"() {
985
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/keccak256.js"() {
1011
986
  "use strict";
1012
987
  init_sha3();
1013
988
  init_isHex();
@@ -1016,13 +991,13 @@ var init_keccak256 = __esm({
1016
991
  }
1017
992
  });
1018
993
 
1019
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js
994
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/hashSignature.js
1020
995
  function hashSignature(sig) {
1021
996
  return hash(sig);
1022
997
  }
1023
998
  var hash;
1024
999
  var init_hashSignature = __esm({
1025
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
1000
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
1026
1001
  "use strict";
1027
1002
  init_toBytes();
1028
1003
  init_keccak256();
@@ -1030,7 +1005,7 @@ var init_hashSignature = __esm({
1030
1005
  }
1031
1006
  });
1032
1007
 
1033
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js
1008
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/normalizeSignature.js
1034
1009
  function normalizeSignature(signature) {
1035
1010
  let active = true;
1036
1011
  let current = "";
@@ -1074,16 +1049,16 @@ function normalizeSignature(signature) {
1074
1049
  return result;
1075
1050
  }
1076
1051
  var init_normalizeSignature = __esm({
1077
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
1052
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
1078
1053
  "use strict";
1079
1054
  init_base();
1080
1055
  }
1081
1056
  });
1082
1057
 
1083
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js
1058
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toSignature.js
1084
1059
  var toSignature;
1085
1060
  var init_toSignature = __esm({
1086
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignature.js"() {
1061
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toSignature.js"() {
1087
1062
  "use strict";
1088
1063
  init_exports();
1089
1064
  init_normalizeSignature();
@@ -1098,32 +1073,32 @@ var init_toSignature = __esm({
1098
1073
  }
1099
1074
  });
1100
1075
 
1101
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1076
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1102
1077
  function toSignatureHash(fn) {
1103
1078
  return hashSignature(toSignature(fn));
1104
1079
  }
1105
1080
  var init_toSignatureHash = __esm({
1106
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
1081
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
1107
1082
  "use strict";
1108
1083
  init_hashSignature();
1109
1084
  init_toSignature();
1110
1085
  }
1111
1086
  });
1112
1087
 
1113
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js
1088
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toEventSelector.js
1114
1089
  var toEventSelector;
1115
1090
  var init_toEventSelector = __esm({
1116
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
1091
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
1117
1092
  "use strict";
1118
1093
  init_toSignatureHash();
1119
1094
  toEventSelector = toSignatureHash;
1120
1095
  }
1121
1096
  });
1122
1097
 
1123
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js
1098
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/address.js
1124
1099
  var InvalidAddressError;
1125
1100
  var init_address = __esm({
1126
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/address.js"() {
1101
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/address.js"() {
1127
1102
  "use strict";
1128
1103
  init_base();
1129
1104
  InvalidAddressError = class extends BaseError {
@@ -1140,10 +1115,10 @@ var init_address = __esm({
1140
1115
  }
1141
1116
  });
1142
1117
 
1143
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js
1118
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/lru.js
1144
1119
  var LruMap;
1145
1120
  var init_lru = __esm({
1146
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/lru.js"() {
1121
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/lru.js"() {
1147
1122
  "use strict";
1148
1123
  LruMap = class extends Map {
1149
1124
  constructor(size2) {
@@ -1177,7 +1152,7 @@ var init_lru = __esm({
1177
1152
  }
1178
1153
  });
1179
1154
 
1180
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js
1155
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/getAddress.js
1181
1156
  function checksumAddress(address_, chainId) {
1182
1157
  if (checksumAddressCache.has(`${address_}.${chainId}`))
1183
1158
  return checksumAddressCache.get(`${address_}.${chainId}`);
@@ -1198,7 +1173,7 @@ function checksumAddress(address_, chainId) {
1198
1173
  }
1199
1174
  var checksumAddressCache;
1200
1175
  var init_getAddress = __esm({
1201
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/getAddress.js"() {
1176
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/getAddress.js"() {
1202
1177
  "use strict";
1203
1178
  init_toBytes();
1204
1179
  init_keccak256();
@@ -1207,7 +1182,7 @@ var init_getAddress = __esm({
1207
1182
  }
1208
1183
  });
1209
1184
 
1210
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js
1185
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/isAddress.js
1211
1186
  function isAddress(address, options) {
1212
1187
  const { strict = true } = options ?? {};
1213
1188
  const cacheKey = `${address}.${strict}`;
@@ -1227,7 +1202,7 @@ function isAddress(address, options) {
1227
1202
  }
1228
1203
  var addressRegex, isAddressCache;
1229
1204
  var init_isAddress = __esm({
1230
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/address/isAddress.js"() {
1205
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/address/isAddress.js"() {
1231
1206
  "use strict";
1232
1207
  init_lru();
1233
1208
  init_getAddress();
@@ -1236,7 +1211,7 @@ var init_isAddress = __esm({
1236
1211
  }
1237
1212
  });
1238
1213
 
1239
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js
1214
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/concat.js
1240
1215
  function concat(values) {
1241
1216
  if (typeof values[0] === "string")
1242
1217
  return concatHex(values);
@@ -1259,12 +1234,12 @@ function concatHex(values) {
1259
1234
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
1260
1235
  }
1261
1236
  var init_concat = __esm({
1262
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/concat.js"() {
1237
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/concat.js"() {
1263
1238
  "use strict";
1264
1239
  }
1265
1240
  });
1266
1241
 
1267
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js
1242
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/slice.js
1268
1243
  function slice(value, start, end, { strict } = {}) {
1269
1244
  if (isHex(value, { strict: false }))
1270
1245
  return sliceHex(value, start, end, {
@@ -1306,7 +1281,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
1306
1281
  return value;
1307
1282
  }
1308
1283
  var init_slice = __esm({
1309
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/data/slice.js"() {
1284
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/data/slice.js"() {
1310
1285
  "use strict";
1311
1286
  init_data();
1312
1287
  init_isHex();
@@ -1314,16 +1289,16 @@ var init_slice = __esm({
1314
1289
  }
1315
1290
  });
1316
1291
 
1317
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js
1292
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/regex.js
1318
1293
  var integerRegex;
1319
1294
  var init_regex2 = __esm({
1320
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/regex.js"() {
1295
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/regex.js"() {
1321
1296
  "use strict";
1322
1297
  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)?$/;
1323
1298
  }
1324
1299
  });
1325
1300
 
1326
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1301
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1327
1302
  function encodeAbiParameters(params, values) {
1328
1303
  if (params.length !== values.length)
1329
1304
  throw new AbiEncodingLengthMismatchError({
@@ -1460,9 +1435,9 @@ function encodeBytes(value, { param }) {
1460
1435
  encoded: concat([padHex(numberToHex(bytesSize, { size: 32 })), value_])
1461
1436
  };
1462
1437
  }
1463
- if (bytesSize !== Number.parseInt(paramSize))
1438
+ if (bytesSize !== Number.parseInt(paramSize, 10))
1464
1439
  throw new AbiEncodingBytesSizeMismatchError({
1465
- expectedSize: Number.parseInt(paramSize),
1440
+ expectedSize: Number.parseInt(paramSize, 10),
1466
1441
  value
1467
1442
  });
1468
1443
  return { dynamic: false, encoded: padHex(value, { dir: "right" }) };
@@ -1537,7 +1512,7 @@ function getArrayComponents(type) {
1537
1512
  ) : void 0;
1538
1513
  }
1539
1514
  var init_encodeAbiParameters = __esm({
1540
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
1515
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
1541
1516
  "use strict";
1542
1517
  init_abi();
1543
1518
  init_address();
@@ -1553,10 +1528,10 @@ var init_encodeAbiParameters = __esm({
1553
1528
  }
1554
1529
  });
1555
1530
 
1556
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1531
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1557
1532
  var toFunctionSelector;
1558
1533
  var init_toFunctionSelector = __esm({
1559
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
1534
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
1560
1535
  "use strict";
1561
1536
  init_slice();
1562
1537
  init_toSignatureHash();
@@ -1564,7 +1539,7 @@ var init_toFunctionSelector = __esm({
1564
1539
  }
1565
1540
  });
1566
1541
 
1567
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js
1542
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/getAbiItem.js
1568
1543
  function getAbiItem(parameters) {
1569
1544
  const { abi, args = [], name } = parameters;
1570
1545
  const isSelector = isHex(name, { strict: false });
@@ -1582,7 +1557,7 @@ function getAbiItem(parameters) {
1582
1557
  return void 0;
1583
1558
  if (abiItems.length === 1)
1584
1559
  return abiItems[0];
1585
- let matchedAbiItem = void 0;
1560
+ let matchedAbiItem;
1586
1561
  for (const abiItem of abiItems) {
1587
1562
  if (!("inputs" in abiItem))
1588
1563
  continue;
@@ -1676,7 +1651,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
1676
1651
  return;
1677
1652
  }
1678
1653
  var init_getAbiItem = __esm({
1679
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
1654
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
1680
1655
  "use strict";
1681
1656
  init_abi();
1682
1657
  init_isHex();
@@ -1686,65 +1661,10 @@ var init_getAbiItem = __esm({
1686
1661
  }
1687
1662
  });
1688
1663
 
1689
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
1690
- function prepareEncodeFunctionData(parameters) {
1691
- const { abi, args, functionName } = parameters;
1692
- let abiItem = abi[0];
1693
- if (functionName) {
1694
- const item = getAbiItem({
1695
- abi,
1696
- args,
1697
- name: functionName
1698
- });
1699
- if (!item)
1700
- throw new AbiFunctionNotFoundError(functionName, { docsPath });
1701
- abiItem = item;
1702
- }
1703
- if (abiItem.type !== "function")
1704
- throw new AbiFunctionNotFoundError(void 0, { docsPath });
1705
- return {
1706
- abi: [abiItem],
1707
- functionName: toFunctionSelector(formatAbiItem2(abiItem))
1708
- };
1709
- }
1710
- var docsPath;
1711
- var init_prepareEncodeFunctionData = __esm({
1712
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js"() {
1713
- "use strict";
1714
- init_abi();
1715
- init_toFunctionSelector();
1716
- init_formatAbiItem2();
1717
- init_getAbiItem();
1718
- docsPath = "/docs/contract/encodeFunctionData";
1719
- }
1720
- });
1721
-
1722
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeFunctionData.js
1723
- function encodeFunctionData(parameters) {
1724
- const { args } = parameters;
1725
- const { abi, functionName } = (() => {
1726
- if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
1727
- return parameters;
1728
- return prepareEncodeFunctionData(parameters);
1729
- })();
1730
- const abiItem = abi[0];
1731
- const signature = functionName;
1732
- const data = "inputs" in abiItem && abiItem.inputs ? encodeAbiParameters(abiItem.inputs, args ?? []) : void 0;
1733
- return concatHex([signature, data ?? "0x"]);
1734
- }
1735
- var init_encodeFunctionData = __esm({
1736
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/encodeFunctionData.js"() {
1737
- "use strict";
1738
- init_concat();
1739
- init_encodeAbiParameters();
1740
- init_prepareEncodeFunctionData();
1741
- }
1742
- });
1743
-
1744
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/cursor.js
1664
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/cursor.js
1745
1665
  var NegativeOffsetError, PositionOutOfBoundsError, RecursiveReadLimitExceededError;
1746
1666
  var init_cursor = __esm({
1747
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/cursor.js"() {
1667
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/cursor.js"() {
1748
1668
  "use strict";
1749
1669
  init_base();
1750
1670
  NegativeOffsetError = class extends BaseError {
@@ -1767,7 +1687,7 @@ var init_cursor = __esm({
1767
1687
  }
1768
1688
  });
1769
1689
 
1770
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/cursor.js
1690
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/cursor.js
1771
1691
  function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
1772
1692
  const cursor = Object.create(staticCursor);
1773
1693
  cursor.bytes = bytes;
@@ -1778,7 +1698,7 @@ function createCursor(bytes, { recursiveReadLimit = 8192 } = {}) {
1778
1698
  }
1779
1699
  var staticCursor;
1780
1700
  var init_cursor2 = __esm({
1781
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/cursor.js"() {
1701
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/cursor.js"() {
1782
1702
  "use strict";
1783
1703
  init_cursor();
1784
1704
  staticCursor = {
@@ -1943,7 +1863,7 @@ var init_cursor2 = __esm({
1943
1863
  }
1944
1864
  });
1945
1865
 
1946
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromBytes.js
1866
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/fromBytes.js
1947
1867
  function bytesToBigInt(bytes, opts = {}) {
1948
1868
  if (typeof opts.size !== "undefined")
1949
1869
  assertSize(bytes, { size: opts.size });
@@ -1975,7 +1895,7 @@ function bytesToString(bytes_, opts = {}) {
1975
1895
  return new TextDecoder().decode(bytes);
1976
1896
  }
1977
1897
  var init_fromBytes = __esm({
1978
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/encoding/fromBytes.js"() {
1898
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/encoding/fromBytes.js"() {
1979
1899
  "use strict";
1980
1900
  init_encoding();
1981
1901
  init_trim();
@@ -1984,7 +1904,7 @@ var init_fromBytes = __esm({
1984
1904
  }
1985
1905
  });
1986
1906
 
1987
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
1907
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js
1988
1908
  function decodeAbiParameters(params, data) {
1989
1909
  const bytes = typeof data === "string" ? hexToBytes(data) : data;
1990
1910
  const cursor = createCursor(bytes);
@@ -2098,12 +2018,12 @@ function decodeBytes(cursor, param, { staticPosition }) {
2098
2018
  cursor.setPosition(staticPosition + 32);
2099
2019
  return [bytesToHex(data), 32];
2100
2020
  }
2101
- const value = bytesToHex(cursor.readBytes(Number.parseInt(size2), 32));
2021
+ const value = bytesToHex(cursor.readBytes(Number.parseInt(size2, 10), 32));
2102
2022
  return [value, 32];
2103
2023
  }
2104
2024
  function decodeNumber(cursor, param) {
2105
2025
  const signed = param.type.startsWith("int");
2106
- const size2 = Number.parseInt(param.type.split("int")[1] || "256");
2026
+ const size2 = Number.parseInt(param.type.split("int")[1] || "256", 10);
2107
2027
  const value = cursor.readBytes(32);
2108
2028
  return [
2109
2029
  size2 > 48 ? bytesToBigInt(value, { signed }) : bytesToNumber(value, { signed }),
@@ -2170,7 +2090,7 @@ function hasDynamicChild(param) {
2170
2090
  }
2171
2091
  var sizeOfLength, sizeOfOffset;
2172
2092
  var init_decodeAbiParameters = __esm({
2173
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"() {
2093
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/abi/decodeAbiParameters.js"() {
2174
2094
  "use strict";
2175
2095
  init_abi();
2176
2096
  init_getAddress();
@@ -2187,10 +2107,10 @@ var init_decodeAbiParameters = __esm({
2187
2107
  }
2188
2108
  });
2189
2109
 
2190
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js
2110
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/unit.js
2191
2111
  var etherUnits;
2192
2112
  var init_unit = __esm({
2193
- "../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/constants/unit.js"() {
2113
+ "../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/constants/unit.js"() {
2194
2114
  "use strict";
2195
2115
  etherUnits = {
2196
2116
  gwei: 9,
@@ -2226,16 +2146,7 @@ __export(index_exports, {
2226
2146
  commentsConfig: () => commentsConfig,
2227
2147
  contracts1155: () => __exports,
2228
2148
  decodeBuySupplyWithSwapRouterHookReturn: () => decodeBuySupplyWithSwapRouterHookReturn,
2229
- devBuySupplyWithSwapRouterHookABI: () => devBuySupplyWithSwapRouterHookABI,
2230
- devBuySupplyWithSwapRouterHookAddress: () => devBuySupplyWithSwapRouterHookAddress,
2231
- devBuySupplyWithSwapRouterHookConfig: () => devBuySupplyWithSwapRouterHookConfig,
2232
- devCoinFactoryABI: () => devCoinFactoryABI,
2233
- devCoinFactoryAddress: () => devCoinFactoryAddress,
2234
- devCoinFactoryConfig: () => devCoinFactoryConfig,
2235
2149
  emptyCommentIdentifier: () => emptyCommentIdentifier,
2236
- encodeBuySupplyWithMultiHopSwapRouterHookCall: () => encodeBuySupplyWithMultiHopSwapRouterHookCall,
2237
- encodeBuySupplyWithSingleHopSwapRouterHookCall: () => encodeBuySupplyWithSingleHopSwapRouterHookCall,
2238
- encodeBuySupplyWithSwapRouterHookCalldata: () => encodeBuySupplyWithSwapRouterHookCalldata,
2239
2150
  encodeMultiCurvePoolConfig: () => encodeMultiCurvePoolConfig,
2240
2151
  encodePremintConfig: () => encodePremintConfig,
2241
2152
  erc20MinterABI: () => erc20MinterABI,
@@ -2449,6 +2360,63 @@ var buySupplyWithSwapRouterHookABI = [
2449
2360
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
2450
2361
  stateMutability: "payable"
2451
2362
  },
2363
+ {
2364
+ type: "function",
2365
+ inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
2366
+ name: "decodeV4RouteData",
2367
+ outputs: [
2368
+ {
2369
+ name: "v4Route",
2370
+ internalType: "struct PoolKey[]",
2371
+ type: "tuple[]",
2372
+ components: [
2373
+ { name: "currency0", internalType: "Currency", type: "address" },
2374
+ { name: "currency1", internalType: "Currency", type: "address" },
2375
+ { name: "fee", internalType: "uint24", type: "uint24" },
2376
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
2377
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
2378
+ ]
2379
+ },
2380
+ { name: "startAmount", internalType: "uint256", type: "uint256" }
2381
+ ],
2382
+ stateMutability: "pure"
2383
+ },
2384
+ {
2385
+ type: "function",
2386
+ inputs: [
2387
+ {
2388
+ name: "params",
2389
+ internalType: "struct BuySupplyWithV4SwapHook.InitialSupplyParams",
2390
+ type: "tuple",
2391
+ components: [
2392
+ { name: "buyRecipient", internalType: "address", type: "address" },
2393
+ { name: "v3Route", internalType: "bytes", type: "bytes" },
2394
+ {
2395
+ name: "v4Route",
2396
+ internalType: "struct PoolKey[]",
2397
+ type: "tuple[]",
2398
+ components: [
2399
+ { name: "currency0", internalType: "Currency", type: "address" },
2400
+ { name: "currency1", internalType: "Currency", type: "address" },
2401
+ { name: "fee", internalType: "uint24", type: "uint24" },
2402
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
2403
+ {
2404
+ name: "hooks",
2405
+ internalType: "contract IHooks",
2406
+ type: "address"
2407
+ }
2408
+ ]
2409
+ },
2410
+ { name: "inputCurrency", internalType: "address", type: "address" },
2411
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
2412
+ { name: "minAmountOut", internalType: "uint256", type: "uint256" }
2413
+ ]
2414
+ }
2415
+ ],
2416
+ name: "encodeBuySupplyWithV4SwapHookData",
2417
+ outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
2418
+ stateMutability: "pure"
2419
+ },
2452
2420
  {
2453
2421
  type: "function",
2454
2422
  inputs: [],
@@ -2458,6 +2426,15 @@ var buySupplyWithSwapRouterHookABI = [
2458
2426
  ],
2459
2427
  stateMutability: "view"
2460
2428
  },
2429
+ {
2430
+ type: "function",
2431
+ inputs: [],
2432
+ name: "poolManager",
2433
+ outputs: [
2434
+ { name: "", internalType: "contract IPoolManager", type: "address" }
2435
+ ],
2436
+ stateMutability: "view"
2437
+ },
2461
2438
  {
2462
2439
  type: "function",
2463
2440
  inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
@@ -2465,6 +2442,15 @@ var buySupplyWithSwapRouterHookABI = [
2465
2442
  outputs: [{ name: "", internalType: "bool", type: "bool" }],
2466
2443
  stateMutability: "pure"
2467
2444
  },
2445
+ {
2446
+ type: "function",
2447
+ inputs: [],
2448
+ name: "swapRouter",
2449
+ outputs: [
2450
+ { name: "", internalType: "contract ISwapRouter", type: "address" }
2451
+ ],
2452
+ stateMutability: "view"
2453
+ },
2468
2454
  {
2469
2455
  type: "function",
2470
2456
  inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
@@ -2472,6 +2458,58 @@ var buySupplyWithSwapRouterHookABI = [
2472
2458
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
2473
2459
  stateMutability: "nonpayable"
2474
2460
  },
2461
+ {
2462
+ type: "event",
2463
+ anonymous: false,
2464
+ inputs: [
2465
+ { name: "coin", internalType: "address", type: "address", indexed: true },
2466
+ {
2467
+ name: "recipient",
2468
+ internalType: "address",
2469
+ type: "address",
2470
+ indexed: true
2471
+ },
2472
+ {
2473
+ name: "coinsPurchased",
2474
+ internalType: "uint256",
2475
+ type: "uint256",
2476
+ indexed: true
2477
+ },
2478
+ { name: "v3Route", internalType: "bytes", type: "bytes", indexed: false },
2479
+ {
2480
+ name: "v4Route",
2481
+ internalType: "struct PoolKey[]",
2482
+ type: "tuple[]",
2483
+ components: [
2484
+ { name: "currency0", internalType: "Currency", type: "address" },
2485
+ { name: "currency1", internalType: "Currency", type: "address" },
2486
+ { name: "fee", internalType: "uint24", type: "uint24" },
2487
+ { name: "tickSpacing", internalType: "int24", type: "int24" },
2488
+ { name: "hooks", internalType: "contract IHooks", type: "address" }
2489
+ ],
2490
+ indexed: false
2491
+ },
2492
+ {
2493
+ name: "inputCurrency",
2494
+ internalType: "address",
2495
+ type: "address",
2496
+ indexed: false
2497
+ },
2498
+ {
2499
+ name: "inputAmount",
2500
+ internalType: "uint256",
2501
+ type: "uint256",
2502
+ indexed: false
2503
+ },
2504
+ {
2505
+ name: "v4SwapInput",
2506
+ internalType: "uint256",
2507
+ type: "uint256",
2508
+ indexed: false
2509
+ }
2510
+ ],
2511
+ name: "BuyInitialSupply"
2512
+ },
2475
2513
  {
2476
2514
  type: "error",
2477
2515
  inputs: [{ name: "target", internalType: "address", type: "address" }],
@@ -2483,20 +2521,17 @@ var buySupplyWithSwapRouterHookABI = [
2483
2521
  name: "AddressInsufficientBalance"
2484
2522
  },
2485
2523
  { type: "error", inputs: [], name: "AddressZero" },
2524
+ { type: "error", inputs: [], name: "FailedInnerCall" },
2525
+ { type: "error", inputs: [], name: "HookNotImplemented" },
2486
2526
  {
2487
2527
  type: "error",
2488
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
2489
- name: "CoinBalanceNot0"
2490
- },
2491
- {
2492
- type: "error",
2493
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
2494
- name: "CurrencyBalanceNot0"
2528
+ inputs: [
2529
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
2530
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
2531
+ ],
2532
+ name: "InsufficientInputCurrency"
2495
2533
  },
2496
- { type: "error", inputs: [], name: "Erc20NotReceived" },
2497
- { type: "error", inputs: [], name: "FailedInnerCall" },
2498
- { type: "error", inputs: [], name: "HookNotImplemented" },
2499
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
2534
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
2500
2535
  { type: "error", inputs: [], name: "NotFactory" },
2501
2536
  { type: "error", inputs: [], name: "OnlyPoolManager" },
2502
2537
  {
@@ -2504,14 +2539,11 @@ var buySupplyWithSwapRouterHookABI = [
2504
2539
  inputs: [{ name: "token", internalType: "address", type: "address" }],
2505
2540
  name: "SafeERC20FailedOperation"
2506
2541
  },
2507
- {
2508
- type: "error",
2509
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
2510
- name: "SwapReverted"
2511
- }
2542
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
2543
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" }
2512
2544
  ];
2513
2545
  var buySupplyWithSwapRouterHookAddress = {
2514
- 8453: "0xc90e349360C43a0217CEF289f231C66D4748960F",
2546
+ 8453: "0xd8CC7bCA1dE52eA788829B16E375e9B96C18D433",
2515
2547
  84532: "0xE4Ec8cE893Cd41965b1aE27F1ad9798F207427aE"
2516
2548
  };
2517
2549
  var buySupplyWithSwapRouterHookConfig = {
@@ -3612,6 +3644,15 @@ var coinABI = [
3612
3644
  outputs: [],
3613
3645
  stateMutability: "nonpayable"
3614
3646
  },
3647
+ {
3648
+ type: "function",
3649
+ inputs: [],
3650
+ name: "coinType",
3651
+ outputs: [
3652
+ { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
3653
+ ],
3654
+ stateMutability: "view"
3655
+ },
3615
3656
  {
3616
3657
  type: "function",
3617
3658
  inputs: [],
@@ -3993,6 +4034,13 @@ var coinABI = [
3993
4034
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
3994
4035
  stateMutability: "view"
3995
4036
  },
4037
+ {
4038
+ type: "function",
4039
+ inputs: [],
4040
+ name: "totalSupplyForPositions",
4041
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
4042
+ stateMutability: "view"
4043
+ },
3996
4044
  {
3997
4045
  type: "function",
3998
4046
  inputs: [
@@ -4606,7 +4654,6 @@ var coinABI = [
4606
4654
  },
4607
4655
  { type: "error", inputs: [], name: "OnlyWeth" },
4608
4656
  { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
4609
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
4610
4657
  { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
4611
4658
  { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
4612
4659
  ];
@@ -4614,10 +4661,10 @@ var coinFactoryABI = [
4614
4661
  {
4615
4662
  type: "constructor",
4616
4663
  inputs: [
4617
- { name: "_coinV4Impl", internalType: "address", type: "address" },
4618
- { name: "_creatorCoinImpl", internalType: "address", type: "address" },
4619
- { name: "_contentCoinHook", internalType: "address", type: "address" },
4620
- { name: "_creatorCoinHook", internalType: "address", type: "address" }
4664
+ { name: "coinV4Impl_", internalType: "address", type: "address" },
4665
+ { name: "creatorCoinImpl_", internalType: "address", type: "address" },
4666
+ { name: "hook_", internalType: "address", type: "address" },
4667
+ { name: "zoraHookRegistry_", internalType: "address", type: "address" }
4621
4668
  ],
4622
4669
  stateMutability: "nonpayable"
4623
4670
  },
@@ -4702,7 +4749,7 @@ var coinFactoryABI = [
4702
4749
  { name: "platformReferrer", internalType: "address", type: "address" },
4703
4750
  { name: "currency", internalType: "address", type: "address" },
4704
4751
  { name: "", internalType: "int24", type: "int24" },
4705
- { name: "orderSize", internalType: "uint256", type: "uint256" }
4752
+ { name: "", internalType: "uint256", type: "uint256" }
4706
4753
  ],
4707
4754
  name: "deploy",
4708
4755
  outputs: [
@@ -4777,7 +4824,28 @@ var coinFactoryABI = [
4777
4824
  { name: "symbol", internalType: "string", type: "string" },
4778
4825
  { name: "poolConfig", internalType: "bytes", type: "bytes" },
4779
4826
  { name: "platformReferrer", internalType: "address", type: "address" },
4780
- { name: "hook", internalType: "address", type: "address" },
4827
+ { name: "postDeployHook", internalType: "address", type: "address" },
4828
+ { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
4829
+ { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
4830
+ ],
4831
+ name: "deployCreatorCoin",
4832
+ outputs: [
4833
+ { name: "coin", internalType: "address", type: "address" },
4834
+ { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
4835
+ ],
4836
+ stateMutability: "payable"
4837
+ },
4838
+ {
4839
+ type: "function",
4840
+ inputs: [
4841
+ { name: "payoutRecipient", internalType: "address", type: "address" },
4842
+ { name: "owners", internalType: "address[]", type: "address[]" },
4843
+ { name: "uri", internalType: "string", type: "string" },
4844
+ { name: "name", internalType: "string", type: "string" },
4845
+ { name: "symbol", internalType: "string", type: "string" },
4846
+ { name: "poolConfig", internalType: "bytes", type: "bytes" },
4847
+ { name: "platformReferrer", internalType: "address", type: "address" },
4848
+ { name: "deployHook", internalType: "address", type: "address" },
4781
4849
  { name: "hookData", internalType: "bytes", type: "bytes" }
4782
4850
  ],
4783
4851
  name: "deployWithHook",
@@ -4794,6 +4862,13 @@ var coinFactoryABI = [
4794
4862
  outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
4795
4863
  stateMutability: "view"
4796
4864
  },
4865
+ {
4866
+ type: "function",
4867
+ inputs: [],
4868
+ name: "hook",
4869
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4870
+ stateMutability: "view"
4871
+ },
4797
4872
  {
4798
4873
  type: "function",
4799
4874
  inputs: [],
@@ -4855,6 +4930,13 @@ var coinFactoryABI = [
4855
4930
  outputs: [],
4856
4931
  stateMutability: "payable"
4857
4932
  },
4933
+ {
4934
+ type: "function",
4935
+ inputs: [],
4936
+ name: "zoraHookRegistry",
4937
+ outputs: [{ name: "", internalType: "address", type: "address" }],
4938
+ stateMutability: "view"
4939
+ },
4858
4940
  {
4859
4941
  type: "event",
4860
4942
  anonymous: false,
@@ -5183,7 +5265,166 @@ var coinFactoryABI = [
5183
5265
  name: "UpgradeToMismatchedContractName"
5184
5266
  },
5185
5267
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
5186
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
5268
+ { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
5269
+ {
5270
+ type: "error",
5271
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
5272
+ name: "AddressEmptyCode"
5273
+ },
5274
+ {
5275
+ type: "error",
5276
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
5277
+ name: "AddressInsufficientBalance"
5278
+ },
5279
+ { type: "error", inputs: [], name: "AddressZero" },
5280
+ { type: "error", inputs: [], name: "FailedInnerCall" },
5281
+ { type: "error", inputs: [], name: "HookNotImplemented" },
5282
+ {
5283
+ type: "error",
5284
+ inputs: [
5285
+ { name: "inputAmount", internalType: "uint256", type: "uint256" },
5286
+ { name: "availableAmount", internalType: "uint256", type: "uint256" }
5287
+ ],
5288
+ name: "InsufficientInputCurrency"
5289
+ },
5290
+ { type: "error", inputs: [], name: "InsufficientOutputAmount" },
5291
+ { type: "error", inputs: [], name: "NotFactory" },
5292
+ { type: "error", inputs: [], name: "OnlyPoolManager" },
5293
+ {
5294
+ type: "error",
5295
+ inputs: [{ name: "token", internalType: "address", type: "address" }],
5296
+ name: "SafeERC20FailedOperation"
5297
+ },
5298
+ { type: "error", inputs: [], name: "V3RouteCannotStartWithInputCurrency" },
5299
+ { type: "error", inputs: [], name: "V3RouteDoesNotConnectToV4RouteStart" },
5300
+ { type: "error", inputs: [], name: "AddressZero" },
5301
+ { type: "error", inputs: [], name: "AlreadyOwner" },
5302
+ { type: "error", inputs: [], name: "CannotMintZeroLiquidity" },
5303
+ {
5304
+ type: "error",
5305
+ inputs: [],
5306
+ name: "DopplerPoolMustHaveMoreThan2DiscoveryPositions"
5307
+ },
5308
+ { type: "error", inputs: [], name: "ECDSAInvalidSignature" },
5309
+ {
5310
+ type: "error",
5311
+ inputs: [{ name: "length", internalType: "uint256", type: "uint256" }],
5312
+ name: "ECDSAInvalidSignatureLength"
5313
+ },
5314
+ {
5315
+ type: "error",
5316
+ inputs: [{ name: "s", internalType: "bytes32", type: "bytes32" }],
5317
+ name: "ECDSAInvalidSignatureS"
5318
+ },
5319
+ {
5320
+ type: "error",
5321
+ inputs: [
5322
+ { name: "spender", internalType: "address", type: "address" },
5323
+ { name: "allowance", internalType: "uint256", type: "uint256" },
5324
+ { name: "needed", internalType: "uint256", type: "uint256" }
5325
+ ],
5326
+ name: "ERC20InsufficientAllowance"
5327
+ },
5328
+ {
5329
+ type: "error",
5330
+ inputs: [
5331
+ { name: "sender", internalType: "address", type: "address" },
5332
+ { name: "balance", internalType: "uint256", type: "uint256" },
5333
+ { name: "needed", internalType: "uint256", type: "uint256" }
5334
+ ],
5335
+ name: "ERC20InsufficientBalance"
5336
+ },
5337
+ {
5338
+ type: "error",
5339
+ inputs: [{ name: "approver", internalType: "address", type: "address" }],
5340
+ name: "ERC20InvalidApprover"
5341
+ },
5342
+ {
5343
+ type: "error",
5344
+ inputs: [{ name: "receiver", internalType: "address", type: "address" }],
5345
+ name: "ERC20InvalidReceiver"
5346
+ },
5347
+ {
5348
+ type: "error",
5349
+ inputs: [{ name: "sender", internalType: "address", type: "address" }],
5350
+ name: "ERC20InvalidSender"
5351
+ },
5352
+ {
5353
+ type: "error",
5354
+ inputs: [{ name: "spender", internalType: "address", type: "address" }],
5355
+ name: "ERC20InvalidSpender"
5356
+ },
5357
+ { type: "error", inputs: [], name: "ERC20TransferAmountMismatch" },
5358
+ {
5359
+ type: "error",
5360
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
5361
+ name: "ERC2612ExpiredSignature"
5362
+ },
5363
+ {
5364
+ type: "error",
5365
+ inputs: [
5366
+ { name: "signer", internalType: "address", type: "address" },
5367
+ { name: "owner", internalType: "address", type: "address" }
5368
+ ],
5369
+ name: "ERC2612InvalidSigner"
5370
+ },
5371
+ { type: "error", inputs: [], name: "EthAmountMismatch" },
5372
+ { type: "error", inputs: [], name: "EthAmountTooSmall" },
5373
+ { type: "error", inputs: [], name: "EthTransferFailed" },
5374
+ { type: "error", inputs: [], name: "EthTransferInvalid" },
5375
+ { type: "error", inputs: [], name: "InitialOrderSizeTooLarge" },
5376
+ { type: "error", inputs: [], name: "InsufficientFunds" },
5377
+ { type: "error", inputs: [], name: "InsufficientLiquidity" },
5378
+ {
5379
+ type: "error",
5380
+ inputs: [
5381
+ { name: "account", internalType: "address", type: "address" },
5382
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
5383
+ ],
5384
+ name: "InvalidAccountNonce"
5385
+ },
5386
+ { type: "error", inputs: [], name: "InvalidCurrencyLowerTick" },
5387
+ { type: "error", inputs: [], name: "InvalidInitialization" },
5388
+ { type: "error", inputs: [], name: "InvalidMarketType" },
5389
+ { type: "error", inputs: [], name: "InvalidPoolVersion" },
5390
+ {
5391
+ type: "error",
5392
+ inputs: [
5393
+ { name: "tickLower", internalType: "int24", type: "int24" },
5394
+ { name: "tickUpper", internalType: "int24", type: "int24" }
5395
+ ],
5396
+ name: "InvalidTickRangeMisordered"
5397
+ },
5398
+ { type: "error", inputs: [], name: "InvalidWethLowerTick" },
5399
+ { type: "error", inputs: [], name: "LegacyPoolMustHaveOneDiscoveryPosition" },
5400
+ { type: "error", inputs: [], name: "MarketAlreadyGraduated" },
5401
+ { type: "error", inputs: [], name: "MarketNotGraduated" },
5402
+ {
5403
+ type: "error",
5404
+ inputs: [
5405
+ { name: "value", internalType: "uint256", type: "uint256" },
5406
+ { name: "limit", internalType: "uint256", type: "uint256" }
5407
+ ],
5408
+ name: "MaxShareToBeSoldExceeded"
5409
+ },
5410
+ { type: "error", inputs: [], name: "NameIsRequired" },
5411
+ { type: "error", inputs: [], name: "NotInitializing" },
5412
+ { type: "error", inputs: [], name: "NotOwner" },
5413
+ { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
5414
+ { type: "error", inputs: [], name: "OneOwnerRequired" },
5415
+ { type: "error", inputs: [], name: "OnlyOwner" },
5416
+ {
5417
+ type: "error",
5418
+ inputs: [
5419
+ { name: "sender", internalType: "address", type: "address" },
5420
+ { name: "pool", internalType: "address", type: "address" }
5421
+ ],
5422
+ name: "OnlyPool"
5423
+ },
5424
+ { type: "error", inputs: [], name: "OnlyWeth" },
5425
+ { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
5426
+ { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
5427
+ { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
5187
5428
  ];
5188
5429
  var coinFactoryAddress = {
5189
5430
  8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
@@ -5198,17 +5439,17 @@ var coinV4ABI = [
5198
5439
  type: "constructor",
5199
5440
  inputs: [
5200
5441
  {
5201
- name: "_protocolRewardRecipient",
5442
+ name: "protocolRewardRecipient_",
5202
5443
  internalType: "address",
5203
5444
  type: "address"
5204
5445
  },
5205
- { name: "_protocolRewards", internalType: "address", type: "address" },
5446
+ { name: "protocolRewards_", internalType: "address", type: "address" },
5206
5447
  {
5207
- name: "_poolManager",
5448
+ name: "poolManager_",
5208
5449
  internalType: "contract IPoolManager",
5209
5450
  type: "address"
5210
5451
  },
5211
- { name: "_airlock", internalType: "address", type: "address" }
5452
+ { name: "airlock_", internalType: "address", type: "address" }
5212
5453
  ],
5213
5454
  stateMutability: "nonpayable"
5214
5455
  },
@@ -5283,6 +5524,15 @@ var coinV4ABI = [
5283
5524
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
5284
5525
  stateMutability: "nonpayable"
5285
5526
  },
5527
+ {
5528
+ type: "function",
5529
+ inputs: [],
5530
+ name: "coinType",
5531
+ outputs: [
5532
+ { name: "", internalType: "enum IHasCoinType.CoinType", type: "uint8" }
5533
+ ],
5534
+ stateMutability: "pure"
5535
+ },
5286
5536
  {
5287
5537
  type: "function",
5288
5538
  inputs: [],
@@ -5678,6 +5928,13 @@ var coinV4ABI = [
5678
5928
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
5679
5929
  stateMutability: "view"
5680
5930
  },
5931
+ {
5932
+ type: "function",
5933
+ inputs: [],
5934
+ name: "totalSupplyForPositions",
5935
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
5936
+ stateMutability: "pure"
5937
+ },
5681
5938
  {
5682
5939
  type: "function",
5683
5940
  inputs: [
@@ -6343,7 +6600,6 @@ var coinV4ABI = [
6343
6600
  },
6344
6601
  { type: "error", inputs: [], name: "OnlyWeth" },
6345
6602
  { type: "error", inputs: [], name: "OwnerCannotBeAddressZero" },
6346
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
6347
6603
  { type: "error", inputs: [], name: "SlippageBoundsExceeded" },
6348
6604
  { type: "error", inputs: [], name: "UseRevokeOwnershipToRemoveSelf" }
6349
6605
  ];
@@ -7816,846 +8072,53 @@ var commentsABI = [
7816
8072
  type: "tuple",
7817
8073
  components: [
7818
8074
  { name: "commenter", internalType: "address", type: "address" },
7819
- { name: "contractAddress", internalType: "address", type: "address" },
7820
- { name: "tokenId", internalType: "uint256", type: "uint256" },
7821
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
7822
- ],
7823
- indexed: false
7824
- },
7825
- {
7826
- name: "replyToId",
7827
- internalType: "bytes32",
7828
- type: "bytes32",
7829
- indexed: false
7830
- },
7831
- {
7832
- name: "replyTo",
7833
- internalType: "struct IComments.CommentIdentifier",
7834
- type: "tuple",
7835
- components: [
7836
- { name: "commenter", internalType: "address", type: "address" },
7837
- { name: "contractAddress", internalType: "address", type: "address" },
7838
- { name: "tokenId", internalType: "uint256", type: "uint256" },
7839
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
7840
- ],
7841
- indexed: false
7842
- },
7843
- {
7844
- name: "sparksQuantity",
7845
- internalType: "uint256",
7846
- type: "uint256",
7847
- indexed: false
7848
- },
7849
- { name: "text", internalType: "string", type: "string", indexed: false },
7850
- {
7851
- name: "timestamp",
7852
- internalType: "uint256",
7853
- type: "uint256",
7854
- indexed: false
7855
- },
7856
- {
7857
- name: "referrer",
7858
- internalType: "address",
7859
- type: "address",
7860
- indexed: false
7861
- }
7862
- ],
7863
- name: "Commented"
7864
- },
7865
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
7866
- {
7867
- type: "event",
7868
- anonymous: false,
7869
- inputs: [
7870
- {
7871
- name: "version",
7872
- internalType: "uint64",
7873
- type: "uint64",
7874
- indexed: false
7875
- }
7876
- ],
7877
- name: "Initialized"
7878
- },
7879
- {
7880
- type: "event",
7881
- anonymous: false,
7882
- inputs: [
7883
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
7884
- {
7885
- name: "previousAdminRole",
7886
- internalType: "bytes32",
7887
- type: "bytes32",
7888
- indexed: true
7889
- },
7890
- {
7891
- name: "newAdminRole",
7892
- internalType: "bytes32",
7893
- type: "bytes32",
7894
- indexed: true
7895
- }
7896
- ],
7897
- name: "RoleAdminChanged"
7898
- },
7899
- {
7900
- type: "event",
7901
- anonymous: false,
7902
- inputs: [
7903
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
7904
- {
7905
- name: "account",
7906
- internalType: "address",
7907
- type: "address",
7908
- indexed: true
7909
- },
7910
- {
7911
- name: "sender",
7912
- internalType: "address",
7913
- type: "address",
7914
- indexed: true
7915
- }
7916
- ],
7917
- name: "RoleGranted"
7918
- },
7919
- {
7920
- type: "event",
7921
- anonymous: false,
7922
- inputs: [
7923
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
7924
- {
7925
- name: "account",
7926
- internalType: "address",
7927
- type: "address",
7928
- indexed: true
7929
- },
7930
- {
7931
- name: "sender",
7932
- internalType: "address",
7933
- type: "address",
7934
- indexed: true
7935
- }
7936
- ],
7937
- name: "RoleRevoked"
7938
- },
7939
- {
7940
- type: "event",
7941
- anonymous: false,
7942
- inputs: [
7943
- {
7944
- name: "commentId",
7945
- internalType: "bytes32",
7946
- type: "bytes32",
7947
- indexed: true
7948
- },
7949
- {
7950
- name: "commentIdentifier",
7951
- internalType: "struct IComments.CommentIdentifier",
7952
- type: "tuple",
7953
- components: [
7954
- { name: "commenter", internalType: "address", type: "address" },
7955
- { name: "contractAddress", internalType: "address", type: "address" },
7956
- { name: "tokenId", internalType: "uint256", type: "uint256" },
7957
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
7958
- ],
7959
- indexed: false
7960
- },
7961
- {
7962
- name: "sparksQuantity",
7963
- internalType: "uint256",
7964
- type: "uint256",
7965
- indexed: false
7966
- },
7967
- {
7968
- name: "sparker",
7969
- internalType: "address",
7970
- type: "address",
7971
- indexed: false
7972
- },
7973
- {
7974
- name: "timestamp",
7975
- internalType: "uint256",
7976
- type: "uint256",
7977
- indexed: false
7978
- },
7979
- {
7980
- name: "referrer",
7981
- internalType: "address",
7982
- type: "address",
7983
- indexed: false
7984
- }
7985
- ],
7986
- name: "SparkedComment"
7987
- },
7988
- {
7989
- type: "event",
7990
- anonymous: false,
7991
- inputs: [
7992
- {
7993
- name: "implementation",
7994
- internalType: "address",
7995
- type: "address",
7996
- indexed: true
7997
- }
7998
- ],
7999
- name: "Upgraded"
8000
- },
8001
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
8002
- {
8003
- type: "error",
8004
- inputs: [
8005
- { name: "account", internalType: "address", type: "address" },
8006
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
8007
- ],
8008
- name: "AccessControlUnauthorizedAccount"
8009
- },
8010
- {
8011
- type: "error",
8012
- inputs: [{ name: "target", internalType: "address", type: "address" }],
8013
- name: "AddressEmptyCode"
8014
- },
8015
- { type: "error", inputs: [], name: "AddressZero" },
8016
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8017
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
8018
- {
8019
- type: "error",
8020
- inputs: [
8021
- { name: "commentAddress", internalType: "address", type: "address" },
8022
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
8023
- { name: "replyAddress", internalType: "address", type: "address" },
8024
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
8025
- ],
8026
- name: "CommentAddressOrTokenIdsDoNotMatch"
8027
- },
8028
- { type: "error", inputs: [], name: "CommentDoesntExist" },
8029
- {
8030
- type: "error",
8031
- inputs: [
8032
- { name: "expected", internalType: "address", type: "address" },
8033
- { name: "actual", internalType: "address", type: "address" }
8034
- ],
8035
- name: "CommenterMismatch"
8036
- },
8037
- {
8038
- type: "error",
8039
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
8040
- name: "DuplicateComment"
8041
- },
8042
- {
8043
- type: "error",
8044
- inputs: [
8045
- { name: "implementation", internalType: "address", type: "address" }
8046
- ],
8047
- name: "ERC1967InvalidImplementation"
8048
- },
8049
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
8050
- {
8051
- type: "error",
8052
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
8053
- name: "ERC2612ExpiredSignature"
8054
- },
8055
- { type: "error", inputs: [], name: "EmptyComment" },
8056
- { type: "error", inputs: [], name: "FailedInnerCall" },
8057
- {
8058
- type: "error",
8059
- inputs: [
8060
- {
8061
- name: "wrongDestinationChainId",
8062
- internalType: "uint256",
8063
- type: "uint256"
8064
- }
8065
- ],
8066
- name: "IncorrectDestinationChain"
8067
- },
8068
- {
8069
- type: "error",
8070
- inputs: [
8071
- { name: "actual", internalType: "uint256", type: "uint256" },
8072
- { name: "expected", internalType: "uint256", type: "uint256" }
8073
- ],
8074
- name: "IncorrectETHAmountForSparks"
8075
- },
8076
- {
8077
- type: "error",
8078
- inputs: [
8079
- { name: "account", internalType: "address", type: "address" },
8080
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
8081
- ],
8082
- name: "InvalidAccountNonce"
8083
- },
8084
- { type: "error", inputs: [], name: "InvalidInitialization" },
8085
- { type: "error", inputs: [], name: "InvalidSignature" },
8086
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
8087
- { type: "error", inputs: [], name: "NoFundsRecipient" },
8088
- { type: "error", inputs: [], name: "NotInitializing" },
8089
- { type: "error", inputs: [], name: "NotSmartWallet" },
8090
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
8091
- { type: "error", inputs: [], name: "OnlySparksContract" },
8092
- { type: "error", inputs: [], name: "TransferFailed" },
8093
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
8094
- {
8095
- type: "error",
8096
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
8097
- name: "UUPSUnsupportedProxiableUUID"
8098
- },
8099
- {
8100
- type: "error",
8101
- inputs: [
8102
- { name: "currentName", internalType: "string", type: "string" },
8103
- { name: "newName", internalType: "string", type: "string" }
8104
- ],
8105
- name: "UpgradeToMismatchedContractName"
8106
- }
8107
- ];
8108
- var commentsAddress = {
8109
- 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
8110
- 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
8111
- 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
8112
- 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
8113
- 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
8114
- 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
8115
- 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
8116
- 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
8117
- 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
8118
- 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
8119
- };
8120
- var commentsConfig = {
8121
- address: commentsAddress,
8122
- abi: commentsABI
8123
- };
8124
- var devBuySupplyWithSwapRouterHookABI = [
8125
- {
8126
- type: "constructor",
8127
- inputs: [
8128
- {
8129
- name: "_factory",
8130
- internalType: "contract IZoraFactory",
8131
- type: "address"
8132
- },
8133
- { name: "_swapRouter", internalType: "address", type: "address" },
8134
- { name: "_poolManager", internalType: "address", type: "address" }
8135
- ],
8136
- stateMutability: "nonpayable"
8137
- },
8138
- {
8139
- type: "function",
8140
- inputs: [
8141
- { name: "sender", internalType: "address", type: "address" },
8142
- { name: "coin", internalType: "contract ICoin", type: "address" },
8143
- { name: "hookData", internalType: "bytes", type: "bytes" }
8144
- ],
8145
- name: "afterCoinDeploy",
8146
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
8147
- stateMutability: "payable"
8148
- },
8149
- {
8150
- type: "function",
8151
- inputs: [],
8152
- name: "factory",
8153
- outputs: [
8154
- { name: "", internalType: "contract IZoraFactory", type: "address" }
8155
- ],
8156
- stateMutability: "view"
8157
- },
8158
- {
8159
- type: "function",
8160
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
8161
- name: "supportsInterface",
8162
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
8163
- stateMutability: "pure"
8164
- },
8165
- {
8166
- type: "function",
8167
- inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
8168
- name: "unlockCallback",
8169
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
8170
- stateMutability: "nonpayable"
8171
- },
8172
- {
8173
- type: "error",
8174
- inputs: [{ name: "target", internalType: "address", type: "address" }],
8175
- name: "AddressEmptyCode"
8176
- },
8177
- {
8178
- type: "error",
8179
- inputs: [{ name: "account", internalType: "address", type: "address" }],
8180
- name: "AddressInsufficientBalance"
8181
- },
8182
- { type: "error", inputs: [], name: "AddressZero" },
8183
- {
8184
- type: "error",
8185
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
8186
- name: "CoinBalanceNot0"
8187
- },
8188
- {
8189
- type: "error",
8190
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
8191
- name: "CurrencyBalanceNot0"
8192
- },
8193
- { type: "error", inputs: [], name: "Erc20NotReceived" },
8194
- { type: "error", inputs: [], name: "FailedInnerCall" },
8195
- { type: "error", inputs: [], name: "HookNotImplemented" },
8196
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
8197
- { type: "error", inputs: [], name: "NotFactory" },
8198
- { type: "error", inputs: [], name: "OnlyPoolManager" },
8199
- {
8200
- type: "error",
8201
- inputs: [{ name: "token", internalType: "address", type: "address" }],
8202
- name: "SafeERC20FailedOperation"
8203
- },
8204
- {
8205
- type: "error",
8206
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
8207
- name: "SwapReverted"
8208
- }
8209
- ];
8210
- var devBuySupplyWithSwapRouterHookAddress = {
8211
- 8453: "0x62B95629F965bf48E15BB110A1729B9b9dF1C07D"
8212
- };
8213
- var devBuySupplyWithSwapRouterHookConfig = {
8214
- address: devBuySupplyWithSwapRouterHookAddress,
8215
- abi: devBuySupplyWithSwapRouterHookABI
8216
- };
8217
- var devCoinFactoryABI = [
8218
- {
8219
- type: "constructor",
8220
- inputs: [
8221
- { name: "_coinV4Impl", internalType: "address", type: "address" },
8222
- { name: "_creatorCoinImpl", internalType: "address", type: "address" },
8223
- { name: "_contentCoinHook", internalType: "address", type: "address" },
8224
- { name: "_creatorCoinHook", internalType: "address", type: "address" }
8225
- ],
8226
- stateMutability: "nonpayable"
8227
- },
8228
- {
8229
- type: "function",
8230
- inputs: [],
8231
- name: "UPGRADE_INTERFACE_VERSION",
8232
- outputs: [{ name: "", internalType: "string", type: "string" }],
8233
- stateMutability: "view"
8234
- },
8235
- {
8236
- type: "function",
8237
- inputs: [],
8238
- name: "acceptOwnership",
8239
- outputs: [],
8240
- stateMutability: "nonpayable"
8241
- },
8242
- {
8243
- type: "function",
8244
- inputs: [
8245
- { name: "msgSender", internalType: "address", type: "address" },
8246
- { name: "name", internalType: "string", type: "string" },
8247
- { name: "symbol", internalType: "string", type: "string" },
8248
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8249
- { name: "platformReferrer", internalType: "address", type: "address" },
8250
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8251
- ],
8252
- name: "coinAddress",
8253
- outputs: [{ name: "", internalType: "address", type: "address" }],
8254
- stateMutability: "view"
8255
- },
8256
- {
8257
- type: "function",
8258
- inputs: [],
8259
- name: "coinV4Impl",
8260
- outputs: [{ name: "", internalType: "address", type: "address" }],
8261
- stateMutability: "view"
8262
- },
8263
- {
8264
- type: "function",
8265
- inputs: [],
8266
- name: "contentCoinHook",
8267
- outputs: [{ name: "", internalType: "address", type: "address" }],
8268
- stateMutability: "view"
8269
- },
8270
- {
8271
- type: "function",
8272
- inputs: [],
8273
- name: "contractName",
8274
- outputs: [{ name: "", internalType: "string", type: "string" }],
8275
- stateMutability: "pure"
8276
- },
8277
- {
8278
- type: "function",
8279
- inputs: [],
8280
- name: "contractVersion",
8281
- outputs: [{ name: "", internalType: "string", type: "string" }],
8282
- stateMutability: "pure"
8283
- },
8284
- {
8285
- type: "function",
8286
- inputs: [],
8287
- name: "creatorCoinHook",
8288
- outputs: [{ name: "", internalType: "address", type: "address" }],
8289
- stateMutability: "view"
8290
- },
8291
- {
8292
- type: "function",
8293
- inputs: [],
8294
- name: "creatorCoinImpl",
8295
- outputs: [{ name: "", internalType: "address", type: "address" }],
8296
- stateMutability: "view"
8297
- },
8298
- {
8299
- type: "function",
8300
- inputs: [
8301
- { name: "payoutRecipient", internalType: "address", type: "address" },
8302
- { name: "owners", internalType: "address[]", type: "address[]" },
8303
- { name: "uri", internalType: "string", type: "string" },
8304
- { name: "name", internalType: "string", type: "string" },
8305
- { name: "symbol", internalType: "string", type: "string" },
8306
- { name: "platformReferrer", internalType: "address", type: "address" },
8307
- { name: "currency", internalType: "address", type: "address" },
8308
- { name: "", internalType: "int24", type: "int24" },
8309
- { name: "orderSize", internalType: "uint256", type: "uint256" }
8310
- ],
8311
- name: "deploy",
8312
- outputs: [
8313
- { name: "", internalType: "address", type: "address" },
8314
- { name: "", internalType: "uint256", type: "uint256" }
8315
- ],
8316
- stateMutability: "payable"
8317
- },
8318
- {
8319
- type: "function",
8320
- inputs: [
8321
- { name: "payoutRecipient", internalType: "address", type: "address" },
8322
- { name: "owners", internalType: "address[]", type: "address[]" },
8323
- { name: "uri", internalType: "string", type: "string" },
8324
- { name: "name", internalType: "string", type: "string" },
8325
- { name: "symbol", internalType: "string", type: "string" },
8326
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8327
- { name: "platformReferrer", internalType: "address", type: "address" },
8328
- { name: "postDeployHook", internalType: "address", type: "address" },
8329
- { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
8330
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8331
- ],
8332
- name: "deploy",
8333
- outputs: [
8334
- { name: "coin", internalType: "address", type: "address" },
8335
- { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
8336
- ],
8337
- stateMutability: "payable"
8338
- },
8339
- {
8340
- type: "function",
8341
- inputs: [
8342
- { name: "payoutRecipient", internalType: "address", type: "address" },
8343
- { name: "owners", internalType: "address[]", type: "address[]" },
8344
- { name: "uri", internalType: "string", type: "string" },
8345
- { name: "name", internalType: "string", type: "string" },
8346
- { name: "symbol", internalType: "string", type: "string" },
8347
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8348
- { name: "platformReferrer", internalType: "address", type: "address" },
8349
- { name: "", internalType: "uint256", type: "uint256" }
8350
- ],
8351
- name: "deploy",
8352
- outputs: [
8353
- { name: "", internalType: "address", type: "address" },
8354
- { name: "", internalType: "uint256", type: "uint256" }
8355
- ],
8356
- stateMutability: "payable"
8357
- },
8358
- {
8359
- type: "function",
8360
- inputs: [
8361
- { name: "payoutRecipient", internalType: "address", type: "address" },
8362
- { name: "owners", internalType: "address[]", type: "address[]" },
8363
- { name: "uri", internalType: "string", type: "string" },
8364
- { name: "name", internalType: "string", type: "string" },
8365
- { name: "symbol", internalType: "string", type: "string" },
8366
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8367
- { name: "platformReferrer", internalType: "address", type: "address" },
8368
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8369
- ],
8370
- name: "deployCreatorCoin",
8371
- outputs: [{ name: "", internalType: "address", type: "address" }],
8372
- stateMutability: "nonpayable"
8373
- },
8374
- {
8375
- type: "function",
8376
- inputs: [
8377
- { name: "payoutRecipient", internalType: "address", type: "address" },
8378
- { name: "owners", internalType: "address[]", type: "address[]" },
8379
- { name: "uri", internalType: "string", type: "string" },
8380
- { name: "name", internalType: "string", type: "string" },
8381
- { name: "symbol", internalType: "string", type: "string" },
8382
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8383
- { name: "platformReferrer", internalType: "address", type: "address" },
8384
- { name: "hook", internalType: "address", type: "address" },
8385
- { name: "hookData", internalType: "bytes", type: "bytes" }
8386
- ],
8387
- name: "deployWithHook",
8388
- outputs: [
8389
- { name: "coin", internalType: "address", type: "address" },
8390
- { name: "hookDataOut", internalType: "bytes", type: "bytes" }
8391
- ],
8392
- stateMutability: "payable"
8393
- },
8394
- {
8395
- type: "function",
8396
- inputs: [{ name: "coin", internalType: "address", type: "address" }],
8397
- name: "getVersionForDeployedCoin",
8398
- outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
8399
- stateMutability: "view"
8400
- },
8401
- {
8402
- type: "function",
8403
- inputs: [],
8404
- name: "implementation",
8405
- outputs: [{ name: "", internalType: "address", type: "address" }],
8406
- stateMutability: "view"
8407
- },
8408
- {
8409
- type: "function",
8410
- inputs: [
8411
- { name: "initialOwner", internalType: "address", type: "address" }
8412
- ],
8413
- name: "initialize",
8414
- outputs: [],
8415
- stateMutability: "nonpayable"
8416
- },
8417
- {
8418
- type: "function",
8419
- inputs: [],
8420
- name: "owner",
8421
- outputs: [{ name: "", internalType: "address", type: "address" }],
8422
- stateMutability: "view"
8423
- },
8424
- {
8425
- type: "function",
8426
- inputs: [],
8427
- name: "pendingOwner",
8428
- outputs: [{ name: "", internalType: "address", type: "address" }],
8429
- stateMutability: "view"
8430
- },
8431
- {
8432
- type: "function",
8433
- inputs: [],
8434
- name: "proxiableUUID",
8435
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
8436
- stateMutability: "view"
8437
- },
8438
- {
8439
- type: "function",
8440
- inputs: [],
8441
- name: "renounceOwnership",
8442
- outputs: [],
8443
- stateMutability: "nonpayable"
8444
- },
8445
- {
8446
- type: "function",
8447
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
8448
- name: "transferOwnership",
8449
- outputs: [],
8450
- stateMutability: "nonpayable"
8451
- },
8452
- {
8453
- type: "function",
8454
- inputs: [
8455
- { name: "newImplementation", internalType: "address", type: "address" },
8456
- { name: "data", internalType: "bytes", type: "bytes" }
8457
- ],
8458
- name: "upgradeToAndCall",
8459
- outputs: [],
8460
- stateMutability: "payable"
8461
- },
8462
- {
8463
- type: "event",
8464
- anonymous: false,
8465
- inputs: [
8466
- {
8467
- name: "caller",
8468
- internalType: "address",
8469
- type: "address",
8470
- indexed: true
8471
- },
8472
- {
8473
- name: "payoutRecipient",
8474
- internalType: "address",
8475
- type: "address",
8476
- indexed: true
8477
- },
8478
- {
8479
- name: "platformReferrer",
8480
- internalType: "address",
8481
- type: "address",
8482
- indexed: true
8483
- },
8484
- {
8485
- name: "currency",
8486
- internalType: "address",
8487
- type: "address",
8488
- indexed: false
8489
- },
8490
- { name: "uri", internalType: "string", type: "string", indexed: false },
8491
- { name: "name", internalType: "string", type: "string", indexed: false },
8492
- {
8493
- name: "symbol",
8494
- internalType: "string",
8495
- type: "string",
8496
- indexed: false
8497
- },
8498
- {
8499
- name: "coin",
8500
- internalType: "address",
8501
- type: "address",
8502
- indexed: false
8503
- },
8504
- {
8505
- name: "pool",
8506
- internalType: "address",
8507
- type: "address",
8508
- indexed: false
8509
- },
8510
- {
8511
- name: "version",
8512
- internalType: "string",
8513
- type: "string",
8514
- indexed: false
8515
- }
8516
- ],
8517
- name: "CoinCreated"
8518
- },
8519
- {
8520
- type: "event",
8521
- anonymous: false,
8522
- inputs: [
8523
- {
8524
- name: "caller",
8525
- internalType: "address",
8526
- type: "address",
8527
- indexed: true
8528
- },
8529
- {
8530
- name: "payoutRecipient",
8531
- internalType: "address",
8532
- type: "address",
8533
- indexed: true
8534
- },
8535
- {
8536
- name: "platformReferrer",
8537
- internalType: "address",
8538
- type: "address",
8539
- indexed: true
8540
- },
8541
- {
8542
- name: "currency",
8543
- internalType: "address",
8544
- type: "address",
8545
- indexed: false
8546
- },
8547
- { name: "uri", internalType: "string", type: "string", indexed: false },
8548
- { name: "name", internalType: "string", type: "string", indexed: false },
8549
- {
8550
- name: "symbol",
8551
- internalType: "string",
8552
- type: "string",
8553
- indexed: false
8554
- },
8555
- {
8556
- name: "coin",
8557
- internalType: "address",
8558
- type: "address",
8559
- indexed: false
8560
- },
8561
- {
8562
- name: "poolKey",
8563
- internalType: "struct PoolKey",
8564
- type: "tuple",
8565
- components: [
8566
- { name: "currency0", internalType: "Currency", type: "address" },
8567
- { name: "currency1", internalType: "Currency", type: "address" },
8568
- { name: "fee", internalType: "uint24", type: "uint24" },
8569
- { name: "tickSpacing", internalType: "int24", type: "int24" },
8570
- { name: "hooks", internalType: "contract IHooks", type: "address" }
8571
- ],
8572
- indexed: false
8573
- },
8574
- {
8575
- name: "poolKeyHash",
8576
- internalType: "bytes32",
8577
- type: "bytes32",
8578
- indexed: false
8579
- },
8580
- {
8581
- name: "version",
8582
- internalType: "string",
8583
- type: "string",
8584
- indexed: false
8585
- }
8586
- ],
8587
- name: "CoinCreatedV4"
8588
- },
8589
- {
8590
- type: "event",
8591
- anonymous: false,
8592
- inputs: [
8593
- {
8594
- name: "caller",
8595
- internalType: "address",
8596
- type: "address",
8597
- indexed: true
8598
- },
8599
- {
8600
- name: "payoutRecipient",
8601
- internalType: "address",
8602
- type: "address",
8603
- indexed: true
8604
- },
8605
- {
8606
- name: "platformReferrer",
8607
- internalType: "address",
8608
- type: "address",
8609
- indexed: true
8610
- },
8611
- {
8612
- name: "currency",
8613
- internalType: "address",
8614
- type: "address",
8615
- indexed: false
8616
- },
8617
- { name: "uri", internalType: "string", type: "string", indexed: false },
8618
- { name: "name", internalType: "string", type: "string", indexed: false },
8619
- {
8620
- name: "symbol",
8621
- internalType: "string",
8622
- type: "string",
8075
+ { name: "contractAddress", internalType: "address", type: "address" },
8076
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8077
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
8078
+ ],
8623
8079
  indexed: false
8624
8080
  },
8625
8081
  {
8626
- name: "coin",
8627
- internalType: "address",
8628
- type: "address",
8082
+ name: "replyToId",
8083
+ internalType: "bytes32",
8084
+ type: "bytes32",
8629
8085
  indexed: false
8630
8086
  },
8631
8087
  {
8632
- name: "poolKey",
8633
- internalType: "struct PoolKey",
8088
+ name: "replyTo",
8089
+ internalType: "struct IComments.CommentIdentifier",
8634
8090
  type: "tuple",
8635
8091
  components: [
8636
- { name: "currency0", internalType: "Currency", type: "address" },
8637
- { name: "currency1", internalType: "Currency", type: "address" },
8638
- { name: "fee", internalType: "uint24", type: "uint24" },
8639
- { name: "tickSpacing", internalType: "int24", type: "int24" },
8640
- { name: "hooks", internalType: "contract IHooks", type: "address" }
8092
+ { name: "commenter", internalType: "address", type: "address" },
8093
+ { name: "contractAddress", internalType: "address", type: "address" },
8094
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8095
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
8641
8096
  ],
8642
8097
  indexed: false
8643
8098
  },
8644
8099
  {
8645
- name: "poolKeyHash",
8646
- internalType: "bytes32",
8647
- type: "bytes32",
8100
+ name: "sparksQuantity",
8101
+ internalType: "uint256",
8102
+ type: "uint256",
8648
8103
  indexed: false
8649
8104
  },
8105
+ { name: "text", internalType: "string", type: "string", indexed: false },
8650
8106
  {
8651
- name: "version",
8652
- internalType: "string",
8653
- type: "string",
8107
+ name: "timestamp",
8108
+ internalType: "uint256",
8109
+ type: "uint256",
8110
+ indexed: false
8111
+ },
8112
+ {
8113
+ name: "referrer",
8114
+ internalType: "address",
8115
+ type: "address",
8654
8116
  indexed: false
8655
8117
  }
8656
8118
  ],
8657
- name: "CreatorCoinCreated"
8119
+ name: "Commented"
8658
8120
  },
8121
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
8659
8122
  {
8660
8123
  type: "event",
8661
8124
  anonymous: false,
@@ -8673,39 +8136,110 @@ var devCoinFactoryABI = [
8673
8136
  type: "event",
8674
8137
  anonymous: false,
8675
8138
  inputs: [
8139
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
8676
8140
  {
8677
- name: "previousOwner",
8141
+ name: "previousAdminRole",
8142
+ internalType: "bytes32",
8143
+ type: "bytes32",
8144
+ indexed: true
8145
+ },
8146
+ {
8147
+ name: "newAdminRole",
8148
+ internalType: "bytes32",
8149
+ type: "bytes32",
8150
+ indexed: true
8151
+ }
8152
+ ],
8153
+ name: "RoleAdminChanged"
8154
+ },
8155
+ {
8156
+ type: "event",
8157
+ anonymous: false,
8158
+ inputs: [
8159
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
8160
+ {
8161
+ name: "account",
8678
8162
  internalType: "address",
8679
8163
  type: "address",
8680
8164
  indexed: true
8681
8165
  },
8682
8166
  {
8683
- name: "newOwner",
8167
+ name: "sender",
8684
8168
  internalType: "address",
8685
8169
  type: "address",
8686
8170
  indexed: true
8687
8171
  }
8688
8172
  ],
8689
- name: "OwnershipTransferStarted"
8173
+ name: "RoleGranted"
8690
8174
  },
8691
8175
  {
8692
8176
  type: "event",
8693
8177
  anonymous: false,
8694
8178
  inputs: [
8179
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
8695
8180
  {
8696
- name: "previousOwner",
8181
+ name: "account",
8697
8182
  internalType: "address",
8698
8183
  type: "address",
8699
8184
  indexed: true
8700
8185
  },
8701
8186
  {
8702
- name: "newOwner",
8187
+ name: "sender",
8703
8188
  internalType: "address",
8704
8189
  type: "address",
8705
8190
  indexed: true
8706
8191
  }
8707
8192
  ],
8708
- name: "OwnershipTransferred"
8193
+ name: "RoleRevoked"
8194
+ },
8195
+ {
8196
+ type: "event",
8197
+ anonymous: false,
8198
+ inputs: [
8199
+ {
8200
+ name: "commentId",
8201
+ internalType: "bytes32",
8202
+ type: "bytes32",
8203
+ indexed: true
8204
+ },
8205
+ {
8206
+ name: "commentIdentifier",
8207
+ internalType: "struct IComments.CommentIdentifier",
8208
+ type: "tuple",
8209
+ components: [
8210
+ { name: "commenter", internalType: "address", type: "address" },
8211
+ { name: "contractAddress", internalType: "address", type: "address" },
8212
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8213
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
8214
+ ],
8215
+ indexed: false
8216
+ },
8217
+ {
8218
+ name: "sparksQuantity",
8219
+ internalType: "uint256",
8220
+ type: "uint256",
8221
+ indexed: false
8222
+ },
8223
+ {
8224
+ name: "sparker",
8225
+ internalType: "address",
8226
+ type: "address",
8227
+ indexed: false
8228
+ },
8229
+ {
8230
+ name: "timestamp",
8231
+ internalType: "uint256",
8232
+ type: "uint256",
8233
+ indexed: false
8234
+ },
8235
+ {
8236
+ name: "referrer",
8237
+ internalType: "address",
8238
+ type: "address",
8239
+ indexed: false
8240
+ }
8241
+ ],
8242
+ name: "SparkedComment"
8709
8243
  },
8710
8244
  {
8711
8245
  type: "event",
@@ -8720,15 +8254,47 @@ var devCoinFactoryABI = [
8720
8254
  ],
8721
8255
  name: "Upgraded"
8722
8256
  },
8257
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
8258
+ {
8259
+ type: "error",
8260
+ inputs: [
8261
+ { name: "account", internalType: "address", type: "address" },
8262
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
8263
+ ],
8264
+ name: "AccessControlUnauthorizedAccount"
8265
+ },
8723
8266
  {
8724
8267
  type: "error",
8725
8268
  inputs: [{ name: "target", internalType: "address", type: "address" }],
8726
8269
  name: "AddressEmptyCode"
8727
8270
  },
8271
+ { type: "error", inputs: [], name: "AddressZero" },
8728
8272
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8729
- { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
8730
- { type: "error", inputs: [], name: "Deprecated" },
8731
- { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
8273
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
8274
+ {
8275
+ type: "error",
8276
+ inputs: [
8277
+ { name: "commentAddress", internalType: "address", type: "address" },
8278
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
8279
+ { name: "replyAddress", internalType: "address", type: "address" },
8280
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
8281
+ ],
8282
+ name: "CommentAddressOrTokenIdsDoNotMatch"
8283
+ },
8284
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
8285
+ {
8286
+ type: "error",
8287
+ inputs: [
8288
+ { name: "expected", internalType: "address", type: "address" },
8289
+ { name: "actual", internalType: "address", type: "address" }
8290
+ ],
8291
+ name: "CommenterMismatch"
8292
+ },
8293
+ {
8294
+ type: "error",
8295
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
8296
+ name: "DuplicateComment"
8297
+ },
8732
8298
  {
8733
8299
  type: "error",
8734
8300
  inputs: [
@@ -8737,41 +8303,49 @@ var devCoinFactoryABI = [
8737
8303
  name: "ERC1967InvalidImplementation"
8738
8304
  },
8739
8305
  { type: "error", inputs: [], name: "ERC1967NonPayable" },
8740
- { type: "error", inputs: [], name: "EthTransferInvalid" },
8741
- { type: "error", inputs: [], name: "FailedInnerCall" },
8742
- { type: "error", inputs: [], name: "InvalidConfig" },
8743
- { type: "error", inputs: [], name: "InvalidHook" },
8744
- { type: "error", inputs: [], name: "InvalidInitialization" },
8745
- { type: "error", inputs: [], name: "InvalidPoolVersion" },
8746
8306
  {
8747
8307
  type: "error",
8748
- inputs: [
8749
- { name: "tickLower", internalType: "int24", type: "int24" },
8750
- { name: "tickUpper", internalType: "int24", type: "int24" }
8751
- ],
8752
- name: "InvalidTickRangeMisordered"
8308
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
8309
+ name: "ERC2612ExpiredSignature"
8753
8310
  },
8311
+ { type: "error", inputs: [], name: "EmptyComment" },
8312
+ { type: "error", inputs: [], name: "FailedInnerCall" },
8754
8313
  {
8755
8314
  type: "error",
8756
8315
  inputs: [
8757
- { name: "value", internalType: "uint256", type: "uint256" },
8758
- { name: "limit", internalType: "uint256", type: "uint256" }
8316
+ {
8317
+ name: "wrongDestinationChainId",
8318
+ internalType: "uint256",
8319
+ type: "uint256"
8320
+ }
8759
8321
  ],
8760
- name: "MaxShareToBeSoldExceeded"
8322
+ name: "IncorrectDestinationChain"
8761
8323
  },
8762
- { type: "error", inputs: [], name: "NotInitializing" },
8763
- { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
8764
8324
  {
8765
8325
  type: "error",
8766
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
8767
- name: "OwnableInvalidOwner"
8326
+ inputs: [
8327
+ { name: "actual", internalType: "uint256", type: "uint256" },
8328
+ { name: "expected", internalType: "uint256", type: "uint256" }
8329
+ ],
8330
+ name: "IncorrectETHAmountForSparks"
8768
8331
  },
8769
8332
  {
8770
8333
  type: "error",
8771
- inputs: [{ name: "account", internalType: "address", type: "address" }],
8772
- name: "OwnableUnauthorizedAccount"
8334
+ inputs: [
8335
+ { name: "account", internalType: "address", type: "address" },
8336
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
8337
+ ],
8338
+ name: "InvalidAccountNonce"
8773
8339
  },
8774
- { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
8340
+ { type: "error", inputs: [], name: "InvalidInitialization" },
8341
+ { type: "error", inputs: [], name: "InvalidSignature" },
8342
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
8343
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
8344
+ { type: "error", inputs: [], name: "NotInitializing" },
8345
+ { type: "error", inputs: [], name: "NotSmartWallet" },
8346
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
8347
+ { type: "error", inputs: [], name: "OnlySparksContract" },
8348
+ { type: "error", inputs: [], name: "TransferFailed" },
8775
8349
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
8776
8350
  {
8777
8351
  type: "error",
@@ -8785,16 +8359,23 @@ var devCoinFactoryABI = [
8785
8359
  { name: "newName", internalType: "string", type: "string" }
8786
8360
  ],
8787
8361
  name: "UpgradeToMismatchedContractName"
8788
- },
8789
- { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
8790
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
8362
+ }
8791
8363
  ];
8792
- var devCoinFactoryAddress = {
8793
- 8453: "0x47B0C1205B01e5e967dB24A186968152e5cCf764"
8364
+ var commentsAddress = {
8365
+ 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
8366
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
8367
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
8368
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
8369
+ 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
8370
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
8371
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
8372
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
8373
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
8374
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
8794
8375
  };
8795
- var devCoinFactoryConfig = {
8796
- address: devCoinFactoryAddress,
8797
- abi: devCoinFactoryABI
8376
+ var commentsConfig = {
8377
+ address: commentsAddress,
8378
+ abi: commentsABI
8798
8379
  };
8799
8380
  var erc20MinterABI = [
8800
8381
  {
@@ -20655,7 +20236,10 @@ var zoraTimedSaleStrategyConfig = {
20655
20236
  abi: zoraTimedSaleStrategyABI
20656
20237
  };
20657
20238
 
20658
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/errors/unit.js
20239
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseEther.js
20240
+ init_unit();
20241
+
20242
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/errors/unit.js
20659
20243
  init_base();
20660
20244
  var InvalidDecimalNumberError = class extends BaseError {
20661
20245
  constructor({ value }) {
@@ -20665,7 +20249,7 @@ var InvalidDecimalNumberError = class extends BaseError {
20665
20249
  }
20666
20250
  };
20667
20251
 
20668
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseUnits.js
20252
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseUnits.js
20669
20253
  function parseUnits(value, decimals) {
20670
20254
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
20671
20255
  throw new InvalidDecimalNumberError({ value });
@@ -20700,16 +20284,14 @@ function parseUnits(value, decimals) {
20700
20284
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
20701
20285
  }
20702
20286
 
20703
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/utils/unit/parseEther.js
20704
- init_unit();
20287
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/utils/unit/parseEther.js
20705
20288
  function parseEther(ether, unit = "wei") {
20706
20289
  return parseUnits(ether, etherUnits[unit]);
20707
20290
  }
20708
20291
 
20709
- // ../../node_modules/.pnpm/viem@2.22.12_bufferutil@4.0.9_typescript@5.8.3_utf-8-validate@5.0.10_zod@3.24.1/node_modules/viem/_esm/index.js
20292
+ // ../../node_modules/.pnpm/viem@2.37.9_bufferutil@4.0.9_typescript@5.9.3_utf-8-validate@5.0.10_zod@4.1.11/node_modules/viem/_esm/index.js
20710
20293
  init_decodeAbiParameters();
20711
20294
  init_encodeAbiParameters();
20712
- init_encodeFunctionData();
20713
20295
  init_getAbiItem();
20714
20296
  init_toHex();
20715
20297
  init_keccak256();
@@ -21176,64 +20758,6 @@ var buySupplyWithSwapRouterHookReturnParameters = [
21176
20758
  { name: "amountCurrency", internalType: "uint256", type: "uint256" },
21177
20759
  { name: "coinsPurchased", internalType: "uint256", type: "uint256" }
21178
20760
  ];
21179
- var encodeBuySupplyWithSwapRouterHookCalldata = (buyRecipient, swapRouterCall) => {
21180
- return encodeAbiParameters(buySupplyWithSwapRouterHookAbiParameters, [
21181
- buyRecipient,
21182
- swapRouterCall
21183
- ]);
21184
- };
21185
- var encodeBuySupplyWithSingleHopSwapRouterHookCall = ({
21186
- buyRecipient,
21187
- exactInputSingleParams,
21188
- chainId,
21189
- ethValue
21190
- }) => {
21191
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
21192
- const callToSwapRouter = encodeFunctionData({
21193
- abi: uniswapV3SwapRouterABI,
21194
- functionName: "exactInputSingle",
21195
- args: [
21196
- {
21197
- recipient: hook,
21198
- ...exactInputSingleParams
21199
- }
21200
- ]
21201
- });
21202
- return {
21203
- hook,
21204
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
21205
- buyRecipient,
21206
- callToSwapRouter
21207
- ),
21208
- value: ethValue
21209
- };
21210
- };
21211
- var encodeBuySupplyWithMultiHopSwapRouterHookCall = ({
21212
- buyRecipient,
21213
- exactInputParams,
21214
- chainId,
21215
- ethValue
21216
- }) => {
21217
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
21218
- const callToSwapRouter = encodeFunctionData({
21219
- abi: uniswapV3SwapRouterABI,
21220
- functionName: "exactInput",
21221
- args: [
21222
- {
21223
- recipient: hook,
21224
- ...exactInputParams
21225
- }
21226
- ]
21227
- });
21228
- return {
21229
- hook,
21230
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
21231
- buyRecipient,
21232
- callToSwapRouter
21233
- ),
21234
- value: ethValue
21235
- };
21236
- };
21237
20761
  var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
21238
20762
  const result = decodeAbiParameters(
21239
20763
  buySupplyWithSwapRouterHookReturnParameters,
@@ -21696,16 +21220,7 @@ var addresses2 = {
21696
21220
  commentsConfig,
21697
21221
  contracts1155,
21698
21222
  decodeBuySupplyWithSwapRouterHookReturn,
21699
- devBuySupplyWithSwapRouterHookABI,
21700
- devBuySupplyWithSwapRouterHookAddress,
21701
- devBuySupplyWithSwapRouterHookConfig,
21702
- devCoinFactoryABI,
21703
- devCoinFactoryAddress,
21704
- devCoinFactoryConfig,
21705
21223
  emptyCommentIdentifier,
21706
- encodeBuySupplyWithMultiHopSwapRouterHookCall,
21707
- encodeBuySupplyWithSingleHopSwapRouterHookCall,
21708
- encodeBuySupplyWithSwapRouterHookCalldata,
21709
21224
  encodeMultiCurvePoolConfig,
21710
21225
  encodePremintConfig,
21711
21226
  erc20MinterABI,