@zoralabs/protocol-deployments 0.3.5 → 0.3.6-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,1801 @@
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
+ ]
23
+ },
24
+ {
25
+ stateMutability: "view",
26
+ type: "function",
27
+ inputs: [],
28
+ name: "UPGRADE_INTERFACE_VERSION",
29
+ outputs: [{ name: "", internalType: "string", type: "string" }]
30
+ },
31
+ {
32
+ stateMutability: "nonpayable",
33
+ type: "function",
34
+ inputs: [],
35
+ name: "acceptOwnership",
36
+ outputs: []
37
+ },
38
+ {
39
+ stateMutability: "view",
40
+ type: "function",
41
+ inputs: [],
42
+ name: "comments",
43
+ outputs: [
44
+ { name: "", internalType: "contract IComments", type: "address" }
45
+ ]
46
+ },
47
+ {
48
+ stateMutability: "pure",
49
+ type: "function",
50
+ inputs: [],
51
+ name: "contractName",
52
+ outputs: [{ name: "", internalType: "string", type: "string" }]
53
+ },
54
+ {
55
+ stateMutability: "pure",
56
+ type: "function",
57
+ inputs: [],
58
+ name: "contractVersion",
59
+ outputs: [{ name: "", internalType: "string", type: "string" }]
60
+ },
61
+ {
62
+ stateMutability: "view",
63
+ type: "function",
64
+ inputs: [],
65
+ name: "eip712Domain",
66
+ outputs: [
67
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
68
+ { name: "name", internalType: "string", type: "string" },
69
+ { name: "version", internalType: "string", type: "string" },
70
+ { name: "chainId", internalType: "uint256", type: "uint256" },
71
+ { name: "verifyingContract", internalType: "address", type: "address" },
72
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
73
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
74
+ ]
75
+ },
76
+ {
77
+ stateMutability: "view",
78
+ type: "function",
79
+ inputs: [
80
+ {
81
+ name: "permit",
82
+ internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
83
+ type: "tuple",
84
+ components: [
85
+ { name: "commenter", internalType: "address", type: "address" },
86
+ { name: "quantity", internalType: "uint256", type: "uint256" },
87
+ { name: "collection", internalType: "address", type: "address" },
88
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
89
+ { name: "mintReferral", internalType: "address", type: "address" },
90
+ { name: "comment", internalType: "string", type: "string" },
91
+ { name: "deadline", internalType: "uint256", type: "uint256" },
92
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
93
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
94
+ {
95
+ name: "destinationChainId",
96
+ internalType: "uint32",
97
+ type: "uint32"
98
+ }
99
+ ]
100
+ }
101
+ ],
102
+ name: "hashPermitTimedSaleMintAndComment",
103
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
104
+ },
105
+ {
106
+ stateMutability: "nonpayable",
107
+ type: "function",
108
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
109
+ name: "initialize",
110
+ outputs: []
111
+ },
112
+ {
113
+ stateMutability: "view",
114
+ type: "function",
115
+ inputs: [
116
+ { name: "owner", internalType: "address", type: "address" },
117
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
118
+ ],
119
+ name: "nonceUsed",
120
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
121
+ },
122
+ {
123
+ stateMutability: "view",
124
+ type: "function",
125
+ inputs: [],
126
+ name: "owner",
127
+ outputs: [{ name: "", internalType: "address", type: "address" }]
128
+ },
129
+ {
130
+ stateMutability: "view",
131
+ type: "function",
132
+ inputs: [],
133
+ name: "pendingOwner",
134
+ outputs: [{ name: "", internalType: "address", type: "address" }]
135
+ },
136
+ {
137
+ stateMutability: "payable",
138
+ type: "function",
139
+ inputs: [
140
+ {
141
+ name: "permit",
142
+ internalType: "struct ICallerAndCommenter.PermitTimedSaleMintAndComment",
143
+ type: "tuple",
144
+ components: [
145
+ { name: "commenter", internalType: "address", type: "address" },
146
+ { name: "quantity", internalType: "uint256", type: "uint256" },
147
+ { name: "collection", internalType: "address", type: "address" },
148
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
149
+ { name: "mintReferral", internalType: "address", type: "address" },
150
+ { name: "comment", internalType: "string", type: "string" },
151
+ { name: "deadline", internalType: "uint256", type: "uint256" },
152
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
153
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
154
+ {
155
+ name: "destinationChainId",
156
+ internalType: "uint32",
157
+ type: "uint32"
158
+ }
159
+ ]
160
+ },
161
+ { name: "signature", internalType: "bytes", type: "bytes" }
162
+ ],
163
+ name: "permitTimedSaleMintAndComment",
164
+ outputs: [
165
+ {
166
+ name: "",
167
+ internalType: "struct IComments.CommentIdentifier",
168
+ type: "tuple",
169
+ components: [
170
+ { name: "commenter", internalType: "address", type: "address" },
171
+ { name: "contractAddress", internalType: "address", type: "address" },
172
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
173
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
174
+ ]
175
+ }
176
+ ]
177
+ },
178
+ {
179
+ stateMutability: "view",
180
+ type: "function",
181
+ inputs: [],
182
+ name: "proxiableUUID",
183
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
184
+ },
185
+ {
186
+ stateMutability: "nonpayable",
187
+ type: "function",
188
+ inputs: [],
189
+ name: "renounceOwnership",
190
+ outputs: []
191
+ },
192
+ {
193
+ stateMutability: "payable",
194
+ type: "function",
195
+ inputs: [
196
+ { name: "commenter", internalType: "address", type: "address" },
197
+ { name: "quantity", internalType: "uint256", type: "uint256" },
198
+ { name: "collection", internalType: "address", type: "address" },
199
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
200
+ { name: "mintReferral", internalType: "address", type: "address" },
201
+ { name: "comment", internalType: "string", type: "string" }
202
+ ],
203
+ name: "timedSaleMintAndComment",
204
+ outputs: [
205
+ {
206
+ name: "",
207
+ internalType: "struct IComments.CommentIdentifier",
208
+ type: "tuple",
209
+ components: [
210
+ { name: "commenter", internalType: "address", type: "address" },
211
+ { name: "contractAddress", internalType: "address", type: "address" },
212
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
213
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
214
+ ]
215
+ }
216
+ ]
217
+ },
218
+ {
219
+ stateMutability: "nonpayable",
220
+ type: "function",
221
+ inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
222
+ name: "transferOwnership",
223
+ outputs: []
224
+ },
225
+ {
226
+ stateMutability: "payable",
227
+ type: "function",
228
+ inputs: [
229
+ { name: "newImplementation", internalType: "address", type: "address" },
230
+ { name: "data", internalType: "bytes", type: "bytes" }
231
+ ],
232
+ name: "upgradeToAndCall",
233
+ outputs: []
234
+ },
235
+ {
236
+ stateMutability: "view",
237
+ type: "function",
238
+ inputs: [],
239
+ name: "zoraTimedSale",
240
+ outputs: [
241
+ {
242
+ name: "",
243
+ internalType: "contract IZoraTimedSaleStrategy",
244
+ type: "address"
245
+ }
246
+ ]
247
+ },
248
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
249
+ {
250
+ type: "event",
251
+ anonymous: false,
252
+ inputs: [
253
+ {
254
+ name: "version",
255
+ internalType: "uint64",
256
+ type: "uint64",
257
+ indexed: false
258
+ }
259
+ ],
260
+ name: "Initialized"
261
+ },
262
+ {
263
+ type: "event",
264
+ anonymous: false,
265
+ inputs: [
266
+ {
267
+ name: "commentId",
268
+ internalType: "bytes32",
269
+ type: "bytes32",
270
+ indexed: true
271
+ },
272
+ {
273
+ name: "commentIdentifier",
274
+ internalType: "struct IComments.CommentIdentifier",
275
+ type: "tuple",
276
+ components: [
277
+ { name: "commenter", internalType: "address", type: "address" },
278
+ { name: "contractAddress", internalType: "address", type: "address" },
279
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
280
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
281
+ ],
282
+ indexed: false
283
+ },
284
+ {
285
+ name: "quantity",
286
+ internalType: "uint256",
287
+ type: "uint256",
288
+ indexed: false
289
+ },
290
+ { name: "text", internalType: "string", type: "string", indexed: false }
291
+ ],
292
+ name: "MintedAndCommented"
293
+ },
294
+ {
295
+ type: "event",
296
+ anonymous: false,
297
+ inputs: [
298
+ {
299
+ name: "previousOwner",
300
+ internalType: "address",
301
+ type: "address",
302
+ indexed: true
303
+ },
304
+ {
305
+ name: "newOwner",
306
+ internalType: "address",
307
+ type: "address",
308
+ indexed: true
309
+ }
310
+ ],
311
+ name: "OwnershipTransferStarted"
312
+ },
313
+ {
314
+ type: "event",
315
+ anonymous: false,
316
+ inputs: [
317
+ {
318
+ name: "previousOwner",
319
+ internalType: "address",
320
+ type: "address",
321
+ indexed: true
322
+ },
323
+ {
324
+ name: "newOwner",
325
+ internalType: "address",
326
+ type: "address",
327
+ indexed: true
328
+ }
329
+ ],
330
+ name: "OwnershipTransferred"
331
+ },
332
+ {
333
+ type: "event",
334
+ anonymous: false,
335
+ inputs: [
336
+ {
337
+ name: "implementation",
338
+ internalType: "address",
339
+ type: "address",
340
+ indexed: true
341
+ }
342
+ ],
343
+ name: "Upgraded"
344
+ },
345
+ {
346
+ type: "error",
347
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
348
+ name: "AddressEmptyCode"
349
+ },
350
+ {
351
+ type: "error",
352
+ inputs: [
353
+ { name: "expected", internalType: "address", type: "address" },
354
+ { name: "actual", internalType: "address", type: "address" }
355
+ ],
356
+ name: "CommenterMismatch"
357
+ },
358
+ {
359
+ type: "error",
360
+ inputs: [
361
+ { name: "implementation", internalType: "address", type: "address" }
362
+ ],
363
+ name: "ERC1967InvalidImplementation"
364
+ },
365
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
366
+ {
367
+ type: "error",
368
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
369
+ name: "ERC2612ExpiredSignature"
370
+ },
371
+ { type: "error", inputs: [], name: "FailedInnerCall" },
372
+ {
373
+ type: "error",
374
+ inputs: [
375
+ {
376
+ name: "wrongDestinationChainId",
377
+ internalType: "uint256",
378
+ type: "uint256"
379
+ }
380
+ ],
381
+ name: "IncorrectDestinationChain"
382
+ },
383
+ {
384
+ type: "error",
385
+ inputs: [
386
+ { name: "account", internalType: "address", type: "address" },
387
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
388
+ ],
389
+ name: "InvalidAccountNonce"
390
+ },
391
+ { type: "error", inputs: [], name: "InvalidInitialization" },
392
+ { type: "error", inputs: [], name: "InvalidSignature" },
393
+ { type: "error", inputs: [], name: "NotInitializing" },
394
+ {
395
+ type: "error",
396
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
397
+ name: "OwnableInvalidOwner"
398
+ },
399
+ {
400
+ type: "error",
401
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
402
+ name: "OwnableUnauthorizedAccount"
403
+ },
404
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
405
+ {
406
+ type: "error",
407
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
408
+ name: "UUPSUnsupportedProxiableUUID"
409
+ },
410
+ {
411
+ type: "error",
412
+ inputs: [
413
+ { name: "currentName", internalType: "string", type: "string" },
414
+ { name: "newName", internalType: "string", type: "string" }
415
+ ],
416
+ name: "UpgradeToMismatchedContractName"
417
+ },
418
+ {
419
+ type: "error",
420
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
421
+ name: "AddressEmptyCode"
422
+ },
423
+ {
424
+ type: "error",
425
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
426
+ name: "AddressInsufficientBalance"
427
+ },
428
+ { type: "error", inputs: [], name: "AddressZero" },
429
+ { type: "error", inputs: [], name: "ERC1167FailedCreateClone" },
430
+ {
431
+ type: "error",
432
+ inputs: [
433
+ { name: "implementation", internalType: "address", type: "address" }
434
+ ],
435
+ name: "ERC1967InvalidImplementation"
436
+ },
437
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
438
+ { type: "error", inputs: [], name: "EndTimeCannotBeInThePast" },
439
+ { type: "error", inputs: [], name: "FailedInnerCall" },
440
+ { type: "error", inputs: [], name: "InsufficientFunds" },
441
+ { type: "error", inputs: [], name: "InvalidInitialization" },
442
+ { type: "error", inputs: [], name: "MarketAlreadyLaunched" },
443
+ { type: "error", inputs: [], name: "MarketMinimumNotReached" },
444
+ { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
445
+ { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
446
+ { type: "error", inputs: [], name: "NotInitializing" },
447
+ { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
448
+ {
449
+ type: "error",
450
+ inputs: [{ name: "owner", internalType: "address", type: "address" }],
451
+ name: "OwnableInvalidOwner"
452
+ },
453
+ {
454
+ type: "error",
455
+ inputs: [{ name: "account", internalType: "address", type: "address" }],
456
+ name: "OwnableUnauthorizedAccount"
457
+ },
458
+ { type: "error", inputs: [], name: "ReentrancyGuardReentrantCall" },
459
+ { type: "error", inputs: [], name: "RequestMintInvalidUseMint" },
460
+ { type: "error", inputs: [], name: "ResetSaleNotAvailable" },
461
+ { type: "error", inputs: [], name: "SaleAlreadySet" },
462
+ { type: "error", inputs: [], name: "SaleEnded" },
463
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
464
+ { type: "error", inputs: [], name: "SaleInProgress" },
465
+ { type: "error", inputs: [], name: "SaleNotSet" },
466
+ { type: "error", inputs: [], name: "SaleV2AlreadyStarted" },
467
+ { type: "error", inputs: [], name: "SaleV2Ended" },
468
+ { type: "error", inputs: [], name: "SaleV2NotSet" },
469
+ { type: "error", inputs: [], name: "StartTimeCannotBeAfterEndTime" },
470
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
471
+ {
472
+ type: "error",
473
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
474
+ name: "UUPSUnsupportedProxiableUUID"
475
+ },
476
+ { type: "error", inputs: [], name: "WrongValueSent" },
477
+ {
478
+ type: "error",
479
+ inputs: [],
480
+ name: "ZoraCreator1155ContractNeedsToSupportReduceSupply"
481
+ },
482
+ { type: "error", inputs: [], name: "ADDRESS_DELEGATECALL_TO_NON_CONTRACT" },
483
+ { type: "error", inputs: [], name: "ADDRESS_LOW_LEVEL_CALL_FAILED" },
484
+ {
485
+ type: "error",
486
+ inputs: [
487
+ { name: "operator", internalType: "address", type: "address" },
488
+ { name: "user", internalType: "address", type: "address" }
489
+ ],
490
+ name: "Burn_NotOwnerOrApproved"
491
+ },
492
+ { type: "error", inputs: [], name: "CREATOR_FUNDS_RECIPIENT_NOT_SET" },
493
+ {
494
+ type: "error",
495
+ inputs: [{ name: "reason", internalType: "bytes", type: "bytes" }],
496
+ name: "CallFailed"
497
+ },
498
+ { type: "error", inputs: [], name: "Call_TokenIdMismatch" },
499
+ { type: "error", inputs: [], name: "CallerNotZoraCreator1155" },
500
+ { type: "error", inputs: [], name: "CanOnlyReduceMaxSupply" },
501
+ {
502
+ type: "error",
503
+ inputs: [
504
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
505
+ { name: "quantity", internalType: "uint256", type: "uint256" },
506
+ { name: "totalMinted", internalType: "uint256", type: "uint256" },
507
+ { name: "maxSupply", internalType: "uint256", type: "uint256" }
508
+ ],
509
+ name: "CannotMintMoreTokens"
510
+ },
511
+ { type: "error", inputs: [], name: "CannotReduceMaxSupplyBelowMinted" },
512
+ {
513
+ type: "error",
514
+ inputs: [
515
+ { name: "proposedAddress", internalType: "address", type: "address" }
516
+ ],
517
+ name: "Config_TransferHookNotSupported"
518
+ },
519
+ {
520
+ type: "error",
521
+ inputs: [],
522
+ name: "ERC1155_ACCOUNTS_AND_IDS_LENGTH_MISMATCH"
523
+ },
524
+ {
525
+ type: "error",
526
+ inputs: [],
527
+ name: "ERC1155_ADDRESS_ZERO_IS_NOT_A_VALID_OWNER"
528
+ },
529
+ { type: "error", inputs: [], name: "ERC1155_BURN_AMOUNT_EXCEEDS_BALANCE" },
530
+ { type: "error", inputs: [], name: "ERC1155_BURN_FROM_ZERO_ADDRESS" },
531
+ {
532
+ type: "error",
533
+ inputs: [],
534
+ name: "ERC1155_CALLER_IS_NOT_TOKEN_OWNER_OR_APPROVED"
535
+ },
536
+ {
537
+ type: "error",
538
+ inputs: [],
539
+ name: "ERC1155_ERC1155RECEIVER_REJECTED_TOKENS"
540
+ },
541
+ {
542
+ type: "error",
543
+ inputs: [],
544
+ name: "ERC1155_IDS_AND_AMOUNTS_LENGTH_MISMATCH"
545
+ },
546
+ {
547
+ type: "error",
548
+ inputs: [],
549
+ name: "ERC1155_INSUFFICIENT_BALANCE_FOR_TRANSFER"
550
+ },
551
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
552
+ { type: "error", inputs: [], name: "ERC1155_MINT_TO_ZERO_ADDRESS" },
553
+ { type: "error", inputs: [], name: "ERC1155_SETTING_APPROVAL_FOR_SELF" },
554
+ {
555
+ type: "error",
556
+ inputs: [],
557
+ name: "ERC1155_TRANSFER_TO_NON_ERC1155RECEIVER_IMPLEMENTER"
558
+ },
559
+ { type: "error", inputs: [], name: "ERC1155_TRANSFER_TO_ZERO_ADDRESS" },
560
+ { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_CONTRACT" },
561
+ { type: "error", inputs: [], name: "ERC1967_NEW_IMPL_NOT_UUPS" },
562
+ { type: "error", inputs: [], name: "ERC1967_UNSUPPORTED_PROXIABLEUUID" },
563
+ {
564
+ type: "error",
565
+ inputs: [
566
+ { name: "recipient", internalType: "address", type: "address" },
567
+ { name: "amount", internalType: "uint256", type: "uint256" }
568
+ ],
569
+ name: "ETHWithdrawFailed"
570
+ },
571
+ {
572
+ type: "error",
573
+ inputs: [],
574
+ name: "FUNCTION_MUST_BE_CALLED_THROUGH_ACTIVE_PROXY"
575
+ },
576
+ {
577
+ type: "error",
578
+ inputs: [],
579
+ name: "FUNCTION_MUST_BE_CALLED_THROUGH_DELEGATECALL"
580
+ },
581
+ { type: "error", inputs: [], name: "FirstMinterAddressZero" },
582
+ {
583
+ type: "error",
584
+ inputs: [
585
+ { name: "amount", internalType: "uint256", type: "uint256" },
586
+ { name: "contractValue", internalType: "uint256", type: "uint256" }
587
+ ],
588
+ name: "FundsWithdrawInsolvent"
589
+ },
590
+ {
591
+ type: "error",
592
+ inputs: [],
593
+ name: "INITIALIZABLE_CONTRACT_ALREADY_INITIALIZED"
594
+ },
595
+ {
596
+ type: "error",
597
+ inputs: [],
598
+ name: "INITIALIZABLE_CONTRACT_IS_NOT_INITIALIZING"
599
+ },
600
+ { type: "error", inputs: [], name: "INVALID_ADDRESS_ZERO" },
601
+ { type: "error", inputs: [], name: "INVALID_ETH_AMOUNT" },
602
+ {
603
+ type: "error",
604
+ inputs: [
605
+ { name: "mintTo", internalType: "address", type: "address" },
606
+ { name: "merkleProof", internalType: "bytes32[]", type: "bytes32[]" },
607
+ { name: "merkleRoot", internalType: "bytes32", type: "bytes32" }
608
+ ],
609
+ name: "InvalidMerkleProof"
610
+ },
611
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
612
+ { type: "error", inputs: [], name: "InvalidMintSchedule" },
613
+ { type: "error", inputs: [], name: "InvalidPremintVersion" },
614
+ { type: "error", inputs: [], name: "InvalidSignature" },
615
+ { type: "error", inputs: [], name: "InvalidSignatureVersion" },
616
+ {
617
+ type: "error",
618
+ inputs: [{ name: "magicValue", internalType: "bytes4", type: "bytes4" }],
619
+ name: "InvalidSigner"
620
+ },
621
+ { type: "error", inputs: [], name: "MintNotYetStarted" },
622
+ { type: "error", inputs: [], name: "Mint_InsolventSaleTransfer" },
623
+ { type: "error", inputs: [], name: "Mint_InvalidMintArrayLength" },
624
+ { type: "error", inputs: [], name: "Mint_TokenIDMintNotAllowed" },
625
+ { type: "error", inputs: [], name: "Mint_UnknownCommand" },
626
+ { type: "error", inputs: [], name: "Mint_ValueTransferFail" },
627
+ { type: "error", inputs: [], name: "MinterContractAlreadyExists" },
628
+ { type: "error", inputs: [], name: "MinterContractDoesNotExist" },
629
+ { type: "error", inputs: [], name: "NewOwnerNeedsToBeAdmin" },
630
+ {
631
+ type: "error",
632
+ inputs: [{ name: "tokenId", internalType: "uint256", type: "uint256" }],
633
+ name: "NoRendererForToken"
634
+ },
635
+ { type: "error", inputs: [], name: "NonEthRedemption" },
636
+ { type: "error", inputs: [], name: "ONLY_CREATE_REFERRAL" },
637
+ { type: "error", inputs: [], name: "OnlyTransfersFromZoraMints" },
638
+ { type: "error", inputs: [], name: "PremintDeleted" },
639
+ {
640
+ type: "error",
641
+ inputs: [
642
+ { name: "caller", internalType: "address", type: "address" },
643
+ { name: "recipient", internalType: "address", type: "address" },
644
+ { name: "amount", internalType: "uint256", type: "uint256" }
645
+ ],
646
+ name: "ProtocolRewardsWithdrawFailed"
647
+ },
648
+ {
649
+ type: "error",
650
+ inputs: [{ name: "renderer", internalType: "address", type: "address" }],
651
+ name: "RendererNotValid"
652
+ },
653
+ { type: "error", inputs: [], name: "Renderer_NotValidRendererContract" },
654
+ { type: "error", inputs: [], name: "SaleEnded" },
655
+ { type: "error", inputs: [], name: "SaleHasNotStarted" },
656
+ {
657
+ type: "error",
658
+ inputs: [
659
+ { name: "targetContract", internalType: "address", type: "address" }
660
+ ],
661
+ name: "Sale_CannotCallNonSalesContract"
662
+ },
663
+ {
664
+ type: "error",
665
+ inputs: [
666
+ { name: "expected", internalType: "uint256", type: "uint256" },
667
+ { name: "actual", internalType: "uint256", type: "uint256" }
668
+ ],
669
+ name: "TokenIdMismatch"
670
+ },
671
+ {
672
+ type: "error",
673
+ inputs: [],
674
+ name: "UUPS_UPGRADEABLE_MUST_NOT_BE_CALLED_THROUGH_DELEGATECALL"
675
+ },
676
+ {
677
+ type: "error",
678
+ inputs: [
679
+ { name: "user", internalType: "address", type: "address" },
680
+ { name: "limit", internalType: "uint256", type: "uint256" },
681
+ { name: "requestedAmount", internalType: "uint256", type: "uint256" }
682
+ ],
683
+ name: "UserExceedsMintLimit"
684
+ },
685
+ {
686
+ type: "error",
687
+ inputs: [
688
+ { name: "user", internalType: "address", type: "address" },
689
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
690
+ { name: "role", internalType: "uint256", type: "uint256" }
691
+ ],
692
+ name: "UserMissingRoleForToken"
693
+ },
694
+ { type: "error", inputs: [], name: "WrongValueSent" },
695
+ {
696
+ type: "error",
697
+ inputs: [],
698
+ name: "premintSignerContractFailedToRecoverSigner"
699
+ },
700
+ { type: "error", inputs: [], name: "premintSignerContractNotAContract" },
701
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
702
+ {
703
+ type: "error",
704
+ inputs: [
705
+ { name: "account", internalType: "address", type: "address" },
706
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
707
+ ],
708
+ name: "AccessControlUnauthorizedAccount"
709
+ },
710
+ {
711
+ type: "error",
712
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
713
+ name: "AddressEmptyCode"
714
+ },
715
+ { type: "error", inputs: [], name: "AddressZero" },
716
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
717
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
718
+ {
719
+ type: "error",
720
+ inputs: [
721
+ { name: "commentAddress", internalType: "address", type: "address" },
722
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
723
+ { name: "replyAddress", internalType: "address", type: "address" },
724
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
725
+ ],
726
+ name: "CommentAddressOrTokenIdsDoNotMatch"
727
+ },
728
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
729
+ {
730
+ type: "error",
731
+ inputs: [
732
+ { name: "expected", internalType: "address", type: "address" },
733
+ { name: "actual", internalType: "address", type: "address" }
734
+ ],
735
+ name: "CommenterMismatch"
736
+ },
737
+ {
738
+ type: "error",
739
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
740
+ name: "DuplicateComment"
741
+ },
742
+ {
743
+ type: "error",
744
+ inputs: [
745
+ { name: "implementation", internalType: "address", type: "address" }
746
+ ],
747
+ name: "ERC1967InvalidImplementation"
748
+ },
749
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
750
+ {
751
+ type: "error",
752
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
753
+ name: "ERC2612ExpiredSignature"
754
+ },
755
+ { type: "error", inputs: [], name: "EmptyComment" },
756
+ { type: "error", inputs: [], name: "FailedInnerCall" },
757
+ {
758
+ type: "error",
759
+ inputs: [
760
+ {
761
+ name: "wrongDestinationChainId",
762
+ internalType: "uint256",
763
+ type: "uint256"
764
+ }
765
+ ],
766
+ name: "IncorrectDestinationChain"
767
+ },
768
+ {
769
+ type: "error",
770
+ inputs: [
771
+ { name: "actual", internalType: "uint256", type: "uint256" },
772
+ { name: "expected", internalType: "uint256", type: "uint256" }
773
+ ],
774
+ name: "IncorrectETHAmountForSparks"
775
+ },
776
+ {
777
+ type: "error",
778
+ inputs: [
779
+ { name: "account", internalType: "address", type: "address" },
780
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
781
+ ],
782
+ name: "InvalidAccountNonce"
783
+ },
784
+ { type: "error", inputs: [], name: "InvalidInitialization" },
785
+ { type: "error", inputs: [], name: "InvalidSignature" },
786
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
787
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
788
+ { type: "error", inputs: [], name: "NotInitializing" },
789
+ { type: "error", inputs: [], name: "NotSmartWallet" },
790
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
791
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
792
+ { type: "error", inputs: [], name: "OnlySparksContract" },
793
+ { type: "error", inputs: [], name: "TransferFailed" },
794
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
795
+ {
796
+ type: "error",
797
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
798
+ name: "UUPSUnsupportedProxiableUUID"
799
+ },
800
+ {
801
+ type: "error",
802
+ inputs: [
803
+ { name: "currentName", internalType: "string", type: "string" },
804
+ { name: "newName", internalType: "string", type: "string" }
805
+ ],
806
+ name: "UpgradeToMismatchedContractName"
807
+ }
808
+ ];
809
+ var callerAndCommenterAddress = {
810
+ 10: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
811
+ 8453: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
812
+ 42161: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
813
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
814
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
815
+ };
816
+ var callerAndCommenterConfig = {
817
+ address: callerAndCommenterAddress,
818
+ abi: callerAndCommenterABI
819
+ };
820
+ var commentsABI = [
821
+ {
822
+ stateMutability: "nonpayable",
823
+ type: "constructor",
824
+ inputs: [
825
+ { name: "_sparkValue", internalType: "uint256", type: "uint256" },
826
+ { name: "_protocolRewards", internalType: "address", type: "address" },
827
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
828
+ ]
829
+ },
830
+ {
831
+ stateMutability: "view",
832
+ type: "function",
833
+ inputs: [],
834
+ name: "BACKFILLER_ROLE",
835
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
836
+ },
837
+ {
838
+ stateMutability: "view",
839
+ type: "function",
840
+ inputs: [],
841
+ name: "DEFAULT_ADMIN_ROLE",
842
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
843
+ },
844
+ {
845
+ stateMutability: "view",
846
+ type: "function",
847
+ inputs: [],
848
+ name: "DELEGATE_COMMENTER",
849
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
850
+ },
851
+ {
852
+ stateMutability: "view",
853
+ type: "function",
854
+ inputs: [],
855
+ name: "DOMAIN_NAME",
856
+ outputs: [{ name: "", internalType: "string", type: "string" }]
857
+ },
858
+ {
859
+ stateMutability: "view",
860
+ type: "function",
861
+ inputs: [],
862
+ name: "DOMAIN_VERSION",
863
+ outputs: [{ name: "", internalType: "string", type: "string" }]
864
+ },
865
+ {
866
+ stateMutability: "view",
867
+ type: "function",
868
+ inputs: [],
869
+ name: "PERMISSION_BIT_ADMIN",
870
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
871
+ },
872
+ {
873
+ stateMutability: "view",
874
+ type: "function",
875
+ inputs: [],
876
+ name: "REFERRER_REWARD_PCT",
877
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
878
+ },
879
+ {
880
+ stateMutability: "view",
881
+ type: "function",
882
+ inputs: [],
883
+ name: "UPGRADE_INTERFACE_VERSION",
884
+ outputs: [{ name: "", internalType: "string", type: "string" }]
885
+ },
886
+ {
887
+ stateMutability: "view",
888
+ type: "function",
889
+ inputs: [],
890
+ name: "ZORA_REWARD_NO_REFERRER_PCT",
891
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
892
+ },
893
+ {
894
+ stateMutability: "view",
895
+ type: "function",
896
+ inputs: [],
897
+ name: "ZORA_REWARD_PCT",
898
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
899
+ },
900
+ {
901
+ stateMutability: "nonpayable",
902
+ type: "function",
903
+ inputs: [
904
+ {
905
+ name: "commentIdentifiers",
906
+ internalType: "struct IComments.CommentIdentifier[]",
907
+ type: "tuple[]",
908
+ components: [
909
+ { name: "commenter", internalType: "address", type: "address" },
910
+ { name: "contractAddress", internalType: "address", type: "address" },
911
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
912
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
913
+ ]
914
+ },
915
+ { name: "texts", internalType: "string[]", type: "string[]" },
916
+ { name: "timestamps", internalType: "uint256[]", type: "uint256[]" },
917
+ {
918
+ name: "originalTransactionHashes",
919
+ internalType: "bytes32[]",
920
+ type: "bytes32[]"
921
+ }
922
+ ],
923
+ name: "backfillBatchAddComment",
924
+ outputs: []
925
+ },
926
+ {
927
+ stateMutability: "payable",
928
+ type: "function",
929
+ inputs: [
930
+ { name: "commenter", internalType: "address", type: "address" },
931
+ { name: "contractAddress", internalType: "address", type: "address" },
932
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
933
+ { name: "text", internalType: "string", type: "string" },
934
+ {
935
+ name: "replyTo",
936
+ internalType: "struct IComments.CommentIdentifier",
937
+ type: "tuple",
938
+ components: [
939
+ { name: "commenter", internalType: "address", type: "address" },
940
+ { name: "contractAddress", internalType: "address", type: "address" },
941
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
942
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
943
+ ]
944
+ },
945
+ {
946
+ name: "commenterSmartWallet",
947
+ internalType: "address",
948
+ type: "address"
949
+ },
950
+ { name: "referrer", internalType: "address", type: "address" }
951
+ ],
952
+ name: "comment",
953
+ outputs: [
954
+ {
955
+ name: "commentIdentifier",
956
+ internalType: "struct IComments.CommentIdentifier",
957
+ type: "tuple",
958
+ components: [
959
+ { name: "commenter", internalType: "address", type: "address" },
960
+ { name: "contractAddress", internalType: "address", type: "address" },
961
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
962
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
963
+ ]
964
+ }
965
+ ]
966
+ },
967
+ {
968
+ stateMutability: "view",
969
+ type: "function",
970
+ inputs: [
971
+ {
972
+ name: "commentIdentifier",
973
+ internalType: "struct IComments.CommentIdentifier",
974
+ type: "tuple",
975
+ components: [
976
+ { name: "commenter", internalType: "address", type: "address" },
977
+ { name: "contractAddress", internalType: "address", type: "address" },
978
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
979
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
980
+ ]
981
+ }
982
+ ],
983
+ name: "commentSparksQuantity",
984
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
985
+ },
986
+ {
987
+ stateMutability: "pure",
988
+ type: "function",
989
+ inputs: [],
990
+ name: "contractName",
991
+ outputs: [{ name: "", internalType: "string", type: "string" }]
992
+ },
993
+ {
994
+ stateMutability: "pure",
995
+ type: "function",
996
+ inputs: [],
997
+ name: "contractVersion",
998
+ outputs: [{ name: "", internalType: "string", type: "string" }]
999
+ },
1000
+ {
1001
+ stateMutability: "payable",
1002
+ type: "function",
1003
+ inputs: [
1004
+ { name: "commenter", internalType: "address", type: "address" },
1005
+ { name: "contractAddress", internalType: "address", type: "address" },
1006
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1007
+ { name: "text", internalType: "string", type: "string" },
1008
+ {
1009
+ name: "replyTo",
1010
+ internalType: "struct IComments.CommentIdentifier",
1011
+ type: "tuple",
1012
+ components: [
1013
+ { name: "commenter", internalType: "address", type: "address" },
1014
+ { name: "contractAddress", internalType: "address", type: "address" },
1015
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1016
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1017
+ ]
1018
+ },
1019
+ {
1020
+ name: "commenterSmartWalletOwner",
1021
+ internalType: "address",
1022
+ type: "address"
1023
+ },
1024
+ { name: "referrer", internalType: "address", type: "address" }
1025
+ ],
1026
+ name: "delegateComment",
1027
+ outputs: [
1028
+ {
1029
+ name: "commentIdentifier",
1030
+ internalType: "struct IComments.CommentIdentifier",
1031
+ type: "tuple",
1032
+ components: [
1033
+ { name: "commenter", internalType: "address", type: "address" },
1034
+ { name: "contractAddress", internalType: "address", type: "address" },
1035
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1036
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1037
+ ]
1038
+ },
1039
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
1040
+ ]
1041
+ },
1042
+ {
1043
+ stateMutability: "view",
1044
+ type: "function",
1045
+ inputs: [],
1046
+ name: "eip712Domain",
1047
+ outputs: [
1048
+ { name: "fields", internalType: "bytes1", type: "bytes1" },
1049
+ { name: "name", internalType: "string", type: "string" },
1050
+ { name: "version", internalType: "string", type: "string" },
1051
+ { name: "chainId", internalType: "uint256", type: "uint256" },
1052
+ { name: "verifyingContract", internalType: "address", type: "address" },
1053
+ { name: "salt", internalType: "bytes32", type: "bytes32" },
1054
+ { name: "extensions", internalType: "uint256[]", type: "uint256[]" }
1055
+ ]
1056
+ },
1057
+ {
1058
+ stateMutability: "view",
1059
+ type: "function",
1060
+ inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
1061
+ name: "getRoleAdmin",
1062
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1063
+ },
1064
+ {
1065
+ stateMutability: "nonpayable",
1066
+ type: "function",
1067
+ inputs: [
1068
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1069
+ { name: "account", internalType: "address", type: "address" }
1070
+ ],
1071
+ name: "grantRole",
1072
+ outputs: []
1073
+ },
1074
+ {
1075
+ stateMutability: "view",
1076
+ type: "function",
1077
+ inputs: [
1078
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1079
+ { name: "account", internalType: "address", type: "address" }
1080
+ ],
1081
+ name: "hasRole",
1082
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1083
+ },
1084
+ {
1085
+ stateMutability: "view",
1086
+ type: "function",
1087
+ inputs: [
1088
+ {
1089
+ name: "commentIdentifier",
1090
+ internalType: "struct IComments.CommentIdentifier",
1091
+ type: "tuple",
1092
+ components: [
1093
+ { name: "commenter", internalType: "address", type: "address" },
1094
+ { name: "contractAddress", internalType: "address", type: "address" },
1095
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1096
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1097
+ ]
1098
+ }
1099
+ ],
1100
+ name: "hashAndCheckCommentExists",
1101
+ outputs: [
1102
+ { name: "commentId", internalType: "bytes32", type: "bytes32" },
1103
+ { name: "exists", internalType: "bool", type: "bool" }
1104
+ ]
1105
+ },
1106
+ {
1107
+ stateMutability: "view",
1108
+ type: "function",
1109
+ inputs: [
1110
+ {
1111
+ name: "commentIdentifier",
1112
+ internalType: "struct IComments.CommentIdentifier",
1113
+ type: "tuple",
1114
+ components: [
1115
+ { name: "commenter", internalType: "address", type: "address" },
1116
+ { name: "contractAddress", internalType: "address", type: "address" },
1117
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1118
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1119
+ ]
1120
+ }
1121
+ ],
1122
+ name: "hashAndValidateCommentExists",
1123
+ outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
1124
+ },
1125
+ {
1126
+ stateMutability: "pure",
1127
+ type: "function",
1128
+ inputs: [
1129
+ {
1130
+ name: "commentIdentifier",
1131
+ internalType: "struct IComments.CommentIdentifier",
1132
+ type: "tuple",
1133
+ components: [
1134
+ { name: "commenter", internalType: "address", type: "address" },
1135
+ { name: "contractAddress", internalType: "address", type: "address" },
1136
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1137
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1138
+ ]
1139
+ }
1140
+ ],
1141
+ name: "hashCommentIdentifier",
1142
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1143
+ },
1144
+ {
1145
+ stateMutability: "view",
1146
+ type: "function",
1147
+ inputs: [
1148
+ {
1149
+ name: "permit",
1150
+ internalType: "struct IComments.PermitComment",
1151
+ type: "tuple",
1152
+ components: [
1153
+ { name: "commenter", internalType: "address", type: "address" },
1154
+ {
1155
+ name: "commenterSmartWallet",
1156
+ internalType: "address",
1157
+ type: "address"
1158
+ },
1159
+ { name: "contractAddress", internalType: "address", type: "address" },
1160
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1161
+ {
1162
+ name: "replyTo",
1163
+ internalType: "struct IComments.CommentIdentifier",
1164
+ type: "tuple",
1165
+ components: [
1166
+ { name: "commenter", internalType: "address", type: "address" },
1167
+ {
1168
+ name: "contractAddress",
1169
+ internalType: "address",
1170
+ type: "address"
1171
+ },
1172
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1173
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1174
+ ]
1175
+ },
1176
+ { name: "text", internalType: "string", type: "string" },
1177
+ { name: "referrer", internalType: "address", type: "address" },
1178
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1179
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1180
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1181
+ {
1182
+ name: "destinationChainId",
1183
+ internalType: "uint32",
1184
+ type: "uint32"
1185
+ }
1186
+ ]
1187
+ }
1188
+ ],
1189
+ name: "hashPermitComment",
1190
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1191
+ },
1192
+ {
1193
+ stateMutability: "view",
1194
+ type: "function",
1195
+ inputs: [
1196
+ {
1197
+ name: "permit",
1198
+ internalType: "struct IComments.PermitSparkComment",
1199
+ type: "tuple",
1200
+ components: [
1201
+ {
1202
+ name: "comment",
1203
+ internalType: "struct IComments.CommentIdentifier",
1204
+ type: "tuple",
1205
+ components: [
1206
+ { name: "commenter", internalType: "address", type: "address" },
1207
+ {
1208
+ name: "contractAddress",
1209
+ internalType: "address",
1210
+ type: "address"
1211
+ },
1212
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1213
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1214
+ ]
1215
+ },
1216
+ { name: "sparker", internalType: "address", type: "address" },
1217
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1218
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1219
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1220
+ { name: "referrer", internalType: "address", type: "address" },
1221
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1222
+ {
1223
+ name: "destinationChainId",
1224
+ internalType: "uint32",
1225
+ type: "uint32"
1226
+ }
1227
+ ]
1228
+ }
1229
+ ],
1230
+ name: "hashPermitSparkComment",
1231
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1232
+ },
1233
+ {
1234
+ stateMutability: "view",
1235
+ type: "function",
1236
+ inputs: [],
1237
+ name: "implementation",
1238
+ outputs: [{ name: "", internalType: "address", type: "address" }]
1239
+ },
1240
+ {
1241
+ stateMutability: "nonpayable",
1242
+ type: "function",
1243
+ inputs: [
1244
+ { name: "defaultAdmin", internalType: "address", type: "address" },
1245
+ { name: "backfiller", internalType: "address", type: "address" },
1246
+ {
1247
+ name: "delegateCommenters",
1248
+ internalType: "address[]",
1249
+ type: "address[]"
1250
+ }
1251
+ ],
1252
+ name: "initialize",
1253
+ outputs: []
1254
+ },
1255
+ {
1256
+ stateMutability: "view",
1257
+ type: "function",
1258
+ inputs: [],
1259
+ name: "nextNonce",
1260
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1261
+ },
1262
+ {
1263
+ stateMutability: "view",
1264
+ type: "function",
1265
+ inputs: [
1266
+ { name: "owner", internalType: "address", type: "address" },
1267
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1268
+ ],
1269
+ name: "nonceUsed",
1270
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1271
+ },
1272
+ {
1273
+ stateMutability: "payable",
1274
+ type: "function",
1275
+ inputs: [
1276
+ {
1277
+ name: "permit",
1278
+ internalType: "struct IComments.PermitComment",
1279
+ type: "tuple",
1280
+ components: [
1281
+ { name: "commenter", internalType: "address", type: "address" },
1282
+ {
1283
+ name: "commenterSmartWallet",
1284
+ internalType: "address",
1285
+ type: "address"
1286
+ },
1287
+ { name: "contractAddress", internalType: "address", type: "address" },
1288
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1289
+ {
1290
+ name: "replyTo",
1291
+ internalType: "struct IComments.CommentIdentifier",
1292
+ type: "tuple",
1293
+ components: [
1294
+ { name: "commenter", internalType: "address", type: "address" },
1295
+ {
1296
+ name: "contractAddress",
1297
+ internalType: "address",
1298
+ type: "address"
1299
+ },
1300
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1301
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1302
+ ]
1303
+ },
1304
+ { name: "text", internalType: "string", type: "string" },
1305
+ { name: "referrer", internalType: "address", type: "address" },
1306
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1307
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1308
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1309
+ {
1310
+ name: "destinationChainId",
1311
+ internalType: "uint32",
1312
+ type: "uint32"
1313
+ }
1314
+ ]
1315
+ },
1316
+ { name: "signature", internalType: "bytes", type: "bytes" }
1317
+ ],
1318
+ name: "permitComment",
1319
+ outputs: []
1320
+ },
1321
+ {
1322
+ stateMutability: "payable",
1323
+ type: "function",
1324
+ inputs: [
1325
+ {
1326
+ name: "permit",
1327
+ internalType: "struct IComments.PermitSparkComment",
1328
+ type: "tuple",
1329
+ components: [
1330
+ {
1331
+ name: "comment",
1332
+ internalType: "struct IComments.CommentIdentifier",
1333
+ type: "tuple",
1334
+ components: [
1335
+ { name: "commenter", internalType: "address", type: "address" },
1336
+ {
1337
+ name: "contractAddress",
1338
+ internalType: "address",
1339
+ type: "address"
1340
+ },
1341
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1342
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1343
+ ]
1344
+ },
1345
+ { name: "sparker", internalType: "address", type: "address" },
1346
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1347
+ { name: "deadline", internalType: "uint256", type: "uint256" },
1348
+ { name: "nonce", internalType: "bytes32", type: "bytes32" },
1349
+ { name: "referrer", internalType: "address", type: "address" },
1350
+ { name: "sourceChainId", internalType: "uint32", type: "uint32" },
1351
+ {
1352
+ name: "destinationChainId",
1353
+ internalType: "uint32",
1354
+ type: "uint32"
1355
+ }
1356
+ ]
1357
+ },
1358
+ { name: "signature", internalType: "bytes", type: "bytes" }
1359
+ ],
1360
+ name: "permitSparkComment",
1361
+ outputs: []
1362
+ },
1363
+ {
1364
+ stateMutability: "view",
1365
+ type: "function",
1366
+ inputs: [],
1367
+ name: "protocolRewards",
1368
+ outputs: [
1369
+ { name: "", internalType: "contract IProtocolRewards", type: "address" }
1370
+ ]
1371
+ },
1372
+ {
1373
+ stateMutability: "view",
1374
+ type: "function",
1375
+ inputs: [],
1376
+ name: "proxiableUUID",
1377
+ outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
1378
+ },
1379
+ {
1380
+ stateMutability: "nonpayable",
1381
+ type: "function",
1382
+ inputs: [
1383
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1384
+ { name: "callerConfirmation", internalType: "address", type: "address" }
1385
+ ],
1386
+ name: "renounceRole",
1387
+ outputs: []
1388
+ },
1389
+ {
1390
+ stateMutability: "nonpayable",
1391
+ type: "function",
1392
+ inputs: [
1393
+ { name: "role", internalType: "bytes32", type: "bytes32" },
1394
+ { name: "account", internalType: "address", type: "address" }
1395
+ ],
1396
+ name: "revokeRole",
1397
+ outputs: []
1398
+ },
1399
+ {
1400
+ stateMutability: "payable",
1401
+ type: "function",
1402
+ inputs: [
1403
+ {
1404
+ name: "commentIdentifier",
1405
+ internalType: "struct IComments.CommentIdentifier",
1406
+ type: "tuple",
1407
+ components: [
1408
+ { name: "commenter", internalType: "address", type: "address" },
1409
+ { name: "contractAddress", internalType: "address", type: "address" },
1410
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1411
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1412
+ ]
1413
+ },
1414
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
1415
+ { name: "referrer", internalType: "address", type: "address" }
1416
+ ],
1417
+ name: "sparkComment",
1418
+ outputs: []
1419
+ },
1420
+ {
1421
+ stateMutability: "view",
1422
+ type: "function",
1423
+ inputs: [],
1424
+ name: "sparkValue",
1425
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1426
+ },
1427
+ {
1428
+ stateMutability: "view",
1429
+ type: "function",
1430
+ inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
1431
+ name: "supportsInterface",
1432
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
1433
+ },
1434
+ {
1435
+ stateMutability: "payable",
1436
+ type: "function",
1437
+ inputs: [
1438
+ { name: "newImplementation", internalType: "address", type: "address" },
1439
+ { name: "data", internalType: "bytes", type: "bytes" }
1440
+ ],
1441
+ name: "upgradeToAndCall",
1442
+ outputs: []
1443
+ },
1444
+ {
1445
+ type: "event",
1446
+ anonymous: false,
1447
+ inputs: [
1448
+ {
1449
+ name: "commentId",
1450
+ internalType: "bytes32",
1451
+ type: "bytes32",
1452
+ indexed: true
1453
+ },
1454
+ {
1455
+ name: "commentIdentifier",
1456
+ internalType: "struct IComments.CommentIdentifier",
1457
+ type: "tuple",
1458
+ components: [
1459
+ { name: "commenter", internalType: "address", type: "address" },
1460
+ { name: "contractAddress", internalType: "address", type: "address" },
1461
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1462
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1463
+ ],
1464
+ indexed: false
1465
+ },
1466
+ { name: "text", internalType: "string", type: "string", indexed: false },
1467
+ {
1468
+ name: "timestamp",
1469
+ internalType: "uint256",
1470
+ type: "uint256",
1471
+ indexed: false
1472
+ },
1473
+ {
1474
+ name: "originalTransactionId",
1475
+ internalType: "bytes32",
1476
+ type: "bytes32",
1477
+ indexed: false
1478
+ }
1479
+ ],
1480
+ name: "BackfilledComment"
1481
+ },
1482
+ {
1483
+ type: "event",
1484
+ anonymous: false,
1485
+ inputs: [
1486
+ {
1487
+ name: "commentId",
1488
+ internalType: "bytes32",
1489
+ type: "bytes32",
1490
+ indexed: true
1491
+ },
1492
+ {
1493
+ name: "commentIdentifier",
1494
+ internalType: "struct IComments.CommentIdentifier",
1495
+ type: "tuple",
1496
+ components: [
1497
+ { name: "commenter", internalType: "address", type: "address" },
1498
+ { name: "contractAddress", internalType: "address", type: "address" },
1499
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1500
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1501
+ ],
1502
+ indexed: false
1503
+ },
1504
+ {
1505
+ name: "replyToId",
1506
+ internalType: "bytes32",
1507
+ type: "bytes32",
1508
+ indexed: false
1509
+ },
1510
+ {
1511
+ name: "replyTo",
1512
+ internalType: "struct IComments.CommentIdentifier",
1513
+ type: "tuple",
1514
+ components: [
1515
+ { name: "commenter", internalType: "address", type: "address" },
1516
+ { name: "contractAddress", internalType: "address", type: "address" },
1517
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1518
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1519
+ ],
1520
+ indexed: false
1521
+ },
1522
+ {
1523
+ name: "sparksQuantity",
1524
+ internalType: "uint256",
1525
+ type: "uint256",
1526
+ indexed: false
1527
+ },
1528
+ { name: "text", internalType: "string", type: "string", indexed: false },
1529
+ {
1530
+ name: "timestamp",
1531
+ internalType: "uint256",
1532
+ type: "uint256",
1533
+ indexed: false
1534
+ },
1535
+ {
1536
+ name: "referrer",
1537
+ internalType: "address",
1538
+ type: "address",
1539
+ indexed: false
1540
+ }
1541
+ ],
1542
+ name: "Commented"
1543
+ },
1544
+ { type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
1545
+ {
1546
+ type: "event",
1547
+ anonymous: false,
1548
+ inputs: [
1549
+ {
1550
+ name: "version",
1551
+ internalType: "uint64",
1552
+ type: "uint64",
1553
+ indexed: false
1554
+ }
1555
+ ],
1556
+ name: "Initialized"
1557
+ },
1558
+ {
1559
+ type: "event",
1560
+ anonymous: false,
1561
+ inputs: [
1562
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1563
+ {
1564
+ name: "previousAdminRole",
1565
+ internalType: "bytes32",
1566
+ type: "bytes32",
1567
+ indexed: true
1568
+ },
1569
+ {
1570
+ name: "newAdminRole",
1571
+ internalType: "bytes32",
1572
+ type: "bytes32",
1573
+ indexed: true
1574
+ }
1575
+ ],
1576
+ name: "RoleAdminChanged"
1577
+ },
1578
+ {
1579
+ type: "event",
1580
+ anonymous: false,
1581
+ inputs: [
1582
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1583
+ {
1584
+ name: "account",
1585
+ internalType: "address",
1586
+ type: "address",
1587
+ indexed: true
1588
+ },
1589
+ {
1590
+ name: "sender",
1591
+ internalType: "address",
1592
+ type: "address",
1593
+ indexed: true
1594
+ }
1595
+ ],
1596
+ name: "RoleGranted"
1597
+ },
1598
+ {
1599
+ type: "event",
1600
+ anonymous: false,
1601
+ inputs: [
1602
+ { name: "role", internalType: "bytes32", type: "bytes32", indexed: true },
1603
+ {
1604
+ name: "account",
1605
+ internalType: "address",
1606
+ type: "address",
1607
+ indexed: true
1608
+ },
1609
+ {
1610
+ name: "sender",
1611
+ internalType: "address",
1612
+ type: "address",
1613
+ indexed: true
1614
+ }
1615
+ ],
1616
+ name: "RoleRevoked"
1617
+ },
1618
+ {
1619
+ type: "event",
1620
+ anonymous: false,
1621
+ inputs: [
1622
+ {
1623
+ name: "commentId",
1624
+ internalType: "bytes32",
1625
+ type: "bytes32",
1626
+ indexed: true
1627
+ },
1628
+ {
1629
+ name: "commentIdentifier",
1630
+ internalType: "struct IComments.CommentIdentifier",
1631
+ type: "tuple",
1632
+ components: [
1633
+ { name: "commenter", internalType: "address", type: "address" },
1634
+ { name: "contractAddress", internalType: "address", type: "address" },
1635
+ { name: "tokenId", internalType: "uint256", type: "uint256" },
1636
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
1637
+ ],
1638
+ indexed: false
1639
+ },
1640
+ {
1641
+ name: "sparksQuantity",
1642
+ internalType: "uint256",
1643
+ type: "uint256",
1644
+ indexed: false
1645
+ },
1646
+ {
1647
+ name: "sparker",
1648
+ internalType: "address",
1649
+ type: "address",
1650
+ indexed: false
1651
+ },
1652
+ {
1653
+ name: "timestamp",
1654
+ internalType: "uint256",
1655
+ type: "uint256",
1656
+ indexed: false
1657
+ },
1658
+ {
1659
+ name: "referrer",
1660
+ internalType: "address",
1661
+ type: "address",
1662
+ indexed: false
1663
+ }
1664
+ ],
1665
+ name: "SparkedComment"
1666
+ },
1667
+ {
1668
+ type: "event",
1669
+ anonymous: false,
1670
+ inputs: [
1671
+ {
1672
+ name: "implementation",
1673
+ internalType: "address",
1674
+ type: "address",
1675
+ indexed: true
1676
+ }
1677
+ ],
1678
+ name: "Upgraded"
1679
+ },
1680
+ { type: "error", inputs: [], name: "AccessControlBadConfirmation" },
1681
+ {
1682
+ type: "error",
1683
+ inputs: [
1684
+ { name: "account", internalType: "address", type: "address" },
1685
+ { name: "neededRole", internalType: "bytes32", type: "bytes32" }
1686
+ ],
1687
+ name: "AccessControlUnauthorizedAccount"
1688
+ },
1689
+ {
1690
+ type: "error",
1691
+ inputs: [{ name: "target", internalType: "address", type: "address" }],
1692
+ name: "AddressEmptyCode"
1693
+ },
1694
+ { type: "error", inputs: [], name: "AddressZero" },
1695
+ { type: "error", inputs: [], name: "ArrayLengthMismatch" },
1696
+ { type: "error", inputs: [], name: "CannotSparkOwnComment" },
1697
+ {
1698
+ type: "error",
1699
+ inputs: [
1700
+ { name: "commentAddress", internalType: "address", type: "address" },
1701
+ { name: "commentTokenId", internalType: "uint256", type: "uint256" },
1702
+ { name: "replyAddress", internalType: "address", type: "address" },
1703
+ { name: "replyTokenId", internalType: "uint256", type: "uint256" }
1704
+ ],
1705
+ name: "CommentAddressOrTokenIdsDoNotMatch"
1706
+ },
1707
+ { type: "error", inputs: [], name: "CommentDoesntExist" },
1708
+ {
1709
+ type: "error",
1710
+ inputs: [
1711
+ { name: "expected", internalType: "address", type: "address" },
1712
+ { name: "actual", internalType: "address", type: "address" }
1713
+ ],
1714
+ name: "CommenterMismatch"
1715
+ },
1716
+ {
1717
+ type: "error",
1718
+ inputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
1719
+ name: "DuplicateComment"
1720
+ },
1721
+ {
1722
+ type: "error",
1723
+ inputs: [
1724
+ { name: "implementation", internalType: "address", type: "address" }
1725
+ ],
1726
+ name: "ERC1967InvalidImplementation"
1727
+ },
1728
+ { type: "error", inputs: [], name: "ERC1967NonPayable" },
1729
+ {
1730
+ type: "error",
1731
+ inputs: [{ name: "deadline", internalType: "uint256", type: "uint256" }],
1732
+ name: "ERC2612ExpiredSignature"
1733
+ },
1734
+ { type: "error", inputs: [], name: "EmptyComment" },
1735
+ { type: "error", inputs: [], name: "FailedInnerCall" },
1736
+ {
1737
+ type: "error",
1738
+ inputs: [
1739
+ {
1740
+ name: "wrongDestinationChainId",
1741
+ internalType: "uint256",
1742
+ type: "uint256"
1743
+ }
1744
+ ],
1745
+ name: "IncorrectDestinationChain"
1746
+ },
1747
+ {
1748
+ type: "error",
1749
+ inputs: [
1750
+ { name: "actual", internalType: "uint256", type: "uint256" },
1751
+ { name: "expected", internalType: "uint256", type: "uint256" }
1752
+ ],
1753
+ name: "IncorrectETHAmountForSparks"
1754
+ },
1755
+ {
1756
+ type: "error",
1757
+ inputs: [
1758
+ { name: "account", internalType: "address", type: "address" },
1759
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
1760
+ ],
1761
+ name: "InvalidAccountNonce"
1762
+ },
1763
+ { type: "error", inputs: [], name: "InvalidInitialization" },
1764
+ { type: "error", inputs: [], name: "InvalidSignature" },
1765
+ { type: "error", inputs: [], name: "MustSendAtLeastOneSpark" },
1766
+ { type: "error", inputs: [], name: "NoFundsRecipient" },
1767
+ { type: "error", inputs: [], name: "NotInitializing" },
1768
+ { type: "error", inputs: [], name: "NotSmartWallet" },
1769
+ { type: "error", inputs: [], name: "NotSmartWalletOwner" },
1770
+ { type: "error", inputs: [], name: "NotTokenHolderOrAdmin" },
1771
+ { type: "error", inputs: [], name: "OnlySparksContract" },
1772
+ { type: "error", inputs: [], name: "TransferFailed" },
1773
+ { type: "error", inputs: [], name: "UUPSUnauthorizedCallContext" },
1774
+ {
1775
+ type: "error",
1776
+ inputs: [{ name: "slot", internalType: "bytes32", type: "bytes32" }],
1777
+ name: "UUPSUnsupportedProxiableUUID"
1778
+ },
1779
+ {
1780
+ type: "error",
1781
+ inputs: [
1782
+ { name: "currentName", internalType: "string", type: "string" },
1783
+ { name: "newName", internalType: "string", type: "string" }
1784
+ ],
1785
+ name: "UpgradeToMismatchedContractName"
1786
+ }
1787
+ ];
1788
+ var commentsAddress = {
1789
+ 10: "0x7777777C2B3132e03a65721a41745C07170a5877",
1790
+ 8453: "0x7777777C2B3132e03a65721a41745C07170a5877",
1791
+ 42161: "0x7777777C2B3132e03a65721a41745C07170a5877",
1792
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
1793
+ 999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
1794
+ };
1795
+ var commentsConfig = {
1796
+ address: commentsAddress,
1797
+ abi: commentsABI
1798
+ };
13
1799
  var erc20MinterABI = [
14
1800
  {
15
1801
  stateMutability: "nonpayable",
@@ -10561,6 +12347,55 @@ var zoraTimedSaleStrategyConfig = {
10561
12347
  abi: zoraTimedSaleStrategyABI
10562
12348
  };
10563
12349
 
12350
+ // ../../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
12351
+ var InvalidDecimalNumberError = class extends BaseError {
12352
+ constructor({ value }) {
12353
+ super(`Number \`${value}\` is not a valid decimal number.`, {
12354
+ name: "InvalidDecimalNumberError"
12355
+ });
12356
+ }
12357
+ };
12358
+
12359
+ // ../../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
12360
+ function parseUnits(value, decimals) {
12361
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
12362
+ throw new InvalidDecimalNumberError({ value });
12363
+ let [integer, fraction = "0"] = value.split(".");
12364
+ const negative = integer.startsWith("-");
12365
+ if (negative)
12366
+ integer = integer.slice(1);
12367
+ fraction = fraction.replace(/(0+)$/, "");
12368
+ if (decimals === 0) {
12369
+ if (Math.round(Number(`.${fraction}`)) === 1)
12370
+ integer = `${BigInt(integer) + 1n}`;
12371
+ fraction = "";
12372
+ } else if (fraction.length > decimals) {
12373
+ const [left, unit, right] = [
12374
+ fraction.slice(0, decimals - 1),
12375
+ fraction.slice(decimals - 1, decimals),
12376
+ fraction.slice(decimals)
12377
+ ];
12378
+ const rounded = Math.round(Number(`${unit}.${right}`));
12379
+ if (rounded > 9)
12380
+ fraction = `${BigInt(left) + BigInt(1)}0`.padStart(left.length + 1, "0");
12381
+ else
12382
+ fraction = `${left}${rounded}`;
12383
+ if (fraction.length > decimals) {
12384
+ fraction = fraction.slice(1);
12385
+ integer = `${BigInt(integer) + 1n}`;
12386
+ }
12387
+ fraction = fraction.slice(0, decimals);
12388
+ } else {
12389
+ fraction = fraction.padEnd(decimals, "0");
12390
+ }
12391
+ return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
12392
+ }
12393
+
12394
+ // ../../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
12395
+ function parseEther(ether, unit = "wei") {
12396
+ return parseUnits(ether, etherUnits[unit]);
12397
+ }
12398
+
10564
12399
  // src/types.ts
10565
12400
  var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10566
12401
  PremintConfigVersion2["V1"] = "1";
@@ -10568,6 +12403,16 @@ var PremintConfigVersion = /* @__PURE__ */ ((PremintConfigVersion2) => {
10568
12403
  PremintConfigVersion2["V3"] = "3";
10569
12404
  return PremintConfigVersion2;
10570
12405
  })(PremintConfigVersion || {});
12406
+ var emptyCommentIdentifier = () => {
12407
+ const zeroAddress = "0x0000000000000000000000000000000000000000";
12408
+ const zeroHash = "0x0000000000000000000000000000000000000000000000000000000000000000";
12409
+ return {
12410
+ commenter: zeroAddress,
12411
+ contractAddress: zeroAddress,
12412
+ tokenId: 0n,
12413
+ nonce: zeroHash
12414
+ };
12415
+ };
10571
12416
 
10572
12417
  // src/typedData.ts
10573
12418
  var premintTypedDataDomain = ({
@@ -10858,6 +12703,104 @@ var sponsoredSparksBatchTypedDataDefinition = ({
10858
12703
  verifyingContract: sponsoredSparksSpenderAddress[chainId]
10859
12704
  }
10860
12705
  });
12706
+ var commentIdentifierType = [
12707
+ { name: "contractAddress", type: "address" },
12708
+ { name: "tokenId", type: "uint256" },
12709
+ { name: "commenter", type: "address" },
12710
+ { name: "nonce", type: "bytes32" }
12711
+ ];
12712
+ var permitCommentTypedDataType = {
12713
+ PermitComment: [
12714
+ { name: "contractAddress", type: "address" },
12715
+ { name: "tokenId", type: "uint256" },
12716
+ { name: "commenter", type: "address" },
12717
+ { name: "replyTo", type: "CommentIdentifier" },
12718
+ { name: "text", type: "string" },
12719
+ { name: "deadline", type: "uint256" },
12720
+ { name: "nonce", type: "bytes32" },
12721
+ { name: "commenterSmartWallet", type: "address" },
12722
+ { name: "referrer", type: "address" },
12723
+ { name: "sourceChainId", type: "uint32" },
12724
+ { name: "destinationChainId", type: "uint32" }
12725
+ ],
12726
+ CommentIdentifier: commentIdentifierType
12727
+ };
12728
+ var permitSparkCommentTypedDataType = {
12729
+ PermitSparkComment: [
12730
+ { name: "comment", type: "CommentIdentifier" },
12731
+ { name: "sparker", type: "address" },
12732
+ { name: "sparksQuantity", type: "uint256" },
12733
+ { name: "deadline", type: "uint256" },
12734
+ { name: "nonce", type: "bytes32" },
12735
+ { name: "referrer", type: "address" },
12736
+ { name: "sourceChainId", type: "uint32" },
12737
+ { name: "destinationChainId", type: "uint32" }
12738
+ ],
12739
+ CommentIdentifier: commentIdentifierType
12740
+ };
12741
+ var commentsDomain = ({
12742
+ signingChainId,
12743
+ destinationChainId
12744
+ }) => ({
12745
+ chainId: signingChainId,
12746
+ name: "Comments",
12747
+ version: "1",
12748
+ verifyingContract: commentsAddress[destinationChainId]
12749
+ });
12750
+ var permitCommentTypedDataDefinition = (message, signingAccount) => ({
12751
+ types: permitCommentTypedDataType,
12752
+ message,
12753
+ primaryType: "PermitComment",
12754
+ domain: commentsDomain({
12755
+ signingChainId: message.sourceChainId,
12756
+ destinationChainId: message.destinationChainId
12757
+ }),
12758
+ account: signingAccount || message.commenter
12759
+ });
12760
+ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
12761
+ types: permitSparkCommentTypedDataType,
12762
+ message,
12763
+ primaryType: "PermitSparkComment",
12764
+ domain: commentsDomain({
12765
+ signingChainId: message.sourceChainId,
12766
+ destinationChainId: message.destinationChainId
12767
+ }),
12768
+ account: signingAccount || message.sparker
12769
+ });
12770
+ var sparkValue = () => parseEther("0.000001");
12771
+ var permitTimedSaleMintAndCommentTypedDataType = {
12772
+ PermitTimedSaleMintAndComment: [
12773
+ { name: "commenter", type: "address" },
12774
+ { name: "quantity", type: "uint256" },
12775
+ { name: "collection", type: "address" },
12776
+ { name: "tokenId", type: "uint256" },
12777
+ { name: "mintReferral", type: "address" },
12778
+ { name: "comment", type: "string" },
12779
+ { name: "deadline", type: "uint256" },
12780
+ { name: "nonce", type: "bytes32" },
12781
+ { name: "sourceChainId", type: "uint32" },
12782
+ { name: "destinationChainId", type: "uint32" }
12783
+ ]
12784
+ };
12785
+ var callerAndCommenterDomain = ({
12786
+ signingChainId,
12787
+ destinationChainId
12788
+ }) => ({
12789
+ name: "CallerAndCommenter",
12790
+ version: "1",
12791
+ chainId: signingChainId,
12792
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
12793
+ });
12794
+ var permitMintAndCommentTypedDataDefinition = (message, signingAccount) => ({
12795
+ types: permitTimedSaleMintAndCommentTypedDataType,
12796
+ message,
12797
+ primaryType: "PermitTimedSaleMintAndComment",
12798
+ domain: callerAndCommenterDomain({
12799
+ signingChainId: message.sourceChainId,
12800
+ destinationChainId: message.destinationChainId
12801
+ }),
12802
+ account: signingAccount || message.commenter
12803
+ });
10861
12804
 
10862
12805
  // src/encoding.ts
10863
12806
  var safeTransferSwapAbiParameters = [
@@ -11196,7 +13139,14 @@ var addresses2 = {
11196
13139
  };
11197
13140
  export {
11198
13141
  PremintConfigVersion,
13142
+ callerAndCommenterABI,
13143
+ callerAndCommenterAddress,
13144
+ callerAndCommenterConfig,
13145
+ commentsABI,
13146
+ commentsAddress,
13147
+ commentsConfig,
11199
13148
  __exports as contracts1155,
13149
+ emptyCommentIdentifier,
11200
13150
  encodePremintConfig,
11201
13151
  erc20MinterABI,
11202
13152
  erc20MinterAddress,
@@ -11213,6 +13163,9 @@ export {
11213
13163
  mintsEthUnwrapperAndCallerConfig,
11214
13164
  mintsSafeTransferBatchTypedDataDefinition,
11215
13165
  mintsSafeTransferTypedDataDefinition,
13166
+ permitCommentTypedDataDefinition,
13167
+ permitMintAndCommentTypedDataDefinition,
13168
+ permitSparkCommentTypedDataDefinition,
11216
13169
  premintTypedDataDefinition,
11217
13170
  premintV1TypedDataDefinition,
11218
13171
  premintV2TypedDataDefinition,
@@ -11223,6 +13176,7 @@ export {
11223
13176
  secondarySwapABI,
11224
13177
  secondarySwapAddress,
11225
13178
  secondarySwapConfig,
13179
+ sparkValue,
11226
13180
  sparks_exports as sparks,
11227
13181
  sponsoredSparksBatchTransferTypedDataType,
11228
13182
  sponsoredSparksBatchTypedDataDefinition,