@cartesi/devnet 2.0.0-alpha.1 → 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 (90) 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 -1240
  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/ERC1155/utils/ERC1155Utils.sol/ERC1155Utils.json +0 -34
  56. package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +0 -436
  57. package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +0 -242
  58. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +0 -472
  59. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +0 -502
  60. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +0 -695
  61. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +0 -293
  62. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +0 -114
  63. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +0 -595
  64. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +0 -363
  65. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +0 -66
  66. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +0 -630
  67. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +0 -421
  68. package/export/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +0 -33
  69. package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +0 -61
  70. package/export/artifacts/@openzeppelin/contracts/utils/Comparators.sol/Comparators.json +0 -34
  71. package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +0 -24
  72. package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +0 -73
  73. package/export/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +0 -65
  74. package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +0 -103
  75. package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +0 -55
  76. package/export/artifacts/@openzeppelin/contracts/utils/SlotDerivation.sol/SlotDerivation.json +0 -42
  77. package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +0 -41
  78. package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +0 -63
  79. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +0 -84
  80. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +0 -105
  81. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +0 -36
  82. package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +0 -50
  83. package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +0 -50
  84. package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +0 -60
  85. package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +0 -174
  86. package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +0 -37
  87. package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +0 -41
  88. package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +0 -750
  89. package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +0 -779
  90. package/export/artifacts/contracts/TestToken.sol/TestToken.json +0 -963
@@ -1,472 +0,0 @@
1
- {
2
- "contractName": "ERC20Burnable",
3
- "sourceName": "@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.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
- "anonymous": false,
93
- "inputs": [
94
- {
95
- "indexed": true,
96
- "internalType": "address",
97
- "name": "owner",
98
- "type": "address"
99
- },
100
- {
101
- "indexed": true,
102
- "internalType": "address",
103
- "name": "spender",
104
- "type": "address"
105
- },
106
- {
107
- "indexed": false,
108
- "internalType": "uint256",
109
- "name": "value",
110
- "type": "uint256"
111
- }
112
- ],
113
- "name": "Approval",
114
- "type": "event"
115
- },
116
- {
117
- "anonymous": false,
118
- "inputs": [
119
- {
120
- "indexed": true,
121
- "internalType": "address",
122
- "name": "from",
123
- "type": "address"
124
- },
125
- {
126
- "indexed": true,
127
- "internalType": "address",
128
- "name": "to",
129
- "type": "address"
130
- },
131
- {
132
- "indexed": false,
133
- "internalType": "uint256",
134
- "name": "value",
135
- "type": "uint256"
136
- }
137
- ],
138
- "name": "Transfer",
139
- "type": "event"
140
- },
141
- {
142
- "inputs": [
143
- {
144
- "internalType": "address",
145
- "name": "owner",
146
- "type": "address"
147
- },
148
- {
149
- "internalType": "address",
150
- "name": "spender",
151
- "type": "address"
152
- }
153
- ],
154
- "name": "allowance",
155
- "outputs": [
156
- {
157
- "internalType": "uint256",
158
- "name": "",
159
- "type": "uint256"
160
- }
161
- ],
162
- "stateMutability": "view",
163
- "type": "function"
164
- },
165
- {
166
- "inputs": [
167
- {
168
- "internalType": "address",
169
- "name": "spender",
170
- "type": "address"
171
- },
172
- {
173
- "internalType": "uint256",
174
- "name": "value",
175
- "type": "uint256"
176
- }
177
- ],
178
- "name": "approve",
179
- "outputs": [
180
- {
181
- "internalType": "bool",
182
- "name": "",
183
- "type": "bool"
184
- }
185
- ],
186
- "stateMutability": "nonpayable",
187
- "type": "function"
188
- },
189
- {
190
- "inputs": [
191
- {
192
- "internalType": "address",
193
- "name": "account",
194
- "type": "address"
195
- }
196
- ],
197
- "name": "balanceOf",
198
- "outputs": [
199
- {
200
- "internalType": "uint256",
201
- "name": "",
202
- "type": "uint256"
203
- }
204
- ],
205
- "stateMutability": "view",
206
- "type": "function"
207
- },
208
- {
209
- "inputs": [
210
- {
211
- "internalType": "uint256",
212
- "name": "value",
213
- "type": "uint256"
214
- }
215
- ],
216
- "name": "burn",
217
- "outputs": [],
218
- "stateMutability": "nonpayable",
219
- "type": "function"
220
- },
221
- {
222
- "inputs": [
223
- {
224
- "internalType": "address",
225
- "name": "account",
226
- "type": "address"
227
- },
228
- {
229
- "internalType": "uint256",
230
- "name": "value",
231
- "type": "uint256"
232
- }
233
- ],
234
- "name": "burnFrom",
235
- "outputs": [],
236
- "stateMutability": "nonpayable",
237
- "type": "function"
238
- },
239
- {
240
- "inputs": [],
241
- "name": "decimals",
242
- "outputs": [
243
- {
244
- "internalType": "uint8",
245
- "name": "",
246
- "type": "uint8"
247
- }
248
- ],
249
- "stateMutability": "view",
250
- "type": "function"
251
- },
252
- {
253
- "inputs": [],
254
- "name": "name",
255
- "outputs": [
256
- {
257
- "internalType": "string",
258
- "name": "",
259
- "type": "string"
260
- }
261
- ],
262
- "stateMutability": "view",
263
- "type": "function"
264
- },
265
- {
266
- "inputs": [],
267
- "name": "symbol",
268
- "outputs": [
269
- {
270
- "internalType": "string",
271
- "name": "",
272
- "type": "string"
273
- }
274
- ],
275
- "stateMutability": "view",
276
- "type": "function"
277
- },
278
- {
279
- "inputs": [],
280
- "name": "totalSupply",
281
- "outputs": [
282
- {
283
- "internalType": "uint256",
284
- "name": "",
285
- "type": "uint256"
286
- }
287
- ],
288
- "stateMutability": "view",
289
- "type": "function"
290
- },
291
- {
292
- "inputs": [
293
- {
294
- "internalType": "address",
295
- "name": "to",
296
- "type": "address"
297
- },
298
- {
299
- "internalType": "uint256",
300
- "name": "value",
301
- "type": "uint256"
302
- }
303
- ],
304
- "name": "transfer",
305
- "outputs": [
306
- {
307
- "internalType": "bool",
308
- "name": "",
309
- "type": "bool"
310
- }
311
- ],
312
- "stateMutability": "nonpayable",
313
- "type": "function"
314
- },
315
- {
316
- "inputs": [
317
- {
318
- "internalType": "address",
319
- "name": "from",
320
- "type": "address"
321
- },
322
- {
323
- "internalType": "address",
324
- "name": "to",
325
- "type": "address"
326
- },
327
- {
328
- "internalType": "uint256",
329
- "name": "value",
330
- "type": "uint256"
331
- }
332
- ],
333
- "name": "transferFrom",
334
- "outputs": [
335
- {
336
- "internalType": "bool",
337
- "name": "",
338
- "type": "bool"
339
- }
340
- ],
341
- "stateMutability": "nonpayable",
342
- "type": "function"
343
- }
344
- ],
345
- "bytecode": "0x",
346
- "deployedBytecode": "0x",
347
- "linkReferences": {},
348
- "deployedLinkReferences": {},
349
- "devdoc": {
350
- "details": "Extension of {ERC20} that allows token holders to destroy both their own tokens and those that they have an allowance for, in a way that can be recognized off-chain (via event analysis).",
351
- "errors": {
352
- "ERC20InsufficientAllowance(address,uint256,uint256)": [
353
- {
354
- "details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.",
355
- "params": {
356
- "allowance": "Amount of tokens a `spender` is allowed to operate with.",
357
- "needed": "Minimum amount required to perform a transfer.",
358
- "spender": "Address that may be allowed to operate on tokens without being their owner."
359
- }
360
- }
361
- ],
362
- "ERC20InsufficientBalance(address,uint256,uint256)": [
363
- {
364
- "details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.",
365
- "params": {
366
- "balance": "Current balance for the interacting account.",
367
- "needed": "Minimum amount required to perform a transfer.",
368
- "sender": "Address whose tokens are being transferred."
369
- }
370
- }
371
- ],
372
- "ERC20InvalidApprover(address)": [
373
- {
374
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
375
- "params": {
376
- "approver": "Address initiating an approval operation."
377
- }
378
- }
379
- ],
380
- "ERC20InvalidReceiver(address)": [
381
- {
382
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
383
- "params": {
384
- "receiver": "Address to which tokens are being transferred."
385
- }
386
- }
387
- ],
388
- "ERC20InvalidSender(address)": [
389
- {
390
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
391
- "params": {
392
- "sender": "Address whose tokens are being transferred."
393
- }
394
- }
395
- ],
396
- "ERC20InvalidSpender(address)": [
397
- {
398
- "details": "Indicates a failure with the `spender` to be approved. Used in approvals.",
399
- "params": {
400
- "spender": "Address that may be allowed to operate on tokens without being their owner."
401
- }
402
- }
403
- ]
404
- },
405
- "events": {
406
- "Approval(address,address,uint256)": {
407
- "details": "Emitted when the allowance of a `spender` for an `owner` is set by a call to {approve}. `value` is the new allowance."
408
- },
409
- "Transfer(address,address,uint256)": {
410
- "details": "Emitted when `value` tokens are moved from one account (`from`) to another (`to`). Note that `value` may be zero."
411
- }
412
- },
413
- "kind": "dev",
414
- "methods": {
415
- "allowance(address,address)": {
416
- "details": "See {IERC20-allowance}."
417
- },
418
- "approve(address,uint256)": {
419
- "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."
420
- },
421
- "balanceOf(address)": {
422
- "details": "See {IERC20-balanceOf}."
423
- },
424
- "burn(uint256)": {
425
- "details": "Destroys a `value` amount of tokens from the caller. See {ERC20-_burn}."
426
- },
427
- "burnFrom(address,uint256)": {
428
- "details": "Destroys a `value` amount of tokens from `account`, deducting from the caller's allowance. See {ERC20-_burn} and {ERC20-allowance}. Requirements: - the caller must have allowance for ``accounts``'s tokens of at least `value`."
429
- },
430
- "decimals()": {
431
- "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}."
432
- },
433
- "name()": {
434
- "details": "Returns the name of the token."
435
- },
436
- "symbol()": {
437
- "details": "Returns the symbol of the token, usually a shorter version of the name."
438
- },
439
- "totalSupply()": {
440
- "details": "See {IERC20-totalSupply}."
441
- },
442
- "transfer(address,uint256)": {
443
- "details": "See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `value`."
444
- },
445
- "transferFrom(address,address,uint256)": {
446
- "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`."
447
- }
448
- },
449
- "version": 1
450
- },
451
- "userdoc": {
452
- "kind": "user",
453
- "methods": {},
454
- "version": 1
455
- },
456
- "evm": {
457
- "gasEstimates": null,
458
- "methodIdentifiers": {
459
- "allowance(address,address)": "dd62ed3e",
460
- "approve(address,uint256)": "095ea7b3",
461
- "balanceOf(address)": "70a08231",
462
- "burn(uint256)": "42966c68",
463
- "burnFrom(address,uint256)": "79cc6790",
464
- "decimals()": "313ce567",
465
- "name()": "06fdde03",
466
- "symbol()": "95d89b41",
467
- "totalSupply()": "18160ddd",
468
- "transfer(address,uint256)": "a9059cbb",
469
- "transferFrom(address,address,uint256)": "23b872dd"
470
- }
471
- }
472
- }