@cartesi/devnet 2.0.0-alpha.0 → 2.0.0-alpha.10

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 (85) hide show
  1. package/anvil_state.json +1 -0
  2. package/deployments/anvil.json +1 -0
  3. package/deployments/arbitrum.json +1 -0
  4. package/deployments/arbitrumSepolia.json +1 -0
  5. package/deployments/base.json +1 -0
  6. package/deployments/baseSepolia.json +1 -0
  7. package/deployments/mainnet.json +1 -0
  8. package/deployments/optimism.json +1 -0
  9. package/deployments/optimismSepolia.json +1 -0
  10. package/deployments/sepolia.json +1 -0
  11. package/package.json +32 -42
  12. package/LICENSE +0 -202
  13. package/build/anvil_state.json +0 -1
  14. package/deployments/localhost/.chainId +0 -1
  15. package/deployments/localhost/ApplicationFactory.json +0 -227
  16. package/deployments/localhost/AuthorityFactory.json +0 -188
  17. package/deployments/localhost/ERC1155BatchPortal.json +0 -133
  18. package/deployments/localhost/ERC1155SinglePortal.json +0 -132
  19. package/deployments/localhost/ERC20Portal.json +0 -132
  20. package/deployments/localhost/ERC721Portal.json +0 -126
  21. package/deployments/localhost/EtherPortal.json +0 -121
  22. package/deployments/localhost/InputBox.json +0 -213
  23. package/deployments/localhost/QuorumFactory.json +0 -188
  24. package/deployments/localhost/SafeERC20Transfer.json +0 -118
  25. package/deployments/localhost/SelfHostedApplicationFactory.json +0 -227
  26. package/deployments/localhost/TestMultiToken.json +0 -829
  27. package/deployments/localhost/TestNFT.json +0 -891
  28. package/deployments/localhost/TestToken.json +0 -1079
  29. package/dist/deploy/01_token.js +0 -15
  30. package/dist/deploy/02_nft.js +0 -15
  31. package/dist/deploy/03_multitoken.js +0 -15
  32. package/dist/deploy/04_4337.js +0 -342
  33. package/dist/src/aa/constants.d.ts +0 -31
  34. package/dist/src/aa/constants.d.ts.map +0 -1
  35. package/dist/src/aa/constants.js +0 -65
  36. package/dist/src/tasks/deploy-anvil.d.ts +0 -6
  37. package/dist/src/tasks/deploy-anvil.d.ts.map +0 -1
  38. package/dist/src/tasks/deploy-anvil.js +0 -40
  39. package/export/abi/localhost.json +0 -2837
  40. package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +0 -128
  41. package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +0 -137
  42. package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +0 -32
  43. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +0 -133
  44. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +0 -1251
  45. package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +0 -60
  46. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +0 -401
  47. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +0 -84
  48. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +0 -190
  49. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +0 -165
  50. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +0 -197
  51. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +0 -553
  52. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +0 -362
  53. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +0 -156
  54. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +0 -385
  55. package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
  56. package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
  57. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
  58. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
  59. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
  60. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
  61. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
  62. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
  63. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
  64. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
  65. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
  66. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
  67. package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -38
  68. package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
  69. package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
  70. package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
  71. package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
  72. package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -40
  73. package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -62
  74. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
  75. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
  76. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
  77. package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
  78. package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
  79. package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -65
  80. package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -173
  81. package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -36
  82. package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
  83. package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
  84. package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
  85. package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
@@ -1,553 +0,0 @@
1
- {
2
- "contractName": "ERC1155",
3
- "sourceName": "@openzeppelin/contracts/token/ERC1155/ERC1155.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "sender",
10
- "type": "address"
11
- },
12
- {
13
- "internalType": "uint256",
14
- "name": "balance",
15
- "type": "uint256"
16
- },
17
- {
18
- "internalType": "uint256",
19
- "name": "needed",
20
- "type": "uint256"
21
- },
22
- {
23
- "internalType": "uint256",
24
- "name": "tokenId",
25
- "type": "uint256"
26
- }
27
- ],
28
- "name": "ERC1155InsufficientBalance",
29
- "type": "error"
30
- },
31
- {
32
- "inputs": [
33
- {
34
- "internalType": "address",
35
- "name": "approver",
36
- "type": "address"
37
- }
38
- ],
39
- "name": "ERC1155InvalidApprover",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [
44
- {
45
- "internalType": "uint256",
46
- "name": "idsLength",
47
- "type": "uint256"
48
- },
49
- {
50
- "internalType": "uint256",
51
- "name": "valuesLength",
52
- "type": "uint256"
53
- }
54
- ],
55
- "name": "ERC1155InvalidArrayLength",
56
- "type": "error"
57
- },
58
- {
59
- "inputs": [
60
- {
61
- "internalType": "address",
62
- "name": "operator",
63
- "type": "address"
64
- }
65
- ],
66
- "name": "ERC1155InvalidOperator",
67
- "type": "error"
68
- },
69
- {
70
- "inputs": [
71
- {
72
- "internalType": "address",
73
- "name": "receiver",
74
- "type": "address"
75
- }
76
- ],
77
- "name": "ERC1155InvalidReceiver",
78
- "type": "error"
79
- },
80
- {
81
- "inputs": [
82
- {
83
- "internalType": "address",
84
- "name": "sender",
85
- "type": "address"
86
- }
87
- ],
88
- "name": "ERC1155InvalidSender",
89
- "type": "error"
90
- },
91
- {
92
- "inputs": [
93
- {
94
- "internalType": "address",
95
- "name": "operator",
96
- "type": "address"
97
- },
98
- {
99
- "internalType": "address",
100
- "name": "owner",
101
- "type": "address"
102
- }
103
- ],
104
- "name": "ERC1155MissingApprovalForAll",
105
- "type": "error"
106
- },
107
- {
108
- "anonymous": false,
109
- "inputs": [
110
- {
111
- "indexed": true,
112
- "internalType": "address",
113
- "name": "account",
114
- "type": "address"
115
- },
116
- {
117
- "indexed": true,
118
- "internalType": "address",
119
- "name": "operator",
120
- "type": "address"
121
- },
122
- {
123
- "indexed": false,
124
- "internalType": "bool",
125
- "name": "approved",
126
- "type": "bool"
127
- }
128
- ],
129
- "name": "ApprovalForAll",
130
- "type": "event"
131
- },
132
- {
133
- "anonymous": false,
134
- "inputs": [
135
- {
136
- "indexed": true,
137
- "internalType": "address",
138
- "name": "operator",
139
- "type": "address"
140
- },
141
- {
142
- "indexed": true,
143
- "internalType": "address",
144
- "name": "from",
145
- "type": "address"
146
- },
147
- {
148
- "indexed": true,
149
- "internalType": "address",
150
- "name": "to",
151
- "type": "address"
152
- },
153
- {
154
- "indexed": false,
155
- "internalType": "uint256[]",
156
- "name": "ids",
157
- "type": "uint256[]"
158
- },
159
- {
160
- "indexed": false,
161
- "internalType": "uint256[]",
162
- "name": "values",
163
- "type": "uint256[]"
164
- }
165
- ],
166
- "name": "TransferBatch",
167
- "type": "event"
168
- },
169
- {
170
- "anonymous": false,
171
- "inputs": [
172
- {
173
- "indexed": true,
174
- "internalType": "address",
175
- "name": "operator",
176
- "type": "address"
177
- },
178
- {
179
- "indexed": true,
180
- "internalType": "address",
181
- "name": "from",
182
- "type": "address"
183
- },
184
- {
185
- "indexed": true,
186
- "internalType": "address",
187
- "name": "to",
188
- "type": "address"
189
- },
190
- {
191
- "indexed": false,
192
- "internalType": "uint256",
193
- "name": "id",
194
- "type": "uint256"
195
- },
196
- {
197
- "indexed": false,
198
- "internalType": "uint256",
199
- "name": "value",
200
- "type": "uint256"
201
- }
202
- ],
203
- "name": "TransferSingle",
204
- "type": "event"
205
- },
206
- {
207
- "anonymous": false,
208
- "inputs": [
209
- {
210
- "indexed": false,
211
- "internalType": "string",
212
- "name": "value",
213
- "type": "string"
214
- },
215
- {
216
- "indexed": true,
217
- "internalType": "uint256",
218
- "name": "id",
219
- "type": "uint256"
220
- }
221
- ],
222
- "name": "URI",
223
- "type": "event"
224
- },
225
- {
226
- "inputs": [
227
- {
228
- "internalType": "address",
229
- "name": "account",
230
- "type": "address"
231
- },
232
- {
233
- "internalType": "uint256",
234
- "name": "id",
235
- "type": "uint256"
236
- }
237
- ],
238
- "name": "balanceOf",
239
- "outputs": [
240
- {
241
- "internalType": "uint256",
242
- "name": "",
243
- "type": "uint256"
244
- }
245
- ],
246
- "stateMutability": "view",
247
- "type": "function"
248
- },
249
- {
250
- "inputs": [
251
- {
252
- "internalType": "address[]",
253
- "name": "accounts",
254
- "type": "address[]"
255
- },
256
- {
257
- "internalType": "uint256[]",
258
- "name": "ids",
259
- "type": "uint256[]"
260
- }
261
- ],
262
- "name": "balanceOfBatch",
263
- "outputs": [
264
- {
265
- "internalType": "uint256[]",
266
- "name": "",
267
- "type": "uint256[]"
268
- }
269
- ],
270
- "stateMutability": "view",
271
- "type": "function"
272
- },
273
- {
274
- "inputs": [
275
- {
276
- "internalType": "address",
277
- "name": "account",
278
- "type": "address"
279
- },
280
- {
281
- "internalType": "address",
282
- "name": "operator",
283
- "type": "address"
284
- }
285
- ],
286
- "name": "isApprovedForAll",
287
- "outputs": [
288
- {
289
- "internalType": "bool",
290
- "name": "",
291
- "type": "bool"
292
- }
293
- ],
294
- "stateMutability": "view",
295
- "type": "function"
296
- },
297
- {
298
- "inputs": [
299
- {
300
- "internalType": "address",
301
- "name": "from",
302
- "type": "address"
303
- },
304
- {
305
- "internalType": "address",
306
- "name": "to",
307
- "type": "address"
308
- },
309
- {
310
- "internalType": "uint256[]",
311
- "name": "ids",
312
- "type": "uint256[]"
313
- },
314
- {
315
- "internalType": "uint256[]",
316
- "name": "values",
317
- "type": "uint256[]"
318
- },
319
- {
320
- "internalType": "bytes",
321
- "name": "data",
322
- "type": "bytes"
323
- }
324
- ],
325
- "name": "safeBatchTransferFrom",
326
- "outputs": [],
327
- "stateMutability": "nonpayable",
328
- "type": "function"
329
- },
330
- {
331
- "inputs": [
332
- {
333
- "internalType": "address",
334
- "name": "from",
335
- "type": "address"
336
- },
337
- {
338
- "internalType": "address",
339
- "name": "to",
340
- "type": "address"
341
- },
342
- {
343
- "internalType": "uint256",
344
- "name": "id",
345
- "type": "uint256"
346
- },
347
- {
348
- "internalType": "uint256",
349
- "name": "value",
350
- "type": "uint256"
351
- },
352
- {
353
- "internalType": "bytes",
354
- "name": "data",
355
- "type": "bytes"
356
- }
357
- ],
358
- "name": "safeTransferFrom",
359
- "outputs": [],
360
- "stateMutability": "nonpayable",
361
- "type": "function"
362
- },
363
- {
364
- "inputs": [
365
- {
366
- "internalType": "address",
367
- "name": "operator",
368
- "type": "address"
369
- },
370
- {
371
- "internalType": "bool",
372
- "name": "approved",
373
- "type": "bool"
374
- }
375
- ],
376
- "name": "setApprovalForAll",
377
- "outputs": [],
378
- "stateMutability": "nonpayable",
379
- "type": "function"
380
- },
381
- {
382
- "inputs": [
383
- {
384
- "internalType": "bytes4",
385
- "name": "interfaceId",
386
- "type": "bytes4"
387
- }
388
- ],
389
- "name": "supportsInterface",
390
- "outputs": [
391
- {
392
- "internalType": "bool",
393
- "name": "",
394
- "type": "bool"
395
- }
396
- ],
397
- "stateMutability": "view",
398
- "type": "function"
399
- },
400
- {
401
- "inputs": [
402
- {
403
- "internalType": "uint256",
404
- "name": "",
405
- "type": "uint256"
406
- }
407
- ],
408
- "name": "uri",
409
- "outputs": [
410
- {
411
- "internalType": "string",
412
- "name": "",
413
- "type": "string"
414
- }
415
- ],
416
- "stateMutability": "view",
417
- "type": "function"
418
- }
419
- ],
420
- "bytecode": "0x",
421
- "deployedBytecode": "0x",
422
- "linkReferences": {},
423
- "deployedLinkReferences": {},
424
- "devdoc": {
425
- "details": "Implementation of the basic standard multi-token. See https://eips.ethereum.org/EIPS/eip-1155 Originally based on code by Enjin: https://github.com/enjin/erc-1155",
426
- "errors": {
427
- "ERC1155InsufficientBalance(address,uint256,uint256,uint256)": [
428
- {
429
- "details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.",
430
- "params": {
431
- "balance": "Current balance for the interacting account.",
432
- "needed": "Minimum amount required to perform a transfer.",
433
- "sender": "Address whose tokens are being transferred.",
434
- "tokenId": "Identifier number of a token."
435
- }
436
- }
437
- ],
438
- "ERC1155InvalidApprover(address)": [
439
- {
440
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
441
- "params": {
442
- "approver": "Address initiating an approval operation."
443
- }
444
- }
445
- ],
446
- "ERC1155InvalidArrayLength(uint256,uint256)": [
447
- {
448
- "details": "Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. Used in batch transfers.",
449
- "params": {
450
- "idsLength": "Length of the array of token identifiers",
451
- "valuesLength": "Length of the array of token amounts"
452
- }
453
- }
454
- ],
455
- "ERC1155InvalidOperator(address)": [
456
- {
457
- "details": "Indicates a failure with the `operator` to be approved. Used in approvals.",
458
- "params": {
459
- "operator": "Address that may be allowed to operate on tokens without being their owner."
460
- }
461
- }
462
- ],
463
- "ERC1155InvalidReceiver(address)": [
464
- {
465
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
466
- "params": {
467
- "receiver": "Address to which tokens are being transferred."
468
- }
469
- }
470
- ],
471
- "ERC1155InvalidSender(address)": [
472
- {
473
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
474
- "params": {
475
- "sender": "Address whose tokens are being transferred."
476
- }
477
- }
478
- ],
479
- "ERC1155MissingApprovalForAll(address,address)": [
480
- {
481
- "details": "Indicates a failure with the `operator`’s approval. Used in transfers.",
482
- "params": {
483
- "operator": "Address that may be allowed to operate on tokens without being their owner.",
484
- "owner": "Address of the current owner of a token."
485
- }
486
- }
487
- ]
488
- },
489
- "events": {
490
- "ApprovalForAll(address,address,bool)": {
491
- "details": "Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to `approved`."
492
- },
493
- "TransferBatch(address,address,address,uint256[],uint256[])": {
494
- "details": "Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all transfers."
495
- },
496
- "TransferSingle(address,address,address,uint256,uint256)": {
497
- "details": "Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`."
498
- },
499
- "URI(string,uint256)": {
500
- "details": "Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI. If an {URI} event was emitted for `id`, the standard https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value returned by {IERC1155MetadataURI-uri}."
501
- }
502
- },
503
- "kind": "dev",
504
- "methods": {
505
- "balanceOf(address,uint256)": {
506
- "details": "See {IERC1155-balanceOf}."
507
- },
508
- "balanceOfBatch(address[],uint256[])": {
509
- "details": "See {IERC1155-balanceOfBatch}. Requirements: - `accounts` and `ids` must have the same length."
510
- },
511
- "constructor": {
512
- "details": "See {_setURI}."
513
- },
514
- "isApprovedForAll(address,address)": {
515
- "details": "See {IERC1155-isApprovedForAll}."
516
- },
517
- "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {
518
- "details": "See {IERC1155-safeBatchTransferFrom}."
519
- },
520
- "safeTransferFrom(address,address,uint256,uint256,bytes)": {
521
- "details": "See {IERC1155-safeTransferFrom}."
522
- },
523
- "setApprovalForAll(address,bool)": {
524
- "details": "See {IERC1155-setApprovalForAll}."
525
- },
526
- "supportsInterface(bytes4)": {
527
- "details": "See {IERC165-supportsInterface}."
528
- },
529
- "uri(uint256)": {
530
- "details": "See {IERC1155MetadataURI-uri}. This implementation returns the same URI for *all* token types. It relies on the token type ID substitution mechanism https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP]. Clients calling this function must replace the `\\{id\\}` substring with the actual token type ID."
531
- }
532
- },
533
- "version": 1
534
- },
535
- "userdoc": {
536
- "kind": "user",
537
- "methods": {},
538
- "version": 1
539
- },
540
- "evm": {
541
- "gasEstimates": null,
542
- "methodIdentifiers": {
543
- "balanceOf(address,uint256)": "00fdd58e",
544
- "balanceOfBatch(address[],uint256[])": "4e1273f4",
545
- "isApprovedForAll(address,address)": "e985e9c5",
546
- "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": "2eb2c2d6",
547
- "safeTransferFrom(address,address,uint256,uint256,bytes)": "f242432a",
548
- "setApprovalForAll(address,bool)": "a22cb465",
549
- "supportsInterface(bytes4)": "01ffc9a7",
550
- "uri(uint256)": "0e89341c"
551
- }
552
- }
553
- }