@zoralabs/comments-contracts 0.0.2-COMMENTS.0 → 0.0.3

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.
Files changed (44) hide show
  1. package/.turbo/turbo-build.log +59 -53
  2. package/CHANGELOG.md +2 -3
  3. package/abis/AddDelegateCommenterRole.json +0 -13
  4. package/abis/CommentsTest.json +28 -0
  5. package/abis/Comments_smartWallet.json +35 -0
  6. package/abis/DeployCallerAndCommenterImpl.json +0 -13
  7. package/abis/DeployImpl.json +0 -13
  8. package/abis/DeployNonDeterministic.json +0 -13
  9. package/abis/DeployScript.json +0 -13
  10. package/abis/GenerateDeterministicParams.json +0 -13
  11. package/abis/ICoinComments.json +53 -0
  12. package/abis/IProtocolRewards.json +18 -0
  13. package/abis/MockCoin.json +395 -0
  14. package/addresses/1.json +9 -0
  15. package/addresses/10.json +4 -4
  16. package/addresses/11155111.json +3 -3
  17. package/addresses/42161.json +4 -4
  18. package/addresses/7777777.json +5 -5
  19. package/addresses/81457.json +9 -0
  20. package/addresses/8453.json +4 -4
  21. package/addresses/84532.json +4 -4
  22. package/addresses/999999999.json +3 -3
  23. package/dist/index.cjs +130 -130
  24. package/dist/index.cjs.map +1 -1
  25. package/dist/index.js +130 -130
  26. package/dist/index.js.map +1 -1
  27. package/dist/wagmiGenerated.d.ts +65 -65
  28. package/package/wagmiGenerated.ts +65 -65
  29. package/package.json +10 -9
  30. package/script/CommentsDeployerBase.sol +1 -0
  31. package/script/DeployCallerAndCommenterImpl.s.sol +2 -0
  32. package/src/CommentsImpl.sol +48 -15
  33. package/src/interfaces/ICoinComments.sol +8 -0
  34. package/src/utils/CallerAndCommenterImpl.sol +2 -2
  35. package/src/version/ContractVersionBase.sol +1 -1
  36. package/test/Comments.t.sol +66 -0
  37. package/test/CommentsTestBase.sol +7 -0
  38. package/test/Comments_permit.t.sol +1 -1
  39. package/test/Comments_smartWallet.t.sol +97 -0
  40. package/test/mocks/MockCoin.sol +42 -0
  41. package/abis/CommentsDeployerBase.json +0 -15
  42. package/abis/ProxyDeployerScript.json +0 -15
  43. package/script/bundle-abis.ts +0 -109
  44. package/script/update-contract-version.ts +0 -63
@@ -4,7 +4,6 @@
4
4
 
5
5
  export const callerAndCommenterImplABI = [
6
6
  {
7
- stateMutability: 'nonpayable',
8
7
  type: 'constructor',
9
8
  inputs: [
10
9
  { name: '_comments', internalType: 'address', type: 'address' },
@@ -12,23 +11,23 @@ export const callerAndCommenterImplABI = [
12
11
  { name: '_swapHelper', internalType: 'address', type: 'address' },
13
12
  { name: '_sparksValue', internalType: 'uint256', type: 'uint256' },
14
13
  ],
14
+ stateMutability: 'nonpayable',
15
15
  },
16
16
  {
17
- stateMutability: 'view',
18
17
  type: 'function',
19
18
  inputs: [],
20
19
  name: 'UPGRADE_INTERFACE_VERSION',
21
20
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
21
+ stateMutability: 'view',
22
22
  },
23
23
  {
24
- stateMutability: 'nonpayable',
25
24
  type: 'function',
26
25
  inputs: [],
27
26
  name: 'acceptOwnership',
28
27
  outputs: [],
28
+ stateMutability: 'nonpayable',
29
29
  },
30
30
  {
31
- stateMutability: 'payable',
32
31
  type: 'function',
33
32
  inputs: [
34
33
  { name: 'commenter', internalType: 'address', type: 'address' },
@@ -58,32 +57,32 @@ export const callerAndCommenterImplABI = [
58
57
  ],
59
58
  },
60
59
  ],
60
+ stateMutability: 'payable',
61
61
  },
62
62
  {
63
- stateMutability: 'view',
64
63
  type: 'function',
65
64
  inputs: [],
66
65
  name: 'comments',
67
66
  outputs: [
68
67
  { name: '', internalType: 'contract IComments', type: 'address' },
69
68
  ],
69
+ stateMutability: 'view',
70
70
  },
71
71
  {
72
- stateMutability: 'pure',
73
72
  type: 'function',
74
73
  inputs: [],
75
74
  name: 'contractName',
76
75
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
76
+ stateMutability: 'pure',
77
77
  },
78
78
  {
79
- stateMutability: 'pure',
80
79
  type: 'function',
81
80
  inputs: [],
82
81
  name: 'contractVersion',
83
82
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
83
+ stateMutability: 'pure',
84
84
  },
85
85
  {
86
- stateMutability: 'view',
87
86
  type: 'function',
88
87
  inputs: [],
89
88
  name: 'eip712Domain',
@@ -96,9 +95,9 @@ export const callerAndCommenterImplABI = [
96
95
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
97
96
  { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
98
97
  ],
98
+ stateMutability: 'view',
99
99
  },
100
100
  {
101
- stateMutability: 'view',
102
101
  type: 'function',
103
102
  inputs: [
104
103
  {
@@ -131,9 +130,9 @@ export const callerAndCommenterImplABI = [
131
130
  ],
132
131
  name: 'hashPermitBuyOnSecondaryAndComment',
133
132
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
133
+ stateMutability: 'view',
134
134
  },
135
135
  {
136
- stateMutability: 'view',
137
136
  type: 'function',
138
137
  inputs: [
139
138
  {
@@ -161,16 +160,16 @@ export const callerAndCommenterImplABI = [
161
160
  ],
162
161
  name: 'hashPermitTimedSaleMintAndComment',
163
162
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
163
+ stateMutability: 'view',
164
164
  },
165
165
  {
166
- stateMutability: 'nonpayable',
167
166
  type: 'function',
168
167
  inputs: [{ name: 'owner', internalType: 'address', type: 'address' }],
169
168
  name: 'initialize',
170
169
  outputs: [],
170
+ stateMutability: 'nonpayable',
171
171
  },
172
172
  {
173
- stateMutability: 'view',
174
173
  type: 'function',
175
174
  inputs: [
176
175
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -178,23 +177,23 @@ export const callerAndCommenterImplABI = [
178
177
  ],
179
178
  name: 'nonceUsed',
180
179
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
180
+ stateMutability: 'view',
181
181
  },
182
182
  {
183
- stateMutability: 'view',
184
183
  type: 'function',
185
184
  inputs: [],
186
185
  name: 'owner',
187
186
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
187
+ stateMutability: 'view',
188
188
  },
189
189
  {
190
- stateMutability: 'view',
191
190
  type: 'function',
192
191
  inputs: [],
193
192
  name: 'pendingOwner',
194
193
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
194
+ stateMutability: 'view',
195
195
  },
196
196
  {
197
- stateMutability: 'payable',
198
197
  type: 'function',
199
198
  inputs: [
200
199
  {
@@ -240,9 +239,9 @@ export const callerAndCommenterImplABI = [
240
239
  ],
241
240
  },
242
241
  ],
242
+ stateMutability: 'payable',
243
243
  },
244
244
  {
245
- stateMutability: 'payable',
246
245
  type: 'function',
247
246
  inputs: [
248
247
  {
@@ -283,32 +282,32 @@ export const callerAndCommenterImplABI = [
283
282
  ],
284
283
  },
285
284
  ],
285
+ stateMutability: 'payable',
286
286
  },
287
287
  {
288
- stateMutability: 'view',
289
288
  type: 'function',
290
289
  inputs: [],
291
290
  name: 'proxiableUUID',
292
291
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
292
+ stateMutability: 'view',
293
293
  },
294
294
  {
295
- stateMutability: 'nonpayable',
296
295
  type: 'function',
297
296
  inputs: [],
298
297
  name: 'renounceOwnership',
299
298
  outputs: [],
299
+ stateMutability: 'nonpayable',
300
300
  },
301
301
  {
302
- stateMutability: 'view',
303
302
  type: 'function',
304
303
  inputs: [],
305
304
  name: 'secondarySwap',
306
305
  outputs: [
307
306
  { name: '', internalType: 'contract ISecondarySwap', type: 'address' },
308
307
  ],
308
+ stateMutability: 'view',
309
309
  },
310
310
  {
311
- stateMutability: 'payable',
312
311
  type: 'function',
313
312
  inputs: [
314
313
  { name: 'commenter', internalType: 'address', type: 'address' },
@@ -334,16 +333,16 @@ export const callerAndCommenterImplABI = [
334
333
  ],
335
334
  },
336
335
  ],
336
+ stateMutability: 'payable',
337
337
  },
338
338
  {
339
- stateMutability: 'view',
340
339
  type: 'function',
341
340
  inputs: [],
342
341
  name: 'sparkValue',
343
342
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
343
+ stateMutability: 'view',
344
344
  },
345
345
  {
346
- stateMutability: 'payable',
347
346
  type: 'function',
348
347
  inputs: [
349
348
  { name: 'commenter', internalType: 'address', type: 'address' },
@@ -367,16 +366,16 @@ export const callerAndCommenterImplABI = [
367
366
  ],
368
367
  },
369
368
  ],
369
+ stateMutability: 'payable',
370
370
  },
371
371
  {
372
- stateMutability: 'nonpayable',
373
372
  type: 'function',
374
373
  inputs: [{ name: 'newOwner', internalType: 'address', type: 'address' }],
375
374
  name: 'transferOwnership',
376
375
  outputs: [],
376
+ stateMutability: 'nonpayable',
377
377
  },
378
378
  {
379
- stateMutability: 'payable',
380
379
  type: 'function',
381
380
  inputs: [
382
381
  { name: 'newImplementation', internalType: 'address', type: 'address' },
@@ -384,9 +383,9 @@ export const callerAndCommenterImplABI = [
384
383
  ],
385
384
  name: 'upgradeToAndCall',
386
385
  outputs: [],
386
+ stateMutability: 'payable',
387
387
  },
388
388
  {
389
- stateMutability: 'view',
390
389
  type: 'function',
391
390
  inputs: [],
392
391
  name: 'zoraTimedSale',
@@ -397,6 +396,7 @@ export const callerAndCommenterImplABI = [
397
396
  type: 'address',
398
397
  },
399
398
  ],
399
+ stateMutability: 'view',
400
400
  },
401
401
  { type: 'event', anonymous: false, inputs: [], name: 'EIP712DomainChanged' },
402
402
  {
@@ -635,86 +635,85 @@ export const callerAndCommenterImplABI = [
635
635
 
636
636
  export const commentsImplABI = [
637
637
  {
638
- stateMutability: 'nonpayable',
639
638
  type: 'constructor',
640
639
  inputs: [
641
640
  { name: '_sparkValue', internalType: 'uint256', type: 'uint256' },
642
641
  { name: '_protocolRewards', internalType: 'address', type: 'address' },
643
642
  { name: '_zoraRecipient', internalType: 'address', type: 'address' },
644
643
  ],
644
+ stateMutability: 'nonpayable',
645
645
  },
646
646
  {
647
- stateMutability: 'view',
648
647
  type: 'function',
649
648
  inputs: [],
650
649
  name: 'BACKFILLER_ROLE',
651
650
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
651
+ stateMutability: 'view',
652
652
  },
653
653
  {
654
- stateMutability: 'view',
655
654
  type: 'function',
656
655
  inputs: [],
657
656
  name: 'DEFAULT_ADMIN_ROLE',
658
657
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
658
+ stateMutability: 'view',
659
659
  },
660
660
  {
661
- stateMutability: 'view',
662
661
  type: 'function',
663
662
  inputs: [],
664
663
  name: 'DELEGATE_COMMENTER',
665
664
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
665
+ stateMutability: 'view',
666
666
  },
667
667
  {
668
- stateMutability: 'view',
669
668
  type: 'function',
670
669
  inputs: [],
671
670
  name: 'DOMAIN_NAME',
672
671
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
672
+ stateMutability: 'view',
673
673
  },
674
674
  {
675
- stateMutability: 'view',
676
675
  type: 'function',
677
676
  inputs: [],
678
677
  name: 'DOMAIN_VERSION',
679
678
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
679
+ stateMutability: 'view',
680
680
  },
681
681
  {
682
- stateMutability: 'view',
683
682
  type: 'function',
684
683
  inputs: [],
685
684
  name: 'PERMISSION_BIT_ADMIN',
686
685
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
686
+ stateMutability: 'view',
687
687
  },
688
688
  {
689
- stateMutability: 'view',
690
689
  type: 'function',
691
690
  inputs: [],
692
691
  name: 'REFERRER_REWARD_PCT',
693
692
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
693
+ stateMutability: 'view',
694
694
  },
695
695
  {
696
- stateMutability: 'view',
697
696
  type: 'function',
698
697
  inputs: [],
699
698
  name: 'UPGRADE_INTERFACE_VERSION',
700
699
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
700
+ stateMutability: 'view',
701
701
  },
702
702
  {
703
- stateMutability: 'view',
704
703
  type: 'function',
705
704
  inputs: [],
706
705
  name: 'ZORA_REWARD_NO_REFERRER_PCT',
707
706
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
707
+ stateMutability: 'view',
708
708
  },
709
709
  {
710
- stateMutability: 'view',
711
710
  type: 'function',
712
711
  inputs: [],
713
712
  name: 'ZORA_REWARD_PCT',
714
713
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
714
+ stateMutability: 'view',
715
715
  },
716
716
  {
717
- stateMutability: 'nonpayable',
718
717
  type: 'function',
719
718
  inputs: [
720
719
  {
@@ -738,9 +737,9 @@ export const commentsImplABI = [
738
737
  ],
739
738
  name: 'backfillBatchAddComment',
740
739
  outputs: [],
740
+ stateMutability: 'nonpayable',
741
741
  },
742
742
  {
743
- stateMutability: 'payable',
744
743
  type: 'function',
745
744
  inputs: [
746
745
  { name: 'commenter', internalType: 'address', type: 'address' },
@@ -779,9 +778,9 @@ export const commentsImplABI = [
779
778
  ],
780
779
  },
781
780
  ],
781
+ stateMutability: 'payable',
782
782
  },
783
783
  {
784
- stateMutability: 'view',
785
784
  type: 'function',
786
785
  inputs: [
787
786
  {
@@ -798,23 +797,23 @@ export const commentsImplABI = [
798
797
  ],
799
798
  name: 'commentSparksQuantity',
800
799
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
800
+ stateMutability: 'view',
801
801
  },
802
802
  {
803
- stateMutability: 'pure',
804
803
  type: 'function',
805
804
  inputs: [],
806
805
  name: 'contractName',
807
806
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
807
+ stateMutability: 'pure',
808
808
  },
809
809
  {
810
- stateMutability: 'pure',
811
810
  type: 'function',
812
811
  inputs: [],
813
812
  name: 'contractVersion',
814
813
  outputs: [{ name: '', internalType: 'string', type: 'string' }],
814
+ stateMutability: 'pure',
815
815
  },
816
816
  {
817
- stateMutability: 'payable',
818
817
  type: 'function',
819
818
  inputs: [
820
819
  { name: 'commenter', internalType: 'address', type: 'address' },
@@ -854,9 +853,9 @@ export const commentsImplABI = [
854
853
  },
855
854
  { name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
856
855
  ],
856
+ stateMutability: 'payable',
857
857
  },
858
858
  {
859
- stateMutability: 'view',
860
859
  type: 'function',
861
860
  inputs: [],
862
861
  name: 'eip712Domain',
@@ -869,16 +868,16 @@ export const commentsImplABI = [
869
868
  { name: 'salt', internalType: 'bytes32', type: 'bytes32' },
870
869
  { name: 'extensions', internalType: 'uint256[]', type: 'uint256[]' },
871
870
  ],
871
+ stateMutability: 'view',
872
872
  },
873
873
  {
874
- stateMutability: 'view',
875
874
  type: 'function',
876
875
  inputs: [{ name: 'role', internalType: 'bytes32', type: 'bytes32' }],
877
876
  name: 'getRoleAdmin',
878
877
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
878
+ stateMutability: 'view',
879
879
  },
880
880
  {
881
- stateMutability: 'nonpayable',
882
881
  type: 'function',
883
882
  inputs: [
884
883
  { name: 'role', internalType: 'bytes32', type: 'bytes32' },
@@ -886,9 +885,9 @@ export const commentsImplABI = [
886
885
  ],
887
886
  name: 'grantRole',
888
887
  outputs: [],
888
+ stateMutability: 'nonpayable',
889
889
  },
890
890
  {
891
- stateMutability: 'view',
892
891
  type: 'function',
893
892
  inputs: [
894
893
  { name: 'role', internalType: 'bytes32', type: 'bytes32' },
@@ -896,9 +895,9 @@ export const commentsImplABI = [
896
895
  ],
897
896
  name: 'hasRole',
898
897
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
898
+ stateMutability: 'view',
899
899
  },
900
900
  {
901
- stateMutability: 'view',
902
901
  type: 'function',
903
902
  inputs: [
904
903
  {
@@ -918,9 +917,9 @@ export const commentsImplABI = [
918
917
  { name: 'commentId', internalType: 'bytes32', type: 'bytes32' },
919
918
  { name: 'exists', internalType: 'bool', type: 'bool' },
920
919
  ],
920
+ stateMutability: 'view',
921
921
  },
922
922
  {
923
- stateMutability: 'view',
924
923
  type: 'function',
925
924
  inputs: [
926
925
  {
@@ -937,9 +936,9 @@ export const commentsImplABI = [
937
936
  ],
938
937
  name: 'hashAndValidateCommentExists',
939
938
  outputs: [{ name: 'commentId', internalType: 'bytes32', type: 'bytes32' }],
939
+ stateMutability: 'view',
940
940
  },
941
941
  {
942
- stateMutability: 'pure',
943
942
  type: 'function',
944
943
  inputs: [
945
944
  {
@@ -956,9 +955,9 @@ export const commentsImplABI = [
956
955
  ],
957
956
  name: 'hashCommentIdentifier',
958
957
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
958
+ stateMutability: 'pure',
959
959
  },
960
960
  {
961
- stateMutability: 'view',
962
961
  type: 'function',
963
962
  inputs: [
964
963
  {
@@ -1004,9 +1003,9 @@ export const commentsImplABI = [
1004
1003
  ],
1005
1004
  name: 'hashPermitComment',
1006
1005
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1006
+ stateMutability: 'view',
1007
1007
  },
1008
1008
  {
1009
- stateMutability: 'view',
1010
1009
  type: 'function',
1011
1010
  inputs: [
1012
1011
  {
@@ -1045,16 +1044,16 @@ export const commentsImplABI = [
1045
1044
  ],
1046
1045
  name: 'hashPermitSparkComment',
1047
1046
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1047
+ stateMutability: 'view',
1048
1048
  },
1049
1049
  {
1050
- stateMutability: 'view',
1051
1050
  type: 'function',
1052
1051
  inputs: [],
1053
1052
  name: 'implementation',
1054
1053
  outputs: [{ name: '', internalType: 'address', type: 'address' }],
1054
+ stateMutability: 'view',
1055
1055
  },
1056
1056
  {
1057
- stateMutability: 'nonpayable',
1058
1057
  type: 'function',
1059
1058
  inputs: [
1060
1059
  { name: 'defaultAdmin', internalType: 'address', type: 'address' },
@@ -1067,16 +1066,16 @@ export const commentsImplABI = [
1067
1066
  ],
1068
1067
  name: 'initialize',
1069
1068
  outputs: [],
1069
+ stateMutability: 'nonpayable',
1070
1070
  },
1071
1071
  {
1072
- stateMutability: 'view',
1073
1072
  type: 'function',
1074
1073
  inputs: [],
1075
1074
  name: 'nextNonce',
1076
1075
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1076
+ stateMutability: 'view',
1077
1077
  },
1078
1078
  {
1079
- stateMutability: 'view',
1080
1079
  type: 'function',
1081
1080
  inputs: [
1082
1081
  { name: 'owner', internalType: 'address', type: 'address' },
@@ -1084,9 +1083,9 @@ export const commentsImplABI = [
1084
1083
  ],
1085
1084
  name: 'nonceUsed',
1086
1085
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1086
+ stateMutability: 'view',
1087
1087
  },
1088
1088
  {
1089
- stateMutability: 'payable',
1090
1089
  type: 'function',
1091
1090
  inputs: [
1092
1091
  {
@@ -1133,9 +1132,9 @@ export const commentsImplABI = [
1133
1132
  ],
1134
1133
  name: 'permitComment',
1135
1134
  outputs: [],
1135
+ stateMutability: 'payable',
1136
1136
  },
1137
1137
  {
1138
- stateMutability: 'payable',
1139
1138
  type: 'function',
1140
1139
  inputs: [
1141
1140
  {
@@ -1175,25 +1174,25 @@ export const commentsImplABI = [
1175
1174
  ],
1176
1175
  name: 'permitSparkComment',
1177
1176
  outputs: [],
1177
+ stateMutability: 'payable',
1178
1178
  },
1179
1179
  {
1180
- stateMutability: 'view',
1181
1180
  type: 'function',
1182
1181
  inputs: [],
1183
1182
  name: 'protocolRewards',
1184
1183
  outputs: [
1185
1184
  { name: '', internalType: 'contract IProtocolRewards', type: 'address' },
1186
1185
  ],
1186
+ stateMutability: 'view',
1187
1187
  },
1188
1188
  {
1189
- stateMutability: 'view',
1190
1189
  type: 'function',
1191
1190
  inputs: [],
1192
1191
  name: 'proxiableUUID',
1193
1192
  outputs: [{ name: '', internalType: 'bytes32', type: 'bytes32' }],
1193
+ stateMutability: 'view',
1194
1194
  },
1195
1195
  {
1196
- stateMutability: 'nonpayable',
1197
1196
  type: 'function',
1198
1197
  inputs: [
1199
1198
  { name: 'role', internalType: 'bytes32', type: 'bytes32' },
@@ -1201,9 +1200,9 @@ export const commentsImplABI = [
1201
1200
  ],
1202
1201
  name: 'renounceRole',
1203
1202
  outputs: [],
1203
+ stateMutability: 'nonpayable',
1204
1204
  },
1205
1205
  {
1206
- stateMutability: 'nonpayable',
1207
1206
  type: 'function',
1208
1207
  inputs: [
1209
1208
  { name: 'role', internalType: 'bytes32', type: 'bytes32' },
@@ -1211,9 +1210,9 @@ export const commentsImplABI = [
1211
1210
  ],
1212
1211
  name: 'revokeRole',
1213
1212
  outputs: [],
1213
+ stateMutability: 'nonpayable',
1214
1214
  },
1215
1215
  {
1216
- stateMutability: 'payable',
1217
1216
  type: 'function',
1218
1217
  inputs: [
1219
1218
  {
@@ -1232,23 +1231,23 @@ export const commentsImplABI = [
1232
1231
  ],
1233
1232
  name: 'sparkComment',
1234
1233
  outputs: [],
1234
+ stateMutability: 'payable',
1235
1235
  },
1236
1236
  {
1237
- stateMutability: 'view',
1238
1237
  type: 'function',
1239
1238
  inputs: [],
1240
1239
  name: 'sparkValue',
1241
1240
  outputs: [{ name: '', internalType: 'uint256', type: 'uint256' }],
1241
+ stateMutability: 'view',
1242
1242
  },
1243
1243
  {
1244
- stateMutability: 'view',
1245
1244
  type: 'function',
1246
1245
  inputs: [{ name: 'interfaceId', internalType: 'bytes4', type: 'bytes4' }],
1247
1246
  name: 'supportsInterface',
1248
1247
  outputs: [{ name: '', internalType: 'bool', type: 'bool' }],
1248
+ stateMutability: 'view',
1249
1249
  },
1250
1250
  {
1251
- stateMutability: 'payable',
1252
1251
  type: 'function',
1253
1252
  inputs: [
1254
1253
  { name: 'newImplementation', internalType: 'address', type: 'address' },
@@ -1256,6 +1255,7 @@ export const commentsImplABI = [
1256
1255
  ],
1257
1256
  name: 'upgradeToAndCall',
1258
1257
  outputs: [],
1258
+ stateMutability: 'payable',
1259
1259
  },
1260
1260
  {
1261
1261
  type: 'event',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zoralabs/comments-contracts",
3
- "version": "0.0.2-COMMENTS.0",
3
+ "version": "0.0.3",
4
4
  "author": "oveddan",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,7 +20,7 @@
20
20
  "@openzeppelin/contracts-upgradeable": "5.0.2",
21
21
  "@turnkey/api-key-stamper": "^0.3.1",
22
22
  "@turnkey/http": "^2.5.1",
23
- "@turnkey/viem": "^0.4.4",
23
+ "@turnkey/viem": "^0.6.8",
24
24
  "@types/node": "^20.1.2",
25
25
  "@wagmi/cli": "^1.0.1",
26
26
  "@zoralabs/chains": "^1.3.1",
@@ -35,11 +35,12 @@
35
35
  "tsx": "^3.13.0",
36
36
  "typescript": "^5.2.2",
37
37
  "viem": "^2.21.18",
38
- "@zoralabs/sparks-contracts": "^0.2.4",
39
- "@zoralabs/protocol-rewards": "^1.2.5-COMMENTS.0",
38
+ "@zoralabs/protocol-rewards": "^1.2.5",
40
39
  "@zoralabs/shared-contracts": "^0.0.1",
40
+ "@zoralabs/shared-scripts": "^0.0.0",
41
+ "@zoralabs/sparks-contracts": "^0.2.5",
41
42
  "@zoralabs/tsconfig": "^0.0.1",
42
- "@zoralabs/zora-1155-contracts": "^2.13.0"
43
+ "@zoralabs/zora-1155-contracts": "^2.13.2"
43
44
  },
44
45
  "dependencies": {
45
46
  "abitype": "^1.0.2",
@@ -53,11 +54,11 @@
53
54
  "test-gas": "forge test --gas-report",
54
55
  "storage-inspect:check": "./script/storage-check.sh check ZoraTimedSaleStrategyImpl",
55
56
  "storage-inspect:generate": "./script/storage-check.sh generate ZoraTimedSaleStrategyImpl",
56
- "build:sizes": "forge build --sizes",
57
- "copy-abis": "pnpm tsx script/bundle-abis.ts",
57
+ "build:sizes": "forge build src/ --sizes",
58
+ "copy-abis": "pnpm exec bundle-abis",
58
59
  "coverage": "FOUNDRY_PROFILE=default forge coverage --report lcov",
59
60
  "build": "pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup",
60
- "wagmi:generate": "FOUNDRY_PROFILE=dev forge build && wagmi generate",
61
- "update-contract-version": "pnpm tsx script/update-contract-version.ts"
61
+ "wagmi:generate": "FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts",
62
+ "update-contract-version": "pnpm exec update-contract-version"
62
63
  }
63
64
  }
@@ -122,6 +122,7 @@ contract CommentsDeployerBase is ProxyDeployerScript {
122
122
 
123
123
  // deploy caller and commenter impl
124
124
  deployment.callerAndCommenterImpl = address(deployCallerAndCommenterImpl(commentsAddress));
125
+ deployment.callerAndCommenterVersion = CallerAndCommenterImpl(deployment.callerAndCommenterImpl).contractVersion();
125
126
 
126
127
  bytes memory upgradeToAndCall = abi.encodeWithSelector(
127
128
  UUPSUpgradeable.upgradeToAndCall.selector,
@@ -4,6 +4,7 @@ pragma solidity ^0.8.13;
4
4
  import "forge-std/console2.sol";
5
5
 
6
6
  import {CommentsDeployerBase} from "./CommentsDeployerBase.sol";
7
+ import {CallerAndCommenterImpl} from "../src/utils/CallerAndCommenterImpl.sol";
7
8
  import {UUPSUpgradeable} from "@openzeppelin/contracts-upgradeable/proxy/utils/UUPSUpgradeable.sol";
8
9
 
9
10
  contract DeployCallerAndCommenterImpl is CommentsDeployerBase {
@@ -13,6 +14,7 @@ contract DeployCallerAndCommenterImpl is CommentsDeployerBase {
13
14
  vm.startBroadcast();
14
15
 
15
16
  config.callerAndCommenterImpl = deployCallerAndCommenterImpl(config.comments);
17
+ config.callerAndCommenterVersion = CallerAndCommenterImpl(config.callerAndCommenterImpl).contractVersion();
16
18
 
17
19
  vm.stopBroadcast();
18
20