@zoralabs/protocol-deployments 0.6.3 → 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 = {
@@ -5233,48 +5265,207 @@ var coinFactoryABI = [
5233
5265
  name: "UpgradeToMismatchedContractName"
5234
5266
  },
5235
5267
  { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
5236
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
5237
- ];
5238
- var coinFactoryAddress = {
5239
- 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
5240
- 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
5241
- };
5242
- var coinFactoryConfig = {
5243
- address: coinFactoryAddress,
5244
- abi: coinFactoryABI
5245
- };
5246
- var coinV4ABI = [
5268
+ { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" },
5247
5269
  {
5248
- type: "constructor",
5249
- inputs: [
5250
- {
5251
- name: "protocolRewardRecipient_",
5252
- internalType: "address",
5253
- type: "address"
5254
- },
5255
- { name: "protocolRewards_", internalType: "address", type: "address" },
5256
- {
5257
- name: "poolManager_",
5258
- internalType: "contract IPoolManager",
5259
- type: "address"
5260
- },
5261
- { name: "airlock_", internalType: "address", type: "address" }
5262
- ],
5263
- stateMutability: "nonpayable"
5264
- },
5265
- {
5266
- type: "function",
5267
- inputs: [],
5268
- name: "DOMAIN_SEPARATOR",
5269
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
5270
- stateMutability: "view"
5270
+ type: "error",
5271
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
5272
+ name: "AddressEmptyCode"
5271
5273
  },
5272
5274
  {
5273
- type: "function",
5275
+ type: "error",
5274
5276
  inputs: [{ name: "account", internalType: "address", type: "address" }],
5275
- name: "addOwner",
5276
- outputs: [],
5277
- stateMutability: "nonpayable"
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" }
5428
+ ];
5429
+ var coinFactoryAddress = {
5430
+ 8453: "0x777777751622c0d3258f214F9DF38E35BF45baF3",
5431
+ 84532: "0xaF88840cb637F2684A9E460316b1678AD6245e4a"
5432
+ };
5433
+ var coinFactoryConfig = {
5434
+ address: coinFactoryAddress,
5435
+ abi: coinFactoryABI
5436
+ };
5437
+ var coinV4ABI = [
5438
+ {
5439
+ type: "constructor",
5440
+ inputs: [
5441
+ {
5442
+ name: "protocolRewardRecipient_",
5443
+ internalType: "address",
5444
+ type: "address"
5445
+ },
5446
+ { name: "protocolRewards_", internalType: "address", type: "address" },
5447
+ {
5448
+ name: "poolManager_",
5449
+ internalType: "contract IPoolManager",
5450
+ type: "address"
5451
+ },
5452
+ { name: "airlock_", internalType: "address", type: "address" }
5453
+ ],
5454
+ stateMutability: "nonpayable"
5455
+ },
5456
+ {
5457
+ type: "function",
5458
+ inputs: [],
5459
+ name: "DOMAIN_SEPARATOR",
5460
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
5461
+ stateMutability: "view"
5462
+ },
5463
+ {
5464
+ type: "function",
5465
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
5466
+ name: "addOwner",
5467
+ outputs: [],
5468
+ stateMutability: "nonpayable"
5278
5469
  },
5279
5470
  {
5280
5471
  type: "function",
@@ -7881,881 +8072,53 @@ var commentsABI = [
7881
8072
  type: "tuple",
7882
8073
  components: [
7883
8074
  { name: "commenter", internalType: "address", type: "address" },
7884
- { name: "contractAddress", internalType: "address", type: "address" },
7885
- { name: "tokenId", internalType: "uint256", type: "uint256" },
7886
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
7887
- ],
7888
- indexed: false
7889
- },
7890
- {
7891
- name: "replyToId",
7892
- internalType: "bytes32",
7893
- type: "bytes32",
7894
- indexed: false
7895
- },
7896
- {
7897
- name: "replyTo",
7898
- internalType: "struct IComments.CommentIdentifier",
7899
- type: "tuple",
7900
- components: [
7901
- { name: "commenter", internalType: "address", type: "address" },
7902
- { name: "contractAddress", internalType: "address", type: "address" },
7903
- { name: "tokenId", internalType: "uint256", type: "uint256" },
7904
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
7905
- ],
7906
- indexed: false
7907
- },
7908
- {
7909
- name: "sparksQuantity",
7910
- internalType: "uint256",
7911
- type: "uint256",
7912
- indexed: false
7913
- },
7914
- { name: "text", internalType: "string", type: "string", indexed: false },
7915
- {
7916
- name: "timestamp",
7917
- internalType: "uint256",
7918
- type: "uint256",
7919
- indexed: false
7920
- },
7921
- {
7922
- name: "referrer",
7923
- internalType: "address",
7924
- type: "address",
7925
- indexed: false
7926
- }
7927
- ],
7928
- name: "Commented"
7929
- },
7930
- { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
7931
- {
7932
- type: "event",
7933
- anonymous: false,
7934
- inputs: [
7935
- {
7936
- name: "version",
7937
- internalType: "uint64",
7938
- type: "uint64",
7939
- indexed: false
7940
- }
7941
- ],
7942
- name: "Initialized"
7943
- },
7944
- {
7945
- type: "event",
7946
- anonymous: false,
7947
- inputs: [
7948
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
7949
- {
7950
- name: "previousAdminRole",
7951
- internalType: "bytes32",
7952
- type: "bytes32",
7953
- indexed: true
7954
- },
7955
- {
7956
- name: "newAdminRole",
7957
- internalType: "bytes32",
7958
- type: "bytes32",
7959
- indexed: true
7960
- }
7961
- ],
7962
- name: "RoleAdminChanged"
7963
- },
7964
- {
7965
- type: "event",
7966
- anonymous: false,
7967
- inputs: [
7968
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
7969
- {
7970
- name: "account",
7971
- internalType: "address",
7972
- type: "address",
7973
- indexed: true
7974
- },
7975
- {
7976
- name: "sender",
7977
- internalType: "address",
7978
- type: "address",
7979
- indexed: true
7980
- }
7981
- ],
7982
- name: "RoleGranted"
7983
- },
7984
- {
7985
- type: "event",
7986
- anonymous: false,
7987
- inputs: [
7988
- { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
7989
- {
7990
- name: "account",
7991
- internalType: "address",
7992
- type: "address",
7993
- indexed: true
7994
- },
7995
- {
7996
- name: "sender",
7997
- internalType: "address",
7998
- type: "address",
7999
- indexed: true
8000
- }
8001
- ],
8002
- name: "RoleRevoked"
8003
- },
8004
- {
8005
- type: "event",
8006
- anonymous: false,
8007
- inputs: [
8008
- {
8009
- name: "commentId",
8010
- internalType: "bytes32",
8011
- type: "bytes32",
8012
- indexed: true
8013
- },
8014
- {
8015
- name: "commentIdentifier",
8016
- internalType: "struct IComments.CommentIdentifier",
8017
- type: "tuple",
8018
- components: [
8019
- { name: "commenter", internalType: "address", type: "address" },
8020
- { name: "contractAddress", internalType: "address", type: "address" },
8021
- { name: "tokenId", internalType: "uint256", type: "uint256" },
8022
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
8023
- ],
8024
- indexed: false
8025
- },
8026
- {
8027
- name: "sparksQuantity",
8028
- internalType: "uint256",
8029
- type: "uint256",
8030
- indexed: false
8031
- },
8032
- {
8033
- name: "sparker",
8034
- internalType: "address",
8035
- type: "address",
8036
- indexed: false
8037
- },
8038
- {
8039
- name: "timestamp",
8040
- internalType: "uint256",
8041
- type: "uint256",
8042
- indexed: false
8043
- },
8044
- {
8045
- name: "referrer",
8046
- internalType: "address",
8047
- type: "address",
8048
- indexed: false
8049
- }
8050
- ],
8051
- name: "SparkedComment"
8052
- },
8053
- {
8054
- type: "event",
8055
- anonymous: false,
8056
- inputs: [
8057
- {
8058
- name: "implementation",
8059
- internalType: "address",
8060
- type: "address",
8061
- indexed: true
8062
- }
8063
- ],
8064
- name: "Upgraded"
8065
- },
8066
- { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
8067
- {
8068
- type: "error",
8069
- inputs: [
8070
- { name: "account", internalType: "address", type: "address" },
8071
- { name: "neededRole", internalType: "bytes32", type: "bytes32" }
8072
- ],
8073
- name: "AccessControlUnauthorizedAccount"
8074
- },
8075
- {
8076
- type: "error",
8077
- inputs: [{ name: "target", internalType: "address", type: "address" }],
8078
- name: "AddressEmptyCode"
8079
- },
8080
- { type: "error", inputs: [], name: "AddressZero" },
8081
- { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8082
- { type: "error", inputs: [], name: "CannotSparkOwnComment" },
8083
- {
8084
- type: "error",
8085
- inputs: [
8086
- { name: "commentAddress", internalType: "address", type: "address" },
8087
- { name: "commentTokenId", internalType: "uint256", type: "uint256" },
8088
- { name: "replyAddress", internalType: "address", type: "address" },
8089
- { name: "replyTokenId", internalType: "uint256", type: "uint256" }
8090
- ],
8091
- name: "CommentAddressOrTokenIdsDoNotMatch"
8092
- },
8093
- { type: "error", inputs: [], name: "CommentDoesntExist" },
8094
- {
8095
- type: "error",
8096
- inputs: [
8097
- { name: "expected", internalType: "address", type: "address" },
8098
- { name: "actual", internalType: "address", type: "address" }
8099
- ],
8100
- name: "CommenterMismatch"
8101
- },
8102
- {
8103
- type: "error",
8104
- inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
8105
- name: "DuplicateComment"
8106
- },
8107
- {
8108
- type: "error",
8109
- inputs: [
8110
- { name: "implementation", internalType: "address", type: "address" }
8111
- ],
8112
- name: "ERC1967InvalidImplementation"
8113
- },
8114
- { type: "error", inputs: [], name: "ERC1967NonPayable" },
8115
- {
8116
- type: "error",
8117
- inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
8118
- name: "ERC2612ExpiredSignature"
8119
- },
8120
- { type: "error", inputs: [], name: "EmptyComment" },
8121
- { type: "error", inputs: [], name: "FailedInnerCall" },
8122
- {
8123
- type: "error",
8124
- inputs: [
8125
- {
8126
- name: "wrongDestinationChainId",
8127
- internalType: "uint256",
8128
- type: "uint256"
8129
- }
8130
- ],
8131
- name: "IncorrectDestinationChain"
8132
- },
8133
- {
8134
- type: "error",
8135
- inputs: [
8136
- { name: "actual", internalType: "uint256", type: "uint256" },
8137
- { name: "expected", internalType: "uint256", type: "uint256" }
8138
- ],
8139
- name: "IncorrectETHAmountForSparks"
8140
- },
8141
- {
8142
- type: "error",
8143
- inputs: [
8144
- { name: "account", internalType: "address", type: "address" },
8145
- { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
8146
- ],
8147
- name: "InvalidAccountNonce"
8148
- },
8149
- { type: "error", inputs: [], name: "InvalidInitialization" },
8150
- { type: "error", inputs: [], name: "InvalidSignature" },
8151
- { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
8152
- { type: "error", inputs: [], name: "NoFundsRecipient" },
8153
- { type: "error", inputs: [], name: "NotInitializing" },
8154
- { type: "error", inputs: [], name: "NotSmartWallet" },
8155
- { type: "error", inputs: [], name: "NotSmartWalletOwner" },
8156
- { type: "error", inputs: [], name: "OnlySparksContract" },
8157
- { type: "error", inputs: [], name: "TransferFailed" },
8158
- { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
8159
- {
8160
- type: "error",
8161
- inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
8162
- name: "UUPSUnsupportedProxiableUUID"
8163
- },
8164
- {
8165
- type: "error",
8166
- inputs: [
8167
- { name: "currentName", internalType: "string", type: "string" },
8168
- { name: "newName", internalType: "string", type: "string" }
8169
- ],
8170
- name: "UpgradeToMismatchedContractName"
8171
- }
8172
- ];
8173
- var commentsAddress = {
8174
- 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
8175
- 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
8176
- 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
8177
- 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
8178
- 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
8179
- 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
8180
- 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
8181
- 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
8182
- 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
8183
- 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
8184
- };
8185
- var commentsConfig = {
8186
- address: commentsAddress,
8187
- abi: commentsABI
8188
- };
8189
- var devBuySupplyWithSwapRouterHookABI = [
8190
- {
8191
- type: "constructor",
8192
- inputs: [
8193
- {
8194
- name: "_factory",
8195
- internalType: "contract IZoraFactory",
8196
- type: "address"
8197
- },
8198
- { name: "_swapRouter", internalType: "address", type: "address" },
8199
- { name: "_poolManager", internalType: "address", type: "address" }
8200
- ],
8201
- stateMutability: "nonpayable"
8202
- },
8203
- {
8204
- type: "function",
8205
- inputs: [
8206
- { name: "sender", internalType: "address", type: "address" },
8207
- { name: "coin", internalType: "contract ICoin", type: "address" },
8208
- { name: "hookData", internalType: "bytes", type: "bytes" }
8209
- ],
8210
- name: "afterCoinDeploy",
8211
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
8212
- stateMutability: "payable"
8213
- },
8214
- {
8215
- type: "function",
8216
- inputs: [],
8217
- name: "factory",
8218
- outputs: [
8219
- { name: "", internalType: "contract IZoraFactory", type: "address" }
8220
- ],
8221
- stateMutability: "view"
8222
- },
8223
- {
8224
- type: "function",
8225
- inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
8226
- name: "supportsInterface",
8227
- outputs: [{ name: "", internalType: "bool", type: "bool" }],
8228
- stateMutability: "pure"
8229
- },
8230
- {
8231
- type: "function",
8232
- inputs: [{ name: "data", internalType: "bytes", type: "bytes" }],
8233
- name: "unlockCallback",
8234
- outputs: [{ name: "", internalType: "bytes", type: "bytes" }],
8235
- stateMutability: "nonpayable"
8236
- },
8237
- {
8238
- type: "error",
8239
- inputs: [{ name: "target", internalType: "address", type: "address" }],
8240
- name: "AddressEmptyCode"
8241
- },
8242
- {
8243
- type: "error",
8244
- inputs: [{ name: "account", internalType: "address", type: "address" }],
8245
- name: "AddressInsufficientBalance"
8246
- },
8247
- { type: "error", inputs: [], name: "AddressZero" },
8248
- {
8249
- type: "error",
8250
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
8251
- name: "CoinBalanceNot0"
8252
- },
8253
- {
8254
- type: "error",
8255
- inputs: [{ name: "balance", internalType: "uint256", type: "uint256" }],
8256
- name: "CurrencyBalanceNot0"
8257
- },
8258
- { type: "error", inputs: [], name: "Erc20NotReceived" },
8259
- { type: "error", inputs: [], name: "FailedInnerCall" },
8260
- { type: "error", inputs: [], name: "HookNotImplemented" },
8261
- { type: "error", inputs: [], name: "InvalidSwapRouterCall" },
8262
- { type: "error", inputs: [], name: "NotFactory" },
8263
- { type: "error", inputs: [], name: "OnlyPoolManager" },
8264
- {
8265
- type: "error",
8266
- inputs: [{ name: "token", internalType: "address", type: "address" }],
8267
- name: "SafeERC20FailedOperation"
8268
- },
8269
- {
8270
- type: "error",
8271
- inputs: [{ name: "error", internalType: "bytes", type: "bytes" }],
8272
- name: "SwapReverted"
8273
- }
8274
- ];
8275
- var devBuySupplyWithSwapRouterHookAddress = {
8276
- 8453: "0x62B95629F965bf48E15BB110A1729B9b9dF1C07D"
8277
- };
8278
- var devBuySupplyWithSwapRouterHookConfig = {
8279
- address: devBuySupplyWithSwapRouterHookAddress,
8280
- abi: devBuySupplyWithSwapRouterHookABI
8281
- };
8282
- var devCoinFactoryABI = [
8283
- {
8284
- type: "constructor",
8285
- inputs: [
8286
- { name: "coinV4Impl_", internalType: "address", type: "address" },
8287
- { name: "creatorCoinImpl_", internalType: "address", type: "address" },
8288
- { name: "hook_", internalType: "address", type: "address" },
8289
- { name: "zoraHookRegistry_", internalType: "address", type: "address" }
8290
- ],
8291
- stateMutability: "nonpayable"
8292
- },
8293
- {
8294
- type: "function",
8295
- inputs: [],
8296
- name: "UPGRADE_INTERFACE_VERSION",
8297
- outputs: [{ name: "", internalType: "string", type: "string" }],
8298
- stateMutability: "view"
8299
- },
8300
- {
8301
- type: "function",
8302
- inputs: [],
8303
- name: "acceptOwnership",
8304
- outputs: [],
8305
- stateMutability: "nonpayable"
8306
- },
8307
- {
8308
- type: "function",
8309
- inputs: [
8310
- { name: "msgSender", internalType: "address", type: "address" },
8311
- { name: "name", internalType: "string", type: "string" },
8312
- { name: "symbol", internalType: "string", type: "string" },
8313
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8314
- { name: "platformReferrer", internalType: "address", type: "address" },
8315
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8316
- ],
8317
- name: "coinAddress",
8318
- outputs: [{ name: "", internalType: "address", type: "address" }],
8319
- stateMutability: "view"
8320
- },
8321
- {
8322
- type: "function",
8323
- inputs: [],
8324
- name: "coinV4Impl",
8325
- outputs: [{ name: "", internalType: "address", type: "address" }],
8326
- stateMutability: "view"
8327
- },
8328
- {
8329
- type: "function",
8330
- inputs: [],
8331
- name: "contentCoinHook",
8332
- outputs: [{ name: "", internalType: "address", type: "address" }],
8333
- stateMutability: "view"
8334
- },
8335
- {
8336
- type: "function",
8337
- inputs: [],
8338
- name: "contractName",
8339
- outputs: [{ name: "", internalType: "string", type: "string" }],
8340
- stateMutability: "pure"
8341
- },
8342
- {
8343
- type: "function",
8344
- inputs: [],
8345
- name: "contractVersion",
8346
- outputs: [{ name: "", internalType: "string", type: "string" }],
8347
- stateMutability: "pure"
8348
- },
8349
- {
8350
- type: "function",
8351
- inputs: [],
8352
- name: "creatorCoinHook",
8353
- outputs: [{ name: "", internalType: "address", type: "address" }],
8354
- stateMutability: "view"
8355
- },
8356
- {
8357
- type: "function",
8358
- inputs: [],
8359
- name: "creatorCoinImpl",
8360
- outputs: [{ name: "", internalType: "address", type: "address" }],
8361
- stateMutability: "view"
8362
- },
8363
- {
8364
- type: "function",
8365
- inputs: [
8366
- { name: "payoutRecipient", internalType: "address", type: "address" },
8367
- { name: "owners", internalType: "address[]", type: "address[]" },
8368
- { name: "uri", internalType: "string", type: "string" },
8369
- { name: "name", internalType: "string", type: "string" },
8370
- { name: "symbol", internalType: "string", type: "string" },
8371
- { name: "platformReferrer", internalType: "address", type: "address" },
8372
- { name: "currency", internalType: "address", type: "address" },
8373
- { name: "", internalType: "int24", type: "int24" },
8374
- { name: "", internalType: "uint256", type: "uint256" }
8375
- ],
8376
- name: "deploy",
8377
- outputs: [
8378
- { name: "", internalType: "address", type: "address" },
8379
- { name: "", internalType: "uint256", type: "uint256" }
8380
- ],
8381
- stateMutability: "payable"
8382
- },
8383
- {
8384
- type: "function",
8385
- inputs: [
8386
- { name: "payoutRecipient", internalType: "address", type: "address" },
8387
- { name: "owners", internalType: "address[]", type: "address[]" },
8388
- { name: "uri", internalType: "string", type: "string" },
8389
- { name: "name", internalType: "string", type: "string" },
8390
- { name: "symbol", internalType: "string", type: "string" },
8391
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8392
- { name: "platformReferrer", internalType: "address", type: "address" },
8393
- { name: "postDeployHook", internalType: "address", type: "address" },
8394
- { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
8395
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8396
- ],
8397
- name: "deploy",
8398
- outputs: [
8399
- { name: "coin", internalType: "address", type: "address" },
8400
- { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
8401
- ],
8402
- stateMutability: "payable"
8403
- },
8404
- {
8405
- type: "function",
8406
- inputs: [
8407
- { name: "payoutRecipient", internalType: "address", type: "address" },
8408
- { name: "owners", internalType: "address[]", type: "address[]" },
8409
- { name: "uri", internalType: "string", type: "string" },
8410
- { name: "name", internalType: "string", type: "string" },
8411
- { name: "symbol", internalType: "string", type: "string" },
8412
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8413
- { name: "platformReferrer", internalType: "address", type: "address" },
8414
- { name: "", internalType: "uint256", type: "uint256" }
8415
- ],
8416
- name: "deploy",
8417
- outputs: [
8418
- { name: "", internalType: "address", type: "address" },
8419
- { name: "", internalType: "uint256", type: "uint256" }
8420
- ],
8421
- stateMutability: "payable"
8422
- },
8423
- {
8424
- type: "function",
8425
- inputs: [
8426
- { name: "payoutRecipient", internalType: "address", type: "address" },
8427
- { name: "owners", internalType: "address[]", type: "address[]" },
8428
- { name: "uri", internalType: "string", type: "string" },
8429
- { name: "name", internalType: "string", type: "string" },
8430
- { name: "symbol", internalType: "string", type: "string" },
8431
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8432
- { name: "platformReferrer", internalType: "address", type: "address" },
8433
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8434
- ],
8435
- name: "deployCreatorCoin",
8436
- outputs: [{ name: "", internalType: "address", type: "address" }],
8437
- stateMutability: "nonpayable"
8438
- },
8439
- {
8440
- type: "function",
8441
- inputs: [
8442
- { name: "payoutRecipient", internalType: "address", type: "address" },
8443
- { name: "owners", internalType: "address[]", type: "address[]" },
8444
- { name: "uri", internalType: "string", type: "string" },
8445
- { name: "name", internalType: "string", type: "string" },
8446
- { name: "symbol", internalType: "string", type: "string" },
8447
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8448
- { name: "platformReferrer", internalType: "address", type: "address" },
8449
- { name: "postDeployHook", internalType: "address", type: "address" },
8450
- { name: "postDeployHookData", internalType: "bytes", type: "bytes" },
8451
- { name: "coinSalt", internalType: "bytes32", type: "bytes32" }
8452
- ],
8453
- name: "deployCreatorCoin",
8454
- outputs: [
8455
- { name: "coin", internalType: "address", type: "address" },
8456
- { name: "postDeployHookDataOut", internalType: "bytes", type: "bytes" }
8457
- ],
8458
- stateMutability: "payable"
8459
- },
8460
- {
8461
- type: "function",
8462
- inputs: [
8463
- { name: "payoutRecipient", internalType: "address", type: "address" },
8464
- { name: "owners", internalType: "address[]", type: "address[]" },
8465
- { name: "uri", internalType: "string", type: "string" },
8466
- { name: "name", internalType: "string", type: "string" },
8467
- { name: "symbol", internalType: "string", type: "string" },
8468
- { name: "poolConfig", internalType: "bytes", type: "bytes" },
8469
- { name: "platformReferrer", internalType: "address", type: "address" },
8470
- { name: "deployHook", internalType: "address", type: "address" },
8471
- { name: "hookData", internalType: "bytes", type: "bytes" }
8472
- ],
8473
- name: "deployWithHook",
8474
- outputs: [
8475
- { name: "coin", internalType: "address", type: "address" },
8476
- { name: "hookDataOut", internalType: "bytes", type: "bytes" }
8477
- ],
8478
- stateMutability: "payable"
8479
- },
8480
- {
8481
- type: "function",
8482
- inputs: [{ name: "coin", internalType: "address", type: "address" }],
8483
- name: "getVersionForDeployedCoin",
8484
- outputs: [{ name: "", internalType: "uint8", type: "uint8" }],
8485
- stateMutability: "view"
8486
- },
8487
- {
8488
- type: "function",
8489
- inputs: [],
8490
- name: "hook",
8491
- outputs: [{ name: "", internalType: "address", type: "address" }],
8492
- stateMutability: "view"
8493
- },
8494
- {
8495
- type: "function",
8496
- inputs: [],
8497
- name: "implementation",
8498
- outputs: [{ name: "", internalType: "address", type: "address" }],
8499
- stateMutability: "view"
8500
- },
8501
- {
8502
- type: "function",
8503
- inputs: [
8504
- { name: "initialOwner", internalType: "address", type: "address" }
8505
- ],
8506
- name: "initialize",
8507
- outputs: [],
8508
- stateMutability: "nonpayable"
8509
- },
8510
- {
8511
- type: "function",
8512
- inputs: [],
8513
- name: "owner",
8514
- outputs: [{ name: "", internalType: "address", type: "address" }],
8515
- stateMutability: "view"
8516
- },
8517
- {
8518
- type: "function",
8519
- inputs: [],
8520
- name: "pendingOwner",
8521
- outputs: [{ name: "", internalType: "address", type: "address" }],
8522
- stateMutability: "view"
8523
- },
8524
- {
8525
- type: "function",
8526
- inputs: [],
8527
- name: "proxiableUUID",
8528
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
8529
- stateMutability: "view"
8530
- },
8531
- {
8532
- type: "function",
8533
- inputs: [],
8534
- name: "renounceOwnership",
8535
- outputs: [],
8536
- stateMutability: "nonpayable"
8537
- },
8538
- {
8539
- type: "function",
8540
- inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
8541
- name: "transferOwnership",
8542
- outputs: [],
8543
- stateMutability: "nonpayable"
8544
- },
8545
- {
8546
- type: "function",
8547
- inputs: [
8548
- { name: "newImplementation", internalType: "address", type: "address" },
8549
- { name: "data", internalType: "bytes", type: "bytes" }
8550
- ],
8551
- name: "upgradeToAndCall",
8552
- outputs: [],
8553
- stateMutability: "payable"
8554
- },
8555
- {
8556
- type: "function",
8557
- inputs: [],
8558
- name: "zoraHookRegistry",
8559
- outputs: [{ name: "", internalType: "address", type: "address" }],
8560
- stateMutability: "view"
8561
- },
8562
- {
8563
- type: "event",
8564
- anonymous: false,
8565
- inputs: [
8566
- {
8567
- name: "caller",
8568
- internalType: "address",
8569
- type: "address",
8570
- indexed: true
8571
- },
8572
- {
8573
- name: "payoutRecipient",
8574
- internalType: "address",
8575
- type: "address",
8576
- indexed: true
8577
- },
8578
- {
8579
- name: "platformReferrer",
8580
- internalType: "address",
8581
- type: "address",
8582
- indexed: true
8583
- },
8584
- {
8585
- name: "currency",
8586
- internalType: "address",
8587
- type: "address",
8588
- indexed: false
8589
- },
8590
- { name: "uri", internalType: "string", type: "string", indexed: false },
8591
- { name: "name", internalType: "string", type: "string", indexed: false },
8592
- {
8593
- name: "symbol",
8594
- internalType: "string",
8595
- type: "string",
8596
- indexed: false
8597
- },
8598
- {
8599
- name: "coin",
8600
- internalType: "address",
8601
- type: "address",
8602
- indexed: false
8603
- },
8604
- {
8605
- name: "pool",
8606
- internalType: "address",
8607
- type: "address",
8608
- indexed: false
8609
- },
8610
- {
8611
- name: "version",
8612
- internalType: "string",
8613
- type: "string",
8614
- indexed: false
8615
- }
8616
- ],
8617
- name: "CoinCreated"
8618
- },
8619
- {
8620
- type: "event",
8621
- anonymous: false,
8622
- inputs: [
8623
- {
8624
- name: "caller",
8625
- internalType: "address",
8626
- type: "address",
8627
- indexed: true
8628
- },
8629
- {
8630
- name: "payoutRecipient",
8631
- internalType: "address",
8632
- type: "address",
8633
- indexed: true
8634
- },
8635
- {
8636
- name: "platformReferrer",
8637
- internalType: "address",
8638
- type: "address",
8639
- indexed: true
8640
- },
8641
- {
8642
- name: "currency",
8643
- internalType: "address",
8644
- type: "address",
8645
- indexed: false
8646
- },
8647
- { name: "uri", internalType: "string", type: "string", indexed: false },
8648
- { name: "name", internalType: "string", type: "string", indexed: false },
8649
- {
8650
- name: "symbol",
8651
- internalType: "string",
8652
- type: "string",
8653
- indexed: false
8654
- },
8655
- {
8656
- name: "coin",
8657
- internalType: "address",
8658
- type: "address",
8659
- indexed: false
8660
- },
8661
- {
8662
- name: "poolKey",
8663
- internalType: "struct PoolKey",
8664
- type: "tuple",
8665
- components: [
8666
- { name: "currency0", internalType: "Currency", type: "address" },
8667
- { name: "currency1", internalType: "Currency", type: "address" },
8668
- { name: "fee", internalType: "uint24", type: "uint24" },
8669
- { name: "tickSpacing", internalType: "int24", type: "int24" },
8670
- { name: "hooks", internalType: "contract IHooks", type: "address" }
8671
- ],
8672
- indexed: false
8673
- },
8674
- {
8675
- name: "poolKeyHash",
8676
- internalType: "bytes32",
8677
- type: "bytes32",
8678
- indexed: false
8679
- },
8680
- {
8681
- name: "version",
8682
- internalType: "string",
8683
- type: "string",
8684
- indexed: false
8685
- }
8686
- ],
8687
- name: "CoinCreatedV4"
8688
- },
8689
- {
8690
- type: "event",
8691
- anonymous: false,
8692
- inputs: [
8693
- {
8694
- name: "caller",
8695
- internalType: "address",
8696
- type: "address",
8697
- indexed: true
8698
- },
8699
- {
8700
- name: "payoutRecipient",
8701
- internalType: "address",
8702
- type: "address",
8703
- indexed: true
8704
- },
8705
- {
8706
- name: "platformReferrer",
8707
- internalType: "address",
8708
- type: "address",
8709
- indexed: true
8710
- },
8711
- {
8712
- name: "currency",
8713
- internalType: "address",
8714
- type: "address",
8715
- indexed: false
8716
- },
8717
- { name: "uri", internalType: "string", type: "string", indexed: false },
8718
- { name: "name", internalType: "string", type: "string", indexed: false },
8719
- {
8720
- name: "symbol",
8721
- internalType: "string",
8722
- type: "string",
8075
+ { name: "contractAddress", internalType: "address", type: "address" },
8076
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
8077
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
8078
+ ],
8723
8079
  indexed: false
8724
8080
  },
8725
8081
  {
8726
- name: "coin",
8727
- internalType: "address",
8728
- type: "address",
8082
+ name: "replyToId",
8083
+ internalType: "bytes32",
8084
+ type: "bytes32",
8729
8085
  indexed: false
8730
8086
  },
8731
8087
  {
8732
- name: "poolKey",
8733
- internalType: "struct PoolKey",
8088
+ name: "replyTo",
8089
+ internalType: "struct IComments.CommentIdentifier",
8734
8090
  type: "tuple",
8735
8091
  components: [
8736
- { name: "currency0", internalType: "Currency", type: "address" },
8737
- { name: "currency1", internalType: "Currency", type: "address" },
8738
- { name: "fee", internalType: "uint24", type: "uint24" },
8739
- { name: "tickSpacing", internalType: "int24", type: "int24" },
8740
- { 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" }
8741
8096
  ],
8742
8097
  indexed: false
8743
8098
  },
8744
8099
  {
8745
- name: "poolKeyHash",
8746
- internalType: "bytes32",
8747
- type: "bytes32",
8100
+ name: "sparksQuantity",
8101
+ internalType: "uint256",
8102
+ type: "uint256",
8748
8103
  indexed: false
8749
8104
  },
8105
+ { name: "text", internalType: "string", type: "string", indexed: false },
8750
8106
  {
8751
- name: "version",
8752
- internalType: "string",
8753
- 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",
8754
8116
  indexed: false
8755
8117
  }
8756
8118
  ],
8757
- name: "CreatorCoinCreated"
8119
+ name: "Commented"
8758
8120
  },
8121
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
8759
8122
  {
8760
8123
  type: "event",
8761
8124
  anonymous: false,
@@ -8773,39 +8136,110 @@ var devCoinFactoryABI = [
8773
8136
  type: "event",
8774
8137
  anonymous: false,
8775
8138
  inputs: [
8139
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
8776
8140
  {
8777
- 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",
8778
8162
  internalType: "address",
8779
8163
  type: "address",
8780
8164
  indexed: true
8781
8165
  },
8782
8166
  {
8783
- name: "newOwner",
8167
+ name: "sender",
8784
8168
  internalType: "address",
8785
8169
  type: "address",
8786
8170
  indexed: true
8787
8171
  }
8788
8172
  ],
8789
- name: "OwnershipTransferStarted"
8173
+ name: "RoleGranted"
8790
8174
  },
8791
8175
  {
8792
8176
  type: "event",
8793
8177
  anonymous: false,
8794
8178
  inputs: [
8179
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
8795
8180
  {
8796
- name: "previousOwner",
8181
+ name: "account",
8797
8182
  internalType: "address",
8798
8183
  type: "address",
8799
8184
  indexed: true
8800
8185
  },
8801
8186
  {
8802
- name: "newOwner",
8187
+ name: "sender",
8803
8188
  internalType: "address",
8804
8189
  type: "address",
8805
8190
  indexed: true
8806
8191
  }
8807
8192
  ],
8808
- 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"
8809
8243
  },
8810
8244
  {
8811
8245
  type: "event",
@@ -8820,15 +8254,47 @@ var devCoinFactoryABI = [
8820
8254
  ],
8821
8255
  name: "Upgraded"
8822
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
+ },
8823
8266
  {
8824
8267
  type: "error",
8825
8268
  inputs: [{ name: "target", internalType: "address", type: "address" }],
8826
8269
  name: "AddressEmptyCode"
8827
8270
  },
8271
+ { type: "error", inputs: [], name: "AddressZero" },
8828
8272
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
8829
- { type: "error", inputs: [], name: "ConfigTickLowerMustBeLessThanTickUpper" },
8830
- { type: "error", inputs: [], name: "Deprecated" },
8831
- { 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
+ },
8832
8298
  {
8833
8299
  type: "error",
8834
8300
  inputs: [
@@ -8837,41 +8303,49 @@ var devCoinFactoryABI = [
8837
8303
  name: "ERC1967InvalidImplementation"
8838
8304
  },
8839
8305
  { type: "error", inputs: [], name: "ERC1967NonPayable" },
8840
- { type: "error", inputs: [], name: "EthTransferInvalid" },
8841
- { type: "error", inputs: [], name: "FailedInnerCall" },
8842
- { type: "error", inputs: [], name: "InvalidConfig" },
8843
- { type: "error", inputs: [], name: "InvalidHook" },
8844
- { type: "error", inputs: [], name: "InvalidInitialization" },
8845
- { type: "error", inputs: [], name: "InvalidPoolVersion" },
8846
8306
  {
8847
8307
  type: "error",
8848
- inputs: [
8849
- { name: "tickLower", internalType: "int24", type: "int24" },
8850
- { name: "tickUpper", internalType: "int24", type: "int24" }
8851
- ],
8852
- name: "InvalidTickRangeMisordered"
8308
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
8309
+ name: "ERC2612ExpiredSignature"
8853
8310
  },
8311
+ { type: "error", inputs: [], name: "EmptyComment" },
8312
+ { type: "error", inputs: [], name: "FailedInnerCall" },
8854
8313
  {
8855
8314
  type: "error",
8856
8315
  inputs: [
8857
- { name: "value", internalType: "uint256", type: "uint256" },
8858
- { name: "limit", internalType: "uint256", type: "uint256" }
8316
+ {
8317
+ name: "wrongDestinationChainId",
8318
+ internalType: "uint256",
8319
+ type: "uint256"
8320
+ }
8859
8321
  ],
8860
- name: "MaxShareToBeSoldExceeded"
8322
+ name: "IncorrectDestinationChain"
8861
8323
  },
8862
- { type: "error", inputs: [], name: "NotInitializing" },
8863
- { type: "error", inputs: [], name: "NumDiscoveryPositionsOutOfRange" },
8864
8324
  {
8865
8325
  type: "error",
8866
- inputs: [{ name: "owner", internalType: "address", type: "address" }],
8867
- name: "OwnableInvalidOwner"
8326
+ inputs: [
8327
+ { name: "actual", internalType: "uint256", type: "uint256" },
8328
+ { name: "expected", internalType: "uint256", type: "uint256" }
8329
+ ],
8330
+ name: "IncorrectETHAmountForSparks"
8868
8331
  },
8869
8332
  {
8870
8333
  type: "error",
8871
- inputs: [{ name: "account", internalType: "address", type: "address" }],
8872
- name: "OwnableUnauthorizedAccount"
8334
+ inputs: [
8335
+ { name: "account", internalType: "address", type: "address" },
8336
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
8337
+ ],
8338
+ name: "InvalidAccountNonce"
8873
8339
  },
8874
- { 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" },
8875
8349
  { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
8876
8350
  {
8877
8351
  type: "error",
@@ -8885,16 +8359,23 @@ var devCoinFactoryABI = [
8885
8359
  { name: "newName", internalType: "string", type: "string" }
8886
8360
  ],
8887
8361
  name: "UpgradeToMismatchedContractName"
8888
- },
8889
- { type: "error", inputs: [], name: "ZeroDiscoveryPositions" },
8890
- { type: "error", inputs: [], name: "ZeroDiscoverySupplyShare" }
8362
+ }
8891
8363
  ];
8892
- var devCoinFactoryAddress = {
8893
- 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"
8894
8375
  };
8895
- var devCoinFactoryConfig = {
8896
- address: devCoinFactoryAddress,
8897
- abi: devCoinFactoryABI
8376
+ var commentsConfig = {
8377
+ address: commentsAddress,
8378
+ abi: commentsABI
8898
8379
  };
8899
8380
  var erc20MinterABI = [
8900
8381
  {
@@ -20755,7 +20236,10 @@ var zoraTimedSaleStrategyConfig = {
20755
20236
  abi: zoraTimedSaleStrategyABI
20756
20237
  };
20757
20238
 
20758
- // ../../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
20759
20243
  init_base();
20760
20244
  var InvalidDecimalNumberError = class extends BaseError {
20761
20245
  constructor({ value }) {
@@ -20765,7 +20249,7 @@ var InvalidDecimalNumberError = class extends BaseError {
20765
20249
  }
20766
20250
  };
20767
20251
 
20768
- // ../../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
20769
20253
  function parseUnits(value, decimals) {
20770
20254
  if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
20771
20255
  throw new InvalidDecimalNumberError({ value });
@@ -20800,16 +20284,14 @@ function parseUnits(value, decimals) {
20800
20284
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
20801
20285
  }
20802
20286
 
20803
- // ../../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
20804
- 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
20805
20288
  function parseEther(ether, unit = "wei") {
20806
20289
  return parseUnits(ether, etherUnits[unit]);
20807
20290
  }
20808
20291
 
20809
- // ../../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
20810
20293
  init_decodeAbiParameters();
20811
20294
  init_encodeAbiParameters();
20812
- init_encodeFunctionData();
20813
20295
  init_getAbiItem();
20814
20296
  init_toHex();
20815
20297
  init_keccak256();
@@ -21276,64 +20758,6 @@ var buySupplyWithSwapRouterHookReturnParameters = [
21276
20758
  { name: "amountCurrency", internalType: "uint256", type: "uint256" },
21277
20759
  { name: "coinsPurchased", internalType: "uint256", type: "uint256" }
21278
20760
  ];
21279
- var encodeBuySupplyWithSwapRouterHookCalldata = (buyRecipient, swapRouterCall) => {
21280
- return encodeAbiParameters(buySupplyWithSwapRouterHookAbiParameters, [
21281
- buyRecipient,
21282
- swapRouterCall
21283
- ]);
21284
- };
21285
- var encodeBuySupplyWithSingleHopSwapRouterHookCall = ({
21286
- buyRecipient,
21287
- exactInputSingleParams,
21288
- chainId,
21289
- ethValue
21290
- }) => {
21291
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
21292
- const callToSwapRouter = encodeFunctionData({
21293
- abi: uniswapV3SwapRouterABI,
21294
- functionName: "exactInputSingle",
21295
- args: [
21296
- {
21297
- recipient: hook,
21298
- ...exactInputSingleParams
21299
- }
21300
- ]
21301
- });
21302
- return {
21303
- hook,
21304
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
21305
- buyRecipient,
21306
- callToSwapRouter
21307
- ),
21308
- value: ethValue
21309
- };
21310
- };
21311
- var encodeBuySupplyWithMultiHopSwapRouterHookCall = ({
21312
- buyRecipient,
21313
- exactInputParams,
21314
- chainId,
21315
- ethValue
21316
- }) => {
21317
- const hook = buySupplyWithSwapRouterHookAddress[chainId];
21318
- const callToSwapRouter = encodeFunctionData({
21319
- abi: uniswapV3SwapRouterABI,
21320
- functionName: "exactInput",
21321
- args: [
21322
- {
21323
- recipient: hook,
21324
- ...exactInputParams
21325
- }
21326
- ]
21327
- });
21328
- return {
21329
- hook,
21330
- hookData: encodeBuySupplyWithSwapRouterHookCalldata(
21331
- buyRecipient,
21332
- callToSwapRouter
21333
- ),
21334
- value: ethValue
21335
- };
21336
- };
21337
20761
  var decodeBuySupplyWithSwapRouterHookReturn = (returnData) => {
21338
20762
  const result = decodeAbiParameters(
21339
20763
  buySupplyWithSwapRouterHookReturnParameters,
@@ -21796,16 +21220,7 @@ var addresses2 = {
21796
21220
  commentsConfig,
21797
21221
  contracts1155,
21798
21222
  decodeBuySupplyWithSwapRouterHookReturn,
21799
- devBuySupplyWithSwapRouterHookABI,
21800
- devBuySupplyWithSwapRouterHookAddress,
21801
- devBuySupplyWithSwapRouterHookConfig,
21802
- devCoinFactoryABI,
21803
- devCoinFactoryAddress,
21804
- devCoinFactoryConfig,
21805
21223
  emptyCommentIdentifier,
21806
- encodeBuySupplyWithMultiHopSwapRouterHookCall,
21807
- encodeBuySupplyWithSingleHopSwapRouterHookCall,
21808
- encodeBuySupplyWithSwapRouterHookCalldata,
21809
21224
  encodeMultiCurvePoolConfig,
21810
21225
  encodePremintConfig,
21811
21226
  erc20MinterABI,