@cartesi/devnet 2.0.0-alpha.2 → 2.0.0-alpha.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.
Files changed (94) hide show
  1. package/anvil_state.json +1 -0
  2. package/deployments/TestMultiToken.json +585 -0
  3. package/deployments/TestNFT.json +590 -0
  4. package/deployments/TestToken.json +730 -0
  5. package/deployments/cartesiRollups.ApplicationFactory.json +164 -0
  6. package/deployments/cartesiRollups.AuthorityFactory.json +110 -0
  7. package/deployments/cartesiRollups.ERC1155BatchPortal.json +79 -0
  8. package/deployments/cartesiRollups.ERC1155SinglePortal.json +79 -0
  9. package/deployments/cartesiRollups.ERC20Portal.json +74 -0
  10. package/deployments/cartesiRollups.ERC721Portal.json +74 -0
  11. package/deployments/cartesiRollups.EtherPortal.json +64 -0
  12. package/deployments/cartesiRollups.InputBox.json +146 -0
  13. package/deployments/cartesiRollups.QuorumFactory.json +110 -0
  14. package/deployments/cartesiRollups.SafeERC20Transfer.json +49 -0
  15. package/deployments/cartesiRollups.SelfHostedApplicationFactory.json +158 -0
  16. package/package.json +10 -33
  17. package/build/anvil_state.json +0 -1
  18. package/deployments/localhost/.chainId +0 -1
  19. package/deployments/localhost/ApplicationFactory.json +0 -227
  20. package/deployments/localhost/AuthorityFactory.json +0 -188
  21. package/deployments/localhost/ERC1155BatchPortal.json +0 -133
  22. package/deployments/localhost/ERC1155SinglePortal.json +0 -132
  23. package/deployments/localhost/ERC20Portal.json +0 -132
  24. package/deployments/localhost/ERC721Portal.json +0 -126
  25. package/deployments/localhost/EtherPortal.json +0 -121
  26. package/deployments/localhost/InputBox.json +0 -213
  27. package/deployments/localhost/QuorumFactory.json +0 -188
  28. package/deployments/localhost/SafeERC20Transfer.json +0 -118
  29. package/deployments/localhost/SelfHostedApplicationFactory.json +0 -227
  30. package/deployments/localhost/TestMultiToken.json +0 -829
  31. package/deployments/localhost/TestNFT.json +0 -891
  32. package/deployments/localhost/TestToken.json +0 -1079
  33. package/dist/deploy/01_token.js +0 -15
  34. package/dist/deploy/02_nft.js +0 -15
  35. package/dist/deploy/03_multitoken.js +0 -15
  36. package/dist/deploy/04_4337.js +0 -342
  37. package/dist/src/aa/constants.d.ts +0 -31
  38. package/dist/src/aa/constants.d.ts.map +0 -1
  39. package/dist/src/aa/constants.js +0 -65
  40. package/dist/src/tasks/deploy-anvil.d.ts +0 -6
  41. package/dist/src/tasks/deploy-anvil.d.ts.map +0 -1
  42. package/dist/src/tasks/deploy-anvil.js +0 -40
  43. package/export/abi/localhost.json +0 -2837
  44. package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +0 -128
  45. package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +0 -137
  46. package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +0 -32
  47. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +0 -133
  48. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +0 -1240
  49. package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +0 -60
  50. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +0 -401
  51. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +0 -84
  52. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +0 -190
  53. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +0 -165
  54. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +0 -197
  55. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +0 -553
  56. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +0 -362
  57. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +0 -156
  58. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +0 -385
  59. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Utils.sol/ERC1155Utils.json +0 -34
  60. package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
  61. package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
  62. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
  63. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
  64. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
  65. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
  66. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
  67. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
  68. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
  69. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
  70. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
  71. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
  72. package/export/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +0 -33
  73. package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -61
  74. package/export/artifacts/@openzeppelin/contracts/utils/Comparators.sol/Comparators.json +0 -34
  75. package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
  76. package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
  77. package/export/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +0 -65
  78. package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
  79. package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
  80. package/export/artifacts/@openzeppelin/contracts/utils/SlotDerivation.sol/SlotDerivation.json +0 -42
  81. package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -41
  82. package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -63
  83. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
  84. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
  85. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
  86. package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
  87. package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
  88. package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -60
  89. package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -174
  90. package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -37
  91. package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
  92. package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
  93. package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
  94. package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
@@ -1,502 +0,0 @@
1
- {
2
- "contractName": "ERC20Pausable",
3
- "sourceName": "@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "spender",
10
- "type": "address"
11
- },
12
- {
13
- "internalType": "uint256",
14
- "name": "allowance",
15
- "type": "uint256"
16
- },
17
- {
18
- "internalType": "uint256",
19
- "name": "needed",
20
- "type": "uint256"
21
- }
22
- ],
23
- "name": "ERC20InsufficientAllowance",
24
- "type": "error"
25
- },
26
- {
27
- "inputs": [
28
- {
29
- "internalType": "address",
30
- "name": "sender",
31
- "type": "address"
32
- },
33
- {
34
- "internalType": "uint256",
35
- "name": "balance",
36
- "type": "uint256"
37
- },
38
- {
39
- "internalType": "uint256",
40
- "name": "needed",
41
- "type": "uint256"
42
- }
43
- ],
44
- "name": "ERC20InsufficientBalance",
45
- "type": "error"
46
- },
47
- {
48
- "inputs": [
49
- {
50
- "internalType": "address",
51
- "name": "approver",
52
- "type": "address"
53
- }
54
- ],
55
- "name": "ERC20InvalidApprover",
56
- "type": "error"
57
- },
58
- {
59
- "inputs": [
60
- {
61
- "internalType": "address",
62
- "name": "receiver",
63
- "type": "address"
64
- }
65
- ],
66
- "name": "ERC20InvalidReceiver",
67
- "type": "error"
68
- },
69
- {
70
- "inputs": [
71
- {
72
- "internalType": "address",
73
- "name": "sender",
74
- "type": "address"
75
- }
76
- ],
77
- "name": "ERC20InvalidSender",
78
- "type": "error"
79
- },
80
- {
81
- "inputs": [
82
- {
83
- "internalType": "address",
84
- "name": "spender",
85
- "type": "address"
86
- }
87
- ],
88
- "name": "ERC20InvalidSpender",
89
- "type": "error"
90
- },
91
- {
92
- "inputs": [],
93
- "name": "EnforcedPause",
94
- "type": "error"
95
- },
96
- {
97
- "inputs": [],
98
- "name": "ExpectedPause",
99
- "type": "error"
100
- },
101
- {
102
- "anonymous": false,
103
- "inputs": [
104
- {
105
- "indexed": true,
106
- "internalType": "address",
107
- "name": "owner",
108
- "type": "address"
109
- },
110
- {
111
- "indexed": true,
112
- "internalType": "address",
113
- "name": "spender",
114
- "type": "address"
115
- },
116
- {
117
- "indexed": false,
118
- "internalType": "uint256",
119
- "name": "value",
120
- "type": "uint256"
121
- }
122
- ],
123
- "name": "Approval",
124
- "type": "event"
125
- },
126
- {
127
- "anonymous": false,
128
- "inputs": [
129
- {
130
- "indexed": false,
131
- "internalType": "address",
132
- "name": "account",
133
- "type": "address"
134
- }
135
- ],
136
- "name": "Paused",
137
- "type": "event"
138
- },
139
- {
140
- "anonymous": false,
141
- "inputs": [
142
- {
143
- "indexed": true,
144
- "internalType": "address",
145
- "name": "from",
146
- "type": "address"
147
- },
148
- {
149
- "indexed": true,
150
- "internalType": "address",
151
- "name": "to",
152
- "type": "address"
153
- },
154
- {
155
- "indexed": false,
156
- "internalType": "uint256",
157
- "name": "value",
158
- "type": "uint256"
159
- }
160
- ],
161
- "name": "Transfer",
162
- "type": "event"
163
- },
164
- {
165
- "anonymous": false,
166
- "inputs": [
167
- {
168
- "indexed": false,
169
- "internalType": "address",
170
- "name": "account",
171
- "type": "address"
172
- }
173
- ],
174
- "name": "Unpaused",
175
- "type": "event"
176
- },
177
- {
178
- "inputs": [
179
- {
180
- "internalType": "address",
181
- "name": "owner",
182
- "type": "address"
183
- },
184
- {
185
- "internalType": "address",
186
- "name": "spender",
187
- "type": "address"
188
- }
189
- ],
190
- "name": "allowance",
191
- "outputs": [
192
- {
193
- "internalType": "uint256",
194
- "name": "",
195
- "type": "uint256"
196
- }
197
- ],
198
- "stateMutability": "view",
199
- "type": "function"
200
- },
201
- {
202
- "inputs": [
203
- {
204
- "internalType": "address",
205
- "name": "spender",
206
- "type": "address"
207
- },
208
- {
209
- "internalType": "uint256",
210
- "name": "value",
211
- "type": "uint256"
212
- }
213
- ],
214
- "name": "approve",
215
- "outputs": [
216
- {
217
- "internalType": "bool",
218
- "name": "",
219
- "type": "bool"
220
- }
221
- ],
222
- "stateMutability": "nonpayable",
223
- "type": "function"
224
- },
225
- {
226
- "inputs": [
227
- {
228
- "internalType": "address",
229
- "name": "account",
230
- "type": "address"
231
- }
232
- ],
233
- "name": "balanceOf",
234
- "outputs": [
235
- {
236
- "internalType": "uint256",
237
- "name": "",
238
- "type": "uint256"
239
- }
240
- ],
241
- "stateMutability": "view",
242
- "type": "function"
243
- },
244
- {
245
- "inputs": [],
246
- "name": "decimals",
247
- "outputs": [
248
- {
249
- "internalType": "uint8",
250
- "name": "",
251
- "type": "uint8"
252
- }
253
- ],
254
- "stateMutability": "view",
255
- "type": "function"
256
- },
257
- {
258
- "inputs": [],
259
- "name": "name",
260
- "outputs": [
261
- {
262
- "internalType": "string",
263
- "name": "",
264
- "type": "string"
265
- }
266
- ],
267
- "stateMutability": "view",
268
- "type": "function"
269
- },
270
- {
271
- "inputs": [],
272
- "name": "paused",
273
- "outputs": [
274
- {
275
- "internalType": "bool",
276
- "name": "",
277
- "type": "bool"
278
- }
279
- ],
280
- "stateMutability": "view",
281
- "type": "function"
282
- },
283
- {
284
- "inputs": [],
285
- "name": "symbol",
286
- "outputs": [
287
- {
288
- "internalType": "string",
289
- "name": "",
290
- "type": "string"
291
- }
292
- ],
293
- "stateMutability": "view",
294
- "type": "function"
295
- },
296
- {
297
- "inputs": [],
298
- "name": "totalSupply",
299
- "outputs": [
300
- {
301
- "internalType": "uint256",
302
- "name": "",
303
- "type": "uint256"
304
- }
305
- ],
306
- "stateMutability": "view",
307
- "type": "function"
308
- },
309
- {
310
- "inputs": [
311
- {
312
- "internalType": "address",
313
- "name": "to",
314
- "type": "address"
315
- },
316
- {
317
- "internalType": "uint256",
318
- "name": "value",
319
- "type": "uint256"
320
- }
321
- ],
322
- "name": "transfer",
323
- "outputs": [
324
- {
325
- "internalType": "bool",
326
- "name": "",
327
- "type": "bool"
328
- }
329
- ],
330
- "stateMutability": "nonpayable",
331
- "type": "function"
332
- },
333
- {
334
- "inputs": [
335
- {
336
- "internalType": "address",
337
- "name": "from",
338
- "type": "address"
339
- },
340
- {
341
- "internalType": "address",
342
- "name": "to",
343
- "type": "address"
344
- },
345
- {
346
- "internalType": "uint256",
347
- "name": "value",
348
- "type": "uint256"
349
- }
350
- ],
351
- "name": "transferFrom",
352
- "outputs": [
353
- {
354
- "internalType": "bool",
355
- "name": "",
356
- "type": "bool"
357
- }
358
- ],
359
- "stateMutability": "nonpayable",
360
- "type": "function"
361
- }
362
- ],
363
- "bytecode": "0x",
364
- "deployedBytecode": "0x",
365
- "linkReferences": {},
366
- "deployedLinkReferences": {},
367
- "devdoc": {
368
- "details": "ERC-20 token with pausable token transfers, minting and burning. Useful for scenarios such as preventing trades until the end of an evaluation period, or having an emergency switch for freezing all token transfers in the event of a large bug. IMPORTANT: This contract does not include public pause and unpause functions. In addition to inheriting this contract, you must define both functions, invoking the {Pausable-_pause} and {Pausable-_unpause} internal functions, with appropriate access control, e.g. using {AccessControl} or {Ownable}. Not doing so will make the contract pause mechanism of the contract unreachable, and thus unusable.",
369
- "errors": {
370
- "ERC20InsufficientAllowance(address,uint256,uint256)": [
371
- {
372
- "details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.",
373
- "params": {
374
- "allowance": "Amount of tokens a `spender` is allowed to operate with.",
375
- "needed": "Minimum amount required to perform a transfer.",
376
- "spender": "Address that may be allowed to operate on tokens without being their owner."
377
- }
378
- }
379
- ],
380
- "ERC20InsufficientBalance(address,uint256,uint256)": [
381
- {
382
- "details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.",
383
- "params": {
384
- "balance": "Current balance for the interacting account.",
385
- "needed": "Minimum amount required to perform a transfer.",
386
- "sender": "Address whose tokens are being transferred."
387
- }
388
- }
389
- ],
390
- "ERC20InvalidApprover(address)": [
391
- {
392
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
393
- "params": {
394
- "approver": "Address initiating an approval operation."
395
- }
396
- }
397
- ],
398
- "ERC20InvalidReceiver(address)": [
399
- {
400
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
401
- "params": {
402
- "receiver": "Address to which tokens are being transferred."
403
- }
404
- }
405
- ],
406
- "ERC20InvalidSender(address)": [
407
- {
408
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
409
- "params": {
410
- "sender": "Address whose tokens are being transferred."
411
- }
412
- }
413
- ],
414
- "ERC20InvalidSpender(address)": [
415
- {
416
- "details": "Indicates a failure with the `spender` to be approved. Used in approvals.",
417
- "params": {
418
- "spender": "Address that may be allowed to operate on tokens without being their owner."
419
- }
420
- }
421
- ],
422
- "EnforcedPause()": [
423
- {
424
- "details": "The operation failed because the contract is paused."
425
- }
426
- ],
427
- "ExpectedPause()": [
428
- {
429
- "details": "The operation failed because the contract is not paused."
430
- }
431
- ]
432
- },
433
- "events": {
434
- "Approval(address,address,uint256)": {
435
- "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
436
- },
437
- "Paused(address)": {
438
- "details": "Emitted when the pause is triggered by `account`."
439
- },
440
- "Transfer(address,address,uint256)": {
441
- "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
442
- },
443
- "Unpaused(address)": {
444
- "details": "Emitted when the pause is lifted by `account`."
445
- }
446
- },
447
- "kind": "dev",
448
- "methods": {
449
- "allowance(address,address)": {
450
- "details": "See {IERC20-allowance}."
451
- },
452
- "approve(address,uint256)": {
453
- "details": "See {IERC20-approve}. NOTE: If `value` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address."
454
- },
455
- "balanceOf(address)": {
456
- "details": "See {IERC20-balanceOf}."
457
- },
458
- "decimals()": {
459
- "details": "Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5.05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the default value returned by this function, unless it's overridden. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}."
460
- },
461
- "name()": {
462
- "details": "Returns the name of the token."
463
- },
464
- "paused()": {
465
- "details": "Returns true if the contract is paused, and false otherwise."
466
- },
467
- "symbol()": {
468
- "details": "Returns the symbol of the token, usually a shorter version of the name."
469
- },
470
- "totalSupply()": {
471
- "details": "See {IERC20-totalSupply}."
472
- },
473
- "transfer(address,uint256)": {
474
- "details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`."
475
- },
476
- "transferFrom(address,address,uint256)": {
477
- "details": "See {IERC20-transferFrom}. Skips emitting an {Approval} event indicating an allowance update. This is not required by the ERC. See {xref-ERC20-_approve-address-address-uint256-bool-}[_approve]. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `value`. - the caller must have allowance for ``from``'s tokens of at least `value`."
478
- }
479
- },
480
- "version": 1
481
- },
482
- "userdoc": {
483
- "kind": "user",
484
- "methods": {},
485
- "version": 1
486
- },
487
- "evm": {
488
- "gasEstimates": null,
489
- "methodIdentifiers": {
490
- "allowance(address,address)": "dd62ed3e",
491
- "approve(address,uint256)": "095ea7b3",
492
- "balanceOf(address)": "70a08231",
493
- "decimals()": "313ce567",
494
- "name()": "06fdde03",
495
- "paused()": "5c975abb",
496
- "symbol()": "95d89b41",
497
- "totalSupply()": "18160ddd",
498
- "transfer(address,uint256)": "a9059cbb",
499
- "transferFrom(address,address,uint256)": "23b872dd"
500
- }
501
- }
502
- }