@zoralabs/protocol-deployments 0.3.5-COMMENTS.2 → 0.3.5-COMMENTS.4

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,23 +1,827 @@
1
1
  import {
2
+ BaseError,
2
3
  encodeAbiParameters,
3
4
  etherUnits,
4
5
  getAbiItem,
5
6
  keccak256,
6
7
  toHex
7
- } from "./chunk-IB365BT5.js";
8
- import "./chunk-5JV63AHR.js";
8
+ } from "./chunk-MCOK75CU.js";
9
+ import "./chunk-FJ2PMLO3.js";
9
10
  import {
10
11
  __export
11
12
  } from "./chunk-3EJPJMEH.js";
12
13
 
13
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
+ 7777777: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
811
+ 999999999: "0x77777775C5074b74540d9cC63Dd840A8c692B4B5"
812
+ };
813
+ var callerAndCommenterConfig = {
814
+ address: callerAndCommenterAddress,
815
+ abi: callerAndCommenterABI
816
+ };
14
817
  var commentsABI = [
15
818
  {
16
819
  stateMutability: "nonpayable",
17
820
  type: "constructor",
18
821
  inputs: [
19
822
  { name: "_sparkValue", internalType: "uint256", type: "uint256" },
20
- { name: "_protocolRewards", internalType: "address", type: "address" }
823
+ { name: "_protocolRewards", internalType: "address", type: "address" },
824
+ { name: "_zoraRecipient", internalType: "address", type: "address" }
21
825
  ]
22
826
  },
23
827
  {
@@ -38,7 +842,7 @@ var commentsABI = [
38
842
  stateMutability: "view",
39
843
  type: "function",
40
844
  inputs: [],
41
- name: "DELEGATE_COMMENTOR",
845
+ name: "DELEGATE_COMMENTER",
42
846
  outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
43
847
  },
44
848
  {
@@ -174,7 +978,7 @@ var commentsABI = [
174
978
  }
175
979
  ],
176
980
  name: "commentSparksQuantity",
177
- outputs: [{ name: "", internalType: "uint64", type: "uint64" }]
981
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
178
982
  },
179
983
  {
180
984
  stateMutability: "pure",
@@ -191,7 +995,7 @@ var commentsABI = [
191
995
  outputs: [{ name: "", internalType: "string", type: "string" }]
192
996
  },
193
997
  {
194
- stateMutability: "nonpayable",
998
+ stateMutability: "payable",
195
999
  type: "function",
196
1000
  inputs: [
197
1001
  { name: "commenter", internalType: "address", type: "address" },
@@ -208,7 +1012,13 @@ var commentsABI = [
208
1012
  { name: "tokenId", internalType: "uint256", type: "uint256" },
209
1013
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
210
1014
  ]
211
- }
1015
+ },
1016
+ {
1017
+ name: "commenterSmartWalletOwner",
1018
+ internalType: "address",
1019
+ type: "address"
1020
+ },
1021
+ { name: "referrer", internalType: "address", type: "address" }
212
1022
  ],
213
1023
  name: "delegateComment",
214
1024
  outputs: [
@@ -222,7 +1032,8 @@ var commentsABI = [
222
1032
  { name: "tokenId", internalType: "uint256", type: "uint256" },
223
1033
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
224
1034
  ]
225
- }
1035
+ },
1036
+ { name: "commentId", internalType: "bytes32", type: "bytes32" }
226
1037
  ]
227
1038
  },
228
1039
  {
@@ -337,6 +1148,11 @@ var commentsABI = [
337
1148
  type: "tuple",
338
1149
  components: [
339
1150
  { name: "commenter", internalType: "address", type: "address" },
1151
+ {
1152
+ name: "commenterSmartWallet",
1153
+ internalType: "address",
1154
+ type: "address"
1155
+ },
340
1156
  { name: "contractAddress", internalType: "address", type: "address" },
341
1157
  { name: "tokenId", internalType: "uint256", type: "uint256" },
342
1158
  {
@@ -355,19 +1171,14 @@ var commentsABI = [
355
1171
  ]
356
1172
  },
357
1173
  { name: "text", internalType: "string", type: "string" },
1174
+ { name: "referrer", internalType: "address", type: "address" },
358
1175
  { name: "deadline", internalType: "uint256", type: "uint256" },
359
1176
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
360
- { name: "referrer", internalType: "address", type: "address" },
361
1177
  { name: "sourceChainId", internalType: "uint32", type: "uint32" },
362
1178
  {
363
1179
  name: "destinationChainId",
364
1180
  internalType: "uint32",
365
1181
  type: "uint32"
366
- },
367
- {
368
- name: "commenterSmartWallet",
369
- internalType: "address",
370
- type: "address"
371
1182
  }
372
1183
  ]
373
1184
  }
@@ -400,7 +1211,7 @@ var commentsABI = [
400
1211
  ]
401
1212
  },
402
1213
  { name: "sparker", internalType: "address", type: "address" },
403
- { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
1214
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
404
1215
  { name: "deadline", internalType: "uint256", type: "uint256" },
405
1216
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
406
1217
  { name: "referrer", internalType: "address", type: "address" },
@@ -427,7 +1238,6 @@ var commentsABI = [
427
1238
  stateMutability: "nonpayable",
428
1239
  type: "function",
429
1240
  inputs: [
430
- { name: "_zoraRecipient", internalType: "address", type: "address" },
431
1241
  { name: "defaultAdmin", internalType: "address", type: "address" },
432
1242
  { name: "backfiller", internalType: "address", type: "address" },
433
1243
  {
@@ -451,7 +1261,7 @@ var commentsABI = [
451
1261
  type: "function",
452
1262
  inputs: [
453
1263
  { name: "owner", internalType: "address", type: "address" },
454
- { name: "nonce", internalType: "uint256", type: "uint256" }
1264
+ { name: "nonce", internalType: "bytes32", type: "bytes32" }
455
1265
  ],
456
1266
  name: "nonceUsed",
457
1267
  outputs: [{ name: "", internalType: "bool", type: "bool" }]
@@ -466,6 +1276,11 @@ var commentsABI = [
466
1276
  type: "tuple",
467
1277
  components: [
468
1278
  { name: "commenter", internalType: "address", type: "address" },
1279
+ {
1280
+ name: "commenterSmartWallet",
1281
+ internalType: "address",
1282
+ type: "address"
1283
+ },
469
1284
  { name: "contractAddress", internalType: "address", type: "address" },
470
1285
  { name: "tokenId", internalType: "uint256", type: "uint256" },
471
1286
  {
@@ -484,19 +1299,14 @@ var commentsABI = [
484
1299
  ]
485
1300
  },
486
1301
  { name: "text", internalType: "string", type: "string" },
1302
+ { name: "referrer", internalType: "address", type: "address" },
487
1303
  { name: "deadline", internalType: "uint256", type: "uint256" },
488
1304
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
489
- { name: "referrer", internalType: "address", type: "address" },
490
1305
  { name: "sourceChainId", internalType: "uint32", type: "uint32" },
491
1306
  {
492
1307
  name: "destinationChainId",
493
1308
  internalType: "uint32",
494
1309
  type: "uint32"
495
- },
496
- {
497
- name: "commenterSmartWallet",
498
- internalType: "address",
499
- type: "address"
500
1310
  }
501
1311
  ]
502
1312
  },
@@ -530,7 +1340,7 @@ var commentsABI = [
530
1340
  ]
531
1341
  },
532
1342
  { name: "sparker", internalType: "address", type: "address" },
533
- { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
1343
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
534
1344
  { name: "deadline", internalType: "uint256", type: "uint256" },
535
1345
  { name: "nonce", internalType: "bytes32", type: "bytes32" },
536
1346
  { name: "referrer", internalType: "address", type: "address" },
@@ -598,7 +1408,7 @@ var commentsABI = [
598
1408
  { name: "nonce", internalType: "bytes32", type: "bytes32" }
599
1409
  ]
600
1410
  },
601
- { name: "sparksQuantity", internalType: "uint64", type: "uint64" },
1411
+ { name: "sparksQuantity", internalType: "uint256", type: "uint256" },
602
1412
  { name: "referrer", internalType: "address", type: "address" }
603
1413
  ],
604
1414
  name: "sparkComment",
@@ -639,7 +1449,7 @@ var commentsABI = [
639
1449
  indexed: true
640
1450
  },
641
1451
  {
642
- name: "comment",
1452
+ name: "commentIdentifier",
643
1453
  internalType: "struct IComments.CommentIdentifier",
644
1454
  type: "tuple",
645
1455
  components: [
@@ -677,7 +1487,7 @@ var commentsABI = [
677
1487
  indexed: true
678
1488
  },
679
1489
  {
680
- name: "comment",
1490
+ name: "commentIdentifier",
681
1491
  internalType: "struct IComments.CommentIdentifier",
682
1492
  type: "tuple",
683
1493
  components: [
@@ -708,8 +1518,8 @@ var commentsABI = [
708
1518
  },
709
1519
  {
710
1520
  name: "sparksQuantity",
711
- internalType: "uint64",
712
- type: "uint64",
1521
+ internalType: "uint256",
1522
+ type: "uint256",
713
1523
  indexed: false
714
1524
  },
715
1525
  { name: "text", internalType: "string", type: "string", indexed: false },
@@ -826,8 +1636,8 @@ var commentsABI = [
826
1636
  },
827
1637
  {
828
1638
  name: "sparksQuantity",
829
- internalType: "uint64",
830
- type: "uint64",
1639
+ internalType: "uint256",
1640
+ type: "uint256",
831
1641
  indexed: false
832
1642
  },
833
1643
  {
@@ -841,6 +1651,12 @@ var commentsABI = [
841
1651
  internalType: "uint256",
842
1652
  type: "uint256",
843
1653
  indexed: false
1654
+ },
1655
+ {
1656
+ name: "referrer",
1657
+ internalType: "address",
1658
+ type: "address",
1659
+ indexed: false
844
1660
  }
845
1661
  ],
846
1662
  name: "SparkedComment"
@@ -872,6 +1688,7 @@ var commentsABI = [
872
1688
  inputs: [{ name: "target", internalType: "address", type: "address" }],
873
1689
  name: "AddressEmptyCode"
874
1690
  },
1691
+ { type: "error", inputs: [], name: "AddressZero" },
875
1692
  { type: "error", inputs: [], name: "ArrayLengthMismatch" },
876
1693
  { type: "error", inputs: [], name: "CannotSparkOwnComment" },
877
1694
  {
@@ -936,7 +1753,7 @@ var commentsABI = [
936
1753
  type: "error",
937
1754
  inputs: [
938
1755
  { name: "account", internalType: "address", type: "address" },
939
- { name: "currentNonce", internalType: "uint256", type: "uint256" }
1756
+ { name: "currentNonce", internalType: "bytes32", type: "bytes32" }
940
1757
  ],
941
1758
  name: "InvalidAccountNonce"
942
1759
  },
@@ -966,7 +1783,7 @@ var commentsABI = [
966
1783
  }
967
1784
  ];
968
1785
  var commentsAddress = {
969
- 7777777: "0x8C0757EFfD2Cc68F00810d2d144F729F6ed5CdA3",
1786
+ 7777777: "0x7777777C2B3132e03a65721a41745C07170a5877",
970
1787
  999999999: "0x7777777C2B3132e03a65721a41745C07170a5877"
971
1788
  };
972
1789
  var commentsConfig = {
@@ -4792,7 +5609,6 @@ var zoraCreator1155FactoryImplABI = [
4792
5609
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
4793
5610
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
4794
5611
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
4795
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
4796
5612
  { type: "error", inputs: [], name: "NotInitializing" },
4797
5613
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
4798
5614
  {
@@ -6214,7 +7030,6 @@ var zoraCreator1155ImplABI = [
6214
7030
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
6215
7031
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
6216
7032
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
6217
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
6218
7033
  { type: "error", inputs: [], name: "NotInitializing" },
6219
7034
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
6220
7035
  {
@@ -10722,17 +11537,7 @@ var zoraSparksManagerImplConfig = {
10722
11537
  abi: zoraSparksManagerImplABI
10723
11538
  };
10724
11539
  var zoraTimedSaleStrategyABI = [
10725
- {
10726
- stateMutability: "nonpayable",
10727
- type: "constructor",
10728
- inputs: [
10729
- {
10730
- name: "_comments",
10731
- internalType: "contract IComments",
10732
- type: "address"
10733
- }
10734
- ]
10735
- },
11540
+ { stateMutability: "nonpayable", type: "constructor", inputs: [] },
10736
11541
  {
10737
11542
  stateMutability: "view",
10738
11543
  type: "function",
@@ -10781,15 +11586,6 @@ var zoraTimedSaleStrategyABI = [
10781
11586
  }
10782
11587
  ]
10783
11588
  },
10784
- {
10785
- stateMutability: "view",
10786
- type: "function",
10787
- inputs: [],
10788
- name: "comments",
10789
- outputs: [
10790
- { name: "", internalType: "contract IComments", type: "address" }
10791
- ]
10792
- },
10793
11589
  {
10794
11590
  stateMutability: "pure",
10795
11591
  type: "function",
@@ -10859,13 +11655,6 @@ var zoraTimedSaleStrategyABI = [
10859
11655
  { name: "createReferral", internalType: "address", type: "address" }
10860
11656
  ]
10861
11657
  },
10862
- {
10863
- stateMutability: "view",
10864
- type: "function",
10865
- inputs: [],
10866
- name: "implementation",
10867
- outputs: [{ name: "", internalType: "address", type: "address" }]
10868
- },
10869
11658
  {
10870
11659
  stateMutability: "nonpayable",
10871
11660
  type: "function",
@@ -11223,43 +12012,6 @@ var zoraTimedSaleStrategyABI = [
11223
12012
  ],
11224
12013
  name: "MintComment"
11225
12014
  },
11226
- {
11227
- type: "event",
11228
- anonymous: false,
11229
- inputs: [
11230
- {
11231
- name: "commentId",
11232
- internalType: "bytes32",
11233
- type: "bytes32",
11234
- indexed: true
11235
- },
11236
- {
11237
- name: "commentIdentifier",
11238
- internalType: "struct IComments.CommentIdentifier",
11239
- type: "tuple",
11240
- components: [
11241
- { name: "commenter", internalType: "address", type: "address" },
11242
- { name: "contractAddress", internalType: "address", type: "address" },
11243
- { name: "tokenId", internalType: "uint256", type: "uint256" },
11244
- { name: "nonce", internalType: "bytes32", type: "bytes32" }
11245
- ],
11246
- indexed: false
11247
- },
11248
- {
11249
- name: "mintQuantity",
11250
- internalType: "uint256",
11251
- type: "uint256",
11252
- indexed: false
11253
- },
11254
- {
11255
- name: "comment",
11256
- internalType: "string",
11257
- type: "string",
11258
- indexed: false
11259
- }
11260
- ],
11261
- name: "MintedAndCommented"
11262
- },
11263
12015
  {
11264
12016
  type: "event",
11265
12017
  anonymous: false,
@@ -11536,7 +12288,6 @@ var zoraTimedSaleStrategyABI = [
11536
12288
  { type: "error", inputs: [], name: "MarketMinimumNotReached" },
11537
12289
  { type: "error", inputs: [], name: "MinimumMarketEthNotMet" },
11538
12290
  { type: "error", inputs: [], name: "NeedsToBeAtLeastOneSaleToStartMarket" },
11539
- { type: "error", inputs: [], name: "NoCodeAtAddress" },
11540
12291
  { type: "error", inputs: [], name: "NotInitializing" },
11541
12292
  { type: "error", inputs: [], name: "OnlyZoraRewardRecipient" },
11542
12293
  {
@@ -11590,8 +12341,19 @@ var zoraTimedSaleStrategyConfig = {
11590
12341
  abi: zoraTimedSaleStrategyABI
11591
12342
  };
11592
12343
 
11593
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseUnits.js
12344
+ // ../../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
12345
+ var InvalidDecimalNumberError = class extends BaseError {
12346
+ constructor({ value }) {
12347
+ super(`Number \`${value}\` is not a valid decimal number.`, {
12348
+ name: "InvalidDecimalNumberError"
12349
+ });
12350
+ }
12351
+ };
12352
+
12353
+ // ../../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
11594
12354
  function parseUnits(value, decimals) {
12355
+ if (!/^(-?)([0-9]*)\.?([0-9]*)$/.test(value))
12356
+ throw new InvalidDecimalNumberError({ value });
11595
12357
  let [integer, fraction = "0"] = value.split(".");
11596
12358
  const negative = integer.startsWith("-");
11597
12359
  if (negative)
@@ -11623,7 +12385,7 @@ function parseUnits(value, decimals) {
11623
12385
  return BigInt(`${negative ? "-" : ""}${integer}${fraction}`);
11624
12386
  }
11625
12387
 
11626
- // ../../node_modules/.pnpm/viem@2.18.0_bufferutil@4.0.8_typescript@5.5.4_utf-8-validate@5.0.10_zod@3.23.8/node_modules/viem/_esm/utils/unit/parseEther.js
12388
+ // ../../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
11627
12389
  function parseEther(ether, unit = "wei") {
11628
12390
  return parseUnits(ether, etherUnits[unit]);
11629
12391
  }
@@ -11961,7 +12723,7 @@ var permitSparkCommentTypedDataType = {
11961
12723
  PermitSparkComment: [
11962
12724
  { name: "comment", type: "CommentIdentifier" },
11963
12725
  { name: "sparker", type: "address" },
11964
- { name: "sparksQuantity", type: "uint64" },
12726
+ { name: "sparksQuantity", type: "uint256" },
11965
12727
  { name: "deadline", type: "uint256" },
11966
12728
  { name: "nonce", type: "bytes32" },
11967
12729
  { name: "referrer", type: "address" },
@@ -12000,6 +12762,39 @@ var permitSparkCommentTypedDataDefinition = (message, signingAccount) => ({
12000
12762
  account: signingAccount || message.sparker
12001
12763
  });
12002
12764
  var sparkValue = () => parseEther("0.000001");
12765
+ var permitTimedSaleMintAndCommentTypedDataType = {
12766
+ PermitTimedSaleMintAndComment: [
12767
+ { name: "commenter", type: "address" },
12768
+ { name: "quantity", type: "uint256" },
12769
+ { name: "collection", type: "address" },
12770
+ { name: "tokenId", type: "uint256" },
12771
+ { name: "mintReferral", type: "address" },
12772
+ { name: "comment", type: "string" },
12773
+ { name: "deadline", type: "uint256" },
12774
+ { name: "nonce", type: "bytes32" },
12775
+ { name: "sourceChainId", type: "uint32" },
12776
+ { name: "destinationChainId", type: "uint32" }
12777
+ ]
12778
+ };
12779
+ var callerAndCommenterDomain = ({
12780
+ signingChainId,
12781
+ destinationChainId
12782
+ }) => ({
12783
+ name: "CallerAndCommenter",
12784
+ version: "1",
12785
+ chainId: signingChainId,
12786
+ verifyingContract: callerAndCommenterAddress[destinationChainId]
12787
+ });
12788
+ var permitTimedSaleMintAndCommentTypedDataDefinition = (message, signingAccount) => ({
12789
+ types: permitTimedSaleMintAndCommentTypedDataType,
12790
+ message,
12791
+ primaryType: "PermitTimedSaleMintAndComment",
12792
+ domain: callerAndCommenterDomain({
12793
+ signingChainId: message.sourceChainId,
12794
+ destinationChainId: message.destinationChainId
12795
+ }),
12796
+ account: signingAccount || message.commenter
12797
+ });
12003
12798
 
12004
12799
  // src/encoding.ts
12005
12800
  var safeTransferSwapAbiParameters = [
@@ -12338,6 +13133,9 @@ var addresses2 = {
12338
13133
  };
12339
13134
  export {
12340
13135
  PremintConfigVersion,
13136
+ callerAndCommenterABI,
13137
+ callerAndCommenterAddress,
13138
+ callerAndCommenterConfig,
12341
13139
  commentsABI,
12342
13140
  commentsAddress,
12343
13141
  commentsConfig,
@@ -12361,6 +13159,7 @@ export {
12361
13159
  mintsSafeTransferTypedDataDefinition,
12362
13160
  permitCommentTypedDataDefinition,
12363
13161
  permitSparkCommentTypedDataDefinition,
13162
+ permitTimedSaleMintAndCommentTypedDataDefinition,
12364
13163
  premintTypedDataDefinition,
12365
13164
  premintV1TypedDataDefinition,
12366
13165
  premintV2TypedDataDefinition,