@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
@@ -0,0 +1,395 @@
1
+ [
2
+ {
3
+ "type": "constructor",
4
+ "inputs": [
5
+ {
6
+ "name": "payoutRecipient_",
7
+ "type": "address",
8
+ "internalType": "address"
9
+ },
10
+ {
11
+ "name": "owners_",
12
+ "type": "address[]",
13
+ "internalType": "address[]"
14
+ }
15
+ ],
16
+ "stateMutability": "nonpayable"
17
+ },
18
+ {
19
+ "type": "function",
20
+ "name": "allowance",
21
+ "inputs": [
22
+ {
23
+ "name": "owner",
24
+ "type": "address",
25
+ "internalType": "address"
26
+ },
27
+ {
28
+ "name": "spender",
29
+ "type": "address",
30
+ "internalType": "address"
31
+ }
32
+ ],
33
+ "outputs": [
34
+ {
35
+ "name": "",
36
+ "type": "uint256",
37
+ "internalType": "uint256"
38
+ }
39
+ ],
40
+ "stateMutability": "view"
41
+ },
42
+ {
43
+ "type": "function",
44
+ "name": "approve",
45
+ "inputs": [
46
+ {
47
+ "name": "spender",
48
+ "type": "address",
49
+ "internalType": "address"
50
+ },
51
+ {
52
+ "name": "value",
53
+ "type": "uint256",
54
+ "internalType": "uint256"
55
+ }
56
+ ],
57
+ "outputs": [
58
+ {
59
+ "name": "",
60
+ "type": "bool",
61
+ "internalType": "bool"
62
+ }
63
+ ],
64
+ "stateMutability": "nonpayable"
65
+ },
66
+ {
67
+ "type": "function",
68
+ "name": "balanceOf",
69
+ "inputs": [
70
+ {
71
+ "name": "account",
72
+ "type": "address",
73
+ "internalType": "address"
74
+ }
75
+ ],
76
+ "outputs": [
77
+ {
78
+ "name": "",
79
+ "type": "uint256",
80
+ "internalType": "uint256"
81
+ }
82
+ ],
83
+ "stateMutability": "view"
84
+ },
85
+ {
86
+ "type": "function",
87
+ "name": "decimals",
88
+ "inputs": [],
89
+ "outputs": [
90
+ {
91
+ "name": "",
92
+ "type": "uint8",
93
+ "internalType": "uint8"
94
+ }
95
+ ],
96
+ "stateMutability": "view"
97
+ },
98
+ {
99
+ "type": "function",
100
+ "name": "isOwner",
101
+ "inputs": [
102
+ {
103
+ "name": "account",
104
+ "type": "address",
105
+ "internalType": "address"
106
+ }
107
+ ],
108
+ "outputs": [
109
+ {
110
+ "name": "",
111
+ "type": "bool",
112
+ "internalType": "bool"
113
+ }
114
+ ],
115
+ "stateMutability": "view"
116
+ },
117
+ {
118
+ "type": "function",
119
+ "name": "mint",
120
+ "inputs": [
121
+ {
122
+ "name": "to",
123
+ "type": "address",
124
+ "internalType": "address"
125
+ },
126
+ {
127
+ "name": "amount",
128
+ "type": "uint256",
129
+ "internalType": "uint256"
130
+ }
131
+ ],
132
+ "outputs": [],
133
+ "stateMutability": "nonpayable"
134
+ },
135
+ {
136
+ "type": "function",
137
+ "name": "name",
138
+ "inputs": [],
139
+ "outputs": [
140
+ {
141
+ "name": "",
142
+ "type": "string",
143
+ "internalType": "string"
144
+ }
145
+ ],
146
+ "stateMutability": "view"
147
+ },
148
+ {
149
+ "type": "function",
150
+ "name": "payoutRecipient",
151
+ "inputs": [],
152
+ "outputs": [
153
+ {
154
+ "name": "",
155
+ "type": "address",
156
+ "internalType": "address"
157
+ }
158
+ ],
159
+ "stateMutability": "view"
160
+ },
161
+ {
162
+ "type": "function",
163
+ "name": "supportsInterface",
164
+ "inputs": [
165
+ {
166
+ "name": "interfaceId",
167
+ "type": "bytes4",
168
+ "internalType": "bytes4"
169
+ }
170
+ ],
171
+ "outputs": [
172
+ {
173
+ "name": "",
174
+ "type": "bool",
175
+ "internalType": "bool"
176
+ }
177
+ ],
178
+ "stateMutability": "pure"
179
+ },
180
+ {
181
+ "type": "function",
182
+ "name": "symbol",
183
+ "inputs": [],
184
+ "outputs": [
185
+ {
186
+ "name": "",
187
+ "type": "string",
188
+ "internalType": "string"
189
+ }
190
+ ],
191
+ "stateMutability": "view"
192
+ },
193
+ {
194
+ "type": "function",
195
+ "name": "totalSupply",
196
+ "inputs": [],
197
+ "outputs": [
198
+ {
199
+ "name": "",
200
+ "type": "uint256",
201
+ "internalType": "uint256"
202
+ }
203
+ ],
204
+ "stateMutability": "view"
205
+ },
206
+ {
207
+ "type": "function",
208
+ "name": "transfer",
209
+ "inputs": [
210
+ {
211
+ "name": "to",
212
+ "type": "address",
213
+ "internalType": "address"
214
+ },
215
+ {
216
+ "name": "value",
217
+ "type": "uint256",
218
+ "internalType": "uint256"
219
+ }
220
+ ],
221
+ "outputs": [
222
+ {
223
+ "name": "",
224
+ "type": "bool",
225
+ "internalType": "bool"
226
+ }
227
+ ],
228
+ "stateMutability": "nonpayable"
229
+ },
230
+ {
231
+ "type": "function",
232
+ "name": "transferFrom",
233
+ "inputs": [
234
+ {
235
+ "name": "from",
236
+ "type": "address",
237
+ "internalType": "address"
238
+ },
239
+ {
240
+ "name": "to",
241
+ "type": "address",
242
+ "internalType": "address"
243
+ },
244
+ {
245
+ "name": "value",
246
+ "type": "uint256",
247
+ "internalType": "uint256"
248
+ }
249
+ ],
250
+ "outputs": [
251
+ {
252
+ "name": "",
253
+ "type": "bool",
254
+ "internalType": "bool"
255
+ }
256
+ ],
257
+ "stateMutability": "nonpayable"
258
+ },
259
+ {
260
+ "type": "event",
261
+ "name": "Approval",
262
+ "inputs": [
263
+ {
264
+ "name": "owner",
265
+ "type": "address",
266
+ "indexed": true,
267
+ "internalType": "address"
268
+ },
269
+ {
270
+ "name": "spender",
271
+ "type": "address",
272
+ "indexed": true,
273
+ "internalType": "address"
274
+ },
275
+ {
276
+ "name": "value",
277
+ "type": "uint256",
278
+ "indexed": false,
279
+ "internalType": "uint256"
280
+ }
281
+ ],
282
+ "anonymous": false
283
+ },
284
+ {
285
+ "type": "event",
286
+ "name": "Transfer",
287
+ "inputs": [
288
+ {
289
+ "name": "from",
290
+ "type": "address",
291
+ "indexed": true,
292
+ "internalType": "address"
293
+ },
294
+ {
295
+ "name": "to",
296
+ "type": "address",
297
+ "indexed": true,
298
+ "internalType": "address"
299
+ },
300
+ {
301
+ "name": "value",
302
+ "type": "uint256",
303
+ "indexed": false,
304
+ "internalType": "uint256"
305
+ }
306
+ ],
307
+ "anonymous": false
308
+ },
309
+ {
310
+ "type": "error",
311
+ "name": "ERC20InsufficientAllowance",
312
+ "inputs": [
313
+ {
314
+ "name": "spender",
315
+ "type": "address",
316
+ "internalType": "address"
317
+ },
318
+ {
319
+ "name": "allowance",
320
+ "type": "uint256",
321
+ "internalType": "uint256"
322
+ },
323
+ {
324
+ "name": "needed",
325
+ "type": "uint256",
326
+ "internalType": "uint256"
327
+ }
328
+ ]
329
+ },
330
+ {
331
+ "type": "error",
332
+ "name": "ERC20InsufficientBalance",
333
+ "inputs": [
334
+ {
335
+ "name": "sender",
336
+ "type": "address",
337
+ "internalType": "address"
338
+ },
339
+ {
340
+ "name": "balance",
341
+ "type": "uint256",
342
+ "internalType": "uint256"
343
+ },
344
+ {
345
+ "name": "needed",
346
+ "type": "uint256",
347
+ "internalType": "uint256"
348
+ }
349
+ ]
350
+ },
351
+ {
352
+ "type": "error",
353
+ "name": "ERC20InvalidApprover",
354
+ "inputs": [
355
+ {
356
+ "name": "approver",
357
+ "type": "address",
358
+ "internalType": "address"
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "type": "error",
364
+ "name": "ERC20InvalidReceiver",
365
+ "inputs": [
366
+ {
367
+ "name": "receiver",
368
+ "type": "address",
369
+ "internalType": "address"
370
+ }
371
+ ]
372
+ },
373
+ {
374
+ "type": "error",
375
+ "name": "ERC20InvalidSender",
376
+ "inputs": [
377
+ {
378
+ "name": "sender",
379
+ "type": "address",
380
+ "internalType": "address"
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "type": "error",
386
+ "name": "ERC20InvalidSpender",
387
+ "inputs": [
388
+ {
389
+ "name": "spender",
390
+ "type": "address",
391
+ "internalType": "address"
392
+ }
393
+ ]
394
+ }
395
+ ]
@@ -0,0 +1,9 @@
1
+ {
2
+ "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x455c9D3188A3Cd94aCDE8E5Ec90cA92FC10805EA",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
+ "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
+ "COMMENTS_BLOCK_NUMBER": 21123814,
7
+ "COMMENTS_IMPL": "0xA06262157905913f855573f53AD48DE2D4ba1F4A",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 21719624
9
+ }
package/addresses/10.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0x91509707F397e357DCe975399Fc98bB58081Ad63",
4
- "CALLER_AND_COMMENTER_VERSION": "",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x0950D0eC9a7c51d5f0Fc542F54a3F72e0CB519a1",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 126971499,
7
- "COMMENTS_IMPL": "0xA880EA1095dFcafa4cBe1C0EFa5e7b861A6634b6",
8
- "COMMENTS_IMPL_BLOCK_NUMBER": 126971455
7
+ "COMMENTS_IMPL": "0x2d54733cBebb23b8a10a935f6B42Efaaa9f5d27e",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 131213246
9
9
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0x35ca784918bf11692708c1D530691704AAcEA95E",
4
- "CALLER_AND_COMMENTER_VERSION": "",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x24581Ea0d28199d7d2275534917747Bce4e1B0A7",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 6977641,
7
7
  "COMMENTS_IMPL": "0xd92F69d5581BF9536c77550aeA1d74DDaE88B5B7",
8
8
  "COMMENTS_IMPL_BLOCK_NUMBER": 6977641
9
- }
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0xD1F822051f3BbaDc79b7F7B4cE160525976dcD94",
4
- "CALLER_AND_COMMENTER_VERSION": "",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x1Eb7Bf3a08784D7cB08CC2AE1448012C0c02bDa2",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 266241993,
7
- "COMMENTS_IMPL": "0x073ef87C54c192c21ddEf881fE18064b6161fAC9",
8
- "COMMENTS_IMPL_BLOCK_NUMBER": 266239297
7
+ "COMMENTS_IMPL": "0x53a85FbD2955EF713AA489Ae0C48523E727a0c07",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 299991903
9
9
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0xed0a281fdC555e061005D2B4B4eEc73B802b7b68",
4
- "CALLER_AND_COMMENTER_VERSION": "",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x2C256f0464A9e1a4292c87eb455c5601Bcae4436",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 21297164,
7
- "COMMENTS_IMPL": "0xFD2FDCE0d316410d3F57459DF33f88626EDF5Bc0",
8
- "COMMENTS_IMPL_BLOCK_NUMBER": 21296491
9
- }
7
+ "COMMENTS_IMPL": "0x21E11D1fA2bb1886393e591C61461eE8b7E95Ec8",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 25665204
9
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
+ "CALLER_AND_COMMENTER_IMPL": "0xD1F822051f3BbaDc79b7F7B4cE160525976dcD94",
4
+ "CALLER_AND_COMMENTER_VERSION": "",
5
+ "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
+ "COMMENTS_BLOCK_NUMBER": 11006995,
7
+ "COMMENTS_IMPL": "0x61Cb091f8EC70029E393D31BA8F6D533c1308408",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 14608186
9
+ }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0x7d42Ee84D377D37cfc9EbF10C3aEe56da326642d",
4
- "CALLER_AND_COMMENTER_VERSION": "",
3
+ "CALLER_AND_COMMENTER_IMPL": "0xaD607aF6c0b35Dd24d11693385C6aF8969d9abA8",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 21374808,
7
- "COMMENTS_IMPL": "0x8f5B2dd6160D96B48a35F0619BC32b4b997cA37F",
8
- "COMMENTS_IMPL_BLOCK_NUMBER": 21374465
7
+ "COMMENTS_IMPL": "0xE37B9036440Fe6C189285629AaD8F4b31AD93F31",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 25617041
9
9
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0x2B8eF6E51717Af2C1AadFbC611D3852563B76E8f",
4
- "CALLER_AND_COMMENTER_VERSION": "",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x8e90D8cfc0CA66EA143930E4c5F7E31Bf16F722b",
4
+ "CALLER_AND_COMMENTER_VERSION": "0.0.2",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 17267821,
7
- "COMMENTS_IMPL": "0x05177c381CaC95d8DC872b14218f67C9fB903966",
8
- "COMMENTS_IMPL_BLOCK_NUMBER": 17267821
7
+ "COMMENTS_IMPL": "0x6ce243189A11c500BC71376c556bc798b69A1877",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 21127196
9
9
  }
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "CALLER_AND_COMMENTER": "0x77777775C5074b74540d9cC63Dd840A8c692B4B5",
3
- "CALLER_AND_COMMENTER_IMPL": "0xAca467FCcb8b0550070E1fD3B58B7a5338889e7F",
3
+ "CALLER_AND_COMMENTER_IMPL": "0x93f84e1D51A738BaF7B19a648C8723352b935B5A",
4
4
  "CALLER_AND_COMMENTER_VERSION": "",
5
5
  "COMMENTS": "0x7777777C2B3132e03a65721a41745C07170a5877",
6
6
  "COMMENTS_BLOCK_NUMBER": 15602117,
7
- "COMMENTS_IMPL": "0x25352CAC829a03aA5e76c4f997ACF8Ce73A2bDA3",
8
- "COMMENTS_IMPL_BLOCK_NUMBER": 16123316
7
+ "COMMENTS_IMPL": "0xAEDD02Af3C2661c9e543b3eF391AC387B82f54Ad",
8
+ "COMMENTS_IMPL_BLOCK_NUMBER": 19971983
9
9
  }