@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
@@ -1,363 +0,0 @@
1
- {
2
- "contractName": "IERC721",
3
- "sourceName": "@openzeppelin/contracts/token/ERC721/IERC721.sol",
4
- "abi": [
5
- {
6
- "anonymous": false,
7
- "inputs": [
8
- {
9
- "indexed": true,
10
- "internalType": "address",
11
- "name": "owner",
12
- "type": "address"
13
- },
14
- {
15
- "indexed": true,
16
- "internalType": "address",
17
- "name": "approved",
18
- "type": "address"
19
- },
20
- {
21
- "indexed": true,
22
- "internalType": "uint256",
23
- "name": "tokenId",
24
- "type": "uint256"
25
- }
26
- ],
27
- "name": "Approval",
28
- "type": "event"
29
- },
30
- {
31
- "anonymous": false,
32
- "inputs": [
33
- {
34
- "indexed": true,
35
- "internalType": "address",
36
- "name": "owner",
37
- "type": "address"
38
- },
39
- {
40
- "indexed": true,
41
- "internalType": "address",
42
- "name": "operator",
43
- "type": "address"
44
- },
45
- {
46
- "indexed": false,
47
- "internalType": "bool",
48
- "name": "approved",
49
- "type": "bool"
50
- }
51
- ],
52
- "name": "ApprovalForAll",
53
- "type": "event"
54
- },
55
- {
56
- "anonymous": false,
57
- "inputs": [
58
- {
59
- "indexed": true,
60
- "internalType": "address",
61
- "name": "from",
62
- "type": "address"
63
- },
64
- {
65
- "indexed": true,
66
- "internalType": "address",
67
- "name": "to",
68
- "type": "address"
69
- },
70
- {
71
- "indexed": true,
72
- "internalType": "uint256",
73
- "name": "tokenId",
74
- "type": "uint256"
75
- }
76
- ],
77
- "name": "Transfer",
78
- "type": "event"
79
- },
80
- {
81
- "inputs": [
82
- {
83
- "internalType": "address",
84
- "name": "to",
85
- "type": "address"
86
- },
87
- {
88
- "internalType": "uint256",
89
- "name": "tokenId",
90
- "type": "uint256"
91
- }
92
- ],
93
- "name": "approve",
94
- "outputs": [],
95
- "stateMutability": "nonpayable",
96
- "type": "function"
97
- },
98
- {
99
- "inputs": [
100
- {
101
- "internalType": "address",
102
- "name": "owner",
103
- "type": "address"
104
- }
105
- ],
106
- "name": "balanceOf",
107
- "outputs": [
108
- {
109
- "internalType": "uint256",
110
- "name": "balance",
111
- "type": "uint256"
112
- }
113
- ],
114
- "stateMutability": "view",
115
- "type": "function"
116
- },
117
- {
118
- "inputs": [
119
- {
120
- "internalType": "uint256",
121
- "name": "tokenId",
122
- "type": "uint256"
123
- }
124
- ],
125
- "name": "getApproved",
126
- "outputs": [
127
- {
128
- "internalType": "address",
129
- "name": "operator",
130
- "type": "address"
131
- }
132
- ],
133
- "stateMutability": "view",
134
- "type": "function"
135
- },
136
- {
137
- "inputs": [
138
- {
139
- "internalType": "address",
140
- "name": "owner",
141
- "type": "address"
142
- },
143
- {
144
- "internalType": "address",
145
- "name": "operator",
146
- "type": "address"
147
- }
148
- ],
149
- "name": "isApprovedForAll",
150
- "outputs": [
151
- {
152
- "internalType": "bool",
153
- "name": "",
154
- "type": "bool"
155
- }
156
- ],
157
- "stateMutability": "view",
158
- "type": "function"
159
- },
160
- {
161
- "inputs": [
162
- {
163
- "internalType": "uint256",
164
- "name": "tokenId",
165
- "type": "uint256"
166
- }
167
- ],
168
- "name": "ownerOf",
169
- "outputs": [
170
- {
171
- "internalType": "address",
172
- "name": "owner",
173
- "type": "address"
174
- }
175
- ],
176
- "stateMutability": "view",
177
- "type": "function"
178
- },
179
- {
180
- "inputs": [
181
- {
182
- "internalType": "address",
183
- "name": "from",
184
- "type": "address"
185
- },
186
- {
187
- "internalType": "address",
188
- "name": "to",
189
- "type": "address"
190
- },
191
- {
192
- "internalType": "uint256",
193
- "name": "tokenId",
194
- "type": "uint256"
195
- }
196
- ],
197
- "name": "safeTransferFrom",
198
- "outputs": [],
199
- "stateMutability": "nonpayable",
200
- "type": "function"
201
- },
202
- {
203
- "inputs": [
204
- {
205
- "internalType": "address",
206
- "name": "from",
207
- "type": "address"
208
- },
209
- {
210
- "internalType": "address",
211
- "name": "to",
212
- "type": "address"
213
- },
214
- {
215
- "internalType": "uint256",
216
- "name": "tokenId",
217
- "type": "uint256"
218
- },
219
- {
220
- "internalType": "bytes",
221
- "name": "data",
222
- "type": "bytes"
223
- }
224
- ],
225
- "name": "safeTransferFrom",
226
- "outputs": [],
227
- "stateMutability": "nonpayable",
228
- "type": "function"
229
- },
230
- {
231
- "inputs": [
232
- {
233
- "internalType": "address",
234
- "name": "operator",
235
- "type": "address"
236
- },
237
- {
238
- "internalType": "bool",
239
- "name": "approved",
240
- "type": "bool"
241
- }
242
- ],
243
- "name": "setApprovalForAll",
244
- "outputs": [],
245
- "stateMutability": "nonpayable",
246
- "type": "function"
247
- },
248
- {
249
- "inputs": [
250
- {
251
- "internalType": "bytes4",
252
- "name": "interfaceId",
253
- "type": "bytes4"
254
- }
255
- ],
256
- "name": "supportsInterface",
257
- "outputs": [
258
- {
259
- "internalType": "bool",
260
- "name": "",
261
- "type": "bool"
262
- }
263
- ],
264
- "stateMutability": "view",
265
- "type": "function"
266
- },
267
- {
268
- "inputs": [
269
- {
270
- "internalType": "address",
271
- "name": "from",
272
- "type": "address"
273
- },
274
- {
275
- "internalType": "address",
276
- "name": "to",
277
- "type": "address"
278
- },
279
- {
280
- "internalType": "uint256",
281
- "name": "tokenId",
282
- "type": "uint256"
283
- }
284
- ],
285
- "name": "transferFrom",
286
- "outputs": [],
287
- "stateMutability": "nonpayable",
288
- "type": "function"
289
- }
290
- ],
291
- "bytecode": "0x",
292
- "deployedBytecode": "0x",
293
- "linkReferences": {},
294
- "deployedLinkReferences": {},
295
- "devdoc": {
296
- "details": "Required interface of an ERC-721 compliant contract.",
297
- "events": {
298
- "Approval(address,address,uint256)": {
299
- "details": "Emitted when `owner` enables `approved` to manage the `tokenId` token."
300
- },
301
- "ApprovalForAll(address,address,bool)": {
302
- "details": "Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets."
303
- },
304
- "Transfer(address,address,uint256)": {
305
- "details": "Emitted when `tokenId` token is transferred from `from` to `to`."
306
- }
307
- },
308
- "kind": "dev",
309
- "methods": {
310
- "approve(address,uint256)": {
311
- "details": "Gives permission to `to` to transfer `tokenId` token to another account. The approval is cleared when the token is transferred. Only a single account can be approved at a time, so approving the zero address clears previous approvals. Requirements: - The caller must own the token or be an approved operator. - `tokenId` must exist. Emits an {Approval} event."
312
- },
313
- "balanceOf(address)": {
314
- "details": "Returns the number of tokens in ``owner``'s account."
315
- },
316
- "getApproved(uint256)": {
317
- "details": "Returns the account approved for `tokenId` token. Requirements: - `tokenId` must exist."
318
- },
319
- "isApprovedForAll(address,address)": {
320
- "details": "Returns if the `operator` is allowed to manage all of the assets of `owner`. See {setApprovalForAll}"
321
- },
322
- "ownerOf(uint256)": {
323
- "details": "Returns the owner of the `tokenId` token. Requirements: - `tokenId` must exist."
324
- },
325
- "safeTransferFrom(address,address,uint256)": {
326
- "details": "Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients are aware of the ERC-721 protocol to prevent tokens from being forever locked. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."
327
- },
328
- "safeTransferFrom(address,address,uint256,bytes)": {
329
- "details": "Safely transfers `tokenId` token from `from` to `to`. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must exist and be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer. Emits a {Transfer} event."
330
- },
331
- "setApprovalForAll(address,bool)": {
332
- "details": "Approve or remove `operator` as an operator for the caller. Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller. Requirements: - The `operator` cannot be the address zero. Emits an {ApprovalForAll} event."
333
- },
334
- "supportsInterface(bytes4)": {
335
- "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[ERC section] to learn more about how these ids are created. This function call must use less than 30 000 gas."
336
- },
337
- "transferFrom(address,address,uint256)": {
338
- "details": "Transfers `tokenId` token from `from` to `to`. WARNING: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC-721 or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must understand this adds an external call which potentially creates a reentrancy vulnerability. Requirements: - `from` cannot be the zero address. - `to` cannot be the zero address. - `tokenId` token must be owned by `from`. - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}. Emits a {Transfer} event."
339
- }
340
- },
341
- "version": 1
342
- },
343
- "userdoc": {
344
- "kind": "user",
345
- "methods": {},
346
- "version": 1
347
- },
348
- "evm": {
349
- "gasEstimates": null,
350
- "methodIdentifiers": {
351
- "approve(address,uint256)": "095ea7b3",
352
- "balanceOf(address)": "70a08231",
353
- "getApproved(uint256)": "081812fc",
354
- "isApprovedForAll(address,address)": "e985e9c5",
355
- "ownerOf(uint256)": "6352211e",
356
- "safeTransferFrom(address,address,uint256)": "42842e0e",
357
- "safeTransferFrom(address,address,uint256,bytes)": "b88d4fde",
358
- "setApprovalForAll(address,bool)": "a22cb465",
359
- "supportsInterface(bytes4)": "01ffc9a7",
360
- "transferFrom(address,address,uint256)": "23b872dd"
361
- }
362
- }
363
- }
@@ -1,66 +0,0 @@
1
- {
2
- "contractName": "IERC721Receiver",
3
- "sourceName": "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "operator",
10
- "type": "address"
11
- },
12
- {
13
- "internalType": "address",
14
- "name": "from",
15
- "type": "address"
16
- },
17
- {
18
- "internalType": "uint256",
19
- "name": "tokenId",
20
- "type": "uint256"
21
- },
22
- {
23
- "internalType": "bytes",
24
- "name": "data",
25
- "type": "bytes"
26
- }
27
- ],
28
- "name": "onERC721Received",
29
- "outputs": [
30
- {
31
- "internalType": "bytes4",
32
- "name": "",
33
- "type": "bytes4"
34
- }
35
- ],
36
- "stateMutability": "nonpayable",
37
- "type": "function"
38
- }
39
- ],
40
- "bytecode": "0x",
41
- "deployedBytecode": "0x",
42
- "linkReferences": {},
43
- "deployedLinkReferences": {},
44
- "devdoc": {
45
- "details": "Interface for any contract that wants to support safeTransfers from ERC-721 asset contracts.",
46
- "kind": "dev",
47
- "methods": {
48
- "onERC721Received(address,address,uint256,bytes)": {
49
- "details": "Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom} by `operator` from `from`, this function is called. It must return its Solidity selector to confirm the token transfer. If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted. The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`."
50
- }
51
- },
52
- "title": "ERC-721 token receiver interface",
53
- "version": 1
54
- },
55
- "userdoc": {
56
- "kind": "user",
57
- "methods": {},
58
- "version": 1
59
- },
60
- "evm": {
61
- "gasEstimates": null,
62
- "methodIdentifiers": {
63
- "onERC721Received(address,address,uint256,bytes)": "150b7a02"
64
- }
65
- }
66
- }