@zoralabs/protocol-deployments 0.3.6 → 0.3.8-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,2025 @@
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: "OnlyTransfersFromZoraMints" },
856
+ { type: "error", inputs: [], name: "PremintDeleted" },
857
+ {
858
+ type: "error",
859
+ inputs: [
860
+ { name: "caller", internalType: "address", type: "address" },
861
+ { name: "recipient", internalType: "address", type: "address" },
862
+ { name: "amount", internalType: "uint256", type: "uint256" }
863
+ ],
864
+ name: "ProtocolRewardsWithdrawFailed"
865
+ },
866
+ {
867
+ type: "error",
868
+ inputs: [{ name: "renderer", internalType: "address", type: "address" }],
869
+ name: "RendererNotValid"
870
+ },
871
+ { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
872
+ { type: "error", inputs: [], name: "SaleEnded" },
873
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
874
+ {
875
+ type: "error",
876
+ inputs: [
877
+ { name: "targetContract", internalType: "address", type: "address" }
878
+ ],
879
+ name: "Sale_CannotCallNonSalesContract"
880
+ },
881
+ {
882
+ type: "error",
883
+ inputs: [
884
+ { name: "expected", internalType: "uint256", type: "uint256" },
885
+ { name: "actual", internalType: "uint256", type: "uint256" }
886
+ ],
887
+ name: "TokenIdMismatch"
888
+ },
889
+ {
890
+ type: "error",
891
+ inputs: [],
892
+ name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
893
+ },
894
+ {
895
+ type: "error",
896
+ inputs: [
897
+ { name: "user", internalType: "address", type: "address" },
898
+ { name: "limit", internalType: "uint256", type: "uint256" },
899
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
900
+ ],
901
+ name: "UserExceedsMintLimit"
902
+ },
903
+ {
904
+ type: "error",
905
+ inputs: [
906
+ { name: "user", internalType: "address", type: "address" },
907
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
908
+ { name: "role", internalType: "uint256", type: "uint256" }
909
+ ],
910
+ name: "UserMissingRoleForToken"
911
+ },
912
+ { type: "error", inputs: [], name: "WrongValueSent" },
913
+ {
914
+ type: "error",
915
+ inputs: [],
916
+ name: "premintSignerContractFailedToRecoverSigner"
917
+ },
918
+ { type: "error", inputs: [], name: "premintSignerContractNotAContract" },
919
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
920
+ {
921
+ type: "error",
922
+ inputs: [
923
+ { name: "account", internalType: "address", type: "address" },
924
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
925
+ ],
926
+ name: "AccessControlUnauthorizedAccount"
927
+ },
928
+ {
929
+ type: "error",
930
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
931
+ name: "AddressEmptyCode"
932
+ },
933
+ { type: "error", inputs: [], name: "AddressZero" },
934
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
935
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
936
+ {
937
+ type: "error",
938
+ inputs: [
939
+ { name: "commentAddress", internalType: "address", type: "address" },
940
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
941
+ { name: "replyAddress", internalType: "address", type: "address" },
942
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
943
+ ],
944
+ name: "CommentAddressOrTokenIdsDoNotMatch"
945
+ },
946
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
947
+ {
948
+ type: "error",
949
+ inputs: [
950
+ { name: "expected", internalType: "address", type: "address" },
951
+ { name: "actual", internalType: "address", type: "address" }
952
+ ],
953
+ name: "CommenterMismatch"
954
+ },
955
+ {
956
+ type: "error",
957
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
958
+ name: "DuplicateComment"
959
+ },
960
+ {
961
+ type: "error",
962
+ inputs: [
963
+ { name: "implementation", internalType: "address", type: "address" }
964
+ ],
965
+ name: "ERC1967InvalidImplementation"
966
+ },
967
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
968
+ {
969
+ type: "error",
970
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
971
+ name: "ERC2612ExpiredSignature"
972
+ },
973
+ { type: "error", inputs: [], name: "EmptyComment" },
974
+ { type: "error", inputs: [], name: "FailedInnerCall" },
975
+ {
976
+ type: "error",
977
+ inputs: [
978
+ {
979
+ name: "wrongDestinationChainId",
980
+ internalType: "uint256",
981
+ type: "uint256"
982
+ }
983
+ ],
984
+ name: "IncorrectDestinationChain"
985
+ },
986
+ {
987
+ type: "error",
988
+ inputs: [
989
+ { name: "actual", internalType: "uint256", type: "uint256" },
990
+ { name: "expected", internalType: "uint256", type: "uint256" }
991
+ ],
992
+ name: "IncorrectETHAmountForSparks"
993
+ },
994
+ {
995
+ type: "error",
996
+ inputs: [
997
+ { name: "account", internalType: "address", type: "address" },
998
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
999
+ ],
1000
+ name: "InvalidAccountNonce"
1001
+ },
1002
+ { type: "error", inputs: [], name: "InvalidInitialization" },
1003
+ { type: "error", inputs: [], name: "InvalidSignature" },
1004
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
1005
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
1006
+ { type: "error", inputs: [], name: "NotInitializing" },
1007
+ { type: "error", inputs: [], name: "NotSmartWallet" },
1008
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
1009
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
1010
+ { type: "error", inputs: [], name: "OnlySparksContract" },
1011
+ { type: "error", inputs: [], name: "TransferFailed" },
1012
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
1013
+ {
1014
+ type: "error",
1015
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
1016
+ name: "UUPSUnsupportedProxiableUUID"
1017
+ },
1018
+ {
1019
+ type: "error",
1020
+ inputs: [
1021
+ { name: "currentName", internalType: "string", type: "string" },
1022
+ { name: "newName", internalType: "string", type: "string" }
1023
+ ],
1024
+ name: "UpgradeToMismatchedContractName"
1025
+ }
1026
+ ];
1027
+ var callerAndCommenterAddress = {
1028
+ 10: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1029
+ 8453: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1030
+ 42161: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1031
+ 84532: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1032
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1033
+ 11155111: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1034
+ 11155420: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
1035
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
1036
+ };
1037
+ var callerAndCommenterConfig = {
1038
+ address: callerAndCommenterAddress,
1039
+ abi: callerAndCommenterABI
1040
+ };
1041
+ var commentsABI = [
1042
+ {
1043
+ stateMutability: "nonpayable",
1044
+ type: "constructor",
1045
+ inputs: [
1046
+ { name: "_sparkValue", internalType: "uint256", type: "uint256" },
1047
+ { name: "_protocolRewards", internalType: "address", type: "address" },
1048
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
1049
+ ]
1050
+ },
1051
+ {
1052
+ stateMutability: "view",
1053
+ type: "function",
1054
+ inputs: [],
1055
+ name: "BACKFILLER_ROLE",
1056
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1057
+ },
1058
+ {
1059
+ stateMutability: "view",
1060
+ type: "function",
1061
+ inputs: [],
1062
+ name: "DEFAULT_ADMIN_ROLE",
1063
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1064
+ },
1065
+ {
1066
+ stateMutability: "view",
1067
+ type: "function",
1068
+ inputs: [],
1069
+ name: "DELEGATE_COMMENTER",
1070
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1071
+ },
1072
+ {
1073
+ stateMutability: "view",
1074
+ type: "function",
1075
+ inputs: [],
1076
+ name: "DOMAIN_NAME",
1077
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1078
+ },
1079
+ {
1080
+ stateMutability: "view",
1081
+ type: "function",
1082
+ inputs: [],
1083
+ name: "DOMAIN_VERSION",
1084
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1085
+ },
1086
+ {
1087
+ stateMutability: "view",
1088
+ type: "function",
1089
+ inputs: [],
1090
+ name: "PERMISSION_BIT_ADMIN",
1091
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1092
+ },
1093
+ {
1094
+ stateMutability: "view",
1095
+ type: "function",
1096
+ inputs: [],
1097
+ name: "REFERRER_REWARD_PCT",
1098
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1099
+ },
1100
+ {
1101
+ stateMutability: "view",
1102
+ type: "function",
1103
+ inputs: [],
1104
+ name: "UPGRADE_INTERFACE_VERSION",
1105
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1106
+ },
1107
+ {
1108
+ stateMutability: "view",
1109
+ type: "function",
1110
+ inputs: [],
1111
+ name: "ZORA_REWARD_NO_REFERRER_PCT",
1112
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1113
+ },
1114
+ {
1115
+ stateMutability: "view",
1116
+ type: "function",
1117
+ inputs: [],
1118
+ name: "ZORA_REWARD_PCT",
1119
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1120
+ },
1121
+ {
1122
+ stateMutability: "nonpayable",
1123
+ type: "function",
1124
+ inputs: [
1125
+ {
1126
+ name: "commentIdentifiers",
1127
+ internalType: "struct IComments.CommentIdentifier[]",
1128
+ type: "tuple[]",
1129
+ components: [
1130
+ { name: "commenter", internalType: "address", type: "address" },
1131
+ { name: "contractAddress", internalType: "address", type: "address" },
1132
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1133
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1134
+ ]
1135
+ },
1136
+ { name: "texts", internalType: "string[]", type: "string[]" },
1137
+ { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
1138
+ {
1139
+ name: "originalTransactionHashes",
1140
+ internalType: "bytes32[]",
1141
+ type: "bytes32[]"
1142
+ }
1143
+ ],
1144
+ name: "backfillBatchAddComment",
1145
+ outputs: []
1146
+ },
1147
+ {
1148
+ stateMutability: "payable",
1149
+ type: "function",
1150
+ inputs: [
1151
+ { name: "commenter", internalType: "address", type: "address" },
1152
+ { name: "contractAddress", internalType: "address", type: "address" },
1153
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1154
+ { name: "text", internalType: "string", type: "string" },
1155
+ {
1156
+ name: "replyTo",
1157
+ internalType: "struct IComments.CommentIdentifier",
1158
+ type: "tuple",
1159
+ components: [
1160
+ { name: "commenter", internalType: "address", type: "address" },
1161
+ { name: "contractAddress", internalType: "address", type: "address" },
1162
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1163
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1164
+ ]
1165
+ },
1166
+ {
1167
+ name: "commenterSmartWallet",
1168
+ internalType: "address",
1169
+ type: "address"
1170
+ },
1171
+ { name: "referrer", internalType: "address", type: "address" }
1172
+ ],
1173
+ name: "comment",
1174
+ outputs: [
1175
+ {
1176
+ name: "commentIdentifier",
1177
+ internalType: "struct IComments.CommentIdentifier",
1178
+ type: "tuple",
1179
+ components: [
1180
+ { name: "commenter", internalType: "address", type: "address" },
1181
+ { name: "contractAddress", internalType: "address", type: "address" },
1182
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1183
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1184
+ ]
1185
+ }
1186
+ ]
1187
+ },
1188
+ {
1189
+ stateMutability: "view",
1190
+ type: "function",
1191
+ inputs: [
1192
+ {
1193
+ name: "commentIdentifier",
1194
+ internalType: "struct IComments.CommentIdentifier",
1195
+ type: "tuple",
1196
+ components: [
1197
+ { name: "commenter", internalType: "address", type: "address" },
1198
+ { name: "contractAddress", internalType: "address", type: "address" },
1199
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1200
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1201
+ ]
1202
+ }
1203
+ ],
1204
+ name: "commentSparksQuantity",
1205
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1206
+ },
1207
+ {
1208
+ stateMutability: "pure",
1209
+ type: "function",
1210
+ inputs: [],
1211
+ name: "contractName",
1212
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1213
+ },
1214
+ {
1215
+ stateMutability: "pure",
1216
+ type: "function",
1217
+ inputs: [],
1218
+ name: "contractVersion",
1219
+ outputs: [{ name: "", internalType: "string", type: "string" }]
1220
+ },
1221
+ {
1222
+ stateMutability: "payable",
1223
+ type: "function",
1224
+ inputs: [
1225
+ { name: "commenter", internalType: "address", type: "address" },
1226
+ { name: "contractAddress", internalType: "address", type: "address" },
1227
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1228
+ { name: "text", internalType: "string", type: "string" },
1229
+ {
1230
+ name: "replyTo",
1231
+ internalType: "struct IComments.CommentIdentifier",
1232
+ type: "tuple",
1233
+ components: [
1234
+ { name: "commenter", internalType: "address", type: "address" },
1235
+ { name: "contractAddress", internalType: "address", type: "address" },
1236
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1237
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1238
+ ]
1239
+ },
1240
+ {
1241
+ name: "commenterSmartWalletOwner",
1242
+ internalType: "address",
1243
+ type: "address"
1244
+ },
1245
+ { name: "referrer", internalType: "address", type: "address" }
1246
+ ],
1247
+ name: "delegateComment",
1248
+ outputs: [
1249
+ {
1250
+ name: "commentIdentifier",
1251
+ internalType: "struct IComments.CommentIdentifier",
1252
+ type: "tuple",
1253
+ components: [
1254
+ { name: "commenter", internalType: "address", type: "address" },
1255
+ { name: "contractAddress", internalType: "address", type: "address" },
1256
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1257
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1258
+ ]
1259
+ },
1260
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
1261
+ ]
1262
+ },
1263
+ {
1264
+ stateMutability: "view",
1265
+ type: "function",
1266
+ inputs: [],
1267
+ name: "eip712Domain",
1268
+ outputs: [
1269
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
1270
+ { name: "name", internalType: "string", type: "string" },
1271
+ { name: "version", internalType: "string", type: "string" },
1272
+ { name: "chainId", internalType: "uint256", type: "uint256" },
1273
+ { name: "verifyingContract", internalType: "address", type: "address" },
1274
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1275
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
1276
+ ]
1277
+ },
1278
+ {
1279
+ stateMutability: "view",
1280
+ type: "function",
1281
+ inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
1282
+ name: "getRoleAdmin",
1283
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1284
+ },
1285
+ {
1286
+ stateMutability: "nonpayable",
1287
+ type: "function",
1288
+ inputs: [
1289
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1290
+ { name: "account", internalType: "address", type: "address" }
1291
+ ],
1292
+ name: "grantRole",
1293
+ outputs: []
1294
+ },
1295
+ {
1296
+ stateMutability: "view",
1297
+ type: "function",
1298
+ inputs: [
1299
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1300
+ { name: "account", internalType: "address", type: "address" }
1301
+ ],
1302
+ name: "hasRole",
1303
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1304
+ },
1305
+ {
1306
+ stateMutability: "view",
1307
+ type: "function",
1308
+ inputs: [
1309
+ {
1310
+ name: "commentIdentifier",
1311
+ internalType: "struct IComments.CommentIdentifier",
1312
+ type: "tuple",
1313
+ components: [
1314
+ { name: "commenter", internalType: "address", type: "address" },
1315
+ { name: "contractAddress", internalType: "address", type: "address" },
1316
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1317
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1318
+ ]
1319
+ }
1320
+ ],
1321
+ name: "hashAndCheckCommentExists",
1322
+ outputs: [
1323
+ { name: "commentId", internalType: "bytes32", type: "bytes32" },
1324
+ { name: "exists", internalType: "bool", type: "bool" }
1325
+ ]
1326
+ },
1327
+ {
1328
+ stateMutability: "view",
1329
+ type: "function",
1330
+ inputs: [
1331
+ {
1332
+ name: "commentIdentifier",
1333
+ internalType: "struct IComments.CommentIdentifier",
1334
+ type: "tuple",
1335
+ components: [
1336
+ { name: "commenter", internalType: "address", type: "address" },
1337
+ { name: "contractAddress", internalType: "address", type: "address" },
1338
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1339
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1340
+ ]
1341
+ }
1342
+ ],
1343
+ name: "hashAndValidateCommentExists",
1344
+ outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
1345
+ },
1346
+ {
1347
+ stateMutability: "pure",
1348
+ type: "function",
1349
+ inputs: [
1350
+ {
1351
+ name: "commentIdentifier",
1352
+ internalType: "struct IComments.CommentIdentifier",
1353
+ type: "tuple",
1354
+ components: [
1355
+ { name: "commenter", internalType: "address", type: "address" },
1356
+ { name: "contractAddress", internalType: "address", type: "address" },
1357
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1358
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1359
+ ]
1360
+ }
1361
+ ],
1362
+ name: "hashCommentIdentifier",
1363
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1364
+ },
1365
+ {
1366
+ stateMutability: "view",
1367
+ type: "function",
1368
+ inputs: [
1369
+ {
1370
+ name: "permit",
1371
+ internalType: "struct IComments.PermitComment",
1372
+ type: "tuple",
1373
+ components: [
1374
+ { name: "commenter", internalType: "address", type: "address" },
1375
+ {
1376
+ name: "commenterSmartWallet",
1377
+ internalType: "address",
1378
+ type: "address"
1379
+ },
1380
+ { name: "contractAddress", internalType: "address", type: "address" },
1381
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1382
+ {
1383
+ name: "replyTo",
1384
+ internalType: "struct IComments.CommentIdentifier",
1385
+ type: "tuple",
1386
+ components: [
1387
+ { name: "commenter", internalType: "address", type: "address" },
1388
+ {
1389
+ name: "contractAddress",
1390
+ internalType: "address",
1391
+ type: "address"
1392
+ },
1393
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1394
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1395
+ ]
1396
+ },
1397
+ { name: "text", internalType: "string", type: "string" },
1398
+ { name: "referrer", internalType: "address", type: "address" },
1399
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1400
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1401
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1402
+ {
1403
+ name: "destinationChainId",
1404
+ internalType: "uint32",
1405
+ type: "uint32"
1406
+ }
1407
+ ]
1408
+ }
1409
+ ],
1410
+ name: "hashPermitComment",
1411
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1412
+ },
1413
+ {
1414
+ stateMutability: "view",
1415
+ type: "function",
1416
+ inputs: [
1417
+ {
1418
+ name: "permit",
1419
+ internalType: "struct IComments.PermitSparkComment",
1420
+ type: "tuple",
1421
+ components: [
1422
+ {
1423
+ name: "comment",
1424
+ internalType: "struct IComments.CommentIdentifier",
1425
+ type: "tuple",
1426
+ components: [
1427
+ { name: "commenter", internalType: "address", type: "address" },
1428
+ {
1429
+ name: "contractAddress",
1430
+ internalType: "address",
1431
+ type: "address"
1432
+ },
1433
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1434
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1435
+ ]
1436
+ },
1437
+ { name: "sparker", internalType: "address", type: "address" },
1438
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1439
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1440
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1441
+ { name: "referrer", internalType: "address", type: "address" },
1442
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1443
+ {
1444
+ name: "destinationChainId",
1445
+ internalType: "uint32",
1446
+ type: "uint32"
1447
+ }
1448
+ ]
1449
+ }
1450
+ ],
1451
+ name: "hashPermitSparkComment",
1452
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1453
+ },
1454
+ {
1455
+ stateMutability: "view",
1456
+ type: "function",
1457
+ inputs: [],
1458
+ name: "implementation",
1459
+ outputs: [{ name: "", internalType: "address", type: "address" }]
1460
+ },
1461
+ {
1462
+ stateMutability: "nonpayable",
1463
+ type: "function",
1464
+ inputs: [
1465
+ { name: "defaultAdmin", internalType: "address", type: "address" },
1466
+ { name: "backfiller", internalType: "address", type: "address" },
1467
+ {
1468
+ name: "delegateCommenters",
1469
+ internalType: "address[]",
1470
+ type: "address[]"
1471
+ }
1472
+ ],
1473
+ name: "initialize",
1474
+ outputs: []
1475
+ },
1476
+ {
1477
+ stateMutability: "view",
1478
+ type: "function",
1479
+ inputs: [],
1480
+ name: "nextNonce",
1481
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1482
+ },
1483
+ {
1484
+ stateMutability: "view",
1485
+ type: "function",
1486
+ inputs: [
1487
+ { name: "owner", internalType: "address", type: "address" },
1488
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1489
+ ],
1490
+ name: "nonceUsed",
1491
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1492
+ },
1493
+ {
1494
+ stateMutability: "payable",
1495
+ type: "function",
1496
+ inputs: [
1497
+ {
1498
+ name: "permit",
1499
+ internalType: "struct IComments.PermitComment",
1500
+ type: "tuple",
1501
+ components: [
1502
+ { name: "commenter", internalType: "address", type: "address" },
1503
+ {
1504
+ name: "commenterSmartWallet",
1505
+ internalType: "address",
1506
+ type: "address"
1507
+ },
1508
+ { name: "contractAddress", internalType: "address", type: "address" },
1509
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1510
+ {
1511
+ name: "replyTo",
1512
+ internalType: "struct IComments.CommentIdentifier",
1513
+ type: "tuple",
1514
+ components: [
1515
+ { name: "commenter", internalType: "address", type: "address" },
1516
+ {
1517
+ name: "contractAddress",
1518
+ internalType: "address",
1519
+ type: "address"
1520
+ },
1521
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1522
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1523
+ ]
1524
+ },
1525
+ { name: "text", internalType: "string", type: "string" },
1526
+ { name: "referrer", internalType: "address", type: "address" },
1527
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1528
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1529
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1530
+ {
1531
+ name: "destinationChainId",
1532
+ internalType: "uint32",
1533
+ type: "uint32"
1534
+ }
1535
+ ]
1536
+ },
1537
+ { name: "signature", internalType: "bytes", type: "bytes" }
1538
+ ],
1539
+ name: "permitComment",
1540
+ outputs: []
1541
+ },
1542
+ {
1543
+ stateMutability: "payable",
1544
+ type: "function",
1545
+ inputs: [
1546
+ {
1547
+ name: "permit",
1548
+ internalType: "struct IComments.PermitSparkComment",
1549
+ type: "tuple",
1550
+ components: [
1551
+ {
1552
+ name: "comment",
1553
+ internalType: "struct IComments.CommentIdentifier",
1554
+ type: "tuple",
1555
+ components: [
1556
+ { name: "commenter", internalType: "address", type: "address" },
1557
+ {
1558
+ name: "contractAddress",
1559
+ internalType: "address",
1560
+ type: "address"
1561
+ },
1562
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1563
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1564
+ ]
1565
+ },
1566
+ { name: "sparker", internalType: "address", type: "address" },
1567
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1568
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1569
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1570
+ { name: "referrer", internalType: "address", type: "address" },
1571
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1572
+ {
1573
+ name: "destinationChainId",
1574
+ internalType: "uint32",
1575
+ type: "uint32"
1576
+ }
1577
+ ]
1578
+ },
1579
+ { name: "signature", internalType: "bytes", type: "bytes" }
1580
+ ],
1581
+ name: "permitSparkComment",
1582
+ outputs: []
1583
+ },
1584
+ {
1585
+ stateMutability: "view",
1586
+ type: "function",
1587
+ inputs: [],
1588
+ name: "protocolRewards",
1589
+ outputs: [
1590
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
1591
+ ]
1592
+ },
1593
+ {
1594
+ stateMutability: "view",
1595
+ type: "function",
1596
+ inputs: [],
1597
+ name: "proxiableUUID",
1598
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1599
+ },
1600
+ {
1601
+ stateMutability: "nonpayable",
1602
+ type: "function",
1603
+ inputs: [
1604
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1605
+ { name: "callerConfirmation", internalType: "address", type: "address" }
1606
+ ],
1607
+ name: "renounceRole",
1608
+ outputs: []
1609
+ },
1610
+ {
1611
+ stateMutability: "nonpayable",
1612
+ type: "function",
1613
+ inputs: [
1614
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1615
+ { name: "account", internalType: "address", type: "address" }
1616
+ ],
1617
+ name: "revokeRole",
1618
+ outputs: []
1619
+ },
1620
+ {
1621
+ stateMutability: "payable",
1622
+ type: "function",
1623
+ inputs: [
1624
+ {
1625
+ name: "commentIdentifier",
1626
+ internalType: "struct IComments.CommentIdentifier",
1627
+ type: "tuple",
1628
+ components: [
1629
+ { name: "commenter", internalType: "address", type: "address" },
1630
+ { name: "contractAddress", internalType: "address", type: "address" },
1631
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1632
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1633
+ ]
1634
+ },
1635
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1636
+ { name: "referrer", internalType: "address", type: "address" }
1637
+ ],
1638
+ name: "sparkComment",
1639
+ outputs: []
1640
+ },
1641
+ {
1642
+ stateMutability: "view",
1643
+ type: "function",
1644
+ inputs: [],
1645
+ name: "sparkValue",
1646
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1647
+ },
1648
+ {
1649
+ stateMutability: "view",
1650
+ type: "function",
1651
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1652
+ name: "supportsInterface",
1653
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1654
+ },
1655
+ {
1656
+ stateMutability: "payable",
1657
+ type: "function",
1658
+ inputs: [
1659
+ { name: "newImplementation", internalType: "address", type: "address" },
1660
+ { name: "data", internalType: "bytes", type: "bytes" }
1661
+ ],
1662
+ name: "upgradeToAndCall",
1663
+ outputs: []
1664
+ },
1665
+ {
1666
+ type: "event",
1667
+ anonymous: false,
1668
+ inputs: [
1669
+ {
1670
+ name: "commentId",
1671
+ internalType: "bytes32",
1672
+ type: "bytes32",
1673
+ indexed: true
1674
+ },
1675
+ {
1676
+ name: "commentIdentifier",
1677
+ internalType: "struct IComments.CommentIdentifier",
1678
+ type: "tuple",
1679
+ components: [
1680
+ { name: "commenter", internalType: "address", type: "address" },
1681
+ { name: "contractAddress", internalType: "address", type: "address" },
1682
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1683
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1684
+ ],
1685
+ indexed: false
1686
+ },
1687
+ { name: "text", internalType: "string", type: "string", indexed: false },
1688
+ {
1689
+ name: "timestamp",
1690
+ internalType: "uint256",
1691
+ type: "uint256",
1692
+ indexed: false
1693
+ },
1694
+ {
1695
+ name: "originalTransactionId",
1696
+ internalType: "bytes32",
1697
+ type: "bytes32",
1698
+ indexed: false
1699
+ }
1700
+ ],
1701
+ name: "BackfilledComment"
1702
+ },
1703
+ {
1704
+ type: "event",
1705
+ anonymous: false,
1706
+ inputs: [
1707
+ {
1708
+ name: "commentId",
1709
+ internalType: "bytes32",
1710
+ type: "bytes32",
1711
+ indexed: true
1712
+ },
1713
+ {
1714
+ name: "commentIdentifier",
1715
+ internalType: "struct IComments.CommentIdentifier",
1716
+ type: "tuple",
1717
+ components: [
1718
+ { name: "commenter", internalType: "address", type: "address" },
1719
+ { name: "contractAddress", internalType: "address", type: "address" },
1720
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1721
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1722
+ ],
1723
+ indexed: false
1724
+ },
1725
+ {
1726
+ name: "replyToId",
1727
+ internalType: "bytes32",
1728
+ type: "bytes32",
1729
+ indexed: false
1730
+ },
1731
+ {
1732
+ name: "replyTo",
1733
+ internalType: "struct IComments.CommentIdentifier",
1734
+ type: "tuple",
1735
+ components: [
1736
+ { name: "commenter", internalType: "address", type: "address" },
1737
+ { name: "contractAddress", internalType: "address", type: "address" },
1738
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1739
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1740
+ ],
1741
+ indexed: false
1742
+ },
1743
+ {
1744
+ name: "sparksQuantity",
1745
+ internalType: "uint256",
1746
+ type: "uint256",
1747
+ indexed: false
1748
+ },
1749
+ { name: "text", internalType: "string", type: "string", indexed: false },
1750
+ {
1751
+ name: "timestamp",
1752
+ internalType: "uint256",
1753
+ type: "uint256",
1754
+ indexed: false
1755
+ },
1756
+ {
1757
+ name: "referrer",
1758
+ internalType: "address",
1759
+ type: "address",
1760
+ indexed: false
1761
+ }
1762
+ ],
1763
+ name: "Commented"
1764
+ },
1765
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
1766
+ {
1767
+ type: "event",
1768
+ anonymous: false,
1769
+ inputs: [
1770
+ {
1771
+ name: "version",
1772
+ internalType: "uint64",
1773
+ type: "uint64",
1774
+ indexed: false
1775
+ }
1776
+ ],
1777
+ name: "Initialized"
1778
+ },
1779
+ {
1780
+ type: "event",
1781
+ anonymous: false,
1782
+ inputs: [
1783
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1784
+ {
1785
+ name: "previousAdminRole",
1786
+ internalType: "bytes32",
1787
+ type: "bytes32",
1788
+ indexed: true
1789
+ },
1790
+ {
1791
+ name: "newAdminRole",
1792
+ internalType: "bytes32",
1793
+ type: "bytes32",
1794
+ indexed: true
1795
+ }
1796
+ ],
1797
+ name: "RoleAdminChanged"
1798
+ },
1799
+ {
1800
+ type: "event",
1801
+ anonymous: false,
1802
+ inputs: [
1803
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1804
+ {
1805
+ name: "account",
1806
+ internalType: "address",
1807
+ type: "address",
1808
+ indexed: true
1809
+ },
1810
+ {
1811
+ name: "sender",
1812
+ internalType: "address",
1813
+ type: "address",
1814
+ indexed: true
1815
+ }
1816
+ ],
1817
+ name: "RoleGranted"
1818
+ },
1819
+ {
1820
+ type: "event",
1821
+ anonymous: false,
1822
+ inputs: [
1823
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1824
+ {
1825
+ name: "account",
1826
+ internalType: "address",
1827
+ type: "address",
1828
+ indexed: true
1829
+ },
1830
+ {
1831
+ name: "sender",
1832
+ internalType: "address",
1833
+ type: "address",
1834
+ indexed: true
1835
+ }
1836
+ ],
1837
+ name: "RoleRevoked"
1838
+ },
1839
+ {
1840
+ type: "event",
1841
+ anonymous: false,
1842
+ inputs: [
1843
+ {
1844
+ name: "commentId",
1845
+ internalType: "bytes32",
1846
+ type: "bytes32",
1847
+ indexed: true
1848
+ },
1849
+ {
1850
+ name: "commentIdentifier",
1851
+ internalType: "struct IComments.CommentIdentifier",
1852
+ type: "tuple",
1853
+ components: [
1854
+ { name: "commenter", internalType: "address", type: "address" },
1855
+ { name: "contractAddress", internalType: "address", type: "address" },
1856
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1857
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1858
+ ],
1859
+ indexed: false
1860
+ },
1861
+ {
1862
+ name: "sparksQuantity",
1863
+ internalType: "uint256",
1864
+ type: "uint256",
1865
+ indexed: false
1866
+ },
1867
+ {
1868
+ name: "sparker",
1869
+ internalType: "address",
1870
+ type: "address",
1871
+ indexed: false
1872
+ },
1873
+ {
1874
+ name: "timestamp",
1875
+ internalType: "uint256",
1876
+ type: "uint256",
1877
+ indexed: false
1878
+ },
1879
+ {
1880
+ name: "referrer",
1881
+ internalType: "address",
1882
+ type: "address",
1883
+ indexed: false
1884
+ }
1885
+ ],
1886
+ name: "SparkedComment"
1887
+ },
1888
+ {
1889
+ type: "event",
1890
+ anonymous: false,
1891
+ inputs: [
1892
+ {
1893
+ name: "implementation",
1894
+ internalType: "address",
1895
+ type: "address",
1896
+ indexed: true
1897
+ }
1898
+ ],
1899
+ name: "Upgraded"
1900
+ },
1901
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
1902
+ {
1903
+ type: "error",
1904
+ inputs: [
1905
+ { name: "account", internalType: "address", type: "address" },
1906
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
1907
+ ],
1908
+ name: "AccessControlUnauthorizedAccount"
1909
+ },
1910
+ {
1911
+ type: "error",
1912
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
1913
+ name: "AddressEmptyCode"
1914
+ },
1915
+ { type: "error", inputs: [], name: "AddressZero" },
1916
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
1917
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
1918
+ {
1919
+ type: "error",
1920
+ inputs: [
1921
+ { name: "commentAddress", internalType: "address", type: "address" },
1922
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
1923
+ { name: "replyAddress", internalType: "address", type: "address" },
1924
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
1925
+ ],
1926
+ name: "CommentAddressOrTokenIdsDoNotMatch"
1927
+ },
1928
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
1929
+ {
1930
+ type: "error",
1931
+ inputs: [
1932
+ { name: "expected", internalType: "address", type: "address" },
1933
+ { name: "actual", internalType: "address", type: "address" }
1934
+ ],
1935
+ name: "CommenterMismatch"
1936
+ },
1937
+ {
1938
+ type: "error",
1939
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
1940
+ name: "DuplicateComment"
1941
+ },
1942
+ {
1943
+ type: "error",
1944
+ inputs: [
1945
+ { name: "implementation", internalType: "address", type: "address" }
1946
+ ],
1947
+ name: "ERC1967InvalidImplementation"
1948
+ },
1949
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
1950
+ {
1951
+ type: "error",
1952
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
1953
+ name: "ERC2612ExpiredSignature"
1954
+ },
1955
+ { type: "error", inputs: [], name: "EmptyComment" },
1956
+ { type: "error", inputs: [], name: "FailedInnerCall" },
1957
+ {
1958
+ type: "error",
1959
+ inputs: [
1960
+ {
1961
+ name: "wrongDestinationChainId",
1962
+ internalType: "uint256",
1963
+ type: "uint256"
1964
+ }
1965
+ ],
1966
+ name: "IncorrectDestinationChain"
1967
+ },
1968
+ {
1969
+ type: "error",
1970
+ inputs: [
1971
+ { name: "actual", internalType: "uint256", type: "uint256" },
1972
+ { name: "expected", internalType: "uint256", type: "uint256" }
1973
+ ],
1974
+ name: "IncorrectETHAmountForSparks"
1975
+ },
1976
+ {
1977
+ type: "error",
1978
+ inputs: [
1979
+ { name: "account", internalType: "address", type: "address" },
1980
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
1981
+ ],
1982
+ name: "InvalidAccountNonce"
1983
+ },
1984
+ { type: "error", inputs: [], name: "InvalidInitialization" },
1985
+ { type: "error", inputs: [], name: "InvalidSignature" },
1986
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
1987
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
1988
+ { type: "error", inputs: [], name: "NotInitializing" },
1989
+ { type: "error", inputs: [], name: "NotSmartWallet" },
1990
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
1991
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
1992
+ { type: "error", inputs: [], name: "OnlySparksContract" },
1993
+ { type: "error", inputs: [], name: "TransferFailed" },
1994
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
1995
+ {
1996
+ type: "error",
1997
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
1998
+ name: "UUPSUnsupportedProxiableUUID"
1999
+ },
2000
+ {
2001
+ type: "error",
2002
+ inputs: [
2003
+ { name: "currentName", internalType: "string", type: "string" },
2004
+ { name: "newName", internalType: "string", type: "string" }
2005
+ ],
2006
+ name: "UpgradeToMismatchedContractName"
2007
+ }
2008
+ ];
2009
+ var commentsAddress = {
2010
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
2011
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
2012
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
2013
+ 84532: "0x7777777C2B3132e03a65721a41745C07170a5877",
2014
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
2015
+ 11155111: "0x7777777C2B3132e03a65721a41745C07170a5877",
2016
+ 11155420: "0x7777777C2B3132e03a65721a41745C07170a5877",
2017
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
2018
+ };
2019
+ var commentsConfig = {
2020
+ address: commentsAddress,
2021
+ abi: commentsABI
2022
+ };
13
2023
  var erc20MinterABI = [
14
2024
  {
15
2025
  stateMutability: "nonpayable",
@@ -2774,7 +4784,13 @@ var sponsoredSparksSpenderABI = [
2774
4784
  { type: "error", inputs: [], name: "WithdrawFailed" }
2775
4785
  ];
2776
4786
  var sponsoredSparksSpenderAddress = {
2777
- 7777777: "0x29b75AbA7dc7FE26d90CD96fbB390B26e04C4EB2"
4787
+ 10: "0x35ca784918bf11692708c1D530691704AAcEA95E",
4788
+ 8453: "0x6958A8866A40118e2CC21ab4752353835321b5e6",
4789
+ 42161: "0x2fBdBc34B6015e7b40638179Aa05a2D2267452c7",
4790
+ 81457: "0x786F0f6aE196715Cd6d65693f06DA57426ac8463",
4791
+ 84532: "0x23150f60E233F519A01C735C29c1591f9E8353dE",
4792
+ 7777777: "0x362Ef86acAD2FAa66A28Ee8d1F5a835ac0BBD11d",
4793
+ 999999999: "0x3A98313fB00918a81d98f9986aED089365428293"
2778
4794
  };
2779
4795
  var sponsoredSparksSpenderConfig = {
2780
4796
  address: sponsoredSparksSpenderAddress,
@@ -3092,6 +5108,7 @@ var wethAddress = {
3092
5108
  421614: "0xc556bAe1e86B2aE9c22eA5E036b07E55E7596074",
3093
5109
  7777777: "0x4200000000000000000000000000000000000006",
3094
5110
  11155111: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9",
5111
+ 11155420: "0x4200000000000000000000000000000000000006",
3095
5112
  999999999: "0x4200000000000000000000000000000000000006"
3096
5113
  };
3097
5114
  var wethConfig = { address: wethAddress, abi: wethABI };
@@ -10633,6 +12650,55 @@ var zoraTimedSaleStrategyConfig = {
10633
12650
  abi: zoraTimedSaleStrategyABI
10634
12651
  };
10635
12652
 
12653
+ // ../../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
12654
+ var InvalidDecimalNumberError = class extends BaseError {
12655
+ constructor({ value }) {
12656
+ super(`Number \`${value}\` is not a valid decimal number.`, {
12657
+ name: "InvalidDecimalNumberError"
12658
+ });
12659
+ }
12660
+ };
12661
+
12662
+ // ../../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
12663
+ function parseUnits(value, decimals) {
12664
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
12665
+ throw new InvalidDecimalNumberError({ value });
12666
+ let [integer, fraction = "0"] = value.split(".");
12667
+ const negative = integer.startsWith("-");
12668
+ if (negative)
12669
+ integer = integer.slice(1);
12670
+ fraction = fraction.replace(/(0+)$/, "");
12671
+ if (decimals === 0) {
12672
+ if (Math.round(Number(`.${fraction}`)) === 1)
12673
+ integer = `${BigInt(integer) + 1n}`;
12674
+ fraction = "";
12675
+ } else if (fraction.length > decimals) {
12676
+ const [left, unit, right] = [
12677
+ fraction.slice(0, decimals - 1),
12678
+ fraction.slice(decimals - 1, decimals),
12679
+ fraction.slice(decimals)
12680
+ ];
12681
+ const rounded = Math.round(Number(`${unit}.${right}`));
12682
+ if (rounded > 9)
12683
+ fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
12684
+ else
12685
+ fraction = `${left}${rounded}`;
12686
+ if (fraction.length > decimals) {
12687
+ fraction = fraction.slice(1);
12688
+ integer = `${BigInt(integer) + 1n}`;
12689
+ }
12690
+ fraction = fraction.slice(0, decimals);
12691
+ } else {
12692
+ fraction = fraction.padEnd(decimals, "0");
12693
+ }
12694
+ return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
12695
+ }
12696
+
12697
+ // ../../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
12698
+ function parseEther(ether, unit = "wei") {
12699
+ return parseUnits(ether, etherUnits[unit]);
12700
+ }
12701
+
10636
12702
  // src/types.ts
10637
12703
  var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10638
12704
  PremintConfigVersion2["V1"] = "1";
@@ -10640,6 +12706,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10640
12706
  PremintConfigVersion2["V3"] = "3";
10641
12707
  return PremintConfigVersion2;
10642
12708
  })(PremintConfigVersion || {});
12709
+ var emptyCommentIdentifier = () => {
12710
+ const zeroAddress = "0x0000000000000000000000000000000000000000";
12711
+ const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
12712
+ return {
12713
+ commenter: zeroAddress,
12714
+ contractAddress: zeroAddress,
12715
+ tokenId: 0n,
12716
+ nonce: zeroHash
12717
+ };
12718
+ };
10643
12719
 
10644
12720
  // src/typedData.ts
10645
12721
  var premintTypedDataDomain = ({
@@ -10930,6 +13006,146 @@ var sponsoredSparksBatchTypedDataDefinition = ({
10930
13006
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
10931
13007
  }
10932
13008
  });
13009
+ var commentIdentifierType = [
13010
+ { name: "contractAddress", type: "address" },
13011
+ { name: "tokenId", type: "uint256" },
13012
+ { name: "commenter", type: "address" },
13013
+ { name: "nonce", type: "bytes32" }
13014
+ ];
13015
+ var commentsDomain = ({
13016
+ signingChainId,
13017
+ destinationChainId
13018
+ }) => ({
13019
+ chainId: signingChainId,
13020
+ name: "Comments",
13021
+ version: "1",
13022
+ verifyingContract: commentsAddress[destinationChainId]
13023
+ });
13024
+ var permitCommentTypedDataDefinition = (message, signingAccount) => {
13025
+ const permitCommentTypedDataType = {
13026
+ PermitComment: [
13027
+ { name: "contractAddress", type: "address" },
13028
+ { name: "tokenId", type: "uint256" },
13029
+ { name: "commenter", type: "address" },
13030
+ { name: "replyTo", type: "CommentIdentifier" },
13031
+ { name: "text", type: "string" },
13032
+ { name: "deadline", type: "uint256" },
13033
+ { name: "nonce", type: "bytes32" },
13034
+ { name: "commenterSmartWallet", type: "address" },
13035
+ { name: "referrer", type: "address" },
13036
+ { name: "sourceChainId", type: "uint32" },
13037
+ { name: "destinationChainId", type: "uint32" }
13038
+ ],
13039
+ CommentIdentifier: commentIdentifierType
13040
+ };
13041
+ return {
13042
+ types: permitCommentTypedDataType,
13043
+ message,
13044
+ primaryType: "PermitComment",
13045
+ domain: commentsDomain({
13046
+ signingChainId: message.sourceChainId,
13047
+ destinationChainId: message.destinationChainId
13048
+ }),
13049
+ account: signingAccount || message.commenter
13050
+ };
13051
+ };
13052
+ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => {
13053
+ const permitSparkCommentTypedDataType = {
13054
+ PermitSparkComment: [
13055
+ { name: "comment", type: "CommentIdentifier" },
13056
+ { name: "sparker", type: "address" },
13057
+ { name: "sparksQuantity", type: "uint256" },
13058
+ { name: "deadline", type: "uint256" },
13059
+ { name: "nonce", type: "bytes32" },
13060
+ { name: "referrer", type: "address" },
13061
+ { name: "sourceChainId", type: "uint32" },
13062
+ { name: "destinationChainId", type: "uint32" }
13063
+ ],
13064
+ CommentIdentifier: commentIdentifierType
13065
+ };
13066
+ return {
13067
+ types: permitSparkCommentTypedDataType,
13068
+ message,
13069
+ primaryType: "PermitSparkComment",
13070
+ domain: commentsDomain({
13071
+ signingChainId: message.sourceChainId,
13072
+ destinationChainId: message.destinationChainId
13073
+ }),
13074
+ account: signingAccount || message.sparker
13075
+ };
13076
+ };
13077
+ var sparkValue = () => parseEther("0.000001");
13078
+ var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => {
13079
+ const permitTimedSaleMintAndCommentTypedDataType = {
13080
+ PermitTimedSaleMintAndComment: [
13081
+ { name: "commenter", type: "address" },
13082
+ { name: "quantity", type: "uint256" },
13083
+ { name: "collection", type: "address" },
13084
+ { name: "tokenId", type: "uint256" },
13085
+ { name: "mintReferral", type: "address" },
13086
+ { name: "comment", type: "string" },
13087
+ { name: "deadline", type: "uint256" },
13088
+ { name: "nonce", type: "bytes32" },
13089
+ { name: "sourceChainId", type: "uint32" },
13090
+ { name: "destinationChainId", type: "uint32" }
13091
+ ]
13092
+ };
13093
+ const callerAndCommenterDomain = ({
13094
+ signingChainId,
13095
+ destinationChainId
13096
+ }) => ({
13097
+ name: "CallerAndCommenter",
13098
+ version: "1",
13099
+ chainId: signingChainId,
13100
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
13101
+ });
13102
+ return {
13103
+ types: permitTimedSaleMintAndCommentTypedDataType,
13104
+ message,
13105
+ primaryType: "PermitTimedSaleMintAndComment",
13106
+ domain: callerAndCommenterDomain({
13107
+ signingChainId: message.sourceChainId,
13108
+ destinationChainId: message.destinationChainId
13109
+ }),
13110
+ account: signingAccount || message.commenter
13111
+ };
13112
+ };
13113
+ var permitBuyOnSecondaryAndCommentTypedDataDefinition = (message, signingAccount) => {
13114
+ const permitBuyOnSecondaryAndCommentTypedDataType = {
13115
+ PermitBuyOnSecondaryAndComment: [
13116
+ { name: "commenter", type: "address" },
13117
+ { name: "quantity", type: "uint256" },
13118
+ { name: "collection", type: "address" },
13119
+ { name: "tokenId", type: "uint256" },
13120
+ { name: "maxEthToSpend", type: "uint256" },
13121
+ { name: "sqrtPriceLimitX96", type: "uint160" },
13122
+ { name: "comment", type: "string" },
13123
+ { name: "deadline", type: "uint256" },
13124
+ { name: "nonce", type: "bytes32" },
13125
+ { name: "sourceChainId", type: "uint32" },
13126
+ { name: "destinationChainId", type: "uint32" }
13127
+ ]
13128
+ };
13129
+ const callerAndCommenterDomain = ({
13130
+ signingChainId,
13131
+ destinationChainId
13132
+ }) => ({
13133
+ name: "CallerAndCommenter",
13134
+ version: "1",
13135
+ chainId: signingChainId,
13136
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
13137
+ });
13138
+ return {
13139
+ types: permitBuyOnSecondaryAndCommentTypedDataType,
13140
+ message,
13141
+ primaryType: "PermitBuyOnSecondaryAndComment",
13142
+ domain: callerAndCommenterDomain({
13143
+ signingChainId: message.sourceChainId,
13144
+ destinationChainId: message.destinationChainId
13145
+ }),
13146
+ account: signingAccount || message.commenter
13147
+ };
13148
+ };
10933
13149
 
10934
13150
  // src/encoding.ts
10935
13151
  var safeTransferSwapAbiParameters = [
@@ -11022,10 +13238,10 @@ var addresses = {
11022
13238
  timestamp: 1722801891
11023
13239
  },
11024
13240
  10: {
11025
- CONTRACT_1155_IMPL: "0x41a80F8aE055b1E38C74bc406E4310Be33cFA3F4",
11026
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
13241
+ CONTRACT_1155_IMPL: "0x00802284A7976cE5bd200c7aBA2a8A8Fd52cFf1d",
13242
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
11027
13243
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
11028
- FACTORY_IMPL: "0x169d9147dFc9409AfA4E558dF2C9ABeebc020182",
13244
+ FACTORY_IMPL: "0x26B92D5f3F81Bda06ea93619C535948131538bda",
11029
13245
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
11030
13246
  FIXED_PRICE_SALE_STRATEGY: "0x3678862f04290E565cCA2EF163BAeb92Bb76790C",
11031
13247
  MERKLE_MINT_SALE_STRATEGY: "0x899ce31dF6C6Af81203AcAaD285bF539234eF4b8",
@@ -11033,7 +13249,7 @@ var addresses = {
11033
13249
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11034
13250
  REDEEM_MINTER_FACTORY: "0x1B28A04b7eB7b93f920ddF2021aa3fAE065395f2",
11035
13251
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
11036
- timestamp: 1722525241
13252
+ timestamp: 1729791004
11037
13253
  },
11038
13254
  999: {
11039
13255
  CONTRACT_1155_IMPL: "0x2022AdEF470DA3543a19fac8c9be80618112704D",
@@ -11049,10 +13265,10 @@ var addresses = {
11049
13265
  timestamp: 1704399834
11050
13266
  },
11051
13267
  8453: {
11052
- CONTRACT_1155_IMPL: "0x02be886A3b2802177181f4734380CB1f4BaC4Bfb",
11053
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
13268
+ CONTRACT_1155_IMPL: "0x57f412Ea90b59ce4023AFDE95C251E3c747EB7F8",
13269
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
11054
13270
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
11055
- FACTORY_IMPL: "0xd43f38e67beb199fd6594cCe4Bed31510414e6ab",
13271
+ FACTORY_IMPL: "0xc6bf69986859f0dC0b77f2cA6AD86F5b294c0443",
11056
13272
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
11057
13273
  FIXED_PRICE_SALE_STRATEGY: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
11058
13274
  MERKLE_MINT_SALE_STRATEGY: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
@@ -11060,7 +13276,7 @@ var addresses = {
11060
13276
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11061
13277
  REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
11062
13278
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
11063
- timestamp: 1722490834
13279
+ timestamp: 1729791239
11064
13280
  },
11065
13281
  42161: {
11066
13282
  CONTRACT_1155_IMPL: "0x3678862f04290E565cCA2EF163BAeb92Bb76790C",
@@ -11091,10 +13307,10 @@ var addresses = {
11091
13307
  timestamp: 1722612949
11092
13308
  },
11093
13309
  84532: {
11094
- CONTRACT_1155_IMPL: "0xA02FC0fc9b0b3E23ac26eB0f2D392fD5cdA58514",
11095
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
13310
+ CONTRACT_1155_IMPL: "0xDD3295D6A2e772Bd3208c3d43a783533505a1EED",
13311
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
11096
13312
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
11097
- FACTORY_IMPL: "0x78b524931e9d847c40BcBf225c25e154a7B05fDA",
13313
+ FACTORY_IMPL: "0xF3a46845548bE811Ce37e65153563f4a0AaEbe31",
11098
13314
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
11099
13315
  FIXED_PRICE_SALE_STRATEGY: "0xd34872BE0cdb6b09d45FCa067B07f04a1A9aE1aE",
11100
13316
  MERKLE_MINT_SALE_STRATEGY: "0x3E8524770adD176bE381a0529E09f1c6c3502A5a",
@@ -11102,7 +13318,7 @@ var addresses = {
11102
13318
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11103
13319
  REDEEM_MINTER_FACTORY: "0x805E0a08dE70f85C01F7848370d5e3fc08aAd0ea",
11104
13320
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
11105
- timestamp: 1722492345
13321
+ timestamp: 1729790653
11106
13322
  },
11107
13323
  421614: {
11108
13324
  CONTRACT_1155_IMPL: "0xC7598f8eAA1455f5b2B3f206A9af55B2BA248e3E",
@@ -11119,10 +13335,10 @@ var addresses = {
11119
13335
  timestamp: 1722821095
11120
13336
  },
11121
13337
  7777777: {
11122
- CONTRACT_1155_IMPL: "0xD860dA58fDcC98ceDF6aA16d7F38b1bfdC8Ca2d9",
11123
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
13338
+ CONTRACT_1155_IMPL: "0xf81C36213FB217c756504B56133b2c3CD4FbCBf9",
13339
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
11124
13340
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
11125
- FACTORY_IMPL: "0x4578FbC17870Afd31F6AFBA7Ad399C1453c7eae7",
13341
+ FACTORY_IMPL: "0x64311A0AE41Ec5A804cdC87F826B646Afd131F24",
11126
13342
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
11127
13343
  FIXED_PRICE_SALE_STRATEGY: "0x04E2516A2c207E84a1839755675dfd8eF6302F0a",
11128
13344
  MERKLE_MINT_SALE_STRATEGY: "0xf48172CA3B6068B20eE4917Eb27b5472f1f272C7",
@@ -11130,13 +13346,13 @@ var addresses = {
11130
13346
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11131
13347
  REDEEM_MINTER_FACTORY: "0x78964965cF77850224513a367f899435C5B69174",
11132
13348
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
11133
- timestamp: 1722524842
13349
+ timestamp: 1729790913
11134
13350
  },
11135
13351
  11155111: {
11136
- CONTRACT_1155_IMPL: "0xE578Df59a7F59b652772a8565Af276460c4FF44d",
11137
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
13352
+ CONTRACT_1155_IMPL: "0xe22C5ce67dc5077ca115FBe6ddbed1FB2703B125",
13353
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
11138
13354
  ERC20_MINTER: "0x777777E8850d8D6d98De2B5f64fae401F96eFF31",
11139
- FACTORY_IMPL: "0x3A98313fB00918a81d98f9986aED089365428293",
13355
+ FACTORY_IMPL: "0x54A6a778ee0E5Cefc70C3963018606D4DF8Be960",
11140
13356
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
11141
13357
  FIXED_PRICE_SALE_STRATEGY: "0x1Cd1C1f3b8B779B50Db23155F2Cb244FCcA06B21",
11142
13358
  MERKLE_MINT_SALE_STRATEGY: "0xe770E6f19aecF8ef3145A50087999b5556aB3610",
@@ -11144,7 +13360,7 @@ var addresses = {
11144
13360
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11145
13361
  REDEEM_MINTER_FACTORY: "0x69bB4A24EBD8b1B87AF4538E0Ca3075b7E398c3D",
11146
13362
  UPGRADE_GATE: "0xbC50029836A59A4E5e1Bb8988272F46ebA0F9900",
11147
- timestamp: 1722523545
13363
+ timestamp: 1729790809
11148
13364
  },
11149
13365
  168587773: {
11150
13366
  CONTRACT_1155_IMPL: "0x192D663C3D6813a24a24582A76B8d872c4F6F7f9",
@@ -11161,10 +13377,10 @@ var addresses = {
11161
13377
  timestamp: 1722525339
11162
13378
  },
11163
13379
  999999999: {
11164
- CONTRACT_1155_IMPL: "0xC04050e04708b33302E30E5A0fB1e8c38F4EBbB0",
11165
- CONTRACT_1155_IMPL_VERSION: "2.12.3",
13380
+ CONTRACT_1155_IMPL: "0x78C5f846e1dfBdbAD7AD4B3010233757aB2A1e9B",
13381
+ CONTRACT_1155_IMPL_VERSION: "2.13.0",
11166
13382
  ERC20_MINTER: "0x8Ec7f068A77fa5FC1925110f82381374BA054Ff2",
11167
- FACTORY_IMPL: "0xe2606ac30752009ecec6FEaf5C2B4A6523256E7E",
13383
+ FACTORY_IMPL: "0xfE55eF381A32fE9B8fE287a5CEB0A05A9873a018",
11168
13384
  FACTORY_PROXY: "0x777777C338d93e2C7adf08D102d45CA7CC4Ed021",
11169
13385
  FIXED_PRICE_SALE_STRATEGY: "0x6d28164C3CE04A190D5F9f0f8881fc807EAD975A",
11170
13386
  MERKLE_MINT_SALE_STRATEGY: "0x5e5fD4b758076BAD940db0284b711A67E8a3B88c",
@@ -11172,7 +13388,7 @@ var addresses = {
11172
13388
  PREMINTER_PROXY: "0x7777773606e7e46C8Ba8B98C08f5cD218e31d340",
11173
13389
  REDEEM_MINTER_FACTORY: "0x25cFb6dd9cDE8425e781d6718a29Ccbca3F038d6",
11174
13390
  UPGRADE_GATE: "0x0000000000000000000000000000000000000000",
11175
- timestamp: 1722524992
13391
+ timestamp: 1729790544
11176
13392
  }
11177
13393
  };
11178
13394
 
@@ -11246,6 +13462,13 @@ var chainConfigs2 = {
11246
13462
  ZORA_RECIPIENT: "0xCE9F2e8EaFa11637F8A1CB60AE8AaC601Ae30f2D",
11247
13463
  WETH: "0x7b79995e5f793A07Bc00c21412e50Ecae098E7f9"
11248
13464
  },
13465
+ 11155420: {
13466
+ NONFUNGIBLE_POSITION_MANAGER: "0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d",
13467
+ UNISWAP_SWAP_ROUTER: "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
13468
+ PROXY_ADMIN: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
13469
+ ZORA_RECIPIENT: "0xFA3748b2dcF94a9CBdb5087333E9F093476e8389",
13470
+ WETH: "0x4200000000000000000000000000000000000006"
13471
+ },
11249
13472
  999999999: {
11250
13473
  NONFUNGIBLE_POSITION_MANAGER: "0xB8458EaAe43292e3c1F7994EFd016bd653d23c20",
11251
13474
  UNISWAP_SWAP_ROUTER: "0x6B36d761981d82B1e07cF3c4daF4cB4615c4850a",
@@ -11255,20 +13478,74 @@ var chainConfigs2 = {
11255
13478
  }
11256
13479
  };
11257
13480
  var addresses2 = {
13481
+ 10: {
13482
+ MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
13483
+ SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
13484
+ SPARKS_MANAGER_IMPL_VERSION: "",
13485
+ SPONSORED_SPARKS_SPENDER: "0x35ca784918bf11692708c1D530691704AAcEA95E",
13486
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
13487
+ },
13488
+ 8453: {
13489
+ MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
13490
+ SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
13491
+ SPARKS_MANAGER_IMPL_VERSION: "",
13492
+ SPONSORED_SPARKS_SPENDER: "0x6958A8866A40118e2CC21ab4752353835321b5e6",
13493
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
13494
+ },
13495
+ 42161: {
13496
+ MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
13497
+ SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
13498
+ SPARKS_MANAGER_IMPL_VERSION: "",
13499
+ SPONSORED_SPARKS_SPENDER: "0x2fBdBc34B6015e7b40638179Aa05a2D2267452c7",
13500
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
13501
+ },
13502
+ 81457: {
13503
+ MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
13504
+ SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
13505
+ SPARKS_MANAGER_IMPL_VERSION: "",
13506
+ SPONSORED_SPARKS_SPENDER: "0x786F0f6aE196715Cd6d65693f06DA57426ac8463",
13507
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
13508
+ },
13509
+ 84532: {
13510
+ MINTS_ETH_UNWRAPPER_AND_CALLER: "0x0000000000000000000000000000000000000000",
13511
+ SPARKS_MANAGER_IMPL: "0x0000000000000000000000000000000000000000",
13512
+ SPARKS_MANAGER_IMPL_VERSION: "",
13513
+ SPONSORED_SPARKS_SPENDER: "0x23150f60E233F519A01C735C29c1591f9E8353dE",
13514
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
13515
+ },
11258
13516
  7777777: {
11259
13517
  MINTS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
11260
13518
  SPARKS_MANAGER_IMPL: "0xFB854463800d09B89682746c37A3AE696C92193D",
11261
- SPARKS_MANAGER_IMPL_VERSION: "0.1.4"
13519
+ SPARKS_MANAGER_IMPL_VERSION: "0.1.4",
13520
+ SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
13521
+ SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
13522
+ MINTS_MANAGER: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
13523
+ MINTS_1155: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
13524
+ SPONSORED_SPARKS_SPENDER: "0x362Ef86acAD2FAa66A28Ee8d1F5a835ac0BBD11d",
13525
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
11262
13526
  },
11263
13527
  999999999: {
11264
13528
  MINTS_ETH_UNWRAPPER_AND_CALLER: "0xb0994EB9520C98C97e1F3953a5964535C2bd271A",
11265
13529
  SPARKS_MANAGER_IMPL: "0xf7D8d07267E840aE466E5f2fe8b089F4DE79c7da",
11266
- SPARKS_MANAGER_IMPL_VERSION: "0.1.4"
13530
+ SPARKS_MANAGER_IMPL_VERSION: "0.1.4",
13531
+ SPARKS_MANAGER: "0x77777779acd6a96C0c57272112921A0b833c38fD",
13532
+ SPARKS_1155: "0x7777777b3eA6C126942BB14dD5C3C11D365C385D",
13533
+ MINTS_MANAGER: "0x77777770cA269366c7208aFcF36FE2C6F7f7608B",
13534
+ MINTS_1155: "0x7777777d57c1C6e472fa379b7b3B6c6ba3835073",
13535
+ SPONSORED_SPARKS_SPENDER: "0x3A98313fB00918a81d98f9986aED089365428293",
13536
+ SPONSORED_SPARKS_SPENDER_VERSION: "2.0.0"
11267
13537
  }
11268
13538
  };
11269
13539
  export {
11270
13540
  PremintConfigVersion,
13541
+ callerAndCommenterABI,
13542
+ callerAndCommenterAddress,
13543
+ callerAndCommenterConfig,
13544
+ commentsABI,
13545
+ commentsAddress,
13546
+ commentsConfig,
11271
13547
  __exports as contracts1155,
13548
+ emptyCommentIdentifier,
11272
13549
  encodePremintConfig,
11273
13550
  erc20MinterABI,
11274
13551
  erc20MinterAddress,
@@ -11285,6 +13562,10 @@ export {
11285
13562
  mintsEthUnwrapperAndCallerConfig,
11286
13563
  mintsSafeTransferBatchTypedDataDefinition,
11287
13564
  mintsSafeTransferTypedDataDefinition,
13565
+ permitBuyOnSecondaryAndCommentTypedDataDefinition,
13566
+ permitCommentTypedDataDefinition,
13567
+ permitMintAndCommentTypedDataDefinition,
13568
+ permitSparkCommentTypedDataDefinition,
11288
13569
  premintTypedDataDefinition,
11289
13570
  premintV1TypedDataDefinition,
11290
13571
  premintV2TypedDataDefinition,
@@ -11295,6 +13576,7 @@ export {
11295
13576
  secondarySwapABI,
11296
13577
  secondarySwapAddress,
11297
13578
  secondarySwapConfig,
13579
+ sparkValue,
11298
13580
  sparks_exports as sparks,
11299
13581
  sponsoredSparksBatchTransferTypedDataType,
11300
13582
  sponsoredSparksBatchTypedDataDefinition,