@zoralabs/protocol-deployments 0.3.8 → 0.3.9-COMMENTS.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.js CHANGED
@@ -1,15 +1,2031 @@
1
1
  import {
2
+ BaseError,
2
3
  encodeAbiParameters,
4
+ etherUnits,
3
5
  getAbiItem,
4
6
  keccak256,
5
7
  toHex
6
- } from "./chunk-BKKE6NTH.js";
8
+ } from "./chunk-MCOK75CU.js";
7
9
  import "./chunk-FJ2PMLO3.js";
8
10
  import {
9
11
  __export
10
12
  } from "./chunk-3EJPJMEH.js";
11
13
 
12
14
  // src/generated/wagmi.ts
15
+ var callerAndCommenterABI = [
16
+ {
17
+ stateMutability: "nonpayable",
18
+ type: "constructor",
19
+ inputs: [
20
+ { name: "_comments", internalType: "address", type: "address" },
21
+ { name: "_zoraTimedSale", internalType: "address", type: "address" },
22
+ { name: "_swapHelper", internalType: "address", type: "address" },
23
+ { name: "_sparksValue", internalType: "uint256", type: "uint256" }
24
+ ]
25
+ },
26
+ {
27
+ stateMutability: "view",
28
+ type: "function",
29
+ inputs: [],
30
+ name: "UPGRADE_INTERFACE_VERSION",
31
+ outputs: [{ name: "", internalType: "string", type: "string" }]
32
+ },
33
+ {
34
+ stateMutability: "nonpayable",
35
+ type: "function",
36
+ inputs: [],
37
+ name: "acceptOwnership",
38
+ outputs: []
39
+ },
40
+ {
41
+ stateMutability: "payable",
42
+ type: "function",
43
+ inputs: [
44
+ { name: "commenter", internalType: "address", type: "address" },
45
+ { name: "quantity", internalType: "uint256", type: "uint256" },
46
+ { name: "collection", internalType: "address", type: "address" },
47
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
48
+ {
49
+ name: "excessRefundRecipient",
50
+ internalType: "address payable",
51
+ type: "address"
52
+ },
53
+ { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
54
+ { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
55
+ { name: "comment", internalType: "string", type: "string" }
56
+ ],
57
+ name: "buyOnSecondaryAndComment",
58
+ outputs: [
59
+ {
60
+ name: "",
61
+ internalType: "struct IComments.CommentIdentifier",
62
+ type: "tuple",
63
+ components: [
64
+ { name: "commenter", internalType: "address", type: "address" },
65
+ { name: "contractAddress", internalType: "address", type: "address" },
66
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
67
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ stateMutability: "view",
74
+ type: "function",
75
+ inputs: [],
76
+ name: "comments",
77
+ outputs: [
78
+ { name: "", internalType: "contract IComments", type: "address" }
79
+ ]
80
+ },
81
+ {
82
+ stateMutability: "pure",
83
+ type: "function",
84
+ inputs: [],
85
+ name: "contractName",
86
+ outputs: [{ name: "", internalType: "string", type: "string" }]
87
+ },
88
+ {
89
+ stateMutability: "pure",
90
+ type: "function",
91
+ inputs: [],
92
+ name: "contractVersion",
93
+ outputs: [{ name: "", internalType: "string", type: "string" }]
94
+ },
95
+ {
96
+ stateMutability: "view",
97
+ type: "function",
98
+ inputs: [],
99
+ name: "eip712Domain",
100
+ outputs: [
101
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
102
+ { name: "name", internalType: "string", type: "string" },
103
+ { name: "version", internalType: "string", type: "string" },
104
+ { name: "chainId", internalType: "uint256", type: "uint256" },
105
+ { name: "verifyingContract", internalType: "address", type: "address" },
106
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
107
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
108
+ ]
109
+ },
110
+ {
111
+ stateMutability: "view",
112
+ type: "function",
113
+ inputs: [
114
+ {
115
+ name: "permit",
116
+ internalType: "struct ICallerAndCommenter.PermitBuyOnSecondaryAndComment",
117
+ type: "tuple",
118
+ components: [
119
+ { name: "commenter", internalType: "address", type: "address" },
120
+ { name: "quantity", internalType: "uint256", type: "uint256" },
121
+ { name: "collection", internalType: "address", type: "address" },
122
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
123
+ { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
124
+ {
125
+ name: "sqrtPriceLimitX96",
126
+ internalType: "uint160",
127
+ type: "uint160"
128
+ },
129
+ { name: "comment", internalType: "string", type: "string" },
130
+ { name: "deadline", internalType: "uint256", type: "uint256" },
131
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
132
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
133
+ {
134
+ name: "destinationChainId",
135
+ internalType: "uint32",
136
+ type: "uint32"
137
+ }
138
+ ]
139
+ }
140
+ ],
141
+ name: "hashPermitBuyOnSecondaryAndComment",
142
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
143
+ },
144
+ {
145
+ stateMutability: "view",
146
+ type: "function",
147
+ inputs: [
148
+ {
149
+ name: "permit",
150
+ internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
151
+ type: "tuple",
152
+ components: [
153
+ { name: "commenter", internalType: "address", type: "address" },
154
+ { name: "quantity", internalType: "uint256", type: "uint256" },
155
+ { name: "collection", internalType: "address", type: "address" },
156
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
157
+ { name: "mintReferral", internalType: "address", type: "address" },
158
+ { name: "comment", internalType: "string", type: "string" },
159
+ { name: "deadline", internalType: "uint256", type: "uint256" },
160
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
161
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
162
+ {
163
+ name: "destinationChainId",
164
+ internalType: "uint32",
165
+ type: "uint32"
166
+ }
167
+ ]
168
+ }
169
+ ],
170
+ name: "hashPermitTimedSaleMintAndComment",
171
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
172
+ },
173
+ {
174
+ stateMutability: "nonpayable",
175
+ type: "function",
176
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
177
+ name: "initialize",
178
+ outputs: []
179
+ },
180
+ {
181
+ stateMutability: "view",
182
+ type: "function",
183
+ inputs: [
184
+ { name: "owner", internalType: "address", type: "address" },
185
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
186
+ ],
187
+ name: "nonceUsed",
188
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
189
+ },
190
+ {
191
+ stateMutability: "view",
192
+ type: "function",
193
+ inputs: [],
194
+ name: "owner",
195
+ outputs: [{ name: "", internalType: "address", type: "address" }]
196
+ },
197
+ {
198
+ stateMutability: "view",
199
+ type: "function",
200
+ inputs: [],
201
+ name: "pendingOwner",
202
+ outputs: [{ name: "", internalType: "address", type: "address" }]
203
+ },
204
+ {
205
+ stateMutability: "payable",
206
+ type: "function",
207
+ inputs: [
208
+ {
209
+ name: "permit",
210
+ internalType: "struct ICallerAndCommenter.PermitBuyOnSecondaryAndComment",
211
+ type: "tuple",
212
+ components: [
213
+ { name: "commenter", internalType: "address", type: "address" },
214
+ { name: "quantity", internalType: "uint256", type: "uint256" },
215
+ { name: "collection", internalType: "address", type: "address" },
216
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
217
+ { name: "maxEthToSpend", internalType: "uint256", type: "uint256" },
218
+ {
219
+ name: "sqrtPriceLimitX96",
220
+ internalType: "uint160",
221
+ type: "uint160"
222
+ },
223
+ { name: "comment", internalType: "string", type: "string" },
224
+ { name: "deadline", internalType: "uint256", type: "uint256" },
225
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
226
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
227
+ {
228
+ name: "destinationChainId",
229
+ internalType: "uint32",
230
+ type: "uint32"
231
+ }
232
+ ]
233
+ },
234
+ { name: "signature", internalType: "bytes", type: "bytes" }
235
+ ],
236
+ name: "permitBuyOnSecondaryAndComment",
237
+ outputs: [
238
+ {
239
+ name: "",
240
+ internalType: "struct IComments.CommentIdentifier",
241
+ type: "tuple",
242
+ components: [
243
+ { name: "commenter", internalType: "address", type: "address" },
244
+ { name: "contractAddress", internalType: "address", type: "address" },
245
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
246
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
247
+ ]
248
+ }
249
+ ]
250
+ },
251
+ {
252
+ stateMutability: "payable",
253
+ type: "function",
254
+ inputs: [
255
+ {
256
+ name: "permit",
257
+ internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
258
+ type: "tuple",
259
+ components: [
260
+ { name: "commenter", internalType: "address", type: "address" },
261
+ { name: "quantity", internalType: "uint256", type: "uint256" },
262
+ { name: "collection", internalType: "address", type: "address" },
263
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
264
+ { name: "mintReferral", internalType: "address", type: "address" },
265
+ { name: "comment", internalType: "string", type: "string" },
266
+ { name: "deadline", internalType: "uint256", type: "uint256" },
267
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
268
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
269
+ {
270
+ name: "destinationChainId",
271
+ internalType: "uint32",
272
+ type: "uint32"
273
+ }
274
+ ]
275
+ },
276
+ { name: "signature", internalType: "bytes", type: "bytes" }
277
+ ],
278
+ name: "permitTimedSaleMintAndComment",
279
+ outputs: [
280
+ {
281
+ name: "",
282
+ internalType: "struct IComments.CommentIdentifier",
283
+ type: "tuple",
284
+ components: [
285
+ { name: "commenter", internalType: "address", type: "address" },
286
+ { name: "contractAddress", internalType: "address", type: "address" },
287
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
288
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
289
+ ]
290
+ }
291
+ ]
292
+ },
293
+ {
294
+ stateMutability: "view",
295
+ type: "function",
296
+ inputs: [],
297
+ name: "proxiableUUID",
298
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
299
+ },
300
+ {
301
+ stateMutability: "nonpayable",
302
+ type: "function",
303
+ inputs: [],
304
+ name: "renounceOwnership",
305
+ outputs: []
306
+ },
307
+ {
308
+ stateMutability: "view",
309
+ type: "function",
310
+ inputs: [],
311
+ name: "secondarySwap",
312
+ outputs: [
313
+ { name: "", internalType: "contract ISecondarySwap", type: "address" }
314
+ ]
315
+ },
316
+ {
317
+ stateMutability: "payable",
318
+ type: "function",
319
+ inputs: [
320
+ { name: "commenter", internalType: "address", type: "address" },
321
+ { name: "quantity", internalType: "uint256", type: "uint256" },
322
+ { name: "collection", internalType: "address", type: "address" },
323
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
324
+ { name: "recipient", internalType: "address payable", type: "address" },
325
+ { name: "minEthToAcquire", internalType: "uint256", type: "uint256" },
326
+ { name: "sqrtPriceLimitX96", internalType: "uint160", type: "uint160" },
327
+ { name: "comment", internalType: "string", type: "string" }
328
+ ],
329
+ name: "sellOnSecondaryAndComment",
330
+ outputs: [
331
+ {
332
+ name: "commentIdentifier",
333
+ internalType: "struct IComments.CommentIdentifier",
334
+ type: "tuple",
335
+ components: [
336
+ { name: "commenter", internalType: "address", type: "address" },
337
+ { name: "contractAddress", internalType: "address", type: "address" },
338
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
339
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
340
+ ]
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ stateMutability: "view",
346
+ type: "function",
347
+ inputs: [],
348
+ name: "sparkValue",
349
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
350
+ },
351
+ {
352
+ stateMutability: "payable",
353
+ type: "function",
354
+ inputs: [
355
+ { name: "commenter", internalType: "address", type: "address" },
356
+ { name: "quantity", internalType: "uint256", type: "uint256" },
357
+ { name: "collection", internalType: "address", type: "address" },
358
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
359
+ { name: "mintReferral", internalType: "address", type: "address" },
360
+ { name: "comment", internalType: "string", type: "string" }
361
+ ],
362
+ name: "timedSaleMintAndComment",
363
+ outputs: [
364
+ {
365
+ name: "",
366
+ internalType: "struct IComments.CommentIdentifier",
367
+ type: "tuple",
368
+ components: [
369
+ { name: "commenter", internalType: "address", type: "address" },
370
+ { name: "contractAddress", internalType: "address", type: "address" },
371
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
372
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
373
+ ]
374
+ }
375
+ ]
376
+ },
377
+ {
378
+ stateMutability: "nonpayable",
379
+ type: "function",
380
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
381
+ name: "transferOwnership",
382
+ outputs: []
383
+ },
384
+ {
385
+ stateMutability: "payable",
386
+ type: "function",
387
+ inputs: [
388
+ { name: "newImplementation", internalType: "address", type: "address" },
389
+ { name: "data", internalType: "bytes", type: "bytes" }
390
+ ],
391
+ name: "upgradeToAndCall",
392
+ outputs: []
393
+ },
394
+ {
395
+ stateMutability: "view",
396
+ type: "function",
397
+ inputs: [],
398
+ name: "zoraTimedSale",
399
+ outputs: [
400
+ {
401
+ name: "",
402
+ internalType: "contract IZoraTimedSaleStrategy",
403
+ type: "address"
404
+ }
405
+ ]
406
+ },
407
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
408
+ {
409
+ type: "event",
410
+ anonymous: false,
411
+ inputs: [
412
+ {
413
+ name: "version",
414
+ internalType: "uint64",
415
+ type: "uint64",
416
+ indexed: false
417
+ }
418
+ ],
419
+ name: "Initialized"
420
+ },
421
+ {
422
+ type: "event",
423
+ anonymous: false,
424
+ inputs: [
425
+ {
426
+ name: "commentId",
427
+ internalType: "bytes32",
428
+ type: "bytes32",
429
+ indexed: true
430
+ },
431
+ {
432
+ name: "commentIdentifier",
433
+ internalType: "struct IComments.CommentIdentifier",
434
+ type: "tuple",
435
+ components: [
436
+ { name: "commenter", internalType: "address", type: "address" },
437
+ { name: "contractAddress", internalType: "address", type: "address" },
438
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
439
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
440
+ ],
441
+ indexed: false
442
+ },
443
+ {
444
+ name: "quantity",
445
+ internalType: "uint256",
446
+ type: "uint256",
447
+ indexed: false
448
+ },
449
+ { name: "text", internalType: "string", type: "string", indexed: false }
450
+ ],
451
+ name: "MintedAndCommented"
452
+ },
453
+ {
454
+ type: "event",
455
+ anonymous: false,
456
+ inputs: [
457
+ {
458
+ name: "previousOwner",
459
+ internalType: "address",
460
+ type: "address",
461
+ indexed: true
462
+ },
463
+ {
464
+ name: "newOwner",
465
+ internalType: "address",
466
+ type: "address",
467
+ indexed: true
468
+ }
469
+ ],
470
+ name: "OwnershipTransferStarted"
471
+ },
472
+ {
473
+ type: "event",
474
+ anonymous: false,
475
+ inputs: [
476
+ {
477
+ name: "previousOwner",
478
+ internalType: "address",
479
+ type: "address",
480
+ indexed: true
481
+ },
482
+ {
483
+ name: "newOwner",
484
+ internalType: "address",
485
+ type: "address",
486
+ indexed: true
487
+ }
488
+ ],
489
+ name: "OwnershipTransferred"
490
+ },
491
+ {
492
+ type: "event",
493
+ anonymous: false,
494
+ inputs: [
495
+ {
496
+ name: "commentId",
497
+ internalType: "bytes32",
498
+ type: "bytes32",
499
+ indexed: true
500
+ },
501
+ {
502
+ name: "commentIdentifier",
503
+ internalType: "struct IComments.CommentIdentifier",
504
+ type: "tuple",
505
+ components: [
506
+ { name: "commenter", internalType: "address", type: "address" },
507
+ { name: "contractAddress", internalType: "address", type: "address" },
508
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
509
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
510
+ ],
511
+ indexed: false
512
+ },
513
+ {
514
+ name: "quantity",
515
+ internalType: "uint256",
516
+ type: "uint256",
517
+ indexed: true
518
+ },
519
+ {
520
+ name: "comment",
521
+ internalType: "string",
522
+ type: "string",
523
+ indexed: false
524
+ },
525
+ {
526
+ name: "swapDirection",
527
+ internalType: "enum ICallerAndCommenter.SwapDirection",
528
+ type: "uint8",
529
+ indexed: true
530
+ }
531
+ ],
532
+ name: "SwappedOnSecondaryAndCommented"
533
+ },
534
+ {
535
+ type: "event",
536
+ anonymous: false,
537
+ inputs: [
538
+ {
539
+ name: "implementation",
540
+ internalType: "address",
541
+ type: "address",
542
+ indexed: true
543
+ }
544
+ ],
545
+ name: "Upgraded"
546
+ },
547
+ {
548
+ type: "error",
549
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
550
+ name: "AddressEmptyCode"
551
+ },
552
+ {
553
+ type: "error",
554
+ inputs: [
555
+ { name: "expected", internalType: "address", type: "address" },
556
+ { name: "actual", internalType: "address", type: "address" }
557
+ ],
558
+ name: "CommenterMismatch"
559
+ },
560
+ {
561
+ type: "error",
562
+ inputs: [
563
+ { name: "implementation", internalType: "address", type: "address" }
564
+ ],
565
+ name: "ERC1967InvalidImplementation"
566
+ },
567
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
568
+ {
569
+ type: "error",
570
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
571
+ name: "ERC2612ExpiredSignature"
572
+ },
573
+ { type: "error", inputs: [], name: "FailedInnerCall" },
574
+ {
575
+ type: "error",
576
+ inputs: [
577
+ {
578
+ name: "wrongDestinationChainId",
579
+ internalType: "uint256",
580
+ type: "uint256"
581
+ }
582
+ ],
583
+ name: "IncorrectDestinationChain"
584
+ },
585
+ {
586
+ type: "error",
587
+ inputs: [
588
+ { name: "account", internalType: "address", type: "address" },
589
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
590
+ ],
591
+ name: "InvalidAccountNonce"
592
+ },
593
+ { type: "error", inputs: [], name: "InvalidInitialization" },
594
+ { type: "error", inputs: [], name: "InvalidSignature" },
595
+ { type: "error", inputs: [], name: "NotInitializing" },
596
+ {
597
+ type: "error",
598
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
599
+ name: "OwnableInvalidOwner"
600
+ },
601
+ {
602
+ type: "error",
603
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
604
+ name: "OwnableUnauthorizedAccount"
605
+ },
606
+ {
607
+ type: "error",
608
+ inputs: [
609
+ { name: "collection", internalType: "address", type: "address" },
610
+ { name: "tokenId", internalType: "uint256", type: "uint256" }
611
+ ],
612
+ name: "SaleNotSet"
613
+ },
614
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
615
+ {
616
+ type: "error",
617
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
618
+ name: "UUPSUnsupportedProxiableUUID"
619
+ },
620
+ {
621
+ type: "error",
622
+ inputs: [
623
+ { name: "currentName", internalType: "string", type: "string" },
624
+ { name: "newName", internalType: "string", type: "string" }
625
+ ],
626
+ name: "UpgradeToMismatchedContractName"
627
+ },
628
+ {
629
+ type: "error",
630
+ inputs: [
631
+ { name: "expected", internalType: "uint256", type: "uint256" },
632
+ { name: "actual", internalType: "uint256", type: "uint256" }
633
+ ],
634
+ name: "WrongValueSent"
635
+ },
636
+ {
637
+ type: "error",
638
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
639
+ name: "AddressEmptyCode"
640
+ },
641
+ {
642
+ type: "error",
643
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
644
+ name: "AddressInsufficientBalance"
645
+ },
646
+ { type: "error", inputs: [], name: "AddressZero" },
647
+ { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
648
+ {
649
+ type: "error",
650
+ inputs: [
651
+ { name: "implementation", internalType: "address", type: "address" }
652
+ ],
653
+ name: "ERC1967InvalidImplementation"
654
+ },
655
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
656
+ { type: "error", inputs: [], name: "EndTimeCannotBeInThePast" },
657
+ { type: "error", inputs: [], name: "FailedInnerCall" },
658
+ { type: "error", inputs: [], name: "InsufficientFunds" },
659
+ { type: "error", inputs: [], name: "InvalidInitialization" },
660
+ { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
661
+ { type: "error", inputs: [], name: "MarketMinimumNotReached" },
662
+ { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
663
+ { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
664
+ { type: "error", inputs: [], name: "NotInitializing" },
665
+ { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
666
+ {
667
+ type: "error",
668
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
669
+ name: "OwnableInvalidOwner"
670
+ },
671
+ {
672
+ type: "error",
673
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
674
+ name: "OwnableUnauthorizedAccount"
675
+ },
676
+ { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
677
+ { type: "error", inputs: [], name: "RequestMintInvalidUseMint" },
678
+ { type: "error", inputs: [], name: "ResetSaleNotAvailable" },
679
+ { type: "error", inputs: [], name: "SaleAlreadySet" },
680
+ { type: "error", inputs: [], name: "SaleEnded" },
681
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
682
+ { type: "error", inputs: [], name: "SaleInProgress" },
683
+ { type: "error", inputs: [], name: "SaleNotSet" },
684
+ { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
685
+ { type: "error", inputs: [], name: "SaleV2Ended" },
686
+ { type: "error", inputs: [], name: "SaleV2NotSet" },
687
+ { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
688
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
689
+ {
690
+ type: "error",
691
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
692
+ name: "UUPSUnsupportedProxiableUUID"
693
+ },
694
+ { type: "error", inputs: [], name: "WrongValueSent" },
695
+ {
696
+ type: "error",
697
+ inputs: [],
698
+ name: "ZoraCreator1155ContractNeedsToSupportReduceSupply"
699
+ },
700
+ { type: "error", inputs: [], name: "ADDRESS_DELEGATECALL_TO_NON_CONTRACT" },
701
+ { type: "error", inputs: [], name: "ADDRESS_LOW_LEVEL_CALL_FAILED" },
702
+ {
703
+ type: "error",
704
+ inputs: [
705
+ { name: "operator", internalType: "address", type: "address" },
706
+ { name: "user", internalType: "address", type: "address" }
707
+ ],
708
+ name: "Burn_NotOwnerOrApproved"
709
+ },
710
+ { type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
711
+ {
712
+ type: "error",
713
+ inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
714
+ name: "CallFailed"
715
+ },
716
+ { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
717
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
718
+ { type: "error", inputs: [], name: "CanOnlyReduceMaxSupply" },
719
+ {
720
+ type: "error",
721
+ inputs: [
722
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
723
+ { name: "quantity", internalType: "uint256", type: "uint256" },
724
+ { name: "totalMinted", internalType: "uint256", type: "uint256" },
725
+ { name: "maxSupply", internalType: "uint256", type: "uint256" }
726
+ ],
727
+ name: "CannotMintMoreTokens"
728
+ },
729
+ { type: "error", inputs: [], name: "CannotReduceMaxSupplyBelowMinted" },
730
+ {
731
+ type: "error",
732
+ inputs: [
733
+ { name: "proposedAddress", internalType: "address", type: "address" }
734
+ ],
735
+ name: "Config_TransferHookNotSupported"
736
+ },
737
+ {
738
+ type: "error",
739
+ inputs: [],
740
+ name: "ERC1155_ACCOUNTS_AND_IDS_LENGTH_MISMATCH"
741
+ },
742
+ {
743
+ type: "error",
744
+ inputs: [],
745
+ name: "ERC1155_ADDRESS_ZERO_IS_NOT_A_VALID_OWNER"
746
+ },
747
+ { type: "error", inputs: [], name: "ERC1155_BURN_AMOUNT_EXCEEDS_BALANCE" },
748
+ { type: "error", inputs: [], name: "ERC1155_BURN_FROM_ZERO_ADDRESS" },
749
+ {
750
+ type: "error",
751
+ inputs: [],
752
+ name: "ERC1155_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED"
753
+ },
754
+ {
755
+ type: "error",
756
+ inputs: [],
757
+ name: "ERC1155_ERC1155RECEIVER_REJECTED_TOKENS"
758
+ },
759
+ {
760
+ type: "error",
761
+ inputs: [],
762
+ name: "ERC1155_IDS_AND_AMOUNTS_LENGTH_MISMATCH"
763
+ },
764
+ {
765
+ type: "error",
766
+ inputs: [],
767
+ name: "ERC1155_INSUFFICIENT_BALANCE_FOR_TRANSFER"
768
+ },
769
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
770
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
771
+ { type: "error", inputs: [], name: "ERC1155_SETTING_APPROVAL_FOR_SELF" },
772
+ {
773
+ type: "error",
774
+ inputs: [],
775
+ name: "ERC1155_TRANSFER_TO_NON_ERC1155RECEIVER_IMPLEMENTER"
776
+ },
777
+ { type: "error", inputs: [], name: "ERC1155_TRANSFER_TO_ZERO_ADDRESS" },
778
+ { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_CONTRACT" },
779
+ { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_UUPS" },
780
+ { type: "error", inputs: [], name: "ERC1967_UNSUPPORTED_PROXIABLEUUID" },
781
+ {
782
+ type: "error",
783
+ inputs: [
784
+ { name: "recipient", internalType: "address", type: "address" },
785
+ { name: "amount", internalType: "uint256", type: "uint256" }
786
+ ],
787
+ name: "ETHWithdrawFailed"
788
+ },
789
+ {
790
+ type: "error",
791
+ inputs: [],
792
+ name: "FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY"
793
+ },
794
+ {
795
+ type: "error",
796
+ inputs: [],
797
+ name: "FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL"
798
+ },
799
+ { type: "error", inputs: [], name: "FirstMinterAddressZero" },
800
+ {
801
+ type: "error",
802
+ inputs: [
803
+ { name: "amount", internalType: "uint256", type: "uint256" },
804
+ { name: "contractValue", internalType: "uint256", type: "uint256" }
805
+ ],
806
+ name: "FundsWithdrawInsolvent"
807
+ },
808
+ {
809
+ type: "error",
810
+ inputs: [],
811
+ name: "INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED"
812
+ },
813
+ {
814
+ type: "error",
815
+ inputs: [],
816
+ name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
817
+ },
818
+ { type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
819
+ { type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
820
+ {
821
+ type: "error",
822
+ inputs: [
823
+ { name: "mintTo", internalType: "address", type: "address" },
824
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
825
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
826
+ ],
827
+ name: "InvalidMerkleProof"
828
+ },
829
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
830
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
831
+ { type: "error", inputs: [], name: "InvalidPremintVersion" },
832
+ { type: "error", inputs: [], name: "InvalidSignature" },
833
+ { type: "error", inputs: [], name: "InvalidSignatureVersion" },
834
+ {
835
+ type: "error",
836
+ inputs: [{ name: "magicValue", internalType: "bytes4", type: "bytes4" }],
837
+ name: "InvalidSigner"
838
+ },
839
+ { type: "error", inputs: [], name: "MintNotYetStarted" },
840
+ { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
841
+ { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
842
+ { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
843
+ { type: "error", inputs: [], name: "Mint_UnknownCommand" },
844
+ { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
845
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
846
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
847
+ { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
848
+ {
849
+ type: "error",
850
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
851
+ name: "NoRendererForToken"
852
+ },
853
+ { type: "error", inputs: [], name: "NonEthRedemption" },
854
+ { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
855
+ { type: "error", inputs: [], name: "OnlyAllowedForRegisteredMinter" },
856
+ { type: "error", inputs: [], name: "OnlyAllowedForTimedSaleStrategy" },
857
+ { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
858
+ { type: "error", inputs: [], name: "PremintDeleted" },
859
+ {
860
+ type: "error",
861
+ inputs: [
862
+ { name: "caller", internalType: "address", type: "address" },
863
+ { name: "recipient", internalType: "address", type: "address" },
864
+ { name: "amount", internalType: "uint256", type: "uint256" }
865
+ ],
866
+ name: "ProtocolRewardsWithdrawFailed"
867
+ },
868
+ {
869
+ type: "error",
870
+ inputs: [{ name: "renderer", internalType: "address", type: "address" }],
871
+ name: "RendererNotValid"
872
+ },
873
+ { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
874
+ { type: "error", inputs: [], name: "SaleEnded" },
875
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
876
+ {
877
+ type: "error",
878
+ inputs: [
879
+ { name: "targetContract", internalType: "address", type: "address" }
880
+ ],
881
+ name: "Sale_CannotCallNonSalesContract"
882
+ },
883
+ {
884
+ type: "error",
885
+ inputs: [
886
+ { name: "expected", internalType: "uint256", type: "uint256" },
887
+ { name: "actual", internalType: "uint256", type: "uint256" }
888
+ ],
889
+ name: "TokenIdMismatch"
890
+ },
891
+ {
892
+ type: "error",
893
+ inputs: [],
894
+ name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
895
+ },
896
+ {
897
+ type: "error",
898
+ inputs: [
899
+ { name: "user", internalType: "address", type: "address" },
900
+ { name: "limit", internalType: "uint256", type: "uint256" },
901
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
902
+ ],
903
+ name: "UserExceedsMintLimit"
904
+ },
905
+ {
906
+ type: "error",
907
+ inputs: [
908
+ { name: "user", internalType: "address", type: "address" },
909
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
910
+ { name: "role", internalType: "uint256", type: "uint256" }
911
+ ],
912
+ name: "UserMissingRoleForToken"
913
+ },
914
+ { type: "error", inputs: [], name: "WrongValueSent" },
915
+ {
916
+ type: "error",
917
+ inputs: [],
918
+ name: "premintSignerContractFailedToRecoverSigner"
919
+ },
920
+ { type: "error", inputs: [], name: "premintSignerContractNotAContract" },
921
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
922
+ {
923
+ type: "error",
924
+ inputs: [
925
+ { name: "account", internalType: "address", type: "address" },
926
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
927
+ ],
928
+ name: "AccessControlUnauthorizedAccount"
929
+ },
930
+ {
931
+ type: "error",
932
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
933
+ name: "AddressEmptyCode"
934
+ },
935
+ { type: "error", inputs: [], name: "AddressZero" },
936
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
937
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
938
+ {
939
+ type: "error",
940
+ inputs: [
941
+ { name: "commentAddress", internalType: "address", type: "address" },
942
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
943
+ { name: "replyAddress", internalType: "address", type: "address" },
944
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
945
+ ],
946
+ name: "CommentAddressOrTokenIdsDoNotMatch"
947
+ },
948
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
949
+ {
950
+ type: "error",
951
+ inputs: [
952
+ { name: "expected", internalType: "address", type: "address" },
953
+ { name: "actual", internalType: "address", type: "address" }
954
+ ],
955
+ name: "CommenterMismatch"
956
+ },
957
+ {
958
+ type: "error",
959
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
960
+ name: "DuplicateComment"
961
+ },
962
+ {
963
+ type: "error",
964
+ inputs: [
965
+ { name: "implementation", internalType: "address", type: "address" }
966
+ ],
967
+ name: "ERC1967InvalidImplementation"
968
+ },
969
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
970
+ {
971
+ type: "error",
972
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
973
+ name: "ERC2612ExpiredSignature"
974
+ },
975
+ { type: "error", inputs: [], name: "EmptyComment" },
976
+ { type: "error", inputs: [], name: "FailedInnerCall" },
977
+ {
978
+ type: "error",
979
+ inputs: [
980
+ {
981
+ name: "wrongDestinationChainId",
982
+ internalType: "uint256",
983
+ type: "uint256"
984
+ }
985
+ ],
986
+ name: "IncorrectDestinationChain"
987
+ },
988
+ {
989
+ type: "error",
990
+ inputs: [
991
+ { name: "actual", internalType: "uint256", type: "uint256" },
992
+ { name: "expected", internalType: "uint256", type: "uint256" }
993
+ ],
994
+ name: "IncorrectETHAmountForSparks"
995
+ },
996
+ {
997
+ type: "error",
998
+ inputs: [
999
+ { name: "account", internalType: "address", type: "address" },
1000
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
1001
+ ],
1002
+ name: "InvalidAccountNonce"
1003
+ },
1004
+ { type: "error", inputs: [], name: "InvalidInitialization" },
1005
+ { type: "error", inputs: [], name: "InvalidSignature" },
1006
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
1007
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
1008
+ { type: "error", inputs: [], name: "NotInitializing" },
1009
+ { type: "error", inputs: [], name: "NotSmartWallet" },
1010
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
1011
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
1012
+ { type: "error", inputs: [], name: "OnlySparksContract" },
1013
+ { type: "error", inputs: [], name: "TransferFailed" },
1014
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
1015
+ {
1016
+ type: "error",
1017
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
1018
+ name: "UUPSUnsupportedProxiableUUID"
1019
+ },
1020
+ {
1021
+ type: "error",
1022
+ inputs: [
1023
+ { name: "currentName", internalType: "string", type: "string" },
1024
+ { name: "newName", internalType: "string", type: "string" }
1025
+ ],
1026
+ name: "UpgradeToMismatchedContractName"
1027
+ }
1028
+ ];
1029
+ var callerAndCommenterAddress = {
1030
+ 1: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1031
+ 10: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1032
+ 8453: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1033
+ 42161: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1034
+ 81457: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1035
+ 84532: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1036
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1037
+ 11155111: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1038
+ 11155420: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1039
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
1040
+ };
1041
+ var callerAndCommenterConfig = {
1042
+ address: callerAndCommenterAddress,
1043
+ abi: callerAndCommenterABI
1044
+ };
1045
+ var commentsABI = [
1046
+ {
1047
+ stateMutability: "nonpayable",
1048
+ type: "constructor",
1049
+ inputs: [
1050
+ { name: "_sparkValue", internalType: "uint256", type: "uint256" },
1051
+ { name: "_protocolRewards", internalType: "address", type: "address" },
1052
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
1053
+ ]
1054
+ },
1055
+ {
1056
+ stateMutability: "view",
1057
+ type: "function",
1058
+ inputs: [],
1059
+ name: "BACKFILLER_ROLE",
1060
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1061
+ },
1062
+ {
1063
+ stateMutability: "view",
1064
+ type: "function",
1065
+ inputs: [],
1066
+ name: "DEFAULT_ADMIN_ROLE",
1067
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1068
+ },
1069
+ {
1070
+ stateMutability: "view",
1071
+ type: "function",
1072
+ inputs: [],
1073
+ name: "DELEGATE_COMMENTER",
1074
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1075
+ },
1076
+ {
1077
+ stateMutability: "view",
1078
+ type: "function",
1079
+ inputs: [],
1080
+ name: "DOMAIN_NAME",
1081
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1082
+ },
1083
+ {
1084
+ stateMutability: "view",
1085
+ type: "function",
1086
+ inputs: [],
1087
+ name: "DOMAIN_VERSION",
1088
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1089
+ },
1090
+ {
1091
+ stateMutability: "view",
1092
+ type: "function",
1093
+ inputs: [],
1094
+ name: "PERMISSION_BIT_ADMIN",
1095
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1096
+ },
1097
+ {
1098
+ stateMutability: "view",
1099
+ type: "function",
1100
+ inputs: [],
1101
+ name: "REFERRER_REWARD_PCT",
1102
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1103
+ },
1104
+ {
1105
+ stateMutability: "view",
1106
+ type: "function",
1107
+ inputs: [],
1108
+ name: "UPGRADE_INTERFACE_VERSION",
1109
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1110
+ },
1111
+ {
1112
+ stateMutability: "view",
1113
+ type: "function",
1114
+ inputs: [],
1115
+ name: "ZORA_REWARD_NO_REFERRER_PCT",
1116
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1117
+ },
1118
+ {
1119
+ stateMutability: "view",
1120
+ type: "function",
1121
+ inputs: [],
1122
+ name: "ZORA_REWARD_PCT",
1123
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1124
+ },
1125
+ {
1126
+ stateMutability: "nonpayable",
1127
+ type: "function",
1128
+ inputs: [
1129
+ {
1130
+ name: "commentIdentifiers",
1131
+ internalType: "struct IComments.CommentIdentifier[]",
1132
+ type: "tuple[]",
1133
+ components: [
1134
+ { name: "commenter", internalType: "address", type: "address" },
1135
+ { name: "contractAddress", internalType: "address", type: "address" },
1136
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1137
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1138
+ ]
1139
+ },
1140
+ { name: "texts", internalType: "string[]", type: "string[]" },
1141
+ { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
1142
+ {
1143
+ name: "originalTransactionHashes",
1144
+ internalType: "bytes32[]",
1145
+ type: "bytes32[]"
1146
+ }
1147
+ ],
1148
+ name: "backfillBatchAddComment",
1149
+ outputs: []
1150
+ },
1151
+ {
1152
+ stateMutability: "payable",
1153
+ type: "function",
1154
+ inputs: [
1155
+ { name: "commenter", internalType: "address", type: "address" },
1156
+ { name: "contractAddress", internalType: "address", type: "address" },
1157
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1158
+ { name: "text", internalType: "string", type: "string" },
1159
+ {
1160
+ name: "replyTo",
1161
+ internalType: "struct IComments.CommentIdentifier",
1162
+ type: "tuple",
1163
+ components: [
1164
+ { name: "commenter", internalType: "address", type: "address" },
1165
+ { name: "contractAddress", internalType: "address", type: "address" },
1166
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1167
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1168
+ ]
1169
+ },
1170
+ {
1171
+ name: "commenterSmartWallet",
1172
+ internalType: "address",
1173
+ type: "address"
1174
+ },
1175
+ { name: "referrer", internalType: "address", type: "address" }
1176
+ ],
1177
+ name: "comment",
1178
+ outputs: [
1179
+ {
1180
+ name: "commentIdentifier",
1181
+ internalType: "struct IComments.CommentIdentifier",
1182
+ type: "tuple",
1183
+ components: [
1184
+ { name: "commenter", internalType: "address", type: "address" },
1185
+ { name: "contractAddress", internalType: "address", type: "address" },
1186
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1187
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1188
+ ]
1189
+ }
1190
+ ]
1191
+ },
1192
+ {
1193
+ stateMutability: "view",
1194
+ type: "function",
1195
+ inputs: [
1196
+ {
1197
+ name: "commentIdentifier",
1198
+ internalType: "struct IComments.CommentIdentifier",
1199
+ type: "tuple",
1200
+ components: [
1201
+ { name: "commenter", internalType: "address", type: "address" },
1202
+ { name: "contractAddress", internalType: "address", type: "address" },
1203
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1204
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1205
+ ]
1206
+ }
1207
+ ],
1208
+ name: "commentSparksQuantity",
1209
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1210
+ },
1211
+ {
1212
+ stateMutability: "pure",
1213
+ type: "function",
1214
+ inputs: [],
1215
+ name: "contractName",
1216
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1217
+ },
1218
+ {
1219
+ stateMutability: "pure",
1220
+ type: "function",
1221
+ inputs: [],
1222
+ name: "contractVersion",
1223
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1224
+ },
1225
+ {
1226
+ stateMutability: "payable",
1227
+ type: "function",
1228
+ inputs: [
1229
+ { name: "commenter", internalType: "address", type: "address" },
1230
+ { name: "contractAddress", internalType: "address", type: "address" },
1231
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1232
+ { name: "text", internalType: "string", type: "string" },
1233
+ {
1234
+ name: "replyTo",
1235
+ internalType: "struct IComments.CommentIdentifier",
1236
+ type: "tuple",
1237
+ components: [
1238
+ { name: "commenter", internalType: "address", type: "address" },
1239
+ { name: "contractAddress", internalType: "address", type: "address" },
1240
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1241
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1242
+ ]
1243
+ },
1244
+ {
1245
+ name: "commenterSmartWalletOwner",
1246
+ internalType: "address",
1247
+ type: "address"
1248
+ },
1249
+ { name: "referrer", internalType: "address", type: "address" }
1250
+ ],
1251
+ name: "delegateComment",
1252
+ outputs: [
1253
+ {
1254
+ name: "commentIdentifier",
1255
+ internalType: "struct IComments.CommentIdentifier",
1256
+ type: "tuple",
1257
+ components: [
1258
+ { name: "commenter", internalType: "address", type: "address" },
1259
+ { name: "contractAddress", internalType: "address", type: "address" },
1260
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1261
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1262
+ ]
1263
+ },
1264
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
1265
+ ]
1266
+ },
1267
+ {
1268
+ stateMutability: "view",
1269
+ type: "function",
1270
+ inputs: [],
1271
+ name: "eip712Domain",
1272
+ outputs: [
1273
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
1274
+ { name: "name", internalType: "string", type: "string" },
1275
+ { name: "version", internalType: "string", type: "string" },
1276
+ { name: "chainId", internalType: "uint256", type: "uint256" },
1277
+ { name: "verifyingContract", internalType: "address", type: "address" },
1278
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1279
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
1280
+ ]
1281
+ },
1282
+ {
1283
+ stateMutability: "view",
1284
+ type: "function",
1285
+ inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
1286
+ name: "getRoleAdmin",
1287
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1288
+ },
1289
+ {
1290
+ stateMutability: "nonpayable",
1291
+ type: "function",
1292
+ inputs: [
1293
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1294
+ { name: "account", internalType: "address", type: "address" }
1295
+ ],
1296
+ name: "grantRole",
1297
+ outputs: []
1298
+ },
1299
+ {
1300
+ stateMutability: "view",
1301
+ type: "function",
1302
+ inputs: [
1303
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1304
+ { name: "account", internalType: "address", type: "address" }
1305
+ ],
1306
+ name: "hasRole",
1307
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1308
+ },
1309
+ {
1310
+ stateMutability: "view",
1311
+ type: "function",
1312
+ inputs: [
1313
+ {
1314
+ name: "commentIdentifier",
1315
+ internalType: "struct IComments.CommentIdentifier",
1316
+ type: "tuple",
1317
+ components: [
1318
+ { name: "commenter", internalType: "address", type: "address" },
1319
+ { name: "contractAddress", internalType: "address", type: "address" },
1320
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1321
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1322
+ ]
1323
+ }
1324
+ ],
1325
+ name: "hashAndCheckCommentExists",
1326
+ outputs: [
1327
+ { name: "commentId", internalType: "bytes32", type: "bytes32" },
1328
+ { name: "exists", internalType: "bool", type: "bool" }
1329
+ ]
1330
+ },
1331
+ {
1332
+ stateMutability: "view",
1333
+ type: "function",
1334
+ inputs: [
1335
+ {
1336
+ name: "commentIdentifier",
1337
+ internalType: "struct IComments.CommentIdentifier",
1338
+ type: "tuple",
1339
+ components: [
1340
+ { name: "commenter", internalType: "address", type: "address" },
1341
+ { name: "contractAddress", internalType: "address", type: "address" },
1342
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1343
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1344
+ ]
1345
+ }
1346
+ ],
1347
+ name: "hashAndValidateCommentExists",
1348
+ outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
1349
+ },
1350
+ {
1351
+ stateMutability: "pure",
1352
+ type: "function",
1353
+ inputs: [
1354
+ {
1355
+ name: "commentIdentifier",
1356
+ internalType: "struct IComments.CommentIdentifier",
1357
+ type: "tuple",
1358
+ components: [
1359
+ { name: "commenter", internalType: "address", type: "address" },
1360
+ { name: "contractAddress", internalType: "address", type: "address" },
1361
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1362
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1363
+ ]
1364
+ }
1365
+ ],
1366
+ name: "hashCommentIdentifier",
1367
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1368
+ },
1369
+ {
1370
+ stateMutability: "view",
1371
+ type: "function",
1372
+ inputs: [
1373
+ {
1374
+ name: "permit",
1375
+ internalType: "struct IComments.PermitComment",
1376
+ type: "tuple",
1377
+ components: [
1378
+ { name: "commenter", internalType: "address", type: "address" },
1379
+ {
1380
+ name: "commenterSmartWallet",
1381
+ internalType: "address",
1382
+ type: "address"
1383
+ },
1384
+ { name: "contractAddress", internalType: "address", type: "address" },
1385
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1386
+ {
1387
+ name: "replyTo",
1388
+ internalType: "struct IComments.CommentIdentifier",
1389
+ type: "tuple",
1390
+ components: [
1391
+ { name: "commenter", internalType: "address", type: "address" },
1392
+ {
1393
+ name: "contractAddress",
1394
+ internalType: "address",
1395
+ type: "address"
1396
+ },
1397
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1398
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1399
+ ]
1400
+ },
1401
+ { name: "text", internalType: "string", type: "string" },
1402
+ { name: "referrer", internalType: "address", type: "address" },
1403
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1404
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1405
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1406
+ {
1407
+ name: "destinationChainId",
1408
+ internalType: "uint32",
1409
+ type: "uint32"
1410
+ }
1411
+ ]
1412
+ }
1413
+ ],
1414
+ name: "hashPermitComment",
1415
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1416
+ },
1417
+ {
1418
+ stateMutability: "view",
1419
+ type: "function",
1420
+ inputs: [
1421
+ {
1422
+ name: "permit",
1423
+ internalType: "struct IComments.PermitSparkComment",
1424
+ type: "tuple",
1425
+ components: [
1426
+ {
1427
+ name: "comment",
1428
+ internalType: "struct IComments.CommentIdentifier",
1429
+ type: "tuple",
1430
+ components: [
1431
+ { name: "commenter", internalType: "address", type: "address" },
1432
+ {
1433
+ name: "contractAddress",
1434
+ internalType: "address",
1435
+ type: "address"
1436
+ },
1437
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1438
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1439
+ ]
1440
+ },
1441
+ { name: "sparker", internalType: "address", type: "address" },
1442
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1443
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1444
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1445
+ { name: "referrer", internalType: "address", type: "address" },
1446
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1447
+ {
1448
+ name: "destinationChainId",
1449
+ internalType: "uint32",
1450
+ type: "uint32"
1451
+ }
1452
+ ]
1453
+ }
1454
+ ],
1455
+ name: "hashPermitSparkComment",
1456
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1457
+ },
1458
+ {
1459
+ stateMutability: "view",
1460
+ type: "function",
1461
+ inputs: [],
1462
+ name: "implementation",
1463
+ outputs: [{ name: "", internalType: "address", type: "address" }]
1464
+ },
1465
+ {
1466
+ stateMutability: "nonpayable",
1467
+ type: "function",
1468
+ inputs: [
1469
+ { name: "defaultAdmin", internalType: "address", type: "address" },
1470
+ { name: "backfiller", internalType: "address", type: "address" },
1471
+ {
1472
+ name: "delegateCommenters",
1473
+ internalType: "address[]",
1474
+ type: "address[]"
1475
+ }
1476
+ ],
1477
+ name: "initialize",
1478
+ outputs: []
1479
+ },
1480
+ {
1481
+ stateMutability: "view",
1482
+ type: "function",
1483
+ inputs: [],
1484
+ name: "nextNonce",
1485
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1486
+ },
1487
+ {
1488
+ stateMutability: "view",
1489
+ type: "function",
1490
+ inputs: [
1491
+ { name: "owner", internalType: "address", type: "address" },
1492
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1493
+ ],
1494
+ name: "nonceUsed",
1495
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1496
+ },
1497
+ {
1498
+ stateMutability: "payable",
1499
+ type: "function",
1500
+ inputs: [
1501
+ {
1502
+ name: "permit",
1503
+ internalType: "struct IComments.PermitComment",
1504
+ type: "tuple",
1505
+ components: [
1506
+ { name: "commenter", internalType: "address", type: "address" },
1507
+ {
1508
+ name: "commenterSmartWallet",
1509
+ internalType: "address",
1510
+ type: "address"
1511
+ },
1512
+ { name: "contractAddress", internalType: "address", type: "address" },
1513
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1514
+ {
1515
+ name: "replyTo",
1516
+ internalType: "struct IComments.CommentIdentifier",
1517
+ type: "tuple",
1518
+ components: [
1519
+ { name: "commenter", internalType: "address", type: "address" },
1520
+ {
1521
+ name: "contractAddress",
1522
+ internalType: "address",
1523
+ type: "address"
1524
+ },
1525
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1526
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1527
+ ]
1528
+ },
1529
+ { name: "text", internalType: "string", type: "string" },
1530
+ { name: "referrer", internalType: "address", type: "address" },
1531
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1532
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1533
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1534
+ {
1535
+ name: "destinationChainId",
1536
+ internalType: "uint32",
1537
+ type: "uint32"
1538
+ }
1539
+ ]
1540
+ },
1541
+ { name: "signature", internalType: "bytes", type: "bytes" }
1542
+ ],
1543
+ name: "permitComment",
1544
+ outputs: []
1545
+ },
1546
+ {
1547
+ stateMutability: "payable",
1548
+ type: "function",
1549
+ inputs: [
1550
+ {
1551
+ name: "permit",
1552
+ internalType: "struct IComments.PermitSparkComment",
1553
+ type: "tuple",
1554
+ components: [
1555
+ {
1556
+ name: "comment",
1557
+ internalType: "struct IComments.CommentIdentifier",
1558
+ type: "tuple",
1559
+ components: [
1560
+ { name: "commenter", internalType: "address", type: "address" },
1561
+ {
1562
+ name: "contractAddress",
1563
+ internalType: "address",
1564
+ type: "address"
1565
+ },
1566
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1567
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1568
+ ]
1569
+ },
1570
+ { name: "sparker", internalType: "address", type: "address" },
1571
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1572
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1573
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1574
+ { name: "referrer", internalType: "address", type: "address" },
1575
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1576
+ {
1577
+ name: "destinationChainId",
1578
+ internalType: "uint32",
1579
+ type: "uint32"
1580
+ }
1581
+ ]
1582
+ },
1583
+ { name: "signature", internalType: "bytes", type: "bytes" }
1584
+ ],
1585
+ name: "permitSparkComment",
1586
+ outputs: []
1587
+ },
1588
+ {
1589
+ stateMutability: "view",
1590
+ type: "function",
1591
+ inputs: [],
1592
+ name: "protocolRewards",
1593
+ outputs: [
1594
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
1595
+ ]
1596
+ },
1597
+ {
1598
+ stateMutability: "view",
1599
+ type: "function",
1600
+ inputs: [],
1601
+ name: "proxiableUUID",
1602
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1603
+ },
1604
+ {
1605
+ stateMutability: "nonpayable",
1606
+ type: "function",
1607
+ inputs: [
1608
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1609
+ { name: "callerConfirmation", internalType: "address", type: "address" }
1610
+ ],
1611
+ name: "renounceRole",
1612
+ outputs: []
1613
+ },
1614
+ {
1615
+ stateMutability: "nonpayable",
1616
+ type: "function",
1617
+ inputs: [
1618
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1619
+ { name: "account", internalType: "address", type: "address" }
1620
+ ],
1621
+ name: "revokeRole",
1622
+ outputs: []
1623
+ },
1624
+ {
1625
+ stateMutability: "payable",
1626
+ type: "function",
1627
+ inputs: [
1628
+ {
1629
+ name: "commentIdentifier",
1630
+ internalType: "struct IComments.CommentIdentifier",
1631
+ type: "tuple",
1632
+ components: [
1633
+ { name: "commenter", internalType: "address", type: "address" },
1634
+ { name: "contractAddress", internalType: "address", type: "address" },
1635
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1636
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1637
+ ]
1638
+ },
1639
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1640
+ { name: "referrer", internalType: "address", type: "address" }
1641
+ ],
1642
+ name: "sparkComment",
1643
+ outputs: []
1644
+ },
1645
+ {
1646
+ stateMutability: "view",
1647
+ type: "function",
1648
+ inputs: [],
1649
+ name: "sparkValue",
1650
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1651
+ },
1652
+ {
1653
+ stateMutability: "view",
1654
+ type: "function",
1655
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1656
+ name: "supportsInterface",
1657
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1658
+ },
1659
+ {
1660
+ stateMutability: "payable",
1661
+ type: "function",
1662
+ inputs: [
1663
+ { name: "newImplementation", internalType: "address", type: "address" },
1664
+ { name: "data", internalType: "bytes", type: "bytes" }
1665
+ ],
1666
+ name: "upgradeToAndCall",
1667
+ outputs: []
1668
+ },
1669
+ {
1670
+ type: "event",
1671
+ anonymous: false,
1672
+ inputs: [
1673
+ {
1674
+ name: "commentId",
1675
+ internalType: "bytes32",
1676
+ type: "bytes32",
1677
+ indexed: true
1678
+ },
1679
+ {
1680
+ name: "commentIdentifier",
1681
+ internalType: "struct IComments.CommentIdentifier",
1682
+ type: "tuple",
1683
+ components: [
1684
+ { name: "commenter", internalType: "address", type: "address" },
1685
+ { name: "contractAddress", internalType: "address", type: "address" },
1686
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1687
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1688
+ ],
1689
+ indexed: false
1690
+ },
1691
+ { name: "text", internalType: "string", type: "string", indexed: false },
1692
+ {
1693
+ name: "timestamp",
1694
+ internalType: "uint256",
1695
+ type: "uint256",
1696
+ indexed: false
1697
+ },
1698
+ {
1699
+ name: "originalTransactionId",
1700
+ internalType: "bytes32",
1701
+ type: "bytes32",
1702
+ indexed: false
1703
+ }
1704
+ ],
1705
+ name: "BackfilledComment"
1706
+ },
1707
+ {
1708
+ type: "event",
1709
+ anonymous: false,
1710
+ inputs: [
1711
+ {
1712
+ name: "commentId",
1713
+ internalType: "bytes32",
1714
+ type: "bytes32",
1715
+ indexed: true
1716
+ },
1717
+ {
1718
+ name: "commentIdentifier",
1719
+ internalType: "struct IComments.CommentIdentifier",
1720
+ type: "tuple",
1721
+ components: [
1722
+ { name: "commenter", internalType: "address", type: "address" },
1723
+ { name: "contractAddress", internalType: "address", type: "address" },
1724
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1725
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1726
+ ],
1727
+ indexed: false
1728
+ },
1729
+ {
1730
+ name: "replyToId",
1731
+ internalType: "bytes32",
1732
+ type: "bytes32",
1733
+ indexed: false
1734
+ },
1735
+ {
1736
+ name: "replyTo",
1737
+ internalType: "struct IComments.CommentIdentifier",
1738
+ type: "tuple",
1739
+ components: [
1740
+ { name: "commenter", internalType: "address", type: "address" },
1741
+ { name: "contractAddress", internalType: "address", type: "address" },
1742
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1743
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1744
+ ],
1745
+ indexed: false
1746
+ },
1747
+ {
1748
+ name: "sparksQuantity",
1749
+ internalType: "uint256",
1750
+ type: "uint256",
1751
+ indexed: false
1752
+ },
1753
+ { name: "text", internalType: "string", type: "string", indexed: false },
1754
+ {
1755
+ name: "timestamp",
1756
+ internalType: "uint256",
1757
+ type: "uint256",
1758
+ indexed: false
1759
+ },
1760
+ {
1761
+ name: "referrer",
1762
+ internalType: "address",
1763
+ type: "address",
1764
+ indexed: false
1765
+ }
1766
+ ],
1767
+ name: "Commented"
1768
+ },
1769
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
1770
+ {
1771
+ type: "event",
1772
+ anonymous: false,
1773
+ inputs: [
1774
+ {
1775
+ name: "version",
1776
+ internalType: "uint64",
1777
+ type: "uint64",
1778
+ indexed: false
1779
+ }
1780
+ ],
1781
+ name: "Initialized"
1782
+ },
1783
+ {
1784
+ type: "event",
1785
+ anonymous: false,
1786
+ inputs: [
1787
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1788
+ {
1789
+ name: "previousAdminRole",
1790
+ internalType: "bytes32",
1791
+ type: "bytes32",
1792
+ indexed: true
1793
+ },
1794
+ {
1795
+ name: "newAdminRole",
1796
+ internalType: "bytes32",
1797
+ type: "bytes32",
1798
+ indexed: true
1799
+ }
1800
+ ],
1801
+ name: "RoleAdminChanged"
1802
+ },
1803
+ {
1804
+ type: "event",
1805
+ anonymous: false,
1806
+ inputs: [
1807
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1808
+ {
1809
+ name: "account",
1810
+ internalType: "address",
1811
+ type: "address",
1812
+ indexed: true
1813
+ },
1814
+ {
1815
+ name: "sender",
1816
+ internalType: "address",
1817
+ type: "address",
1818
+ indexed: true
1819
+ }
1820
+ ],
1821
+ name: "RoleGranted"
1822
+ },
1823
+ {
1824
+ type: "event",
1825
+ anonymous: false,
1826
+ inputs: [
1827
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1828
+ {
1829
+ name: "account",
1830
+ internalType: "address",
1831
+ type: "address",
1832
+ indexed: true
1833
+ },
1834
+ {
1835
+ name: "sender",
1836
+ internalType: "address",
1837
+ type: "address",
1838
+ indexed: true
1839
+ }
1840
+ ],
1841
+ name: "RoleRevoked"
1842
+ },
1843
+ {
1844
+ type: "event",
1845
+ anonymous: false,
1846
+ inputs: [
1847
+ {
1848
+ name: "commentId",
1849
+ internalType: "bytes32",
1850
+ type: "bytes32",
1851
+ indexed: true
1852
+ },
1853
+ {
1854
+ name: "commentIdentifier",
1855
+ internalType: "struct IComments.CommentIdentifier",
1856
+ type: "tuple",
1857
+ components: [
1858
+ { name: "commenter", internalType: "address", type: "address" },
1859
+ { name: "contractAddress", internalType: "address", type: "address" },
1860
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1861
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1862
+ ],
1863
+ indexed: false
1864
+ },
1865
+ {
1866
+ name: "sparksQuantity",
1867
+ internalType: "uint256",
1868
+ type: "uint256",
1869
+ indexed: false
1870
+ },
1871
+ {
1872
+ name: "sparker",
1873
+ internalType: "address",
1874
+ type: "address",
1875
+ indexed: false
1876
+ },
1877
+ {
1878
+ name: "timestamp",
1879
+ internalType: "uint256",
1880
+ type: "uint256",
1881
+ indexed: false
1882
+ },
1883
+ {
1884
+ name: "referrer",
1885
+ internalType: "address",
1886
+ type: "address",
1887
+ indexed: false
1888
+ }
1889
+ ],
1890
+ name: "SparkedComment"
1891
+ },
1892
+ {
1893
+ type: "event",
1894
+ anonymous: false,
1895
+ inputs: [
1896
+ {
1897
+ name: "implementation",
1898
+ internalType: "address",
1899
+ type: "address",
1900
+ indexed: true
1901
+ }
1902
+ ],
1903
+ name: "Upgraded"
1904
+ },
1905
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
1906
+ {
1907
+ type: "error",
1908
+ inputs: [
1909
+ { name: "account", internalType: "address", type: "address" },
1910
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
1911
+ ],
1912
+ name: "AccessControlUnauthorizedAccount"
1913
+ },
1914
+ {
1915
+ type: "error",
1916
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
1917
+ name: "AddressEmptyCode"
1918
+ },
1919
+ { type: "error", inputs: [], name: "AddressZero" },
1920
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
1921
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
1922
+ {
1923
+ type: "error",
1924
+ inputs: [
1925
+ { name: "commentAddress", internalType: "address", type: "address" },
1926
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
1927
+ { name: "replyAddress", internalType: "address", type: "address" },
1928
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
1929
+ ],
1930
+ name: "CommentAddressOrTokenIdsDoNotMatch"
1931
+ },
1932
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
1933
+ {
1934
+ type: "error",
1935
+ inputs: [
1936
+ { name: "expected", internalType: "address", type: "address" },
1937
+ { name: "actual", internalType: "address", type: "address" }
1938
+ ],
1939
+ name: "CommenterMismatch"
1940
+ },
1941
+ {
1942
+ type: "error",
1943
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
1944
+ name: "DuplicateComment"
1945
+ },
1946
+ {
1947
+ type: "error",
1948
+ inputs: [
1949
+ { name: "implementation", internalType: "address", type: "address" }
1950
+ ],
1951
+ name: "ERC1967InvalidImplementation"
1952
+ },
1953
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
1954
+ {
1955
+ type: "error",
1956
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
1957
+ name: "ERC2612ExpiredSignature"
1958
+ },
1959
+ { type: "error", inputs: [], name: "EmptyComment" },
1960
+ { type: "error", inputs: [], name: "FailedInnerCall" },
1961
+ {
1962
+ type: "error",
1963
+ inputs: [
1964
+ {
1965
+ name: "wrongDestinationChainId",
1966
+ internalType: "uint256",
1967
+ type: "uint256"
1968
+ }
1969
+ ],
1970
+ name: "IncorrectDestinationChain"
1971
+ },
1972
+ {
1973
+ type: "error",
1974
+ inputs: [
1975
+ { name: "actual", internalType: "uint256", type: "uint256" },
1976
+ { name: "expected", internalType: "uint256", type: "uint256" }
1977
+ ],
1978
+ name: "IncorrectETHAmountForSparks"
1979
+ },
1980
+ {
1981
+ type: "error",
1982
+ inputs: [
1983
+ { name: "account", internalType: "address", type: "address" },
1984
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
1985
+ ],
1986
+ name: "InvalidAccountNonce"
1987
+ },
1988
+ { type: "error", inputs: [], name: "InvalidInitialization" },
1989
+ { type: "error", inputs: [], name: "InvalidSignature" },
1990
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
1991
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
1992
+ { type: "error", inputs: [], name: "NotInitializing" },
1993
+ { type: "error", inputs: [], name: "NotSmartWallet" },
1994
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
1995
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
1996
+ { type: "error", inputs: [], name: "OnlySparksContract" },
1997
+ { type: "error", inputs: [], name: "TransferFailed" },
1998
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
1999
+ {
2000
+ type: "error",
2001
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
2002
+ name: "UUPSUnsupportedProxiableUUID"
2003
+ },
2004
+ {
2005
+ type: "error",
2006
+ inputs: [
2007
+ { name: "currentName", internalType: "string", type: "string" },
2008
+ { name: "newName", internalType: "string", type: "string" }
2009
+ ],
2010
+ name: "UpgradeToMismatchedContractName"
2011
+ }
2012
+ ];
2013
+ var commentsAddress = {
2014
+ 1: "0x7777777C2B3132e03a65721a41745C07170a5877",
2015
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
2016
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
2017
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
2018
+ 81457: "0x7777777C2B3132e03a65721a41745C07170a5877",
2019
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
2020
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
2021
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
2022
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
2023
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
2024
+ };
2025
+ var commentsConfig = {
2026
+ address: commentsAddress,
2027
+ abi: commentsABI
2028
+ };
13
2029
  var erc20MinterABI = [
14
2030
  {
15
2031
  stateMutability: "nonpayable",
@@ -3098,6 +5114,7 @@ var wethAddress = {
3098
5114
  421614: "0xc556bAe1e86B2aE9c22eA5E036b07E55E7596074",
3099
5115
  7777777: "0x4200000000000000000000000000000000000006",
3100
5116
  11155111: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
5117
+ 11155420: "0x4200000000000000000000000000000000000006",
3101
5118
  999999999: "0x4200000000000000000000000000000000000006"
3102
5119
  };
3103
5120
  var wethConfig = { address: wethAddress, abi: wethABI };
@@ -10646,6 +12663,55 @@ var zoraTimedSaleStrategyConfig = {
10646
12663
  abi: zoraTimedSaleStrategyABI
10647
12664
  };
10648
12665
 
12666
+ // ../../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
12667
+ var InvalidDecimalNumberError = class extends BaseError {
12668
+ constructor({ value }) {
12669
+ super(`Number \`${value}\` is not a valid decimal number.`, {
12670
+ name: "InvalidDecimalNumberError"
12671
+ });
12672
+ }
12673
+ };
12674
+
12675
+ // ../../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
12676
+ function parseUnits(value, decimals) {
12677
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
12678
+ throw new InvalidDecimalNumberError({ value });
12679
+ let [integer, fraction = "0"] = value.split(".");
12680
+ const negative = integer.startsWith("-");
12681
+ if (negative)
12682
+ integer = integer.slice(1);
12683
+ fraction = fraction.replace(/(0+)$/, "");
12684
+ if (decimals === 0) {
12685
+ if (Math.round(Number(`.${fraction}`)) === 1)
12686
+ integer = `${BigInt(integer) + 1n}`;
12687
+ fraction = "";
12688
+ } else if (fraction.length > decimals) {
12689
+ const [left, unit, right] = [
12690
+ fraction.slice(0, decimals - 1),
12691
+ fraction.slice(decimals - 1, decimals),
12692
+ fraction.slice(decimals)
12693
+ ];
12694
+ const rounded = Math.round(Number(`${unit}.${right}`));
12695
+ if (rounded > 9)
12696
+ fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
12697
+ else
12698
+ fraction = `${left}${rounded}`;
12699
+ if (fraction.length > decimals) {
12700
+ fraction = fraction.slice(1);
12701
+ integer = `${BigInt(integer) + 1n}`;
12702
+ }
12703
+ fraction = fraction.slice(0, decimals);
12704
+ } else {
12705
+ fraction = fraction.padEnd(decimals, "0");
12706
+ }
12707
+ return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
12708
+ }
12709
+
12710
+ // ../../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
12711
+ function parseEther(ether, unit = "wei") {
12712
+ return parseUnits(ether, etherUnits[unit]);
12713
+ }
12714
+
10649
12715
  // src/types.ts
10650
12716
  var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10651
12717
  PremintConfigVersion2["V1"] = "1";
@@ -10653,6 +12719,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10653
12719
  PremintConfigVersion2["V3"] = "3";
10654
12720
  return PremintConfigVersion2;
10655
12721
  })(PremintConfigVersion || {});
12722
+ var emptyCommentIdentifier = () => {
12723
+ const zeroAddress = "0x0000000000000000000000000000000000000000";
12724
+ const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
12725
+ return {
12726
+ commenter: zeroAddress,
12727
+ contractAddress: zeroAddress,
12728
+ tokenId: 0n,
12729
+ nonce: zeroHash
12730
+ };
12731
+ };
10656
12732
 
10657
12733
  // src/typedData.ts
10658
12734
  var premintTypedDataDomain = ({
@@ -10943,6 +13019,146 @@ var sponsoredSparksBatchTypedDataDefinition = ({
10943
13019
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
10944
13020
  }
10945
13021
  });
13022
+ var commentIdentifierType = [
13023
+ { name: "contractAddress", type: "address" },
13024
+ { name: "tokenId", type: "uint256" },
13025
+ { name: "commenter", type: "address" },
13026
+ { name: "nonce", type: "bytes32" }
13027
+ ];
13028
+ var commentsDomain = ({
13029
+ signingChainId,
13030
+ destinationChainId
13031
+ }) => ({
13032
+ chainId: signingChainId,
13033
+ name: "Comments",
13034
+ version: "1",
13035
+ verifyingContract: commentsAddress[destinationChainId]
13036
+ });
13037
+ var permitCommentTypedDataDefinition = (message, signingAccount) => {
13038
+ const permitCommentTypedDataType = {
13039
+ PermitComment: [
13040
+ { name: "contractAddress", type: "address" },
13041
+ { name: "tokenId", type: "uint256" },
13042
+ { name: "commenter", type: "address" },
13043
+ { name: "replyTo", type: "CommentIdentifier" },
13044
+ { name: "text", type: "string" },
13045
+ { name: "deadline", type: "uint256" },
13046
+ { name: "nonce", type: "bytes32" },
13047
+ { name: "commenterSmartWallet", type: "address" },
13048
+ { name: "referrer", type: "address" },
13049
+ { name: "sourceChainId", type: "uint32" },
13050
+ { name: "destinationChainId", type: "uint32" }
13051
+ ],
13052
+ CommentIdentifier: commentIdentifierType
13053
+ };
13054
+ return {
13055
+ types: permitCommentTypedDataType,
13056
+ message,
13057
+ primaryType: "PermitComment",
13058
+ domain: commentsDomain({
13059
+ signingChainId: message.sourceChainId,
13060
+ destinationChainId: message.destinationChainId
13061
+ }),
13062
+ account: signingAccount || message.commenter
13063
+ };
13064
+ };
13065
+ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => {
13066
+ const permitSparkCommentTypedDataType = {
13067
+ PermitSparkComment: [
13068
+ { name: "comment", type: "CommentIdentifier" },
13069
+ { name: "sparker", type: "address" },
13070
+ { name: "sparksQuantity", type: "uint256" },
13071
+ { name: "deadline", type: "uint256" },
13072
+ { name: "nonce", type: "bytes32" },
13073
+ { name: "referrer", type: "address" },
13074
+ { name: "sourceChainId", type: "uint32" },
13075
+ { name: "destinationChainId", type: "uint32" }
13076
+ ],
13077
+ CommentIdentifier: commentIdentifierType
13078
+ };
13079
+ return {
13080
+ types: permitSparkCommentTypedDataType,
13081
+ message,
13082
+ primaryType: "PermitSparkComment",
13083
+ domain: commentsDomain({
13084
+ signingChainId: message.sourceChainId,
13085
+ destinationChainId: message.destinationChainId
13086
+ }),
13087
+ account: signingAccount || message.sparker
13088
+ };
13089
+ };
13090
+ var sparkValue = () => parseEther("0.000001");
13091
+ var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => {
13092
+ const permitTimedSaleMintAndCommentTypedDataType = {
13093
+ PermitTimedSaleMintAndComment: [
13094
+ { name: "commenter", type: "address" },
13095
+ { name: "quantity", type: "uint256" },
13096
+ { name: "collection", type: "address" },
13097
+ { name: "tokenId", type: "uint256" },
13098
+ { name: "mintReferral", type: "address" },
13099
+ { name: "comment", type: "string" },
13100
+ { name: "deadline", type: "uint256" },
13101
+ { name: "nonce", type: "bytes32" },
13102
+ { name: "sourceChainId", type: "uint32" },
13103
+ { name: "destinationChainId", type: "uint32" }
13104
+ ]
13105
+ };
13106
+ const callerAndCommenterDomain = ({
13107
+ signingChainId,
13108
+ destinationChainId
13109
+ }) => ({
13110
+ name: "CallerAndCommenter",
13111
+ version: "1",
13112
+ chainId: signingChainId,
13113
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
13114
+ });
13115
+ return {
13116
+ types: permitTimedSaleMintAndCommentTypedDataType,
13117
+ message,
13118
+ primaryType: "PermitTimedSaleMintAndComment",
13119
+ domain: callerAndCommenterDomain({
13120
+ signingChainId: message.sourceChainId,
13121
+ destinationChainId: message.destinationChainId
13122
+ }),
13123
+ account: signingAccount || message.commenter
13124
+ };
13125
+ };
13126
+ var permitBuyOnSecondaryAndCommentTypedDataDefinition = (message, signingAccount) => {
13127
+ const permitBuyOnSecondaryAndCommentTypedDataType = {
13128
+ PermitBuyOnSecondaryAndComment: [
13129
+ { name: "commenter", type: "address" },
13130
+ { name: "quantity", type: "uint256" },
13131
+ { name: "collection", type: "address" },
13132
+ { name: "tokenId", type: "uint256" },
13133
+ { name: "maxEthToSpend", type: "uint256" },
13134
+ { name: "sqrtPriceLimitX96", type: "uint160" },
13135
+ { name: "comment", type: "string" },
13136
+ { name: "deadline", type: "uint256" },
13137
+ { name: "nonce", type: "bytes32" },
13138
+ { name: "sourceChainId", type: "uint32" },
13139
+ { name: "destinationChainId", type: "uint32" }
13140
+ ]
13141
+ };
13142
+ const callerAndCommenterDomain = ({
13143
+ signingChainId,
13144
+ destinationChainId
13145
+ }) => ({
13146
+ name: "CallerAndCommenter",
13147
+ version: "1",
13148
+ chainId: signingChainId,
13149
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
13150
+ });
13151
+ return {
13152
+ types: permitBuyOnSecondaryAndCommentTypedDataType,
13153
+ message,
13154
+ primaryType: "PermitBuyOnSecondaryAndComment",
13155
+ domain: callerAndCommenterDomain({
13156
+ signingChainId: message.sourceChainId,
13157
+ destinationChainId: message.destinationChainId
13158
+ }),
13159
+ account: signingAccount || message.commenter
13160
+ };
13161
+ };
10946
13162
 
10947
13163
  // src/encoding.ts
10948
13164
  var safeTransferSwapAbiParameters = [
@@ -11259,6 +13475,13 @@ var chainConfigs2 = {
11259
13475
  ZORA_RECIPIENT: "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
11260
13476
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9"
11261
13477
  },
13478
+ 11155420: {
13479
+ NONFUNGIBLE_POSITION_MANAGER: "0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d",
13480
+ UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
13481
+ PROXY_ADMIN: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
13482
+ ZORA_RECIPIENT: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
13483
+ WETH: "0x4200000000000000000000000000000000000006"
13484
+ },
11262
13485
  999999999: {
11263
13486
  NONFUNGIBLE_POSITION_MANAGER: "0xB8458EaAe43292e3c1F7994EFd016bd653d23c20",
11264
13487
  UNISWAP_SWAP_ROUTER: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a",
@@ -11328,7 +13551,14 @@ var addresses2 = {
11328
13551
  };
11329
13552
  export {
11330
13553
  PremintConfigVersion,
13554
+ callerAndCommenterABI,
13555
+ callerAndCommenterAddress,
13556
+ callerAndCommenterConfig,
13557
+ commentsABI,
13558
+ commentsAddress,
13559
+ commentsConfig,
11331
13560
  __exports as contracts1155,
13561
+ emptyCommentIdentifier,
11332
13562
  encodePremintConfig,
11333
13563
  erc20MinterABI,
11334
13564
  erc20MinterAddress,
@@ -11345,6 +13575,10 @@ export {
11345
13575
  mintsEthUnwrapperAndCallerConfig,
11346
13576
  mintsSafeTransferBatchTypedDataDefinition,
11347
13577
  mintsSafeTransferTypedDataDefinition,
13578
+ permitBuyOnSecondaryAndCommentTypedDataDefinition,
13579
+ permitCommentTypedDataDefinition,
13580
+ permitMintAndCommentTypedDataDefinition,
13581
+ permitSparkCommentTypedDataDefinition,
11348
13582
  premintTypedDataDefinition,
11349
13583
  premintV1TypedDataDefinition,
11350
13584
  premintV2TypedDataDefinition,
@@ -11355,6 +13589,7 @@ export {
11355
13589
  secondarySwapABI,
11356
13590
  secondarySwapAddress,
11357
13591
  secondarySwapConfig,
13592
+ sparkValue,
11358
13593
  sparks_exports as sparks,
11359
13594
  sponsoredSparksBatchTransferTypedDataType,
11360
13595
  sponsoredSparksBatchTypedDataDefinition,