@zoralabs/comments-contracts 0.0.3 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +55 -55
- package/CHANGELOG.md +8 -0
- package/abis/CommentsImpl.json +0 -5
- package/abis/CommentsPermitTest.json +2 -2
- package/abis/CommentsTest.json +7 -7
- package/abis/Comments_mintAndCommentTest.json +8 -1
- package/abis/Comments_smartWallet.json +4 -4
- package/abis/IComments.json +0 -5
- package/abis/Vm.json +1482 -111
- package/abis/VmSafe.json +856 -32
- package/dist/index.cjs +3 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/wagmiGenerated.d.ts +0 -4
- package/dist/wagmiGenerated.d.ts.map +1 -1
- package/package/wagmiGenerated.ts +0 -1
- package/package.json +4 -4
- package/script/storage-check.sh +1 -1
- package/src/CommentsImpl.sol +2 -20
- package/src/interfaces/IComments.sol +0 -3
- package/src/version/ContractVersionBase.sol +1 -1
- package/test/Comments.t.sol +4 -6
- package/test/Comments_delegateComment.t.sol +19 -2
- package/test/Comments_permit.t.sol +2 -2
- package/test/Comments_smartWallet.t.sol +2 -4
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
|
-
> @zoralabs/comments-contracts@0.0
|
|
2
|
+
> @zoralabs/comments-contracts@0.1.0 build /home/runner/work/zora-protocol-private/zora-protocol-private/packages/comments
|
|
3
3
|
> pnpm run wagmi:generate && pnpm run copy-abis && pnpm run prettier:write && tsup
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> @zoralabs/comments-contracts@0.0
|
|
6
|
+
> @zoralabs/comments-contracts@0.1.0 wagmi:generate /home/runner/work/zora-protocol-private/zora-protocol-private/packages/comments
|
|
7
7
|
> FOUNDRY_PROFILE=dev forge build && wagmi generate && pnpm exec rename-generated-abi-casing ./package/wagmiGenerated.ts
|
|
8
8
|
|
|
9
9
|
Compiling 121 files with Solc 0.8.23
|
|
10
|
-
Solc 0.8.23 finished in
|
|
10
|
+
Solc 0.8.23 finished in 85.76s
|
|
11
11
|
Compiler run successful!
|
|
12
12
|
[33m-[39m Validating plugins
|
|
13
13
|
[32m✔[39m Validating plugins
|
|
@@ -22,63 +22,63 @@ Compiler run successful!
|
|
|
22
22
|
✅ Updated ./package/wagmiGenerated.ts (2 replacements)
|
|
23
23
|
✨ All files processed successfully!
|
|
24
24
|
|
|
25
|
-
> @zoralabs/comments-contracts@0.0
|
|
25
|
+
> @zoralabs/comments-contracts@0.1.0 copy-abis /home/runner/work/zora-protocol-private/zora-protocol-private/packages/comments
|
|
26
26
|
> pnpm exec bundle-abis
|
|
27
27
|
|
|
28
28
|
|
|
29
|
-
> @zoralabs/comments-contracts@0.0
|
|
29
|
+
> @zoralabs/comments-contracts@0.1.0 prettier:write /home/runner/work/zora-protocol-private/zora-protocol-private/packages/comments
|
|
30
30
|
> prettier --write 'src/**/*.sol' 'test/**/*.sol' 'script/**/*.sol'
|
|
31
31
|
|
|
32
|
-
src/CommentsImpl.sol
|
|
33
|
-
src/CommentsImplConstants.sol
|
|
34
|
-
src/interfaces/ICallerAndCommenter.sol
|
|
35
|
-
src/interfaces/ICoinComments.sol
|
|
36
|
-
src/interfaces/IComments.sol
|
|
32
|
+
src/CommentsImpl.sol 1550ms (unchanged)
|
|
33
|
+
src/CommentsImplConstants.sol 17ms (unchanged)
|
|
34
|
+
src/interfaces/ICallerAndCommenter.sol 50ms (unchanged)
|
|
35
|
+
src/interfaces/ICoinComments.sol 8ms (unchanged)
|
|
36
|
+
src/interfaces/IComments.sol 70ms
|
|
37
37
|
src/interfaces/IMultiOwnable.sol 2ms (unchanged)
|
|
38
|
-
src/interfaces/ISecondarySwap.sol
|
|
39
|
-
src/interfaces/IZoraCreator1155.sol
|
|
40
|
-
src/interfaces/IZoraCreator1155TypesV1.sol
|
|
41
|
-
src/interfaces/IZoraTimedSaleStrategy.sol
|
|
42
|
-
src/proxy/CallerAndCommenter.sol
|
|
43
|
-
src/proxy/Comments.sol
|
|
44
|
-
src/utils/CallerAndCommenterImpl.sol
|
|
45
|
-
src/utils/EIP712UpgradeableWithChainId.sol
|
|
46
|
-
src/version/ContractVersionBase.sol
|
|
47
|
-
test/CallerAndCommenter_mintAndComment.t copy.sol
|
|
48
|
-
test/CallerAndCommenter_swapAndComment.t.sol
|
|
49
|
-
test/CallerAndCommenterTestBase.sol
|
|
50
|
-
test/Comments_delegateComment.t.sol
|
|
51
|
-
test/Comments_permit.t.sol
|
|
52
|
-
test/Comments_smartWallet.t.sol
|
|
53
|
-
test/Comments.t.sol
|
|
54
|
-
test/CommentsTestBase.sol
|
|
55
|
-
test/mocks/Mock1155.sol
|
|
56
|
-
test/mocks/Mock1155NoCreatorRewardRecipient.sol
|
|
57
|
-
test/mocks/Mock1155NoOwner.sol
|
|
58
|
-
test/mocks/MockCoin.sol
|
|
59
|
-
test/mocks/MockDelegateCommenter.sol
|
|
60
|
-
test/mocks/MockIZoraCreator1155.sol
|
|
61
|
-
test/mocks/MockSecondarySwap.sol
|
|
62
|
-
test/mocks/MockZoraTimedSale.sol
|
|
63
|
-
test/mocks/ProtocolRewards.sol
|
|
38
|
+
src/interfaces/ISecondarySwap.sol 24ms (unchanged)
|
|
39
|
+
src/interfaces/IZoraCreator1155.sol 8ms (unchanged)
|
|
40
|
+
src/interfaces/IZoraCreator1155TypesV1.sol 28ms (unchanged)
|
|
41
|
+
src/interfaces/IZoraTimedSaleStrategy.sol 9ms (unchanged)
|
|
42
|
+
src/proxy/CallerAndCommenter.sol 33ms (unchanged)
|
|
43
|
+
src/proxy/Comments.sol 17ms (unchanged)
|
|
44
|
+
src/utils/CallerAndCommenterImpl.sol 476ms (unchanged)
|
|
45
|
+
src/utils/EIP712UpgradeableWithChainId.sol 22ms (unchanged)
|
|
46
|
+
src/version/ContractVersionBase.sol 1ms (unchanged)
|
|
47
|
+
test/CallerAndCommenter_mintAndComment.t copy.sol 394ms (unchanged)
|
|
48
|
+
test/CallerAndCommenter_swapAndComment.t.sol 841ms (unchanged)
|
|
49
|
+
test/CallerAndCommenterTestBase.sol 146ms (unchanged)
|
|
50
|
+
test/Comments_delegateComment.t.sol 222ms (unchanged)
|
|
51
|
+
test/Comments_permit.t.sol 747ms (unchanged)
|
|
52
|
+
test/Comments_smartWallet.t.sol 302ms (unchanged)
|
|
53
|
+
test/Comments.t.sol 823ms (unchanged)
|
|
54
|
+
test/CommentsTestBase.sol 58ms (unchanged)
|
|
55
|
+
test/mocks/Mock1155.sol 34ms (unchanged)
|
|
56
|
+
test/mocks/Mock1155NoCreatorRewardRecipient.sol 24ms (unchanged)
|
|
57
|
+
test/mocks/Mock1155NoOwner.sol 16ms (unchanged)
|
|
58
|
+
test/mocks/MockCoin.sol 27ms (unchanged)
|
|
59
|
+
test/mocks/MockDelegateCommenter.sol 21ms (unchanged)
|
|
60
|
+
test/mocks/MockIZoraCreator1155.sol 2ms (unchanged)
|
|
61
|
+
test/mocks/MockSecondarySwap.sol 22ms (unchanged)
|
|
62
|
+
test/mocks/MockZoraTimedSale.sol 24ms (unchanged)
|
|
63
|
+
test/mocks/ProtocolRewards.sol 553ms (unchanged)
|
|
64
64
|
script/AddDelegateCommenterRole.s.sol 10ms (unchanged)
|
|
65
|
-
script/CommentsDeployerBase.sol
|
|
66
|
-
script/Deploy.s.sol
|
|
65
|
+
script/CommentsDeployerBase.sol 92ms (unchanged)
|
|
66
|
+
script/Deploy.s.sol 6ms (unchanged)
|
|
67
67
|
script/DeployCallerAndCommenterImpl.s.sol 16ms (unchanged)
|
|
68
|
-
script/DeployImpl.s.sol
|
|
69
|
-
script/DeployNonDeterministic.s.sol
|
|
70
|
-
script/GenerateDeterministicParams.s.sol
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
68
|
+
script/DeployImpl.s.sol 15ms (unchanged)
|
|
69
|
+
script/DeployNonDeterministic.s.sol 27ms (unchanged)
|
|
70
|
+
script/GenerateDeterministicParams.s.sol 33ms (unchanged)
|
|
71
|
+
[34mCLI[39m Building entry: package/index.ts
|
|
72
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
73
|
+
[34mCLI[39m tsup v8.4.0
|
|
74
|
+
[34mCLI[39m Using tsup config: /home/runner/work/zora-protocol-private/zora-protocol-private/packages/comments/tsup.config.ts
|
|
75
|
+
[34mCLI[39m Target: es2021
|
|
76
|
+
[34mCLI[39m Cleaning output folder
|
|
77
|
+
[34mCJS[39m Build start
|
|
78
|
+
[34mESM[39m Build start
|
|
79
|
+
[32mESM[39m [1mdist/index.js [22m[32m47.88 KB[39m
|
|
80
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m83.45 KB[39m
|
|
81
|
+
[32mESM[39m ⚡️ Build success in 41ms
|
|
82
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m48.96 KB[39m
|
|
83
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m83.73 KB[39m
|
|
84
|
+
[32mCJS[39m ⚡️ Build success in 41ms
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @zoralabs/comments-contracts
|
|
2
2
|
|
|
3
|
+
## 0.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e4938846: Remove token holding requirement for commenting
|
|
8
|
+
|
|
9
|
+
Users can now comment on any coin without holding the token. Non-admin users must still send 1 spark to comment, but token ownership is no longer required. Delegate commenters can still comment with 0 sparks.
|
|
10
|
+
|
|
3
11
|
## 0.0.3
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/abis/CommentsImpl.json
CHANGED
|
@@ -247,14 +247,14 @@
|
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
"type": "function",
|
|
250
|
-
"name": "
|
|
250
|
+
"name": "testPermitComment_Non1155HolderCanCommentWithSpark",
|
|
251
251
|
"inputs": [],
|
|
252
252
|
"outputs": [],
|
|
253
253
|
"stateMutability": "nonpayable"
|
|
254
254
|
},
|
|
255
255
|
{
|
|
256
256
|
"type": "function",
|
|
257
|
-
"name": "
|
|
257
|
+
"name": "testPermitComment_NonceUsedTwice",
|
|
258
258
|
"inputs": [],
|
|
259
259
|
"outputs": [],
|
|
260
260
|
"stateMutability": "nonpayable"
|
package/abis/CommentsTest.json
CHANGED
|
@@ -425,49 +425,49 @@
|
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
427
|
"type": "function",
|
|
428
|
-
"name": "
|
|
428
|
+
"name": "testNonCoinHolderCanCommentWithSpark",
|
|
429
429
|
"inputs": [],
|
|
430
430
|
"outputs": [],
|
|
431
431
|
"stateMutability": "nonpayable"
|
|
432
432
|
},
|
|
433
433
|
{
|
|
434
434
|
"type": "function",
|
|
435
|
-
"name": "
|
|
435
|
+
"name": "testNonHolderCanCommentWithSpark",
|
|
436
436
|
"inputs": [],
|
|
437
437
|
"outputs": [],
|
|
438
438
|
"stateMutability": "nonpayable"
|
|
439
439
|
},
|
|
440
440
|
{
|
|
441
441
|
"type": "function",
|
|
442
|
-
"name": "
|
|
442
|
+
"name": "testReplyToCommentThatAddressDoesNotMatch",
|
|
443
443
|
"inputs": [],
|
|
444
444
|
"outputs": [],
|
|
445
445
|
"stateMutability": "nonpayable"
|
|
446
446
|
},
|
|
447
447
|
{
|
|
448
448
|
"type": "function",
|
|
449
|
-
"name": "
|
|
449
|
+
"name": "testReplyToExistingComment",
|
|
450
450
|
"inputs": [],
|
|
451
451
|
"outputs": [],
|
|
452
452
|
"stateMutability": "nonpayable"
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
455
|
"type": "function",
|
|
456
|
-
"name": "
|
|
456
|
+
"name": "testReplyToNonExistentComment",
|
|
457
457
|
"inputs": [],
|
|
458
458
|
"outputs": [],
|
|
459
459
|
"stateMutability": "nonpayable"
|
|
460
460
|
},
|
|
461
461
|
{
|
|
462
462
|
"type": "function",
|
|
463
|
-
"name": "
|
|
463
|
+
"name": "testRevertCommentAsCoinHolderWithoutSparks",
|
|
464
464
|
"inputs": [],
|
|
465
465
|
"outputs": [],
|
|
466
466
|
"stateMutability": "nonpayable"
|
|
467
467
|
},
|
|
468
468
|
{
|
|
469
469
|
"type": "function",
|
|
470
|
-
"name": "
|
|
470
|
+
"name": "testRevertOnEmptyComment",
|
|
471
471
|
"inputs": [],
|
|
472
472
|
"outputs": [],
|
|
473
473
|
"stateMutability": "nonpayable"
|
|
@@ -226,7 +226,14 @@
|
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"type": "function",
|
|
229
|
-
"name": "
|
|
229
|
+
"name": "test_delegateComment_canCommentWithZeroSparks",
|
|
230
|
+
"inputs": [],
|
|
231
|
+
"outputs": [],
|
|
232
|
+
"stateMutability": "nonpayable"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"type": "function",
|
|
236
|
+
"name": "test_delegateComment_nonOwnerCanCommentWithSpark",
|
|
230
237
|
"inputs": [],
|
|
231
238
|
"outputs": [],
|
|
232
239
|
"stateMutability": "nonpayable"
|
|
@@ -212,28 +212,28 @@
|
|
|
212
212
|
},
|
|
213
213
|
{
|
|
214
214
|
"type": "function",
|
|
215
|
-
"name": "
|
|
215
|
+
"name": "test_commentWithSmartWalletOwner_canCommentWithSpark",
|
|
216
216
|
"inputs": [],
|
|
217
217
|
"outputs": [],
|
|
218
218
|
"stateMutability": "nonpayable"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
221
|
"type": "function",
|
|
222
|
-
"name": "
|
|
222
|
+
"name": "test_commentWithSmartWalletOwner_nonCoinHolderCanCommentWithSpark",
|
|
223
223
|
"inputs": [],
|
|
224
224
|
"outputs": [],
|
|
225
225
|
"stateMutability": "nonpayable"
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
"type": "function",
|
|
229
|
-
"name": "
|
|
229
|
+
"name": "test_commentWithSmartWalletOwner_revertsWhenNotCoinSmartWallet",
|
|
230
230
|
"inputs": [],
|
|
231
231
|
"outputs": [],
|
|
232
232
|
"stateMutability": "nonpayable"
|
|
233
233
|
},
|
|
234
234
|
{
|
|
235
235
|
"type": "function",
|
|
236
|
-
"name": "
|
|
236
|
+
"name": "test_commentWithSmartWalletOwner_revertsWhenNotCoinSmartWalletOwner",
|
|
237
237
|
"inputs": [],
|
|
238
238
|
"outputs": [],
|
|
239
239
|
"stateMutability": "nonpayable"
|
package/abis/IComments.json
CHANGED