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