@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.
- package/.turbo/turbo-build.log +59 -53
- package/CHANGELOG.md +2 -3
- package/abis/AddDelegateCommenterRole.json +0 -13
- package/abis/CommentsTest.json +28 -0
- package/abis/Comments_smartWallet.json +35 -0
- package/abis/DeployCallerAndCommenterImpl.json +0 -13
- package/abis/DeployImpl.json +0 -13
- package/abis/DeployNonDeterministic.json +0 -13
- package/abis/DeployScript.json +0 -13
- package/abis/GenerateDeterministicParams.json +0 -13
- package/abis/ICoinComments.json +53 -0
- package/abis/IProtocolRewards.json +18 -0
- package/abis/MockCoin.json +395 -0
- package/addresses/1.json +9 -0
- package/addresses/10.json +4 -4
- package/addresses/11155111.json +3 -3
- package/addresses/42161.json +4 -4
- package/addresses/7777777.json +5 -5
- package/addresses/81457.json +9 -0
- package/addresses/8453.json +4 -4
- package/addresses/84532.json +4 -4
- package/addresses/999999999.json +3 -3
- package/dist/index.cjs +130 -130
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +130 -130
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +65 -65
- package/package/wagmiGenerated.ts +65 -65
- package/package.json +10 -9
- package/script/CommentsDeployerBase.sol +1 -0
- package/script/DeployCallerAndCommenterImpl.s.sol +2 -0
- package/src/CommentsImpl.sol +48 -15
- package/src/interfaces/ICoinComments.sol +8 -0
- package/src/utils/CallerAndCommenterImpl.sol +2 -2
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Comments.t.sol +66 -0
- package/test/CommentsTestBase.sol +7 -0
- package/test/Comments_permit.t.sol +1 -1
- package/test/Comments_smartWallet.t.sol +97 -0
- package/test/mocks/MockCoin.sol +42 -0
- package/abis/CommentsDeployerBase.json +0 -15
- package/abis/ProxyDeployerScript.json +0 -15
- package/script/bundle-abis.ts +0 -109
- package/script/update-contract-version.ts +0 -63
package/dist/index.cjs
CHANGED
|
@@ -28,31 +28,30 @@ module.exports = __toCommonJS(package_exports);
|
|
|
28
28
|
// package/wagmiGenerated.ts
|
|
29
29
|
var callerAndCommenterImplABI = [
|
|
30
30
|
{
|
|
31
|
-
stateMutability: "nonpayable",
|
|
32
31
|
type: "constructor",
|
|
33
32
|
inputs: [
|
|
34
33
|
{ name: "_comments", internalType: "address", type: "address" },
|
|
35
34
|
{ name: "_zoraTimedSale", internalType: "address", type: "address" },
|
|
36
35
|
{ name: "_swapHelper", internalType: "address", type: "address" },
|
|
37
36
|
{ name: "_sparksValue", internalType: "uint256", type: "uint256" }
|
|
38
|
-
]
|
|
37
|
+
],
|
|
38
|
+
stateMutability: "nonpayable"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
|
-
stateMutability: "view",
|
|
42
41
|
type: "function",
|
|
43
42
|
inputs: [],
|
|
44
43
|
name: "UPGRADE_INTERFACE_VERSION",
|
|
45
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
44
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
45
|
+
stateMutability: "view"
|
|
46
46
|
},
|
|
47
47
|
{
|
|
48
|
-
stateMutability: "nonpayable",
|
|
49
48
|
type: "function",
|
|
50
49
|
inputs: [],
|
|
51
50
|
name: "acceptOwnership",
|
|
52
|
-
outputs: []
|
|
51
|
+
outputs: [],
|
|
52
|
+
stateMutability: "nonpayable"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
stateMutability: "payable",
|
|
56
55
|
type: "function",
|
|
57
56
|
inputs: [
|
|
58
57
|
{ name: "commenter", internalType: "address", type: "address" },
|
|
@@ -81,33 +80,33 @@ var callerAndCommenterImplABI = [
|
|
|
81
80
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
82
81
|
]
|
|
83
82
|
}
|
|
84
|
-
]
|
|
83
|
+
],
|
|
84
|
+
stateMutability: "payable"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
|
-
stateMutability: "view",
|
|
88
87
|
type: "function",
|
|
89
88
|
inputs: [],
|
|
90
89
|
name: "comments",
|
|
91
90
|
outputs: [
|
|
92
91
|
{ name: "", internalType: "contract IComments", type: "address" }
|
|
93
|
-
]
|
|
92
|
+
],
|
|
93
|
+
stateMutability: "view"
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
stateMutability: "pure",
|
|
97
96
|
type: "function",
|
|
98
97
|
inputs: [],
|
|
99
98
|
name: "contractName",
|
|
100
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
99
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
100
|
+
stateMutability: "pure"
|
|
101
101
|
},
|
|
102
102
|
{
|
|
103
|
-
stateMutability: "pure",
|
|
104
103
|
type: "function",
|
|
105
104
|
inputs: [],
|
|
106
105
|
name: "contractVersion",
|
|
107
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
106
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
107
|
+
stateMutability: "pure"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
|
-
stateMutability: "view",
|
|
111
110
|
type: "function",
|
|
112
111
|
inputs: [],
|
|
113
112
|
name: "eip712Domain",
|
|
@@ -119,10 +118,10 @@ var callerAndCommenterImplABI = [
|
|
|
119
118
|
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
120
119
|
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
121
120
|
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
122
|
-
]
|
|
121
|
+
],
|
|
122
|
+
stateMutability: "view"
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
stateMutability: "view",
|
|
126
125
|
type: "function",
|
|
127
126
|
inputs: [
|
|
128
127
|
{
|
|
@@ -153,10 +152,10 @@ var callerAndCommenterImplABI = [
|
|
|
153
152
|
}
|
|
154
153
|
],
|
|
155
154
|
name: "hashPermitBuyOnSecondaryAndComment",
|
|
156
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
155
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
156
|
+
stateMutability: "view"
|
|
157
157
|
},
|
|
158
158
|
{
|
|
159
|
-
stateMutability: "view",
|
|
160
159
|
type: "function",
|
|
161
160
|
inputs: [
|
|
162
161
|
{
|
|
@@ -182,41 +181,41 @@ var callerAndCommenterImplABI = [
|
|
|
182
181
|
}
|
|
183
182
|
],
|
|
184
183
|
name: "hashPermitTimedSaleMintAndComment",
|
|
185
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
184
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
185
|
+
stateMutability: "view"
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
|
-
stateMutability: "nonpayable",
|
|
189
188
|
type: "function",
|
|
190
189
|
inputs: [{ name: "owner", internalType: "address", type: "address" }],
|
|
191
190
|
name: "initialize",
|
|
192
|
-
outputs: []
|
|
191
|
+
outputs: [],
|
|
192
|
+
stateMutability: "nonpayable"
|
|
193
193
|
},
|
|
194
194
|
{
|
|
195
|
-
stateMutability: "view",
|
|
196
195
|
type: "function",
|
|
197
196
|
inputs: [
|
|
198
197
|
{ name: "owner", internalType: "address", type: "address" },
|
|
199
198
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
200
199
|
],
|
|
201
200
|
name: "nonceUsed",
|
|
202
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
201
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
202
|
+
stateMutability: "view"
|
|
203
203
|
},
|
|
204
204
|
{
|
|
205
|
-
stateMutability: "view",
|
|
206
205
|
type: "function",
|
|
207
206
|
inputs: [],
|
|
208
207
|
name: "owner",
|
|
209
|
-
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
208
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
209
|
+
stateMutability: "view"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
stateMutability: "view",
|
|
213
212
|
type: "function",
|
|
214
213
|
inputs: [],
|
|
215
214
|
name: "pendingOwner",
|
|
216
|
-
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
215
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
216
|
+
stateMutability: "view"
|
|
217
217
|
},
|
|
218
218
|
{
|
|
219
|
-
stateMutability: "payable",
|
|
220
219
|
type: "function",
|
|
221
220
|
inputs: [
|
|
222
221
|
{
|
|
@@ -260,10 +259,10 @@ var callerAndCommenterImplABI = [
|
|
|
260
259
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
261
260
|
]
|
|
262
261
|
}
|
|
263
|
-
]
|
|
262
|
+
],
|
|
263
|
+
stateMutability: "payable"
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
stateMutability: "payable",
|
|
267
266
|
type: "function",
|
|
268
267
|
inputs: [
|
|
269
268
|
{
|
|
@@ -302,33 +301,33 @@ var callerAndCommenterImplABI = [
|
|
|
302
301
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
303
302
|
]
|
|
304
303
|
}
|
|
305
|
-
]
|
|
304
|
+
],
|
|
305
|
+
stateMutability: "payable"
|
|
306
306
|
},
|
|
307
307
|
{
|
|
308
|
-
stateMutability: "view",
|
|
309
308
|
type: "function",
|
|
310
309
|
inputs: [],
|
|
311
310
|
name: "proxiableUUID",
|
|
312
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
311
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
312
|
+
stateMutability: "view"
|
|
313
313
|
},
|
|
314
314
|
{
|
|
315
|
-
stateMutability: "nonpayable",
|
|
316
315
|
type: "function",
|
|
317
316
|
inputs: [],
|
|
318
317
|
name: "renounceOwnership",
|
|
319
|
-
outputs: []
|
|
318
|
+
outputs: [],
|
|
319
|
+
stateMutability: "nonpayable"
|
|
320
320
|
},
|
|
321
321
|
{
|
|
322
|
-
stateMutability: "view",
|
|
323
322
|
type: "function",
|
|
324
323
|
inputs: [],
|
|
325
324
|
name: "secondarySwap",
|
|
326
325
|
outputs: [
|
|
327
326
|
{ name: "", internalType: "contract ISecondarySwap", type: "address" }
|
|
328
|
-
]
|
|
327
|
+
],
|
|
328
|
+
stateMutability: "view"
|
|
329
329
|
},
|
|
330
330
|
{
|
|
331
|
-
stateMutability: "payable",
|
|
332
331
|
type: "function",
|
|
333
332
|
inputs: [
|
|
334
333
|
{ name: "commenter", internalType: "address", type: "address" },
|
|
@@ -353,17 +352,17 @@ var callerAndCommenterImplABI = [
|
|
|
353
352
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
354
353
|
]
|
|
355
354
|
}
|
|
356
|
-
]
|
|
355
|
+
],
|
|
356
|
+
stateMutability: "payable"
|
|
357
357
|
},
|
|
358
358
|
{
|
|
359
|
-
stateMutability: "view",
|
|
360
359
|
type: "function",
|
|
361
360
|
inputs: [],
|
|
362
361
|
name: "sparkValue",
|
|
363
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
362
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
363
|
+
stateMutability: "view"
|
|
364
364
|
},
|
|
365
365
|
{
|
|
366
|
-
stateMutability: "payable",
|
|
367
366
|
type: "function",
|
|
368
367
|
inputs: [
|
|
369
368
|
{ name: "commenter", internalType: "address", type: "address" },
|
|
@@ -386,27 +385,27 @@ var callerAndCommenterImplABI = [
|
|
|
386
385
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
387
386
|
]
|
|
388
387
|
}
|
|
389
|
-
]
|
|
388
|
+
],
|
|
389
|
+
stateMutability: "payable"
|
|
390
390
|
},
|
|
391
391
|
{
|
|
392
|
-
stateMutability: "nonpayable",
|
|
393
392
|
type: "function",
|
|
394
393
|
inputs: [{ name: "newOwner", internalType: "address", type: "address" }],
|
|
395
394
|
name: "transferOwnership",
|
|
396
|
-
outputs: []
|
|
395
|
+
outputs: [],
|
|
396
|
+
stateMutability: "nonpayable"
|
|
397
397
|
},
|
|
398
398
|
{
|
|
399
|
-
stateMutability: "payable",
|
|
400
399
|
type: "function",
|
|
401
400
|
inputs: [
|
|
402
401
|
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
403
402
|
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
404
403
|
],
|
|
405
404
|
name: "upgradeToAndCall",
|
|
406
|
-
outputs: []
|
|
405
|
+
outputs: [],
|
|
406
|
+
stateMutability: "payable"
|
|
407
407
|
},
|
|
408
408
|
{
|
|
409
|
-
stateMutability: "view",
|
|
410
409
|
type: "function",
|
|
411
410
|
inputs: [],
|
|
412
411
|
name: "zoraTimedSale",
|
|
@@ -416,7 +415,8 @@ var callerAndCommenterImplABI = [
|
|
|
416
415
|
internalType: "contract IZoraTimedSaleStrategy",
|
|
417
416
|
type: "address"
|
|
418
417
|
}
|
|
419
|
-
]
|
|
418
|
+
],
|
|
419
|
+
stateMutability: "view"
|
|
420
420
|
},
|
|
421
421
|
{ type: "event", anonymous: false, inputs: [], name: "EIP712DomainChanged" },
|
|
422
422
|
{
|
|
@@ -650,86 +650,85 @@ var callerAndCommenterImplABI = [
|
|
|
650
650
|
];
|
|
651
651
|
var commentsImplABI = [
|
|
652
652
|
{
|
|
653
|
-
stateMutability: "nonpayable",
|
|
654
653
|
type: "constructor",
|
|
655
654
|
inputs: [
|
|
656
655
|
{ name: "_sparkValue", internalType: "uint256", type: "uint256" },
|
|
657
656
|
{ name: "_protocolRewards", internalType: "address", type: "address" },
|
|
658
657
|
{ name: "_zoraRecipient", internalType: "address", type: "address" }
|
|
659
|
-
]
|
|
658
|
+
],
|
|
659
|
+
stateMutability: "nonpayable"
|
|
660
660
|
},
|
|
661
661
|
{
|
|
662
|
-
stateMutability: "view",
|
|
663
662
|
type: "function",
|
|
664
663
|
inputs: [],
|
|
665
664
|
name: "BACKFILLER_ROLE",
|
|
666
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
665
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
666
|
+
stateMutability: "view"
|
|
667
667
|
},
|
|
668
668
|
{
|
|
669
|
-
stateMutability: "view",
|
|
670
669
|
type: "function",
|
|
671
670
|
inputs: [],
|
|
672
671
|
name: "DEFAULT_ADMIN_ROLE",
|
|
673
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
672
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
673
|
+
stateMutability: "view"
|
|
674
674
|
},
|
|
675
675
|
{
|
|
676
|
-
stateMutability: "view",
|
|
677
676
|
type: "function",
|
|
678
677
|
inputs: [],
|
|
679
678
|
name: "DELEGATE_COMMENTER",
|
|
680
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
679
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
680
|
+
stateMutability: "view"
|
|
681
681
|
},
|
|
682
682
|
{
|
|
683
|
-
stateMutability: "view",
|
|
684
683
|
type: "function",
|
|
685
684
|
inputs: [],
|
|
686
685
|
name: "DOMAIN_NAME",
|
|
687
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
686
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
687
|
+
stateMutability: "view"
|
|
688
688
|
},
|
|
689
689
|
{
|
|
690
|
-
stateMutability: "view",
|
|
691
690
|
type: "function",
|
|
692
691
|
inputs: [],
|
|
693
692
|
name: "DOMAIN_VERSION",
|
|
694
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
693
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
694
|
+
stateMutability: "view"
|
|
695
695
|
},
|
|
696
696
|
{
|
|
697
|
-
stateMutability: "view",
|
|
698
697
|
type: "function",
|
|
699
698
|
inputs: [],
|
|
700
699
|
name: "PERMISSION_BIT_ADMIN",
|
|
701
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
700
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
701
|
+
stateMutability: "view"
|
|
702
702
|
},
|
|
703
703
|
{
|
|
704
|
-
stateMutability: "view",
|
|
705
704
|
type: "function",
|
|
706
705
|
inputs: [],
|
|
707
706
|
name: "REFERRER_REWARD_PCT",
|
|
708
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
707
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
708
|
+
stateMutability: "view"
|
|
709
709
|
},
|
|
710
710
|
{
|
|
711
|
-
stateMutability: "view",
|
|
712
711
|
type: "function",
|
|
713
712
|
inputs: [],
|
|
714
713
|
name: "UPGRADE_INTERFACE_VERSION",
|
|
715
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
714
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
715
|
+
stateMutability: "view"
|
|
716
716
|
},
|
|
717
717
|
{
|
|
718
|
-
stateMutability: "view",
|
|
719
718
|
type: "function",
|
|
720
719
|
inputs: [],
|
|
721
720
|
name: "ZORA_REWARD_NO_REFERRER_PCT",
|
|
722
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
721
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
722
|
+
stateMutability: "view"
|
|
723
723
|
},
|
|
724
724
|
{
|
|
725
|
-
stateMutability: "view",
|
|
726
725
|
type: "function",
|
|
727
726
|
inputs: [],
|
|
728
727
|
name: "ZORA_REWARD_PCT",
|
|
729
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
728
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
729
|
+
stateMutability: "view"
|
|
730
730
|
},
|
|
731
731
|
{
|
|
732
|
-
stateMutability: "nonpayable",
|
|
733
732
|
type: "function",
|
|
734
733
|
inputs: [
|
|
735
734
|
{
|
|
@@ -752,10 +751,10 @@ var commentsImplABI = [
|
|
|
752
751
|
}
|
|
753
752
|
],
|
|
754
753
|
name: "backfillBatchAddComment",
|
|
755
|
-
outputs: []
|
|
754
|
+
outputs: [],
|
|
755
|
+
stateMutability: "nonpayable"
|
|
756
756
|
},
|
|
757
757
|
{
|
|
758
|
-
stateMutability: "payable",
|
|
759
758
|
type: "function",
|
|
760
759
|
inputs: [
|
|
761
760
|
{ name: "commenter", internalType: "address", type: "address" },
|
|
@@ -793,10 +792,10 @@ var commentsImplABI = [
|
|
|
793
792
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
794
793
|
]
|
|
795
794
|
}
|
|
796
|
-
]
|
|
795
|
+
],
|
|
796
|
+
stateMutability: "payable"
|
|
797
797
|
},
|
|
798
798
|
{
|
|
799
|
-
stateMutability: "view",
|
|
800
799
|
type: "function",
|
|
801
800
|
inputs: [
|
|
802
801
|
{
|
|
@@ -812,24 +811,24 @@ var commentsImplABI = [
|
|
|
812
811
|
}
|
|
813
812
|
],
|
|
814
813
|
name: "commentSparksQuantity",
|
|
815
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
814
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
815
|
+
stateMutability: "view"
|
|
816
816
|
},
|
|
817
817
|
{
|
|
818
|
-
stateMutability: "pure",
|
|
819
818
|
type: "function",
|
|
820
819
|
inputs: [],
|
|
821
820
|
name: "contractName",
|
|
822
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
821
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
822
|
+
stateMutability: "pure"
|
|
823
823
|
},
|
|
824
824
|
{
|
|
825
|
-
stateMutability: "pure",
|
|
826
825
|
type: "function",
|
|
827
826
|
inputs: [],
|
|
828
827
|
name: "contractVersion",
|
|
829
|
-
outputs: [{ name: "", internalType: "string", type: "string" }]
|
|
828
|
+
outputs: [{ name: "", internalType: "string", type: "string" }],
|
|
829
|
+
stateMutability: "pure"
|
|
830
830
|
},
|
|
831
831
|
{
|
|
832
|
-
stateMutability: "payable",
|
|
833
832
|
type: "function",
|
|
834
833
|
inputs: [
|
|
835
834
|
{ name: "commenter", internalType: "address", type: "address" },
|
|
@@ -868,10 +867,10 @@ var commentsImplABI = [
|
|
|
868
867
|
]
|
|
869
868
|
},
|
|
870
869
|
{ name: "commentId", internalType: "bytes32", type: "bytes32" }
|
|
871
|
-
]
|
|
870
|
+
],
|
|
871
|
+
stateMutability: "payable"
|
|
872
872
|
},
|
|
873
873
|
{
|
|
874
|
-
stateMutability: "view",
|
|
875
874
|
type: "function",
|
|
876
875
|
inputs: [],
|
|
877
876
|
name: "eip712Domain",
|
|
@@ -883,37 +882,37 @@ var commentsImplABI = [
|
|
|
883
882
|
{ name: "verifyingContract", internalType: "address", type: "address" },
|
|
884
883
|
{ name: "salt", internalType: "bytes32", type: "bytes32" },
|
|
885
884
|
{ name: "extensions", internalType: "uint256[]", type: "uint256[]" }
|
|
886
|
-
]
|
|
885
|
+
],
|
|
886
|
+
stateMutability: "view"
|
|
887
887
|
},
|
|
888
888
|
{
|
|
889
|
-
stateMutability: "view",
|
|
890
889
|
type: "function",
|
|
891
890
|
inputs: [{ name: "role", internalType: "bytes32", type: "bytes32" }],
|
|
892
891
|
name: "getRoleAdmin",
|
|
893
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
892
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
893
|
+
stateMutability: "view"
|
|
894
894
|
},
|
|
895
895
|
{
|
|
896
|
-
stateMutability: "nonpayable",
|
|
897
896
|
type: "function",
|
|
898
897
|
inputs: [
|
|
899
898
|
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
900
899
|
{ name: "account", internalType: "address", type: "address" }
|
|
901
900
|
],
|
|
902
901
|
name: "grantRole",
|
|
903
|
-
outputs: []
|
|
902
|
+
outputs: [],
|
|
903
|
+
stateMutability: "nonpayable"
|
|
904
904
|
},
|
|
905
905
|
{
|
|
906
|
-
stateMutability: "view",
|
|
907
906
|
type: "function",
|
|
908
907
|
inputs: [
|
|
909
908
|
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
910
909
|
{ name: "account", internalType: "address", type: "address" }
|
|
911
910
|
],
|
|
912
911
|
name: "hasRole",
|
|
913
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
912
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
913
|
+
stateMutability: "view"
|
|
914
914
|
},
|
|
915
915
|
{
|
|
916
|
-
stateMutability: "view",
|
|
917
916
|
type: "function",
|
|
918
917
|
inputs: [
|
|
919
918
|
{
|
|
@@ -932,10 +931,10 @@ var commentsImplABI = [
|
|
|
932
931
|
outputs: [
|
|
933
932
|
{ name: "commentId", internalType: "bytes32", type: "bytes32" },
|
|
934
933
|
{ name: "exists", internalType: "bool", type: "bool" }
|
|
935
|
-
]
|
|
934
|
+
],
|
|
935
|
+
stateMutability: "view"
|
|
936
936
|
},
|
|
937
937
|
{
|
|
938
|
-
stateMutability: "view",
|
|
939
938
|
type: "function",
|
|
940
939
|
inputs: [
|
|
941
940
|
{
|
|
@@ -951,10 +950,10 @@ var commentsImplABI = [
|
|
|
951
950
|
}
|
|
952
951
|
],
|
|
953
952
|
name: "hashAndValidateCommentExists",
|
|
954
|
-
outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }]
|
|
953
|
+
outputs: [{ name: "commentId", internalType: "bytes32", type: "bytes32" }],
|
|
954
|
+
stateMutability: "view"
|
|
955
955
|
},
|
|
956
956
|
{
|
|
957
|
-
stateMutability: "pure",
|
|
958
957
|
type: "function",
|
|
959
958
|
inputs: [
|
|
960
959
|
{
|
|
@@ -970,10 +969,10 @@ var commentsImplABI = [
|
|
|
970
969
|
}
|
|
971
970
|
],
|
|
972
971
|
name: "hashCommentIdentifier",
|
|
973
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
972
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
973
|
+
stateMutability: "pure"
|
|
974
974
|
},
|
|
975
975
|
{
|
|
976
|
-
stateMutability: "view",
|
|
977
976
|
type: "function",
|
|
978
977
|
inputs: [
|
|
979
978
|
{
|
|
@@ -1018,10 +1017,10 @@ var commentsImplABI = [
|
|
|
1018
1017
|
}
|
|
1019
1018
|
],
|
|
1020
1019
|
name: "hashPermitComment",
|
|
1021
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1020
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
1021
|
+
stateMutability: "view"
|
|
1022
1022
|
},
|
|
1023
1023
|
{
|
|
1024
|
-
stateMutability: "view",
|
|
1025
1024
|
type: "function",
|
|
1026
1025
|
inputs: [
|
|
1027
1026
|
{
|
|
@@ -1059,17 +1058,17 @@ var commentsImplABI = [
|
|
|
1059
1058
|
}
|
|
1060
1059
|
],
|
|
1061
1060
|
name: "hashPermitSparkComment",
|
|
1062
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1061
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
1062
|
+
stateMutability: "view"
|
|
1063
1063
|
},
|
|
1064
1064
|
{
|
|
1065
|
-
stateMutability: "view",
|
|
1066
1065
|
type: "function",
|
|
1067
1066
|
inputs: [],
|
|
1068
1067
|
name: "implementation",
|
|
1069
|
-
outputs: [{ name: "", internalType: "address", type: "address" }]
|
|
1068
|
+
outputs: [{ name: "", internalType: "address", type: "address" }],
|
|
1069
|
+
stateMutability: "view"
|
|
1070
1070
|
},
|
|
1071
1071
|
{
|
|
1072
|
-
stateMutability: "nonpayable",
|
|
1073
1072
|
type: "function",
|
|
1074
1073
|
inputs: [
|
|
1075
1074
|
{ name: "defaultAdmin", internalType: "address", type: "address" },
|
|
@@ -1081,27 +1080,27 @@ var commentsImplABI = [
|
|
|
1081
1080
|
}
|
|
1082
1081
|
],
|
|
1083
1082
|
name: "initialize",
|
|
1084
|
-
outputs: []
|
|
1083
|
+
outputs: [],
|
|
1084
|
+
stateMutability: "nonpayable"
|
|
1085
1085
|
},
|
|
1086
1086
|
{
|
|
1087
|
-
stateMutability: "view",
|
|
1088
1087
|
type: "function",
|
|
1089
1088
|
inputs: [],
|
|
1090
1089
|
name: "nextNonce",
|
|
1091
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1090
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
1091
|
+
stateMutability: "view"
|
|
1092
1092
|
},
|
|
1093
1093
|
{
|
|
1094
|
-
stateMutability: "view",
|
|
1095
1094
|
type: "function",
|
|
1096
1095
|
inputs: [
|
|
1097
1096
|
{ name: "owner", internalType: "address", type: "address" },
|
|
1098
1097
|
{ name: "nonce", internalType: "bytes32", type: "bytes32" }
|
|
1099
1098
|
],
|
|
1100
1099
|
name: "nonceUsed",
|
|
1101
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
1100
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
1101
|
+
stateMutability: "view"
|
|
1102
1102
|
},
|
|
1103
1103
|
{
|
|
1104
|
-
stateMutability: "payable",
|
|
1105
1104
|
type: "function",
|
|
1106
1105
|
inputs: [
|
|
1107
1106
|
{
|
|
@@ -1147,10 +1146,10 @@ var commentsImplABI = [
|
|
|
1147
1146
|
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
1148
1147
|
],
|
|
1149
1148
|
name: "permitComment",
|
|
1150
|
-
outputs: []
|
|
1149
|
+
outputs: [],
|
|
1150
|
+
stateMutability: "payable"
|
|
1151
1151
|
},
|
|
1152
1152
|
{
|
|
1153
|
-
stateMutability: "payable",
|
|
1154
1153
|
type: "function",
|
|
1155
1154
|
inputs: [
|
|
1156
1155
|
{
|
|
@@ -1189,46 +1188,46 @@ var commentsImplABI = [
|
|
|
1189
1188
|
{ name: "signature", internalType: "bytes", type: "bytes" }
|
|
1190
1189
|
],
|
|
1191
1190
|
name: "permitSparkComment",
|
|
1192
|
-
outputs: []
|
|
1191
|
+
outputs: [],
|
|
1192
|
+
stateMutability: "payable"
|
|
1193
1193
|
},
|
|
1194
1194
|
{
|
|
1195
|
-
stateMutability: "view",
|
|
1196
1195
|
type: "function",
|
|
1197
1196
|
inputs: [],
|
|
1198
1197
|
name: "protocolRewards",
|
|
1199
1198
|
outputs: [
|
|
1200
1199
|
{ name: "", internalType: "contract IProtocolRewards", type: "address" }
|
|
1201
|
-
]
|
|
1200
|
+
],
|
|
1201
|
+
stateMutability: "view"
|
|
1202
1202
|
},
|
|
1203
1203
|
{
|
|
1204
|
-
stateMutability: "view",
|
|
1205
1204
|
type: "function",
|
|
1206
1205
|
inputs: [],
|
|
1207
1206
|
name: "proxiableUUID",
|
|
1208
|
-
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }]
|
|
1207
|
+
outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
|
|
1208
|
+
stateMutability: "view"
|
|
1209
1209
|
},
|
|
1210
1210
|
{
|
|
1211
|
-
stateMutability: "nonpayable",
|
|
1212
1211
|
type: "function",
|
|
1213
1212
|
inputs: [
|
|
1214
1213
|
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
1215
1214
|
{ name: "callerConfirmation", internalType: "address", type: "address" }
|
|
1216
1215
|
],
|
|
1217
1216
|
name: "renounceRole",
|
|
1218
|
-
outputs: []
|
|
1217
|
+
outputs: [],
|
|
1218
|
+
stateMutability: "nonpayable"
|
|
1219
1219
|
},
|
|
1220
1220
|
{
|
|
1221
|
-
stateMutability: "nonpayable",
|
|
1222
1221
|
type: "function",
|
|
1223
1222
|
inputs: [
|
|
1224
1223
|
{ name: "role", internalType: "bytes32", type: "bytes32" },
|
|
1225
1224
|
{ name: "account", internalType: "address", type: "address" }
|
|
1226
1225
|
],
|
|
1227
1226
|
name: "revokeRole",
|
|
1228
|
-
outputs: []
|
|
1227
|
+
outputs: [],
|
|
1228
|
+
stateMutability: "nonpayable"
|
|
1229
1229
|
},
|
|
1230
1230
|
{
|
|
1231
|
-
stateMutability: "payable",
|
|
1232
1231
|
type: "function",
|
|
1233
1232
|
inputs: [
|
|
1234
1233
|
{
|
|
@@ -1246,31 +1245,32 @@ var commentsImplABI = [
|
|
|
1246
1245
|
{ name: "referrer", internalType: "address", type: "address" }
|
|
1247
1246
|
],
|
|
1248
1247
|
name: "sparkComment",
|
|
1249
|
-
outputs: []
|
|
1248
|
+
outputs: [],
|
|
1249
|
+
stateMutability: "payable"
|
|
1250
1250
|
},
|
|
1251
1251
|
{
|
|
1252
|
-
stateMutability: "view",
|
|
1253
1252
|
type: "function",
|
|
1254
1253
|
inputs: [],
|
|
1255
1254
|
name: "sparkValue",
|
|
1256
|
-
outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
|
|
1255
|
+
outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
|
|
1256
|
+
stateMutability: "view"
|
|
1257
1257
|
},
|
|
1258
1258
|
{
|
|
1259
|
-
stateMutability: "view",
|
|
1260
1259
|
type: "function",
|
|
1261
1260
|
inputs: [{ name: "interfaceId", internalType: "bytes4", type: "bytes4" }],
|
|
1262
1261
|
name: "supportsInterface",
|
|
1263
|
-
outputs: [{ name: "", internalType: "bool", type: "bool" }]
|
|
1262
|
+
outputs: [{ name: "", internalType: "bool", type: "bool" }],
|
|
1263
|
+
stateMutability: "view"
|
|
1264
1264
|
},
|
|
1265
1265
|
{
|
|
1266
|
-
stateMutability: "payable",
|
|
1267
1266
|
type: "function",
|
|
1268
1267
|
inputs: [
|
|
1269
1268
|
{ name: "newImplementation", internalType: "address", type: "address" },
|
|
1270
1269
|
{ name: "data", internalType: "bytes", type: "bytes" }
|
|
1271
1270
|
],
|
|
1272
1271
|
name: "upgradeToAndCall",
|
|
1273
|
-
outputs: []
|
|
1272
|
+
outputs: [],
|
|
1273
|
+
stateMutability: "payable"
|
|
1274
1274
|
},
|
|
1275
1275
|
{
|
|
1276
1276
|
type: "event",
|