@zoralabs/protocol-deployments 0.3.4-PRE.0 → 0.3.5-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
@@ -10,6 +10,916 @@ import {
10
10
  } from "./chunk-3EJPJMEH.js";
11
11
 
12
12
  // src/generated/wagmi.ts
13
+ var commentsABI = [
14
+ {
15
+ stateMutability: "nonpayable",
16
+ type: "constructor",
17
+ inputs: [
18
+ { name: "_sparkValue", internalType: "uint256", type: "uint256" },
19
+ { name: "_protocolRewards", internalType: "address", type: "address" }
20
+ ]
21
+ },
22
+ {
23
+ stateMutability: "view",
24
+ type: "function",
25
+ inputs: [],
26
+ name: "BACKFILLER_ROLE",
27
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
28
+ },
29
+ {
30
+ stateMutability: "view",
31
+ type: "function",
32
+ inputs: [],
33
+ name: "DEFAULT_ADMIN_ROLE",
34
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
35
+ },
36
+ {
37
+ stateMutability: "view",
38
+ type: "function",
39
+ inputs: [],
40
+ name: "DELEGATE_COMMENTOR",
41
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
42
+ },
43
+ {
44
+ stateMutability: "view",
45
+ type: "function",
46
+ inputs: [],
47
+ name: "DOMAIN_NAME",
48
+ outputs: [{ name: "", internalType: "string", type: "string" }]
49
+ },
50
+ {
51
+ stateMutability: "view",
52
+ type: "function",
53
+ inputs: [],
54
+ name: "DOMAIN_VERSION",
55
+ outputs: [{ name: "", internalType: "string", type: "string" }]
56
+ },
57
+ {
58
+ stateMutability: "view",
59
+ type: "function",
60
+ inputs: [],
61
+ name: "PERMISSION_BIT_ADMIN",
62
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
63
+ },
64
+ {
65
+ stateMutability: "view",
66
+ type: "function",
67
+ inputs: [],
68
+ name: "REFERRER_REWARD_PCT",
69
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
70
+ },
71
+ {
72
+ stateMutability: "view",
73
+ type: "function",
74
+ inputs: [],
75
+ name: "UPGRADE_INTERFACE_VERSION",
76
+ outputs: [{ name: "", internalType: "string", type: "string" }]
77
+ },
78
+ {
79
+ stateMutability: "view",
80
+ type: "function",
81
+ inputs: [],
82
+ name: "ZORA_REWARD_NO_REFERRER_PCT",
83
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
84
+ },
85
+ {
86
+ stateMutability: "view",
87
+ type: "function",
88
+ inputs: [],
89
+ name: "ZORA_REWARD_PCT",
90
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
91
+ },
92
+ {
93
+ stateMutability: "nonpayable",
94
+ type: "function",
95
+ inputs: [
96
+ {
97
+ name: "commentIdentifiers",
98
+ internalType: "struct IComments.CommentIdentifier[]",
99
+ type: "tuple[]",
100
+ components: [
101
+ { name: "commenter", internalType: "address", type: "address" },
102
+ { name: "contractAddress", internalType: "address", type: "address" },
103
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
104
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
105
+ ]
106
+ },
107
+ { name: "texts", internalType: "string[]", type: "string[]" },
108
+ { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
109
+ {
110
+ name: "originalTransactionHashes",
111
+ internalType: "bytes32[]",
112
+ type: "bytes32[]"
113
+ }
114
+ ],
115
+ name: "backfillBatchAddComment",
116
+ outputs: []
117
+ },
118
+ {
119
+ stateMutability: "payable",
120
+ type: "function",
121
+ inputs: [
122
+ { name: "commenter", internalType: "address", type: "address" },
123
+ { name: "contractAddress", internalType: "address", type: "address" },
124
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
125
+ { name: "text", internalType: "string", type: "string" },
126
+ {
127
+ name: "replyTo",
128
+ internalType: "struct IComments.CommentIdentifier",
129
+ type: "tuple",
130
+ components: [
131
+ { name: "commenter", internalType: "address", type: "address" },
132
+ { name: "contractAddress", internalType: "address", type: "address" },
133
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
134
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
135
+ ]
136
+ },
137
+ { name: "referrer", internalType: "address", type: "address" }
138
+ ],
139
+ name: "comment",
140
+ outputs: [
141
+ {
142
+ name: "commentIdentifier",
143
+ internalType: "struct IComments.CommentIdentifier",
144
+ type: "tuple",
145
+ components: [
146
+ { name: "commenter", internalType: "address", type: "address" },
147
+ { name: "contractAddress", internalType: "address", type: "address" },
148
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
149
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
150
+ ]
151
+ }
152
+ ]
153
+ },
154
+ {
155
+ stateMutability: "view",
156
+ type: "function",
157
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
158
+ name: "commentSparksQuantity",
159
+ outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
160
+ },
161
+ {
162
+ stateMutability: "pure",
163
+ type: "function",
164
+ inputs: [],
165
+ name: "contractName",
166
+ outputs: [{ name: "", internalType: "string", type: "string" }]
167
+ },
168
+ {
169
+ stateMutability: "pure",
170
+ type: "function",
171
+ inputs: [],
172
+ name: "contractVersion",
173
+ outputs: [{ name: "", internalType: "string", type: "string" }]
174
+ },
175
+ {
176
+ stateMutability: "nonpayable",
177
+ type: "function",
178
+ inputs: [
179
+ { name: "commenter", internalType: "address", type: "address" },
180
+ { name: "contractAddress", internalType: "address", type: "address" },
181
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
182
+ { name: "text", internalType: "string", type: "string" },
183
+ {
184
+ name: "replyTo",
185
+ internalType: "struct IComments.CommentIdentifier",
186
+ type: "tuple",
187
+ components: [
188
+ { name: "commenter", internalType: "address", type: "address" },
189
+ { name: "contractAddress", internalType: "address", type: "address" },
190
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
191
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
192
+ ]
193
+ }
194
+ ],
195
+ name: "delegateComment",
196
+ outputs: [
197
+ {
198
+ name: "commentIdentifier",
199
+ internalType: "struct IComments.CommentIdentifier",
200
+ type: "tuple",
201
+ components: [
202
+ { name: "commenter", internalType: "address", type: "address" },
203
+ { name: "contractAddress", internalType: "address", type: "address" },
204
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
205
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
206
+ ]
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ stateMutability: "view",
212
+ type: "function",
213
+ inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
214
+ name: "getRoleAdmin",
215
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
216
+ },
217
+ {
218
+ stateMutability: "nonpayable",
219
+ type: "function",
220
+ inputs: [
221
+ { name: "role", internalType: "bytes32", type: "bytes32" },
222
+ { name: "account", internalType: "address", type: "address" }
223
+ ],
224
+ name: "grantRole",
225
+ outputs: []
226
+ },
227
+ {
228
+ stateMutability: "view",
229
+ type: "function",
230
+ inputs: [
231
+ { name: "role", internalType: "bytes32", type: "bytes32" },
232
+ { name: "account", internalType: "address", type: "address" }
233
+ ],
234
+ name: "hasRole",
235
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
236
+ },
237
+ {
238
+ stateMutability: "view",
239
+ type: "function",
240
+ inputs: [
241
+ {
242
+ name: "commentIdentifier",
243
+ internalType: "struct IComments.CommentIdentifier",
244
+ type: "tuple",
245
+ components: [
246
+ { name: "commenter", internalType: "address", type: "address" },
247
+ { name: "contractAddress", internalType: "address", type: "address" },
248
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
249
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
250
+ ]
251
+ }
252
+ ],
253
+ name: "hashAndCheckCommentExists",
254
+ outputs: [
255
+ { name: "commentId", internalType: "bytes32", type: "bytes32" },
256
+ { name: "exists", internalType: "bool", type: "bool" }
257
+ ]
258
+ },
259
+ {
260
+ stateMutability: "view",
261
+ type: "function",
262
+ inputs: [
263
+ {
264
+ name: "commentIdentifier",
265
+ internalType: "struct IComments.CommentIdentifier",
266
+ type: "tuple",
267
+ components: [
268
+ { name: "commenter", internalType: "address", type: "address" },
269
+ { name: "contractAddress", internalType: "address", type: "address" },
270
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
271
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
272
+ ]
273
+ }
274
+ ],
275
+ name: "hashAndValidateCommentExists",
276
+ outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
277
+ },
278
+ {
279
+ stateMutability: "pure",
280
+ type: "function",
281
+ inputs: [
282
+ {
283
+ name: "commentIdentifier",
284
+ internalType: "struct IComments.CommentIdentifier",
285
+ type: "tuple",
286
+ components: [
287
+ { name: "commenter", internalType: "address", type: "address" },
288
+ { name: "contractAddress", internalType: "address", type: "address" },
289
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
290
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
291
+ ]
292
+ }
293
+ ],
294
+ name: "hashCommentIdentifier",
295
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
296
+ },
297
+ {
298
+ stateMutability: "view",
299
+ type: "function",
300
+ inputs: [
301
+ {
302
+ name: "permit",
303
+ internalType: "struct IComments.PermitComment",
304
+ type: "tuple",
305
+ components: [
306
+ { name: "commenter", internalType: "address", type: "address" },
307
+ { name: "contractAddress", internalType: "address", type: "address" },
308
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
309
+ {
310
+ name: "replyTo",
311
+ internalType: "struct IComments.CommentIdentifier",
312
+ type: "tuple",
313
+ components: [
314
+ { name: "commenter", internalType: "address", type: "address" },
315
+ {
316
+ name: "contractAddress",
317
+ internalType: "address",
318
+ type: "address"
319
+ },
320
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
321
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
322
+ ]
323
+ },
324
+ { name: "text", internalType: "string", type: "string" },
325
+ { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
326
+ { name: "deadline", internalType: "uint256", type: "uint256" },
327
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
328
+ { name: "referrer", internalType: "address", type: "address" },
329
+ { name: "sourceChainId", internalType: "uint256", type: "uint256" },
330
+ {
331
+ name: "destinationChainId",
332
+ internalType: "uint256",
333
+ type: "uint256"
334
+ }
335
+ ]
336
+ }
337
+ ],
338
+ name: "hashPermitComment",
339
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
340
+ },
341
+ {
342
+ stateMutability: "view",
343
+ type: "function",
344
+ inputs: [
345
+ {
346
+ name: "permit",
347
+ internalType: "struct IComments.PermitSparkComment",
348
+ type: "tuple",
349
+ components: [
350
+ {
351
+ name: "comment",
352
+ internalType: "struct IComments.CommentIdentifier",
353
+ type: "tuple",
354
+ components: [
355
+ { name: "commenter", internalType: "address", type: "address" },
356
+ {
357
+ name: "contractAddress",
358
+ internalType: "address",
359
+ type: "address"
360
+ },
361
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
362
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
363
+ ]
364
+ },
365
+ { name: "sparker", internalType: "address", type: "address" },
366
+ { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
367
+ { name: "deadline", internalType: "uint256", type: "uint256" },
368
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
369
+ { name: "referrer", internalType: "address", type: "address" },
370
+ { name: "sourceChainId", internalType: "uint256", type: "uint256" },
371
+ {
372
+ name: "destinationChainId",
373
+ internalType: "uint256",
374
+ type: "uint256"
375
+ }
376
+ ]
377
+ }
378
+ ],
379
+ name: "hashPermitSparkComment",
380
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
381
+ },
382
+ {
383
+ stateMutability: "nonpayable",
384
+ type: "function",
385
+ inputs: [
386
+ { name: "_zoraRecipient", internalType: "address", type: "address" },
387
+ { name: "defaultAdmin", internalType: "address", type: "address" },
388
+ { name: "backfiller", internalType: "address", type: "address" },
389
+ {
390
+ name: "delegateCommenters",
391
+ internalType: "address[]",
392
+ type: "address[]"
393
+ }
394
+ ],
395
+ name: "initialize",
396
+ outputs: []
397
+ },
398
+ {
399
+ stateMutability: "view",
400
+ type: "function",
401
+ inputs: [],
402
+ name: "nextNonce",
403
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
404
+ },
405
+ {
406
+ stateMutability: "view",
407
+ type: "function",
408
+ inputs: [
409
+ { name: "owner", internalType: "address", type: "address" },
410
+ { name: "nonce", internalType: "uint256", type: "uint256" }
411
+ ],
412
+ name: "nonceUsed",
413
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
414
+ },
415
+ {
416
+ stateMutability: "payable",
417
+ type: "function",
418
+ inputs: [
419
+ {
420
+ name: "permit",
421
+ internalType: "struct IComments.PermitComment",
422
+ type: "tuple",
423
+ components: [
424
+ { name: "commenter", internalType: "address", type: "address" },
425
+ { name: "contractAddress", internalType: "address", type: "address" },
426
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
427
+ {
428
+ name: "replyTo",
429
+ internalType: "struct IComments.CommentIdentifier",
430
+ type: "tuple",
431
+ components: [
432
+ { name: "commenter", internalType: "address", type: "address" },
433
+ {
434
+ name: "contractAddress",
435
+ internalType: "address",
436
+ type: "address"
437
+ },
438
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
439
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
440
+ ]
441
+ },
442
+ { name: "text", internalType: "string", type: "string" },
443
+ { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
444
+ { name: "deadline", internalType: "uint256", type: "uint256" },
445
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
446
+ { name: "referrer", internalType: "address", type: "address" },
447
+ { name: "sourceChainId", internalType: "uint256", type: "uint256" },
448
+ {
449
+ name: "destinationChainId",
450
+ internalType: "uint256",
451
+ type: "uint256"
452
+ }
453
+ ]
454
+ },
455
+ { name: "signature", internalType: "bytes", type: "bytes" }
456
+ ],
457
+ name: "permitComment",
458
+ outputs: []
459
+ },
460
+ {
461
+ stateMutability: "payable",
462
+ type: "function",
463
+ inputs: [
464
+ {
465
+ name: "permit",
466
+ internalType: "struct IComments.PermitSparkComment",
467
+ type: "tuple",
468
+ components: [
469
+ {
470
+ name: "comment",
471
+ internalType: "struct IComments.CommentIdentifier",
472
+ type: "tuple",
473
+ components: [
474
+ { name: "commenter", internalType: "address", type: "address" },
475
+ {
476
+ name: "contractAddress",
477
+ internalType: "address",
478
+ type: "address"
479
+ },
480
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
481
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
482
+ ]
483
+ },
484
+ { name: "sparker", internalType: "address", type: "address" },
485
+ { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
486
+ { name: "deadline", internalType: "uint256", type: "uint256" },
487
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
488
+ { name: "referrer", internalType: "address", type: "address" },
489
+ { name: "sourceChainId", internalType: "uint256", type: "uint256" },
490
+ {
491
+ name: "destinationChainId",
492
+ internalType: "uint256",
493
+ type: "uint256"
494
+ }
495
+ ]
496
+ },
497
+ { name: "signature", internalType: "bytes", type: "bytes" }
498
+ ],
499
+ name: "permitSparkComment",
500
+ outputs: []
501
+ },
502
+ {
503
+ stateMutability: "view",
504
+ type: "function",
505
+ inputs: [],
506
+ name: "protocolRewards",
507
+ outputs: [
508
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
509
+ ]
510
+ },
511
+ {
512
+ stateMutability: "view",
513
+ type: "function",
514
+ inputs: [],
515
+ name: "proxiableUUID",
516
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
517
+ },
518
+ {
519
+ stateMutability: "nonpayable",
520
+ type: "function",
521
+ inputs: [
522
+ { name: "role", internalType: "bytes32", type: "bytes32" },
523
+ { name: "callerConfirmation", internalType: "address", type: "address" }
524
+ ],
525
+ name: "renounceRole",
526
+ outputs: []
527
+ },
528
+ {
529
+ stateMutability: "nonpayable",
530
+ type: "function",
531
+ inputs: [
532
+ { name: "role", internalType: "bytes32", type: "bytes32" },
533
+ { name: "account", internalType: "address", type: "address" }
534
+ ],
535
+ name: "revokeRole",
536
+ outputs: []
537
+ },
538
+ {
539
+ stateMutability: "payable",
540
+ type: "function",
541
+ inputs: [
542
+ {
543
+ name: "commentIdentifier",
544
+ internalType: "struct IComments.CommentIdentifier",
545
+ type: "tuple",
546
+ components: [
547
+ { name: "commenter", internalType: "address", type: "address" },
548
+ { name: "contractAddress", internalType: "address", type: "address" },
549
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
550
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
551
+ ]
552
+ },
553
+ { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
554
+ { name: "referrer", internalType: "address", type: "address" }
555
+ ],
556
+ name: "sparkComment",
557
+ outputs: []
558
+ },
559
+ {
560
+ stateMutability: "view",
561
+ type: "function",
562
+ inputs: [],
563
+ name: "sparkValue",
564
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
565
+ },
566
+ {
567
+ stateMutability: "view",
568
+ type: "function",
569
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
570
+ name: "supportsInterface",
571
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
572
+ },
573
+ {
574
+ stateMutability: "payable",
575
+ type: "function",
576
+ inputs: [
577
+ { name: "newImplementation", internalType: "address", type: "address" },
578
+ { name: "data", internalType: "bytes", type: "bytes" }
579
+ ],
580
+ name: "upgradeToAndCall",
581
+ outputs: []
582
+ },
583
+ {
584
+ type: "event",
585
+ anonymous: false,
586
+ inputs: [
587
+ {
588
+ name: "commentId",
589
+ internalType: "bytes32",
590
+ type: "bytes32",
591
+ indexed: true
592
+ },
593
+ {
594
+ name: "comment",
595
+ internalType: "struct IComments.CommentIdentifier",
596
+ type: "tuple",
597
+ components: [
598
+ { name: "commenter", internalType: "address", type: "address" },
599
+ { name: "contractAddress", internalType: "address", type: "address" },
600
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
601
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
602
+ ],
603
+ indexed: false
604
+ },
605
+ { name: "text", internalType: "string", type: "string", indexed: false },
606
+ {
607
+ name: "timestamp",
608
+ internalType: "uint256",
609
+ type: "uint256",
610
+ indexed: false
611
+ },
612
+ {
613
+ name: "originalTransactionId",
614
+ internalType: "bytes32",
615
+ type: "bytes32",
616
+ indexed: false
617
+ }
618
+ ],
619
+ name: "BackfilledComment"
620
+ },
621
+ {
622
+ type: "event",
623
+ anonymous: false,
624
+ inputs: [
625
+ {
626
+ name: "commentId",
627
+ internalType: "bytes32",
628
+ type: "bytes32",
629
+ indexed: true
630
+ },
631
+ {
632
+ name: "comment",
633
+ internalType: "struct IComments.CommentIdentifier",
634
+ type: "tuple",
635
+ components: [
636
+ { name: "commenter", internalType: "address", type: "address" },
637
+ { name: "contractAddress", internalType: "address", type: "address" },
638
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
639
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
640
+ ],
641
+ indexed: false
642
+ },
643
+ {
644
+ name: "replyToId",
645
+ internalType: "bytes32",
646
+ type: "bytes32",
647
+ indexed: false
648
+ },
649
+ {
650
+ name: "replyTo",
651
+ internalType: "struct IComments.CommentIdentifier",
652
+ type: "tuple",
653
+ components: [
654
+ { name: "commenter", internalType: "address", type: "address" },
655
+ { name: "contractAddress", internalType: "address", type: "address" },
656
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
657
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
658
+ ],
659
+ indexed: false
660
+ },
661
+ {
662
+ name: "sparksQuantity",
663
+ internalType: "uint64",
664
+ type: "uint64",
665
+ indexed: false
666
+ },
667
+ { name: "text", internalType: "string", type: "string", indexed: false },
668
+ {
669
+ name: "timestamp",
670
+ internalType: "uint256",
671
+ type: "uint256",
672
+ indexed: false
673
+ },
674
+ {
675
+ name: "referrer",
676
+ internalType: "address",
677
+ type: "address",
678
+ indexed: false
679
+ }
680
+ ],
681
+ name: "Commented"
682
+ },
683
+ {
684
+ type: "event",
685
+ anonymous: false,
686
+ inputs: [
687
+ {
688
+ name: "version",
689
+ internalType: "uint64",
690
+ type: "uint64",
691
+ indexed: false
692
+ }
693
+ ],
694
+ name: "Initialized"
695
+ },
696
+ {
697
+ type: "event",
698
+ anonymous: false,
699
+ inputs: [
700
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
701
+ {
702
+ name: "previousAdminRole",
703
+ internalType: "bytes32",
704
+ type: "bytes32",
705
+ indexed: true
706
+ },
707
+ {
708
+ name: "newAdminRole",
709
+ internalType: "bytes32",
710
+ type: "bytes32",
711
+ indexed: true
712
+ }
713
+ ],
714
+ name: "RoleAdminChanged"
715
+ },
716
+ {
717
+ type: "event",
718
+ anonymous: false,
719
+ inputs: [
720
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
721
+ {
722
+ name: "account",
723
+ internalType: "address",
724
+ type: "address",
725
+ indexed: true
726
+ },
727
+ {
728
+ name: "sender",
729
+ internalType: "address",
730
+ type: "address",
731
+ indexed: true
732
+ }
733
+ ],
734
+ name: "RoleGranted"
735
+ },
736
+ {
737
+ type: "event",
738
+ anonymous: false,
739
+ inputs: [
740
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
741
+ {
742
+ name: "account",
743
+ internalType: "address",
744
+ type: "address",
745
+ indexed: true
746
+ },
747
+ {
748
+ name: "sender",
749
+ internalType: "address",
750
+ type: "address",
751
+ indexed: true
752
+ }
753
+ ],
754
+ name: "RoleRevoked"
755
+ },
756
+ {
757
+ type: "event",
758
+ anonymous: false,
759
+ inputs: [
760
+ {
761
+ name: "commentId",
762
+ internalType: "bytes32",
763
+ type: "bytes32",
764
+ indexed: true
765
+ },
766
+ {
767
+ name: "commentIdentifier",
768
+ internalType: "struct IComments.CommentIdentifier",
769
+ type: "tuple",
770
+ components: [
771
+ { name: "commenter", internalType: "address", type: "address" },
772
+ { name: "contractAddress", internalType: "address", type: "address" },
773
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
774
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
775
+ ],
776
+ indexed: false
777
+ },
778
+ {
779
+ name: "sparksQuantity",
780
+ internalType: "uint64",
781
+ type: "uint64",
782
+ indexed: false
783
+ },
784
+ {
785
+ name: "sparker",
786
+ internalType: "address",
787
+ type: "address",
788
+ indexed: false
789
+ },
790
+ {
791
+ name: "timestamp",
792
+ internalType: "uint256",
793
+ type: "uint256",
794
+ indexed: false
795
+ }
796
+ ],
797
+ name: "SparkedComment"
798
+ },
799
+ {
800
+ type: "event",
801
+ anonymous: false,
802
+ inputs: [
803
+ {
804
+ name: "implementation",
805
+ internalType: "address",
806
+ type: "address",
807
+ indexed: true
808
+ }
809
+ ],
810
+ name: "Upgraded"
811
+ },
812
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
813
+ {
814
+ type: "error",
815
+ inputs: [
816
+ { name: "account", internalType: "address", type: "address" },
817
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
818
+ ],
819
+ name: "AccessControlUnauthorizedAccount"
820
+ },
821
+ {
822
+ type: "error",
823
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
824
+ name: "AddressEmptyCode"
825
+ },
826
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
827
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
828
+ {
829
+ type: "error",
830
+ inputs: [
831
+ { name: "commentAddress", internalType: "address", type: "address" },
832
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
833
+ { name: "replyAddress", internalType: "address", type: "address" },
834
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
835
+ ],
836
+ name: "CommentAddressOrTokenIdsDoNotMatch"
837
+ },
838
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
839
+ {
840
+ type: "error",
841
+ inputs: [
842
+ { name: "expected", internalType: "address", type: "address" },
843
+ { name: "actual", internalType: "address", type: "address" }
844
+ ],
845
+ name: "CommenterMismatch"
846
+ },
847
+ {
848
+ type: "error",
849
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
850
+ name: "DuplicateComment"
851
+ },
852
+ {
853
+ type: "error",
854
+ inputs: [
855
+ { name: "implementation", internalType: "address", type: "address" }
856
+ ],
857
+ name: "ERC1967InvalidImplementation"
858
+ },
859
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
860
+ {
861
+ type: "error",
862
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
863
+ name: "ERC2612ExpiredSignature"
864
+ },
865
+ { type: "error", inputs: [], name: "EmptyComment" },
866
+ { type: "error", inputs: [], name: "FailedInnerCall" },
867
+ {
868
+ type: "error",
869
+ inputs: [
870
+ {
871
+ name: "wrongDestinationChainId",
872
+ internalType: "uint256",
873
+ type: "uint256"
874
+ }
875
+ ],
876
+ name: "IncorrectDestinationChain"
877
+ },
878
+ {
879
+ type: "error",
880
+ inputs: [
881
+ { name: "actual", internalType: "uint256", type: "uint256" },
882
+ { name: "expected", internalType: "uint256", type: "uint256" }
883
+ ],
884
+ name: "IncorrectETHAmountForSparks"
885
+ },
886
+ {
887
+ type: "error",
888
+ inputs: [
889
+ { name: "account", internalType: "address", type: "address" },
890
+ { name: "currentNonce", internalType: "uint256", type: "uint256" }
891
+ ],
892
+ name: "InvalidAccountNonce"
893
+ },
894
+ { type: "error", inputs: [], name: "InvalidInitialization" },
895
+ { type: "error", inputs: [], name: "InvalidSignature" },
896
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
897
+ { type: "error", inputs: [], name: "NotInitializing" },
898
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
899
+ { type: "error", inputs: [], name: "OnlySparksContract" },
900
+ { type: "error", inputs: [], name: "TransferFailed" },
901
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
902
+ {
903
+ type: "error",
904
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
905
+ name: "UUPSUnsupportedProxiableUUID"
906
+ },
907
+ {
908
+ type: "error",
909
+ inputs: [
910
+ { name: "currentName", internalType: "string", type: "string" },
911
+ { name: "newName", internalType: "string", type: "string" }
912
+ ],
913
+ name: "UpgradeToMismatchedContractName"
914
+ }
915
+ ];
916
+ var commentsAddress = {
917
+ 999999999: "0x7777777bE14a1F7Fd6896B5FBDa5ceD5FC6e501a"
918
+ };
919
+ var commentsConfig = {
920
+ address: commentsAddress,
921
+ abi: commentsABI
922
+ };
13
923
  var erc20MinterABI = [
14
924
  {
15
925
  stateMutability: "nonpayable",
@@ -2307,6 +3217,8 @@ var secondarySwapABI = [
2307
3217
  inputs: [{ name: "account", internalType: "address", type: "address" }],
2308
3218
  name: "AddressInsufficientBalance"
2309
3219
  },
3220
+ { type: "error", inputs: [], name: "AddressZero" },
3221
+ { type: "error", inputs: [], name: "AlreadyInitialized" },
2310
3222
  { type: "error", inputs: [], name: "ERC20ZEquivalentAmountNotConverted" },
2311
3223
  { type: "error", inputs: [], name: "ERC20ZMinimumAmountNotReceived" },
2312
3224
  { type: "error", inputs: [], name: "FailedInnerCall" },
@@ -2318,15 +3230,15 @@ var secondarySwapABI = [
2318
3230
  { type: "error", inputs: [], name: "SaleNotSet" }
2319
3231
  ];
2320
3232
  var secondarySwapAddress = {
2321
- 1: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2322
- 10: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2323
- 8453: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2324
- 42161: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2325
- 81457: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2326
- 84532: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2327
- 7777777: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2328
- 11155111: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91",
2329
- 999999999: "0x777777794a6e310F2A55da6f157b16ED28Fa5D91"
3233
+ 1: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3234
+ 10: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3235
+ 8453: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3236
+ 42161: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3237
+ 81457: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3238
+ 84532: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3239
+ 7777777: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3240
+ 11155111: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1",
3241
+ 999999999: "0x777777EDF27Ac61671e3D5718b10bf6a8802f9f1"
2330
3242
  };
2331
3243
  var secondarySwapConfig = {
2332
3244
  address: secondarySwapAddress,
@@ -3827,6 +4739,7 @@ var zoraCreator1155FactoryImplABI = [
3827
4739
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
3828
4740
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
3829
4741
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
4742
+ { type: "error", inputs: [], name: "NoCodeAtAddress" },
3830
4743
  { type: "error", inputs: [], name: "NotInitializing" },
3831
4744
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
3832
4745
  {
@@ -5248,6 +6161,7 @@ var zoraCreator1155ImplABI = [
5248
6161
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
5249
6162
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
5250
6163
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
6164
+ { type: "error", inputs: [], name: "NoCodeAtAddress" },
5251
6165
  { type: "error", inputs: [], name: "NotInitializing" },
5252
6166
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
5253
6167
  {
@@ -9755,7 +10669,17 @@ var zoraSparksManagerImplConfig = {
9755
10669
  abi: zoraSparksManagerImplABI
9756
10670
  };
9757
10671
  var zoraTimedSaleStrategyABI = [
9758
- { stateMutability: "nonpayable", type: "constructor", inputs: [] },
10672
+ {
10673
+ stateMutability: "nonpayable",
10674
+ type: "constructor",
10675
+ inputs: [
10676
+ {
10677
+ name: "_comments",
10678
+ internalType: "contract IComments",
10679
+ type: "address"
10680
+ }
10681
+ ]
10682
+ },
9759
10683
  {
9760
10684
  stateMutability: "view",
9761
10685
  type: "function",
@@ -9804,6 +10728,15 @@ var zoraTimedSaleStrategyABI = [
9804
10728
  }
9805
10729
  ]
9806
10730
  },
10731
+ {
10732
+ stateMutability: "view",
10733
+ type: "function",
10734
+ inputs: [],
10735
+ name: "comments",
10736
+ outputs: [
10737
+ { name: "", internalType: "contract IComments", type: "address" }
10738
+ ]
10739
+ },
9807
10740
  {
9808
10741
  stateMutability: "pure",
9809
10742
  type: "function",
@@ -9873,6 +10806,13 @@ var zoraTimedSaleStrategyABI = [
9873
10806
  { name: "createReferral", internalType: "address", type: "address" }
9874
10807
  ]
9875
10808
  },
10809
+ {
10810
+ stateMutability: "view",
10811
+ type: "function",
10812
+ inputs: [],
10813
+ name: "implementation",
10814
+ outputs: [{ name: "", internalType: "address", type: "address" }]
10815
+ },
9876
10816
  {
9877
10817
  stateMutability: "nonpayable",
9878
10818
  type: "function",
@@ -10230,6 +11170,43 @@ var zoraTimedSaleStrategyABI = [
10230
11170
  ],
10231
11171
  name: "MintComment"
10232
11172
  },
11173
+ {
11174
+ type: "event",
11175
+ anonymous: false,
11176
+ inputs: [
11177
+ {
11178
+ name: "commentId",
11179
+ internalType: "bytes32",
11180
+ type: "bytes32",
11181
+ indexed: true
11182
+ },
11183
+ {
11184
+ name: "commentIdentifier",
11185
+ internalType: "struct IComments.CommentIdentifier",
11186
+ type: "tuple",
11187
+ components: [
11188
+ { name: "commenter", internalType: "address", type: "address" },
11189
+ { name: "contractAddress", internalType: "address", type: "address" },
11190
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
11191
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
11192
+ ],
11193
+ indexed: false
11194
+ },
11195
+ {
11196
+ name: "mintQuantity",
11197
+ internalType: "uint256",
11198
+ type: "uint256",
11199
+ indexed: false
11200
+ },
11201
+ {
11202
+ name: "comment",
11203
+ internalType: "string",
11204
+ type: "string",
11205
+ indexed: false
11206
+ }
11207
+ ],
11208
+ name: "MintedAndCommented"
11209
+ },
10233
11210
  {
10234
11211
  type: "event",
10235
11212
  anonymous: false,
@@ -10506,6 +11483,7 @@ var zoraTimedSaleStrategyABI = [
10506
11483
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
10507
11484
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
10508
11485
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
11486
+ { type: "error", inputs: [], name: "NoCodeAtAddress" },
10509
11487
  { type: "error", inputs: [], name: "NotInitializing" },
10510
11488
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
10511
11489
  {
@@ -10566,6 +11544,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10566
11544
  PremintConfigVersion2["V3"] = "3";
10567
11545
  return PremintConfigVersion2;
10568
11546
  })(PremintConfigVersion || {});
11547
+ var emptyCommentIdentifier = () => {
11548
+ const zeroAddress = "0x0000000000000000000000000000000000000000";
11549
+ const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
11550
+ return {
11551
+ commenter: zeroAddress,
11552
+ contractAddress: zeroAddress,
11553
+ tokenId: 0n,
11554
+ nonce: zeroHash
11555
+ };
11556
+ };
10569
11557
 
10570
11558
  // src/typedData.ts
10571
11559
  var premintTypedDataDomain = ({
@@ -11194,7 +12182,11 @@ var addresses2 = {
11194
12182
  };
11195
12183
  export {
11196
12184
  PremintConfigVersion,
12185
+ commentsABI,
12186
+ commentsAddress,
12187
+ commentsConfig,
11197
12188
  __exports as contracts1155,
12189
+ emptyCommentIdentifier,
11198
12190
  encodePremintConfig,
11199
12191
  erc20MinterABI,
11200
12192
  erc20MinterAddress,