@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,385 +0,0 @@
1
- {
2
- "contractName": "IERC1155MetadataURI",
3
- "sourceName": "@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol",
4
- "abi": [
5
- {
6
- "anonymous": false,
7
- "inputs": [
8
- {
9
- "indexed": true,
10
- "internalType": "address",
11
- "name": "account",
12
- "type": "address"
13
- },
14
- {
15
- "indexed": true,
16
- "internalType": "address",
17
- "name": "operator",
18
- "type": "address"
19
- },
20
- {
21
- "indexed": false,
22
- "internalType": "bool",
23
- "name": "approved",
24
- "type": "bool"
25
- }
26
- ],
27
- "name": "ApprovalForAll",
28
- "type": "event"
29
- },
30
- {
31
- "anonymous": false,
32
- "inputs": [
33
- {
34
- "indexed": true,
35
- "internalType": "address",
36
- "name": "operator",
37
- "type": "address"
38
- },
39
- {
40
- "indexed": true,
41
- "internalType": "address",
42
- "name": "from",
43
- "type": "address"
44
- },
45
- {
46
- "indexed": true,
47
- "internalType": "address",
48
- "name": "to",
49
- "type": "address"
50
- },
51
- {
52
- "indexed": false,
53
- "internalType": "uint256[]",
54
- "name": "ids",
55
- "type": "uint256[]"
56
- },
57
- {
58
- "indexed": false,
59
- "internalType": "uint256[]",
60
- "name": "values",
61
- "type": "uint256[]"
62
- }
63
- ],
64
- "name": "TransferBatch",
65
- "type": "event"
66
- },
67
- {
68
- "anonymous": false,
69
- "inputs": [
70
- {
71
- "indexed": true,
72
- "internalType": "address",
73
- "name": "operator",
74
- "type": "address"
75
- },
76
- {
77
- "indexed": true,
78
- "internalType": "address",
79
- "name": "from",
80
- "type": "address"
81
- },
82
- {
83
- "indexed": true,
84
- "internalType": "address",
85
- "name": "to",
86
- "type": "address"
87
- },
88
- {
89
- "indexed": false,
90
- "internalType": "uint256",
91
- "name": "id",
92
- "type": "uint256"
93
- },
94
- {
95
- "indexed": false,
96
- "internalType": "uint256",
97
- "name": "value",
98
- "type": "uint256"
99
- }
100
- ],
101
- "name": "TransferSingle",
102
- "type": "event"
103
- },
104
- {
105
- "anonymous": false,
106
- "inputs": [
107
- {
108
- "indexed": false,
109
- "internalType": "string",
110
- "name": "value",
111
- "type": "string"
112
- },
113
- {
114
- "indexed": true,
115
- "internalType": "uint256",
116
- "name": "id",
117
- "type": "uint256"
118
- }
119
- ],
120
- "name": "URI",
121
- "type": "event"
122
- },
123
- {
124
- "inputs": [
125
- {
126
- "internalType": "address",
127
- "name": "account",
128
- "type": "address"
129
- },
130
- {
131
- "internalType": "uint256",
132
- "name": "id",
133
- "type": "uint256"
134
- }
135
- ],
136
- "name": "balanceOf",
137
- "outputs": [
138
- {
139
- "internalType": "uint256",
140
- "name": "",
141
- "type": "uint256"
142
- }
143
- ],
144
- "stateMutability": "view",
145
- "type": "function"
146
- },
147
- {
148
- "inputs": [
149
- {
150
- "internalType": "address[]",
151
- "name": "accounts",
152
- "type": "address[]"
153
- },
154
- {
155
- "internalType": "uint256[]",
156
- "name": "ids",
157
- "type": "uint256[]"
158
- }
159
- ],
160
- "name": "balanceOfBatch",
161
- "outputs": [
162
- {
163
- "internalType": "uint256[]",
164
- "name": "",
165
- "type": "uint256[]"
166
- }
167
- ],
168
- "stateMutability": "view",
169
- "type": "function"
170
- },
171
- {
172
- "inputs": [
173
- {
174
- "internalType": "address",
175
- "name": "account",
176
- "type": "address"
177
- },
178
- {
179
- "internalType": "address",
180
- "name": "operator",
181
- "type": "address"
182
- }
183
- ],
184
- "name": "isApprovedForAll",
185
- "outputs": [
186
- {
187
- "internalType": "bool",
188
- "name": "",
189
- "type": "bool"
190
- }
191
- ],
192
- "stateMutability": "view",
193
- "type": "function"
194
- },
195
- {
196
- "inputs": [
197
- {
198
- "internalType": "address",
199
- "name": "from",
200
- "type": "address"
201
- },
202
- {
203
- "internalType": "address",
204
- "name": "to",
205
- "type": "address"
206
- },
207
- {
208
- "internalType": "uint256[]",
209
- "name": "ids",
210
- "type": "uint256[]"
211
- },
212
- {
213
- "internalType": "uint256[]",
214
- "name": "values",
215
- "type": "uint256[]"
216
- },
217
- {
218
- "internalType": "bytes",
219
- "name": "data",
220
- "type": "bytes"
221
- }
222
- ],
223
- "name": "safeBatchTransferFrom",
224
- "outputs": [],
225
- "stateMutability": "nonpayable",
226
- "type": "function"
227
- },
228
- {
229
- "inputs": [
230
- {
231
- "internalType": "address",
232
- "name": "from",
233
- "type": "address"
234
- },
235
- {
236
- "internalType": "address",
237
- "name": "to",
238
- "type": "address"
239
- },
240
- {
241
- "internalType": "uint256",
242
- "name": "id",
243
- "type": "uint256"
244
- },
245
- {
246
- "internalType": "uint256",
247
- "name": "value",
248
- "type": "uint256"
249
- },
250
- {
251
- "internalType": "bytes",
252
- "name": "data",
253
- "type": "bytes"
254
- }
255
- ],
256
- "name": "safeTransferFrom",
257
- "outputs": [],
258
- "stateMutability": "nonpayable",
259
- "type": "function"
260
- },
261
- {
262
- "inputs": [
263
- {
264
- "internalType": "address",
265
- "name": "operator",
266
- "type": "address"
267
- },
268
- {
269
- "internalType": "bool",
270
- "name": "approved",
271
- "type": "bool"
272
- }
273
- ],
274
- "name": "setApprovalForAll",
275
- "outputs": [],
276
- "stateMutability": "nonpayable",
277
- "type": "function"
278
- },
279
- {
280
- "inputs": [
281
- {
282
- "internalType": "bytes4",
283
- "name": "interfaceId",
284
- "type": "bytes4"
285
- }
286
- ],
287
- "name": "supportsInterface",
288
- "outputs": [
289
- {
290
- "internalType": "bool",
291
- "name": "",
292
- "type": "bool"
293
- }
294
- ],
295
- "stateMutability": "view",
296
- "type": "function"
297
- },
298
- {
299
- "inputs": [
300
- {
301
- "internalType": "uint256",
302
- "name": "id",
303
- "type": "uint256"
304
- }
305
- ],
306
- "name": "uri",
307
- "outputs": [
308
- {
309
- "internalType": "string",
310
- "name": "",
311
- "type": "string"
312
- }
313
- ],
314
- "stateMutability": "view",
315
- "type": "function"
316
- }
317
- ],
318
- "bytecode": "0x",
319
- "deployedBytecode": "0x",
320
- "linkReferences": {},
321
- "deployedLinkReferences": {},
322
- "devdoc": {
323
- "details": "Interface of the optional ERC1155MetadataExtension interface, as defined in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].",
324
- "events": {
325
- "ApprovalForAll(address,address,bool)": {
326
- "details": "Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to `approved`."
327
- },
328
- "TransferBatch(address,address,address,uint256[],uint256[])": {
329
- "details": "Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all transfers."
330
- },
331
- "TransferSingle(address,address,address,uint256,uint256)": {
332
- "details": "Emitted when `value` amount of tokens of type `id` are transferred from `from` to `to` by `operator`."
333
- },
334
- "URI(string,uint256)": {
335
- "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}."
336
- }
337
- },
338
- "kind": "dev",
339
- "methods": {
340
- "balanceOf(address,uint256)": {
341
- "details": "Returns the value of tokens of token type `id` owned by `account`. Requirements: - `account` cannot be the zero address."
342
- },
343
- "balanceOfBatch(address[],uint256[])": {
344
- "details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}. Requirements: - `accounts` and `ids` must have the same length."
345
- },
346
- "isApprovedForAll(address,address)": {
347
- "details": "Returns true if `operator` is approved to transfer ``account``'s tokens. See {setApprovalForAll}."
348
- },
349
- "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": {
350
- "details": "xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}. WARNING: This function can potentially allow a reentrancy attack when transferring tokens to an untrusted contract, when invoking {onERC1155BatchReceived} on the receiver. Ensure to follow the checks-effects-interactions pattern and consider employing reentrancy guards when interacting with untrusted contracts. Emits either a {TransferSingle} or a {TransferBatch} event, depending on the length of the array arguments. Requirements: - `ids` and `values` must have the same length. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the acceptance magic value."
351
- },
352
- "safeTransferFrom(address,address,uint256,uint256,bytes)": {
353
- "details": "Transfers a `value` amount of tokens of type `id` from `from` to `to`. WARNING: This function can potentially allow a reentrancy attack when transferring tokens to an untrusted contract, when invoking {onERC1155Received} on the receiver. Ensure to follow the checks-effects-interactions pattern and consider employing reentrancy guards when interacting with untrusted contracts. Emits a {TransferSingle} event. Requirements: - `to` cannot be the zero address. - If the caller is not `from`, it must have been approved to spend ``from``'s tokens via {setApprovalForAll}. - `from` must have a balance of tokens of type `id` of at least `value` amount. - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the acceptance magic value."
354
- },
355
- "setApprovalForAll(address,bool)": {
356
- "details": "Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`, Emits an {ApprovalForAll} event. Requirements: - `operator` cannot be the caller."
357
- },
358
- "supportsInterface(bytes4)": {
359
- "details": "Returns true if this contract implements the interface defined by `interfaceId`. See the corresponding https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
360
- },
361
- "uri(uint256)": {
362
- "details": "Returns the URI for token type `id`. If the `\\{id\\}` substring is present in the URI, it must be replaced by clients with the actual token type ID."
363
- }
364
- },
365
- "version": 1
366
- },
367
- "userdoc": {
368
- "kind": "user",
369
- "methods": {},
370
- "version": 1
371
- },
372
- "evm": {
373
- "gasEstimates": null,
374
- "methodIdentifiers": {
375
- "balanceOf(address,uint256)": "00fdd58e",
376
- "balanceOfBatch(address[],uint256[])": "4e1273f4",
377
- "isApprovedForAll(address,address)": "e985e9c5",
378
- "safeBatchTransferFrom(address,address,uint256[],uint256[],bytes)": "2eb2c2d6",
379
- "safeTransferFrom(address,address,uint256,uint256,bytes)": "f242432a",
380
- "setApprovalForAll(address,bool)": "a22cb465",
381
- "supportsInterface(bytes4)": "01ffc9a7",
382
- "uri(uint256)": "0e89341c"
383
- }
384
- }
385
- }