@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
@@ -0,0 +1,585 @@
1
+ {
2
+ "address": "0x3e8cFeDF4F1e4c4fc7337F3AE4E80438d1A51080",
3
+ "abi": [
4
+ {
5
+ "type": "constructor",
6
+ "inputs": [
7
+ {
8
+ "name": "initialOwner",
9
+ "type": "address",
10
+ "internalType": "address"
11
+ }
12
+ ],
13
+ "stateMutability": "nonpayable"
14
+ },
15
+ {
16
+ "type": "function",
17
+ "name": "balanceOf",
18
+ "inputs": [
19
+ {
20
+ "name": "account",
21
+ "type": "address",
22
+ "internalType": "address"
23
+ },
24
+ {
25
+ "name": "id",
26
+ "type": "uint256",
27
+ "internalType": "uint256"
28
+ }
29
+ ],
30
+ "outputs": [
31
+ {
32
+ "name": "",
33
+ "type": "uint256",
34
+ "internalType": "uint256"
35
+ }
36
+ ],
37
+ "stateMutability": "view"
38
+ },
39
+ {
40
+ "type": "function",
41
+ "name": "balanceOfBatch",
42
+ "inputs": [
43
+ {
44
+ "name": "accounts",
45
+ "type": "address[]",
46
+ "internalType": "address[]"
47
+ },
48
+ {
49
+ "name": "ids",
50
+ "type": "uint256[]",
51
+ "internalType": "uint256[]"
52
+ }
53
+ ],
54
+ "outputs": [
55
+ {
56
+ "name": "",
57
+ "type": "uint256[]",
58
+ "internalType": "uint256[]"
59
+ }
60
+ ],
61
+ "stateMutability": "view"
62
+ },
63
+ {
64
+ "type": "function",
65
+ "name": "isApprovedForAll",
66
+ "inputs": [
67
+ {
68
+ "name": "account",
69
+ "type": "address",
70
+ "internalType": "address"
71
+ },
72
+ {
73
+ "name": "operator",
74
+ "type": "address",
75
+ "internalType": "address"
76
+ }
77
+ ],
78
+ "outputs": [
79
+ {
80
+ "name": "",
81
+ "type": "bool",
82
+ "internalType": "bool"
83
+ }
84
+ ],
85
+ "stateMutability": "view"
86
+ },
87
+ {
88
+ "type": "function",
89
+ "name": "mint",
90
+ "inputs": [
91
+ {
92
+ "name": "account",
93
+ "type": "address",
94
+ "internalType": "address"
95
+ },
96
+ {
97
+ "name": "id",
98
+ "type": "uint256",
99
+ "internalType": "uint256"
100
+ },
101
+ {
102
+ "name": "amount",
103
+ "type": "uint256",
104
+ "internalType": "uint256"
105
+ },
106
+ {
107
+ "name": "data",
108
+ "type": "bytes",
109
+ "internalType": "bytes"
110
+ }
111
+ ],
112
+ "outputs": [],
113
+ "stateMutability": "nonpayable"
114
+ },
115
+ {
116
+ "type": "function",
117
+ "name": "mintBatch",
118
+ "inputs": [
119
+ {
120
+ "name": "to",
121
+ "type": "address",
122
+ "internalType": "address"
123
+ },
124
+ {
125
+ "name": "ids",
126
+ "type": "uint256[]",
127
+ "internalType": "uint256[]"
128
+ },
129
+ {
130
+ "name": "amounts",
131
+ "type": "uint256[]",
132
+ "internalType": "uint256[]"
133
+ },
134
+ {
135
+ "name": "data",
136
+ "type": "bytes",
137
+ "internalType": "bytes"
138
+ }
139
+ ],
140
+ "outputs": [],
141
+ "stateMutability": "nonpayable"
142
+ },
143
+ {
144
+ "type": "function",
145
+ "name": "owner",
146
+ "inputs": [],
147
+ "outputs": [
148
+ {
149
+ "name": "",
150
+ "type": "address",
151
+ "internalType": "address"
152
+ }
153
+ ],
154
+ "stateMutability": "view"
155
+ },
156
+ {
157
+ "type": "function",
158
+ "name": "renounceOwnership",
159
+ "inputs": [],
160
+ "outputs": [],
161
+ "stateMutability": "nonpayable"
162
+ },
163
+ {
164
+ "type": "function",
165
+ "name": "safeBatchTransferFrom",
166
+ "inputs": [
167
+ {
168
+ "name": "from",
169
+ "type": "address",
170
+ "internalType": "address"
171
+ },
172
+ {
173
+ "name": "to",
174
+ "type": "address",
175
+ "internalType": "address"
176
+ },
177
+ {
178
+ "name": "ids",
179
+ "type": "uint256[]",
180
+ "internalType": "uint256[]"
181
+ },
182
+ {
183
+ "name": "values",
184
+ "type": "uint256[]",
185
+ "internalType": "uint256[]"
186
+ },
187
+ {
188
+ "name": "data",
189
+ "type": "bytes",
190
+ "internalType": "bytes"
191
+ }
192
+ ],
193
+ "outputs": [],
194
+ "stateMutability": "nonpayable"
195
+ },
196
+ {
197
+ "type": "function",
198
+ "name": "safeTransferFrom",
199
+ "inputs": [
200
+ {
201
+ "name": "from",
202
+ "type": "address",
203
+ "internalType": "address"
204
+ },
205
+ {
206
+ "name": "to",
207
+ "type": "address",
208
+ "internalType": "address"
209
+ },
210
+ {
211
+ "name": "id",
212
+ "type": "uint256",
213
+ "internalType": "uint256"
214
+ },
215
+ {
216
+ "name": "value",
217
+ "type": "uint256",
218
+ "internalType": "uint256"
219
+ },
220
+ {
221
+ "name": "data",
222
+ "type": "bytes",
223
+ "internalType": "bytes"
224
+ }
225
+ ],
226
+ "outputs": [],
227
+ "stateMutability": "nonpayable"
228
+ },
229
+ {
230
+ "type": "function",
231
+ "name": "setApprovalForAll",
232
+ "inputs": [
233
+ {
234
+ "name": "operator",
235
+ "type": "address",
236
+ "internalType": "address"
237
+ },
238
+ {
239
+ "name": "approved",
240
+ "type": "bool",
241
+ "internalType": "bool"
242
+ }
243
+ ],
244
+ "outputs": [],
245
+ "stateMutability": "nonpayable"
246
+ },
247
+ {
248
+ "type": "function",
249
+ "name": "setURI",
250
+ "inputs": [
251
+ {
252
+ "name": "newuri",
253
+ "type": "string",
254
+ "internalType": "string"
255
+ }
256
+ ],
257
+ "outputs": [],
258
+ "stateMutability": "nonpayable"
259
+ },
260
+ {
261
+ "type": "function",
262
+ "name": "supportsInterface",
263
+ "inputs": [
264
+ {
265
+ "name": "interfaceId",
266
+ "type": "bytes4",
267
+ "internalType": "bytes4"
268
+ }
269
+ ],
270
+ "outputs": [
271
+ {
272
+ "name": "",
273
+ "type": "bool",
274
+ "internalType": "bool"
275
+ }
276
+ ],
277
+ "stateMutability": "view"
278
+ },
279
+ {
280
+ "type": "function",
281
+ "name": "transferOwnership",
282
+ "inputs": [
283
+ {
284
+ "name": "newOwner",
285
+ "type": "address",
286
+ "internalType": "address"
287
+ }
288
+ ],
289
+ "outputs": [],
290
+ "stateMutability": "nonpayable"
291
+ },
292
+ {
293
+ "type": "function",
294
+ "name": "uri",
295
+ "inputs": [
296
+ {
297
+ "name": "",
298
+ "type": "uint256",
299
+ "internalType": "uint256"
300
+ }
301
+ ],
302
+ "outputs": [
303
+ {
304
+ "name": "",
305
+ "type": "string",
306
+ "internalType": "string"
307
+ }
308
+ ],
309
+ "stateMutability": "view"
310
+ },
311
+ {
312
+ "type": "event",
313
+ "name": "ApprovalForAll",
314
+ "inputs": [
315
+ {
316
+ "name": "account",
317
+ "type": "address",
318
+ "indexed": true,
319
+ "internalType": "address"
320
+ },
321
+ {
322
+ "name": "operator",
323
+ "type": "address",
324
+ "indexed": true,
325
+ "internalType": "address"
326
+ },
327
+ {
328
+ "name": "approved",
329
+ "type": "bool",
330
+ "indexed": false,
331
+ "internalType": "bool"
332
+ }
333
+ ],
334
+ "anonymous": false
335
+ },
336
+ {
337
+ "type": "event",
338
+ "name": "OwnershipTransferred",
339
+ "inputs": [
340
+ {
341
+ "name": "previousOwner",
342
+ "type": "address",
343
+ "indexed": true,
344
+ "internalType": "address"
345
+ },
346
+ {
347
+ "name": "newOwner",
348
+ "type": "address",
349
+ "indexed": true,
350
+ "internalType": "address"
351
+ }
352
+ ],
353
+ "anonymous": false
354
+ },
355
+ {
356
+ "type": "event",
357
+ "name": "TransferBatch",
358
+ "inputs": [
359
+ {
360
+ "name": "operator",
361
+ "type": "address",
362
+ "indexed": true,
363
+ "internalType": "address"
364
+ },
365
+ {
366
+ "name": "from",
367
+ "type": "address",
368
+ "indexed": true,
369
+ "internalType": "address"
370
+ },
371
+ {
372
+ "name": "to",
373
+ "type": "address",
374
+ "indexed": true,
375
+ "internalType": "address"
376
+ },
377
+ {
378
+ "name": "ids",
379
+ "type": "uint256[]",
380
+ "indexed": false,
381
+ "internalType": "uint256[]"
382
+ },
383
+ {
384
+ "name": "values",
385
+ "type": "uint256[]",
386
+ "indexed": false,
387
+ "internalType": "uint256[]"
388
+ }
389
+ ],
390
+ "anonymous": false
391
+ },
392
+ {
393
+ "type": "event",
394
+ "name": "TransferSingle",
395
+ "inputs": [
396
+ {
397
+ "name": "operator",
398
+ "type": "address",
399
+ "indexed": true,
400
+ "internalType": "address"
401
+ },
402
+ {
403
+ "name": "from",
404
+ "type": "address",
405
+ "indexed": true,
406
+ "internalType": "address"
407
+ },
408
+ {
409
+ "name": "to",
410
+ "type": "address",
411
+ "indexed": true,
412
+ "internalType": "address"
413
+ },
414
+ {
415
+ "name": "id",
416
+ "type": "uint256",
417
+ "indexed": false,
418
+ "internalType": "uint256"
419
+ },
420
+ {
421
+ "name": "value",
422
+ "type": "uint256",
423
+ "indexed": false,
424
+ "internalType": "uint256"
425
+ }
426
+ ],
427
+ "anonymous": false
428
+ },
429
+ {
430
+ "type": "event",
431
+ "name": "URI",
432
+ "inputs": [
433
+ {
434
+ "name": "value",
435
+ "type": "string",
436
+ "indexed": false,
437
+ "internalType": "string"
438
+ },
439
+ {
440
+ "name": "id",
441
+ "type": "uint256",
442
+ "indexed": true,
443
+ "internalType": "uint256"
444
+ }
445
+ ],
446
+ "anonymous": false
447
+ },
448
+ {
449
+ "type": "error",
450
+ "name": "ERC1155InsufficientBalance",
451
+ "inputs": [
452
+ {
453
+ "name": "sender",
454
+ "type": "address",
455
+ "internalType": "address"
456
+ },
457
+ {
458
+ "name": "balance",
459
+ "type": "uint256",
460
+ "internalType": "uint256"
461
+ },
462
+ {
463
+ "name": "needed",
464
+ "type": "uint256",
465
+ "internalType": "uint256"
466
+ },
467
+ {
468
+ "name": "tokenId",
469
+ "type": "uint256",
470
+ "internalType": "uint256"
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ "type": "error",
476
+ "name": "ERC1155InvalidApprover",
477
+ "inputs": [
478
+ {
479
+ "name": "approver",
480
+ "type": "address",
481
+ "internalType": "address"
482
+ }
483
+ ]
484
+ },
485
+ {
486
+ "type": "error",
487
+ "name": "ERC1155InvalidArrayLength",
488
+ "inputs": [
489
+ {
490
+ "name": "idsLength",
491
+ "type": "uint256",
492
+ "internalType": "uint256"
493
+ },
494
+ {
495
+ "name": "valuesLength",
496
+ "type": "uint256",
497
+ "internalType": "uint256"
498
+ }
499
+ ]
500
+ },
501
+ {
502
+ "type": "error",
503
+ "name": "ERC1155InvalidOperator",
504
+ "inputs": [
505
+ {
506
+ "name": "operator",
507
+ "type": "address",
508
+ "internalType": "address"
509
+ }
510
+ ]
511
+ },
512
+ {
513
+ "type": "error",
514
+ "name": "ERC1155InvalidReceiver",
515
+ "inputs": [
516
+ {
517
+ "name": "receiver",
518
+ "type": "address",
519
+ "internalType": "address"
520
+ }
521
+ ]
522
+ },
523
+ {
524
+ "type": "error",
525
+ "name": "ERC1155InvalidSender",
526
+ "inputs": [
527
+ {
528
+ "name": "sender",
529
+ "type": "address",
530
+ "internalType": "address"
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "type": "error",
536
+ "name": "ERC1155MissingApprovalForAll",
537
+ "inputs": [
538
+ {
539
+ "name": "operator",
540
+ "type": "address",
541
+ "internalType": "address"
542
+ },
543
+ {
544
+ "name": "owner",
545
+ "type": "address",
546
+ "internalType": "address"
547
+ }
548
+ ]
549
+ },
550
+ {
551
+ "type": "error",
552
+ "name": "OwnableInvalidOwner",
553
+ "inputs": [
554
+ {
555
+ "name": "owner",
556
+ "type": "address",
557
+ "internalType": "address"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "type": "error",
563
+ "name": "OwnableUnauthorizedAccount",
564
+ "inputs": [
565
+ {
566
+ "name": "account",
567
+ "type": "address",
568
+ "internalType": "address"
569
+ }
570
+ ]
571
+ }
572
+ ],
573
+ "constructorArgs": [
574
+ "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"
575
+ ],
576
+ "linkedLibraries": {},
577
+ "deployTxnHash": "0x80bc135359778b918b7e2b5eb11ad35622048a8d034e0b0e708033a893539804",
578
+ "deployTxnBlockNumber": "2",
579
+ "deployTimestamp": "1742583967",
580
+ "sourceName": "src/TestMultiToken.sol",
581
+ "contractName": "TestMultiToken",
582
+ "deployedOn": "deploy.TestMultiToken",
583
+ "gasUsed": 1258280,
584
+ "gasCost": "1875000000"
585
+ }