@zoralabs/protocol-deployments 0.3.5-COMMENTS.1 → 0.3.5-COMMENTS.3

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.
Files changed (87) hide show
  1. package/.turbo/turbo-build.log +48 -48
  2. package/CHANGELOG.md +12 -0
  3. package/dist/_esm-JXHAY2EM.js +4030 -0
  4. package/dist/_esm-JXHAY2EM.js.map +1 -0
  5. package/dist/ccip-MZCNL5YG.js +15 -0
  6. package/dist/chunk-FJ2PMLO3.js +132 -0
  7. package/dist/chunk-FJ2PMLO3.js.map +1 -0
  8. package/dist/chunk-MCOK75CU.js +3837 -0
  9. package/dist/chunk-MCOK75CU.js.map +1 -0
  10. package/dist/generated/wagmi.d.ts +259 -139
  11. package/dist/generated/wagmi.d.ts.map +1 -1
  12. package/dist/index.cjs +203 -219
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.js +65 -27
  15. package/dist/index.js.map +1 -1
  16. package/dist/secp256k1-NJATWSDZ.js +2395 -0
  17. package/dist/secp256k1-NJATWSDZ.js.map +1 -0
  18. package/dist/typedData.d.ts +12 -3
  19. package/dist/typedData.d.ts.map +1 -1
  20. package/json/1155.json +212 -0
  21. package/json/mints.json +46 -0
  22. package/package/.turbo/turbo-build.log +48 -0
  23. package/{dist/ccip-TLVKUNHE.js → package/dist/ccip-42FQPB7J.js} +2 -2
  24. package/package/dist/ccip-42FQPB7J.js.map +1 -0
  25. package/package/dist/chunk-3EJPJMEH.js +44 -0
  26. package/package/dist/chunk-3EJPJMEH.js.map +1 -0
  27. package/{dist/chunk-IB365BT5.js → package/dist/chunk-YMRS2KON.js} +2 -3
  28. package/package/dist/encoding.d.ts +15 -0
  29. package/package/dist/encoding.d.ts.map +1 -0
  30. package/package/dist/generated/1155.d.ts +232 -0
  31. package/package/dist/generated/1155.d.ts.map +1 -0
  32. package/package/dist/generated/sparks.d.ts +85 -0
  33. package/package/dist/generated/sparks.d.ts.map +1 -0
  34. package/package/dist/generated/wagmi.d.ts +27548 -0
  35. package/package/dist/generated/wagmi.d.ts.map +1 -0
  36. package/package/dist/index.cjs +12957 -0
  37. package/package/dist/index.cjs.map +1 -0
  38. package/package/dist/index.d.ts +7 -0
  39. package/package/dist/index.d.ts.map +1 -0
  40. package/package/dist/index.js +11268 -0
  41. package/package/dist/index.js.map +1 -0
  42. package/package/dist/typedData.d.ts +234 -0
  43. package/package/dist/typedData.d.ts.map +1 -0
  44. package/package/dist/types.d.ts +45 -0
  45. package/package/dist/types.d.ts.map +1 -0
  46. package/package/package/.turbo/turbo-build.log +48 -0
  47. package/package/package/dist/_esm-KB2T7G46.js +3923 -0
  48. package/package/package/dist/_esm-KB2T7G46.js.map +1 -0
  49. package/package/package/dist/ccip-42FQPB7J.js +15 -0
  50. package/package/package/dist/ccip-42FQPB7J.js.map +1 -0
  51. package/package/package/dist/chunk-3EJPJMEH.js +44 -0
  52. package/package/package/dist/chunk-3EJPJMEH.js.map +1 -0
  53. package/package/package/dist/chunk-5JV63AHR.js +129 -0
  54. package/package/package/dist/chunk-5JV63AHR.js.map +1 -0
  55. package/package/package/dist/chunk-YMRS2KON.js +3956 -0
  56. package/package/package/dist/chunk-YMRS2KON.js.map +1 -0
  57. package/package/package/dist/encoding.d.ts +15 -0
  58. package/package/package/dist/encoding.d.ts.map +1 -0
  59. package/package/package/dist/generated/1155.d.ts +232 -0
  60. package/package/package/dist/generated/1155.d.ts.map +1 -0
  61. package/package/package/dist/generated/sparks.d.ts +85 -0
  62. package/package/package/dist/generated/sparks.d.ts.map +1 -0
  63. package/package/package/dist/generated/wagmi.d.ts +27548 -0
  64. package/package/package/dist/generated/wagmi.d.ts.map +1 -0
  65. package/package/package/dist/index.cjs +12957 -0
  66. package/package/package/dist/index.cjs.map +1 -0
  67. package/package/package/dist/index.d.ts +7 -0
  68. package/package/package/dist/index.d.ts.map +1 -0
  69. package/package/package/dist/index.js +11268 -0
  70. package/package/package/dist/index.js.map +1 -0
  71. package/package/package/dist/secp256k1-5CEPNAX3.js +2244 -0
  72. package/package/package/dist/secp256k1-5CEPNAX3.js.map +1 -0
  73. package/package/package/dist/typedData.d.ts +234 -0
  74. package/package/package/dist/typedData.d.ts.map +1 -0
  75. package/package/package/dist/types.d.ts +45 -0
  76. package/package/package/dist/types.d.ts.map +1 -0
  77. package/package.json +4 -5
  78. package/src/generated/wagmi.ts +177 -92
  79. package/src/typedData.ts +12 -3
  80. /package/dist/{ccip-TLVKUNHE.js.map → ccip-MZCNL5YG.js.map} +0 -0
  81. /package/{dist → package/dist}/_esm-KB2T7G46.js +0 -0
  82. /package/{dist → package/dist}/_esm-KB2T7G46.js.map +0 -0
  83. /package/{dist → package/dist}/chunk-5JV63AHR.js +0 -0
  84. /package/{dist → package/dist}/chunk-5JV63AHR.js.map +0 -0
  85. /package/{dist/chunk-IB365BT5.js.map → package/dist/chunk-YMRS2KON.js.map} +0 -0
  86. /package/{dist → package/dist}/secp256k1-5CEPNAX3.js +0 -0
  87. /package/{dist → package/dist}/secp256k1-5CEPNAX3.js.map +0 -0
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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/regex.js
23
+ // ../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/regex.js"() {
29
+ "../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/regex.js"() {
30
30
  "use strict";
31
31
  }
32
32
  });
33
33
 
34
- // ../../node_modules/.pnpm/abitype@1.0.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js
34
+ // ../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiParameter.js"() {
61
+ "../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js
68
+ // ../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiParameters.js"() {
81
+ "../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js
87
+ // ../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/human-readable/formatAbiItem.js"() {
102
+ "../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/exports/index.js
108
+ // ../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/exports/index.js
109
109
  var init_exports = __esm({
110
- "../../node_modules/.pnpm/abitype@1.0.5_typescript@5.5.4_zod@3.23.8/node_modules/abitype/dist/esm/exports/index.js"() {
110
+ "../../node_modules/.pnpm/abitype@1.0.6_typescript@5.5.4_zod@3.23.8/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.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/formatAbiItem.js
116
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/formatAbiItem.js"() {
134
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/isHex.js
140
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/isHex.js
141
141
  function isHex(value, { strict = true } = {}) {
142
142
  if (!value)
143
143
  return false;
@@ -146,44 +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.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/isHex.js"() {
149
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/isHex.js"() {
150
150
  "use strict";
151
151
  }
152
152
  });
153
153
 
154
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/size.js
154
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/size.js"() {
161
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/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.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/version.js
167
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/version.js
168
168
  var version;
169
169
  var init_version = __esm({
170
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/version.js"() {
170
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/version.js"() {
171
171
  "use strict";
172
- version = "2.18.0";
172
+ version = "2.21.21";
173
173
  }
174
174
  });
175
175
 
176
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/utils.js
177
- var getVersion;
178
- var init_utils = __esm({
179
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/utils.js"() {
180
- "use strict";
181
- init_version();
182
- getVersion = () => `viem@${version}`;
183
- }
184
- });
185
-
186
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js
176
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js
187
177
  function walk(err, fn) {
188
178
  if (fn?.(err))
189
179
  return err;
@@ -191,14 +181,39 @@ function walk(err, fn) {
191
181
  return walk(err.cause, fn);
192
182
  return fn ? null : err;
193
183
  }
194
- var BaseError;
184
+ var errorConfig, BaseError;
195
185
  var init_base = __esm({
196
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js"() {
186
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/base.js"() {
197
187
  "use strict";
198
- init_utils();
188
+ init_version();
189
+ errorConfig = {
190
+ getDocsUrl: ({ docsBaseUrl, docsPath = "", docsSlug }) => docsPath ? `${docsBaseUrl ?? "https://viem.sh"}${docsPath}${docsSlug ? `#${docsSlug}` : ""}` : void 0,
191
+ version
192
+ };
199
193
  BaseError = class _BaseError extends Error {
200
194
  constructor(shortMessage, args = {}) {
201
- super();
195
+ const details = (() => {
196
+ if (args.cause instanceof _BaseError)
197
+ return args.cause.details;
198
+ if (args.cause?.message)
199
+ return args.cause.message;
200
+ return args.details;
201
+ })();
202
+ const docsPath = (() => {
203
+ if (args.cause instanceof _BaseError)
204
+ return args.cause.docsPath || args.docsPath;
205
+ return args.docsPath;
206
+ })();
207
+ const docsUrl = errorConfig.getDocsUrl?.({ ...args, docsPath });
208
+ const message = [
209
+ shortMessage || "An error occurred.",
210
+ "",
211
+ ...args.metaMessages ? [...args.metaMessages, ""] : [],
212
+ ...docsUrl ? [`Docs: ${docsUrl}`] : [],
213
+ ...details ? [`Details: ${details}`] : [],
214
+ ...errorConfig.version ? [`Version: ${errorConfig.version}`] : []
215
+ ].join("\n");
216
+ super(message, args.cause ? { cause: args.cause } : void 0);
202
217
  Object.defineProperty(this, "details", {
203
218
  enumerable: true,
204
219
  configurable: true,
@@ -223,36 +238,24 @@ var init_base = __esm({
223
238
  writable: true,
224
239
  value: void 0
225
240
  });
226
- Object.defineProperty(this, "name", {
241
+ Object.defineProperty(this, "version", {
227
242
  enumerable: true,
228
243
  configurable: true,
229
244
  writable: true,
230
- value: "ViemError"
245
+ value: void 0
231
246
  });
232
- Object.defineProperty(this, "version", {
247
+ Object.defineProperty(this, "name", {
233
248
  enumerable: true,
234
249
  configurable: true,
235
250
  writable: true,
236
- value: getVersion()
251
+ value: "BaseError"
237
252
  });
238
- const details = args.cause instanceof _BaseError ? args.cause.details : args.cause?.message ? args.cause.message : args.details;
239
- const docsPath = args.cause instanceof _BaseError ? args.cause.docsPath || args.docsPath : args.docsPath;
240
- this.message = [
241
- shortMessage || "An error occurred.",
242
- "",
243
- ...args.metaMessages ? [...args.metaMessages, ""] : [],
244
- ...docsPath ? [
245
- `Docs: ${args.docsBaseUrl ?? "https://viem.sh"}${docsPath}${args.docsSlug ? `#${args.docsSlug}` : ""}`
246
- ] : [],
247
- ...details ? [`Details: ${details}`] : [],
248
- `Version: ${this.version}`
249
- ].join("\n");
250
- if (args.cause)
251
- this.cause = args.cause;
252
253
  this.details = details;
253
254
  this.docsPath = docsPath;
254
255
  this.metaMessages = args.metaMessages;
256
+ this.name = args.name ?? this.name;
255
257
  this.shortMessage = shortMessage;
258
+ this.version = version;
256
259
  }
257
260
  walk(fn) {
258
261
  return walk(this, fn);
@@ -261,10 +264,10 @@ var init_base = __esm({
261
264
  }
262
265
  });
263
266
 
264
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js
267
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js
265
268
  var AbiEncodingArrayLengthMismatchError, AbiEncodingBytesSizeMismatchError, AbiEncodingLengthMismatchError, AbiItemAmbiguityError, InvalidAbiEncodingTypeError, InvalidArrayError, InvalidDefinitionTypeError;
266
269
  var init_abi = __esm({
267
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js"() {
270
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/abi.js"() {
268
271
  "use strict";
269
272
  init_formatAbiItem2();
270
273
  init_size();
@@ -275,24 +278,12 @@ var init_abi = __esm({
275
278
  `ABI encoding array length mismatch for type ${type}.`,
276
279
  `Expected length: ${expectedLength}`,
277
280
  `Given length: ${givenLength}`
278
- ].join("\n"));
279
- Object.defineProperty(this, "name", {
280
- enumerable: true,
281
- configurable: true,
282
- writable: true,
283
- value: "AbiEncodingArrayLengthMismatchError"
284
- });
281
+ ].join("\n"), { name: "AbiEncodingArrayLengthMismatchError" });
285
282
  }
286
283
  };
287
284
  AbiEncodingBytesSizeMismatchError = class extends BaseError {
288
285
  constructor({ expectedSize, value }) {
289
- super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize}).`);
290
- Object.defineProperty(this, "name", {
291
- enumerable: true,
292
- configurable: true,
293
- writable: true,
294
- value: "AbiEncodingBytesSizeMismatchError"
295
- });
286
+ super(`Size of bytes "${value}" (bytes${size(value)}) does not match expected size (bytes${expectedSize}).`, { name: "AbiEncodingBytesSizeMismatchError" });
296
287
  }
297
288
  };
298
289
  AbiEncodingLengthMismatchError = class extends BaseError {
@@ -301,13 +292,7 @@ var init_abi = __esm({
301
292
  "ABI encoding params/values length mismatch.",
302
293
  `Expected length (params): ${expectedLength}`,
303
294
  `Given length (values): ${givenLength}`
304
- ].join("\n"));
305
- Object.defineProperty(this, "name", {
306
- enumerable: true,
307
- configurable: true,
308
- writable: true,
309
- value: "AbiEncodingLengthMismatchError"
310
- });
295
+ ].join("\n"), { name: "AbiEncodingLengthMismatchError" });
311
296
  }
312
297
  };
313
298
  AbiItemAmbiguityError = class extends BaseError {
@@ -319,13 +304,8 @@ var init_abi = __esm({
319
304
  "",
320
305
  "These types encode differently and cannot be distinguished at runtime.",
321
306
  "Remove one of the ambiguous items in the ABI."
322
- ]
323
- });
324
- Object.defineProperty(this, "name", {
325
- enumerable: true,
326
- configurable: true,
327
- writable: true,
328
- value: "AbiItemAmbiguityError"
307
+ ],
308
+ name: "AbiItemAmbiguityError"
329
309
  });
330
310
  }
331
311
  };
@@ -334,23 +314,13 @@ var init_abi = __esm({
334
314
  super([
335
315
  `Type "${type}" is not a valid encoding type.`,
336
316
  "Please provide a valid ABI type."
337
- ].join("\n"), { docsPath });
338
- Object.defineProperty(this, "name", {
339
- enumerable: true,
340
- configurable: true,
341
- writable: true,
342
- value: "InvalidAbiEncodingType"
343
- });
317
+ ].join("\n"), { docsPath, name: "InvalidAbiEncodingType" });
344
318
  }
345
319
  };
346
320
  InvalidArrayError = class extends BaseError {
347
321
  constructor(value) {
348
- super([`Value "${value}" is not a valid array.`].join("\n"));
349
- Object.defineProperty(this, "name", {
350
- enumerable: true,
351
- configurable: true,
352
- writable: true,
353
- value: "InvalidArrayError"
322
+ super([`Value "${value}" is not a valid array.`].join("\n"), {
323
+ name: "InvalidArrayError"
354
324
  });
355
325
  }
356
326
  };
@@ -359,50 +329,32 @@ var init_abi = __esm({
359
329
  super([
360
330
  `"${type}" is not a valid definition type.`,
361
331
  'Valid types: "function", "event", "error"'
362
- ].join("\n"));
363
- Object.defineProperty(this, "name", {
364
- enumerable: true,
365
- configurable: true,
366
- writable: true,
367
- value: "InvalidDefinitionTypeError"
368
- });
332
+ ].join("\n"), { name: "InvalidDefinitionTypeError" });
369
333
  }
370
334
  };
371
335
  }
372
336
  });
373
337
 
374
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js
338
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js
375
339
  var SliceOffsetOutOfBoundsError, SizeExceedsPaddingSizeError;
376
340
  var init_data = __esm({
377
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js"() {
341
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/data.js"() {
378
342
  "use strict";
379
343
  init_base();
380
344
  SliceOffsetOutOfBoundsError = class extends BaseError {
381
345
  constructor({ offset, position, size: size2 }) {
382
- super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2}).`);
383
- Object.defineProperty(this, "name", {
384
- enumerable: true,
385
- configurable: true,
386
- writable: true,
387
- value: "SliceOffsetOutOfBoundsError"
388
- });
346
+ super(`Slice ${position === "start" ? "starting" : "ending"} at offset "${offset}" is out-of-bounds (size: ${size2}).`, { name: "SliceOffsetOutOfBoundsError" });
389
347
  }
390
348
  };
391
349
  SizeExceedsPaddingSizeError = class extends BaseError {
392
350
  constructor({ size: size2, targetSize, type }) {
393
- super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`);
394
- Object.defineProperty(this, "name", {
395
- enumerable: true,
396
- configurable: true,
397
- writable: true,
398
- value: "SizeExceedsPaddingSizeError"
399
- });
351
+ super(`${type.charAt(0).toUpperCase()}${type.slice(1).toLowerCase()} size (${size2}) exceeds padding size (${targetSize}).`, { name: "SizeExceedsPaddingSizeError" });
400
352
  }
401
353
  };
402
354
  }
403
355
  });
404
356
 
405
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js
357
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js
406
358
  function pad(hexOrBytes, { dir, size: size2 = 32 } = {}) {
407
359
  if (typeof hexOrBytes === "string")
408
360
  return padHex(hexOrBytes, { dir, size: size2 });
@@ -437,44 +389,32 @@ function padBytes(bytes2, { dir, size: size2 = 32 } = {}) {
437
389
  return paddedBytes;
438
390
  }
439
391
  var init_pad = __esm({
440
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js"() {
392
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/pad.js"() {
441
393
  "use strict";
442
394
  init_data();
443
395
  }
444
396
  });
445
397
 
446
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js
398
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js
447
399
  var IntegerOutOfRangeError, SizeOverflowError;
448
400
  var init_encoding = __esm({
449
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js"() {
401
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/encoding.js"() {
450
402
  "use strict";
451
403
  init_base();
452
404
  IntegerOutOfRangeError = class extends BaseError {
453
405
  constructor({ max, min, signed, size: size2, value }) {
454
- super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`);
455
- Object.defineProperty(this, "name", {
456
- enumerable: true,
457
- configurable: true,
458
- writable: true,
459
- value: "IntegerOutOfRangeError"
460
- });
406
+ super(`Number "${value}" is not in safe ${size2 ? `${size2 * 8}-bit ${signed ? "signed" : "unsigned"} ` : ""}integer range ${max ? `(${min} to ${max})` : `(above ${min})`}`, { name: "IntegerOutOfRangeError" });
461
407
  }
462
408
  };
463
409
  SizeOverflowError = class extends BaseError {
464
410
  constructor({ givenSize, maxSize }) {
465
- super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`);
466
- Object.defineProperty(this, "name", {
467
- enumerable: true,
468
- configurable: true,
469
- writable: true,
470
- value: "SizeOverflowError"
471
- });
411
+ super(`Size cannot exceed ${maxSize} bytes. Given size: ${givenSize} bytes.`, { name: "SizeOverflowError" });
472
412
  }
473
413
  };
474
414
  }
475
415
  });
476
416
 
477
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js
417
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js
478
418
  function assertSize(hexOrBytes, { size: size2 }) {
479
419
  if (size(hexOrBytes) > size2)
480
420
  throw new SizeOverflowError({
@@ -483,14 +423,14 @@ function assertSize(hexOrBytes, { size: size2 }) {
483
423
  });
484
424
  }
485
425
  var init_fromHex = __esm({
486
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
426
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/fromHex.js"() {
487
427
  "use strict";
488
428
  init_encoding();
489
429
  init_size();
490
430
  }
491
431
  });
492
432
 
493
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js
433
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js
494
434
  function toHex(value, opts = {}) {
495
435
  if (typeof value === "number" || typeof value === "bigint")
496
436
  return numberToHex(value, opts);
@@ -555,7 +495,7 @@ function stringToHex(value_, opts = {}) {
555
495
  }
556
496
  var hexes, encoder;
557
497
  var init_toHex = __esm({
558
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js"() {
498
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toHex.js"() {
559
499
  "use strict";
560
500
  init_encoding();
561
501
  init_pad();
@@ -565,7 +505,7 @@ var init_toHex = __esm({
565
505
  }
566
506
  });
567
507
 
568
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js
508
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js
569
509
  function toBytes(value, opts = {}) {
570
510
  if (typeof value === "number" || typeof value === "bigint")
571
511
  return numberToBytes(value, opts);
@@ -628,7 +568,7 @@ function stringToBytes(value, opts = {}) {
628
568
  }
629
569
  var encoder2, charCodeMap;
630
570
  var init_toBytes = __esm({
631
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
571
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/encoding/toBytes.js"() {
632
572
  "use strict";
633
573
  init_base();
634
574
  init_isHex();
@@ -647,7 +587,7 @@ var init_toBytes = __esm({
647
587
  }
648
588
  });
649
589
 
650
- // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_assert.js
590
+ // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js
651
591
  function number(n) {
652
592
  if (!Number.isSafeInteger(n) || n < 0)
653
593
  throw new Error(`positive integer expected, not ${n}`);
@@ -675,12 +615,12 @@ function output(out, instance) {
675
615
  }
676
616
  }
677
617
  var init_assert = __esm({
678
- "../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_assert.js"() {
618
+ "../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_assert.js"() {
679
619
  "use strict";
680
620
  }
681
621
  });
682
622
 
683
- // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_u64.js
623
+ // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js
684
624
  function fromBig(n, le = false) {
685
625
  if (le)
686
626
  return { h: Number(n & U32_MASK64), l: Number(n >> _32n & U32_MASK64) };
@@ -697,7 +637,7 @@ function split(lst, le = false) {
697
637
  }
698
638
  var U32_MASK64, _32n, rotlSH, rotlSL, rotlBH, rotlBL;
699
639
  var init_u64 = __esm({
700
- "../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_u64.js"() {
640
+ "../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/_u64.js"() {
701
641
  "use strict";
702
642
  U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1);
703
643
  _32n = /* @__PURE__ */ BigInt(32);
@@ -708,7 +648,7 @@ var init_u64 = __esm({
708
648
  }
709
649
  });
710
650
 
711
- // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/utils.js
651
+ // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js
712
652
  function byteSwap32(arr) {
713
653
  for (let i = 0; i < arr.length; i++) {
714
654
  arr[i] = byteSwap(arr[i]);
@@ -742,8 +682,8 @@ function wrapXOFConstructorWithOpts(hashCons) {
742
682
  return hashC;
743
683
  }
744
684
  var u32, isLE, byteSwap, Hash, toStr;
745
- var init_utils2 = __esm({
746
- "../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/utils.js"() {
685
+ var init_utils = __esm({
686
+ "../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/utils.js"() {
747
687
  "use strict";
748
688
  init_assert();
749
689
  u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4));
@@ -759,7 +699,7 @@ var init_utils2 = __esm({
759
699
  }
760
700
  });
761
701
 
762
- // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/sha3.js
702
+ // ../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js
763
703
  function keccakP(s, rounds = 24) {
764
704
  const B = new Uint32Array(5 * 2);
765
705
  for (let round = 24 - rounds; round < 24; round++) {
@@ -802,11 +742,11 @@ function keccakP(s, rounds = 24) {
802
742
  }
803
743
  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;
804
744
  var init_sha3 = __esm({
805
- "../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/sha3.js"() {
745
+ "../../node_modules/.pnpm/@noble+hashes@1.5.0/node_modules/@noble/hashes/esm/sha3.js"() {
806
746
  "use strict";
807
747
  init_assert();
808
748
  init_u64();
809
- init_utils2();
749
+ init_utils();
810
750
  SHA3_PI = [];
811
751
  SHA3_ROTL = [];
812
752
  _SHA3_IOTA = [];
@@ -954,7 +894,7 @@ var init_sha3 = __esm({
954
894
  }
955
895
  });
956
896
 
957
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js
897
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js
958
898
  function keccak256(value, to_) {
959
899
  const to = to_ || "hex";
960
900
  const bytes2 = keccak_256(isHex(value, { strict: false }) ? toBytes(value) : value);
@@ -963,7 +903,7 @@ function keccak256(value, to_) {
963
903
  return toHex(bytes2);
964
904
  }
965
905
  var init_keccak256 = __esm({
966
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js"() {
906
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/keccak256.js"() {
967
907
  "use strict";
968
908
  init_sha3();
969
909
  init_isHex();
@@ -972,13 +912,13 @@ var init_keccak256 = __esm({
972
912
  }
973
913
  });
974
914
 
975
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js
915
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js
976
916
  function hashSignature(sig) {
977
917
  return hash(sig);
978
918
  }
979
919
  var hash;
980
920
  var init_hashSignature = __esm({
981
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
921
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/hashSignature.js"() {
982
922
  "use strict";
983
923
  init_toBytes();
984
924
  init_keccak256();
@@ -986,7 +926,7 @@ var init_hashSignature = __esm({
986
926
  }
987
927
  });
988
928
 
989
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js
929
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js
990
930
  function normalizeSignature(signature) {
991
931
  let active = true;
992
932
  let current = "";
@@ -1030,16 +970,16 @@ function normalizeSignature(signature) {
1030
970
  return result;
1031
971
  }
1032
972
  var init_normalizeSignature = __esm({
1033
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
973
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/normalizeSignature.js"() {
1034
974
  "use strict";
1035
975
  init_base();
1036
976
  }
1037
977
  });
1038
978
 
1039
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js
979
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js
1040
980
  var toSignature;
1041
981
  var init_toSignature = __esm({
1042
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js"() {
982
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignature.js"() {
1043
983
  "use strict";
1044
984
  init_exports();
1045
985
  init_normalizeSignature();
@@ -1054,32 +994,32 @@ var init_toSignature = __esm({
1054
994
  }
1055
995
  });
1056
996
 
1057
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js
997
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js
1058
998
  function toSignatureHash(fn) {
1059
999
  return hashSignature(toSignature(fn));
1060
1000
  }
1061
1001
  var init_toSignatureHash = __esm({
1062
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
1002
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toSignatureHash.js"() {
1063
1003
  "use strict";
1064
1004
  init_hashSignature();
1065
1005
  init_toSignature();
1066
1006
  }
1067
1007
  });
1068
1008
 
1069
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js
1009
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js
1070
1010
  var toEventSelector;
1071
1011
  var init_toEventSelector = __esm({
1072
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
1012
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toEventSelector.js"() {
1073
1013
  "use strict";
1074
1014
  init_toSignatureHash();
1075
1015
  toEventSelector = toSignatureHash;
1076
1016
  }
1077
1017
  });
1078
1018
 
1079
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js
1019
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js
1080
1020
  var InvalidAddressError;
1081
1021
  var init_address = __esm({
1082
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js"() {
1022
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/address.js"() {
1083
1023
  "use strict";
1084
1024
  init_base();
1085
1025
  InvalidAddressError = class extends BaseError {
@@ -1088,23 +1028,18 @@ var init_address = __esm({
1088
1028
  metaMessages: [
1089
1029
  "- Address must be a hex value of 20 bytes (40 hex characters).",
1090
1030
  "- Address must match its checksum counterpart."
1091
- ]
1092
- });
1093
- Object.defineProperty(this, "name", {
1094
- enumerable: true,
1095
- configurable: true,
1096
- writable: true,
1097
- value: "InvalidAddressError"
1031
+ ],
1032
+ name: "InvalidAddressError"
1098
1033
  });
1099
1034
  }
1100
1035
  };
1101
1036
  }
1102
1037
  });
1103
1038
 
1104
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js
1039
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js
1105
1040
  var LruMap;
1106
1041
  var init_lru = __esm({
1107
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js"() {
1042
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/lru.js"() {
1108
1043
  "use strict";
1109
1044
  LruMap = class extends Map {
1110
1045
  constructor(size2) {
@@ -1117,17 +1052,28 @@ var init_lru = __esm({
1117
1052
  });
1118
1053
  this.maxSize = size2;
1119
1054
  }
1055
+ get(key) {
1056
+ const value = super.get(key);
1057
+ if (super.has(key) && value !== void 0) {
1058
+ this.delete(key);
1059
+ super.set(key, value);
1060
+ }
1061
+ return value;
1062
+ }
1120
1063
  set(key, value) {
1121
1064
  super.set(key, value);
1122
- if (this.maxSize && this.size > this.maxSize)
1123
- this.delete(this.keys().next().value);
1065
+ if (this.maxSize && this.size > this.maxSize) {
1066
+ const firstKey = this.keys().next().value;
1067
+ if (firstKey)
1068
+ this.delete(firstKey);
1069
+ }
1124
1070
  return this;
1125
1071
  }
1126
1072
  };
1127
1073
  }
1128
1074
  });
1129
1075
 
1130
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js
1076
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js
1131
1077
  function checksumAddress(address_, chainId) {
1132
1078
  if (checksumAddressCache.has(`${address_}.${chainId}`))
1133
1079
  return checksumAddressCache.get(`${address_}.${chainId}`);
@@ -1148,7 +1094,7 @@ function checksumAddress(address_, chainId) {
1148
1094
  }
1149
1095
  var checksumAddressCache;
1150
1096
  var init_getAddress = __esm({
1151
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js"() {
1097
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/getAddress.js"() {
1152
1098
  "use strict";
1153
1099
  init_toBytes();
1154
1100
  init_keccak256();
@@ -1157,7 +1103,7 @@ var init_getAddress = __esm({
1157
1103
  }
1158
1104
  });
1159
1105
 
1160
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js
1106
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js
1161
1107
  function isAddress(address, options) {
1162
1108
  const { strict = true } = options ?? {};
1163
1109
  const cacheKey = `${address}.${strict}`;
@@ -1177,7 +1123,7 @@ function isAddress(address, options) {
1177
1123
  }
1178
1124
  var addressRegex, isAddressCache;
1179
1125
  var init_isAddress = __esm({
1180
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js"() {
1126
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/address/isAddress.js"() {
1181
1127
  "use strict";
1182
1128
  init_lru();
1183
1129
  init_getAddress();
@@ -1186,7 +1132,7 @@ var init_isAddress = __esm({
1186
1132
  }
1187
1133
  });
1188
1134
 
1189
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js
1135
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js
1190
1136
  function concat(values) {
1191
1137
  if (typeof values[0] === "string")
1192
1138
  return concatHex(values);
@@ -1209,12 +1155,12 @@ function concatHex(values) {
1209
1155
  return `0x${values.reduce((acc, x) => acc + x.replace("0x", ""), "")}`;
1210
1156
  }
1211
1157
  var init_concat = __esm({
1212
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js"() {
1158
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/concat.js"() {
1213
1159
  "use strict";
1214
1160
  }
1215
1161
  });
1216
1162
 
1217
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js
1163
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js
1218
1164
  function slice(value, start, end, { strict } = {}) {
1219
1165
  if (isHex(value, { strict: false }))
1220
1166
  return sliceHex(value, start, end, {
@@ -1256,7 +1202,7 @@ function sliceHex(value_, start, end, { strict } = {}) {
1256
1202
  return value;
1257
1203
  }
1258
1204
  var init_slice = __esm({
1259
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js"() {
1205
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/data/slice.js"() {
1260
1206
  "use strict";
1261
1207
  init_data();
1262
1208
  init_isHex();
@@ -1264,7 +1210,7 @@ var init_slice = __esm({
1264
1210
  }
1265
1211
  });
1266
1212
 
1267
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1213
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js
1268
1214
  function encodeAbiParameters(params, values) {
1269
1215
  if (params.length !== values.length)
1270
1216
  throw new AbiEncodingLengthMismatchError({
@@ -1462,7 +1408,7 @@ function getArrayComponents(type) {
1462
1408
  ) : void 0;
1463
1409
  }
1464
1410
  var init_encodeAbiParameters = __esm({
1465
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
1411
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/encodeAbiParameters.js"() {
1466
1412
  "use strict";
1467
1413
  init_abi();
1468
1414
  init_address();
@@ -1476,10 +1422,10 @@ var init_encodeAbiParameters = __esm({
1476
1422
  }
1477
1423
  });
1478
1424
 
1479
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1425
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js
1480
1426
  var toFunctionSelector;
1481
1427
  var init_toFunctionSelector = __esm({
1482
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
1428
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/hash/toFunctionSelector.js"() {
1483
1429
  "use strict";
1484
1430
  init_slice();
1485
1431
  init_toSignatureHash();
@@ -1487,7 +1433,7 @@ var init_toFunctionSelector = __esm({
1487
1433
  }
1488
1434
  });
1489
1435
 
1490
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js
1436
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js
1491
1437
  function getAbiItem(parameters) {
1492
1438
  const { abi, args = [], name } = parameters;
1493
1439
  const isSelector = isHex(name, { strict: false });
@@ -1599,7 +1545,7 @@ function getAmbiguousTypes(sourceParameters, targetParameters, args) {
1599
1545
  return;
1600
1546
  }
1601
1547
  var init_getAbiItem = __esm({
1602
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
1548
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/abi/getAbiItem.js"() {
1603
1549
  "use strict";
1604
1550
  init_abi();
1605
1551
  init_isHex();
@@ -1609,10 +1555,10 @@ var init_getAbiItem = __esm({
1609
1555
  }
1610
1556
  });
1611
1557
 
1612
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js
1558
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js
1613
1559
  var etherUnits;
1614
1560
  var init_unit = __esm({
1615
- "../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js"() {
1561
+ "../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/constants/unit.js"() {
1616
1562
  "use strict";
1617
1563
  etherUnits = {
1618
1564
  gwei: 9,
@@ -1712,7 +1658,8 @@ var commentsABI = [
1712
1658
  type: "constructor",
1713
1659
  inputs: [
1714
1660
  { name: "_sparkValue", internalType: "uint256", type: "uint256" },
1715
- { name: "_protocolRewards", internalType: "address", type: "address" }
1661
+ { name: "_protocolRewards", internalType: "address", type: "address" },
1662
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
1716
1663
  ]
1717
1664
  },
1718
1665
  {
@@ -1733,7 +1680,7 @@ var commentsABI = [
1733
1680
  stateMutability: "view",
1734
1681
  type: "function",
1735
1682
  inputs: [],
1736
- name: "DELEGATE_COMMENTOR",
1683
+ name: "DELEGATE_COMMENTER",
1737
1684
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1738
1685
  },
1739
1686
  {
@@ -1830,6 +1777,11 @@ var commentsABI = [
1830
1777
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
1831
1778
  ]
1832
1779
  },
1780
+ {
1781
+ name: "commenterSmartWallet",
1782
+ internalType: "address",
1783
+ type: "address"
1784
+ },
1833
1785
  { name: "referrer", internalType: "address", type: "address" }
1834
1786
  ],
1835
1787
  name: "comment",
@@ -1864,7 +1816,7 @@ var commentsABI = [
1864
1816
  }
1865
1817
  ],
1866
1818
  name: "commentSparksQuantity",
1867
- outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
1819
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1868
1820
  },
1869
1821
  {
1870
1822
  stateMutability: "pure",
@@ -2027,6 +1979,11 @@ var commentsABI = [
2027
1979
  type: "tuple",
2028
1980
  components: [
2029
1981
  { name: "commenter", internalType: "address", type: "address" },
1982
+ {
1983
+ name: "commenterSmartWallet",
1984
+ internalType: "address",
1985
+ type: "address"
1986
+ },
2030
1987
  { name: "contractAddress", internalType: "address", type: "address" },
2031
1988
  { name: "tokenId", internalType: "uint256", type: "uint256" },
2032
1989
  {
@@ -2045,9 +2002,9 @@ var commentsABI = [
2045
2002
  ]
2046
2003
  },
2047
2004
  { name: "text", internalType: "string", type: "string" },
2005
+ { name: "referrer", internalType: "address", type: "address" },
2048
2006
  { name: "deadline", internalType: "uint256", type: "uint256" },
2049
2007
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
2050
- { name: "referrer", internalType: "address", type: "address" },
2051
2008
  { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2052
2009
  {
2053
2010
  name: "destinationChainId",
@@ -2085,7 +2042,7 @@ var commentsABI = [
2085
2042
  ]
2086
2043
  },
2087
2044
  { name: "sparker", internalType: "address", type: "address" },
2088
- { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
2045
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2089
2046
  { name: "deadline", internalType: "uint256", type: "uint256" },
2090
2047
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
2091
2048
  { name: "referrer", internalType: "address", type: "address" },
@@ -2112,7 +2069,6 @@ var commentsABI = [
2112
2069
  stateMutability: "nonpayable",
2113
2070
  type: "function",
2114
2071
  inputs: [
2115
- { name: "_zoraRecipient", internalType: "address", type: "address" },
2116
2072
  { name: "defaultAdmin", internalType: "address", type: "address" },
2117
2073
  { name: "backfiller", internalType: "address", type: "address" },
2118
2074
  {
@@ -2136,7 +2092,7 @@ var commentsABI = [
2136
2092
  type: "function",
2137
2093
  inputs: [
2138
2094
  { name: "owner", internalType: "address", type: "address" },
2139
- { name: "nonce", internalType: "uint256", type: "uint256" }
2095
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
2140
2096
  ],
2141
2097
  name: "nonceUsed",
2142
2098
  outputs: [{ name: "", internalType: "bool", type: "bool" }]
@@ -2151,6 +2107,11 @@ var commentsABI = [
2151
2107
  type: "tuple",
2152
2108
  components: [
2153
2109
  { name: "commenter", internalType: "address", type: "address" },
2110
+ {
2111
+ name: "commenterSmartWallet",
2112
+ internalType: "address",
2113
+ type: "address"
2114
+ },
2154
2115
  { name: "contractAddress", internalType: "address", type: "address" },
2155
2116
  { name: "tokenId", internalType: "uint256", type: "uint256" },
2156
2117
  {
@@ -2169,9 +2130,9 @@ var commentsABI = [
2169
2130
  ]
2170
2131
  },
2171
2132
  { name: "text", internalType: "string", type: "string" },
2133
+ { name: "referrer", internalType: "address", type: "address" },
2172
2134
  { name: "deadline", internalType: "uint256", type: "uint256" },
2173
2135
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
2174
- { name: "referrer", internalType: "address", type: "address" },
2175
2136
  { name: "sourceChainId", internalType: "uint32", type: "uint32" },
2176
2137
  {
2177
2138
  name: "destinationChainId",
@@ -2210,7 +2171,7 @@ var commentsABI = [
2210
2171
  ]
2211
2172
  },
2212
2173
  { name: "sparker", internalType: "address", type: "address" },
2213
- { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
2174
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2214
2175
  { name: "deadline", internalType: "uint256", type: "uint256" },
2215
2176
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
2216
2177
  { name: "referrer", internalType: "address", type: "address" },
@@ -2278,7 +2239,7 @@ var commentsABI = [
2278
2239
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
2279
2240
  ]
2280
2241
  },
2281
- { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
2242
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
2282
2243
  { name: "referrer", internalType: "address", type: "address" }
2283
2244
  ],
2284
2245
  name: "sparkComment",
@@ -2319,7 +2280,7 @@ var commentsABI = [
2319
2280
  indexed: true
2320
2281
  },
2321
2282
  {
2322
- name: "comment",
2283
+ name: "commentIdentifier",
2323
2284
  internalType: "struct IComments.CommentIdentifier",
2324
2285
  type: "tuple",
2325
2286
  components: [
@@ -2357,7 +2318,7 @@ var commentsABI = [
2357
2318
  indexed: true
2358
2319
  },
2359
2320
  {
2360
- name: "comment",
2321
+ name: "commentIdentifier",
2361
2322
  internalType: "struct IComments.CommentIdentifier",
2362
2323
  type: "tuple",
2363
2324
  components: [
@@ -2388,8 +2349,8 @@ var commentsABI = [
2388
2349
  },
2389
2350
  {
2390
2351
  name: "sparksQuantity",
2391
- internalType: "uint64",
2392
- type: "uint64",
2352
+ internalType: "uint256",
2353
+ type: "uint256",
2393
2354
  indexed: false
2394
2355
  },
2395
2356
  { name: "text", internalType: "string", type: "string", indexed: false },
@@ -2506,8 +2467,8 @@ var commentsABI = [
2506
2467
  },
2507
2468
  {
2508
2469
  name: "sparksQuantity",
2509
- internalType: "uint64",
2510
- type: "uint64",
2470
+ internalType: "uint256",
2471
+ type: "uint256",
2511
2472
  indexed: false
2512
2473
  },
2513
2474
  {
@@ -2521,6 +2482,12 @@ var commentsABI = [
2521
2482
  internalType: "uint256",
2522
2483
  type: "uint256",
2523
2484
  indexed: false
2485
+ },
2486
+ {
2487
+ name: "referrer",
2488
+ internalType: "address",
2489
+ type: "address",
2490
+ indexed: false
2524
2491
  }
2525
2492
  ],
2526
2493
  name: "SparkedComment"
@@ -2616,14 +2583,17 @@ var commentsABI = [
2616
2583
  type: "error",
2617
2584
  inputs: [
2618
2585
  { name: "account", internalType: "address", type: "address" },
2619
- { name: "currentNonce", internalType: "uint256", type: "uint256" }
2586
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
2620
2587
  ],
2621
2588
  name: "InvalidAccountNonce"
2622
2589
  },
2623
2590
  { type: "error", inputs: [], name: "InvalidInitialization" },
2624
2591
  { type: "error", inputs: [], name: "InvalidSignature" },
2625
2592
  { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
2593
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
2626
2594
  { type: "error", inputs: [], name: "NotInitializing" },
2595
+ { type: "error", inputs: [], name: "NotSmartWallet" },
2596
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
2627
2597
  { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
2628
2598
  { type: "error", inputs: [], name: "OnlySparksContract" },
2629
2599
  { type: "error", inputs: [], name: "TransferFailed" },
@@ -2643,7 +2613,8 @@ var commentsABI = [
2643
2613
  }
2644
2614
  ];
2645
2615
  var commentsAddress = {
2646
- 999999999: "0x7777777bE14a1F7Fd6896B5FBDa5ceD5FC6e501a"
2616
+ 7777777: "0x8C0757EFfD2Cc68F00810d2d144F729F6ed5CdA3",
2617
+ 999999999: "0xA29a072Edd91CF501115f6B77D145417c498A09c"
2647
2618
  };
2648
2619
  var commentsConfig = {
2649
2620
  address: commentsAddress,
@@ -13266,8 +13237,20 @@ var zoraTimedSaleStrategyConfig = {
13266
13237
  abi: zoraTimedSaleStrategyABI
13267
13238
  };
13268
13239
 
13269
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseUnits.js
13240
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/errors/unit.js
13241
+ init_base();
13242
+ var InvalidDecimalNumberError = class extends BaseError {
13243
+ constructor({ value }) {
13244
+ super(`Number \`${value}\` is not a valid decimal number.`, {
13245
+ name: "InvalidDecimalNumberError"
13246
+ });
13247
+ }
13248
+ };
13249
+
13250
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseUnits.js
13270
13251
  function parseUnits(value, decimals) {
13252
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
13253
+ throw new InvalidDecimalNumberError({ value });
13271
13254
  let [integer, fraction = "0"] = value.split(".");
13272
13255
  const negative = integer.startsWith("-");
13273
13256
  if (negative)
@@ -13299,13 +13282,13 @@ function parseUnits(value, decimals) {
13299
13282
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
13300
13283
  }
13301
13284
 
13302
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseEther.js
13285
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseEther.js
13303
13286
  init_unit();
13304
13287
  function parseEther(ether, unit = "wei") {
13305
13288
  return parseUnits(ether, etherUnits[unit]);
13306
13289
  }
13307
13290
 
13308
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
13291
+ // ../../node_modules/.pnpm/viem@2.21.21_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/index.js
13309
13292
  init_encodeAbiParameters();
13310
13293
  init_getAbiItem();
13311
13294
  init_toHex();
@@ -13633,6 +13616,7 @@ var permitCommentTypedDataType = {
13633
13616
  { name: "text", type: "string" },
13634
13617
  { name: "deadline", type: "uint256" },
13635
13618
  { name: "nonce", type: "bytes32" },
13619
+ { name: "commenterSmartWallet", type: "address" },
13636
13620
  { name: "referrer", type: "address" },
13637
13621
  { name: "sourceChainId", type: "uint32" },
13638
13622
  { name: "destinationChainId", type: "uint32" }
@@ -13643,7 +13627,7 @@ var permitSparkCommentTypedDataType = {
13643
13627
  PermitSparkComment: [
13644
13628
  { name: "comment", type: "CommentIdentifier" },
13645
13629
  { name: "sparker", type: "address" },
13646
- { name: "sparksQuantity", type: "uint64" },
13630
+ { name: "sparksQuantity", type: "uint256" },
13647
13631
  { name: "deadline", type: "uint256" },
13648
13632
  { name: "nonce", type: "bytes32" },
13649
13633
  { name: "referrer", type: "address" },
@@ -13661,7 +13645,7 @@ var commentsDomain = ({
13661
13645
  version: "1",
13662
13646
  verifyingContract: commentsAddress[destinationChainId]
13663
13647
  });
13664
- var permitCommentTypedDataDefinition = (message) => ({
13648
+ var permitCommentTypedDataDefinition = (message, signingAccount) => ({
13665
13649
  types: permitCommentTypedDataType,
13666
13650
  message,
13667
13651
  primaryType: "PermitComment",
@@ -13669,9 +13653,9 @@ var permitCommentTypedDataDefinition = (message) => ({
13669
13653
  signingChainId: message.sourceChainId,
13670
13654
  destinationChainId: message.destinationChainId
13671
13655
  }),
13672
- account: message.commenter
13656
+ account: signingAccount || message.commenter
13673
13657
  });
13674
- var permitSparkCommentTypedDataDefinition = (message) => ({
13658
+ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
13675
13659
  types: permitSparkCommentTypedDataType,
13676
13660
  message,
13677
13661
  primaryType: "PermitSparkComment",
@@ -13679,7 +13663,7 @@ var permitSparkCommentTypedDataDefinition = (message) => ({
13679
13663
  signingChainId: message.sourceChainId,
13680
13664
  destinationChainId: message.destinationChainId
13681
13665
  }),
13682
- account: message.sparker
13666
+ account: signingAccount || message.sparker
13683
13667
  });
13684
13668
  var sparkValue = () => parseEther("0.000001");
13685
13669