@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,190 +0,0 @@
1
- {
2
- "contractName": "IERC1155Errors",
3
- "sourceName": "@openzeppelin/contracts/interfaces/draft-IERC6093.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
- "bytecode": "0x",
109
- "deployedBytecode": "0x",
110
- "linkReferences": {},
111
- "deployedLinkReferences": {},
112
- "devdoc": {
113
- "details": "Standard ERC1155 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.",
114
- "errors": {
115
- "ERC1155InsufficientBalance(address,uint256,uint256,uint256)": [
116
- {
117
- "details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.",
118
- "params": {
119
- "balance": "Current balance for the interacting account.",
120
- "needed": "Minimum amount required to perform a transfer.",
121
- "sender": "Address whose tokens are being transferred.",
122
- "tokenId": "Identifier number of a token."
123
- }
124
- }
125
- ],
126
- "ERC1155InvalidApprover(address)": [
127
- {
128
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
129
- "params": {
130
- "approver": "Address initiating an approval operation."
131
- }
132
- }
133
- ],
134
- "ERC1155InvalidArrayLength(uint256,uint256)": [
135
- {
136
- "details": "Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation. Used in batch transfers.",
137
- "params": {
138
- "idsLength": "Length of the array of token identifiers",
139
- "valuesLength": "Length of the array of token amounts"
140
- }
141
- }
142
- ],
143
- "ERC1155InvalidOperator(address)": [
144
- {
145
- "details": "Indicates a failure with the `operator` to be approved. Used in approvals.",
146
- "params": {
147
- "operator": "Address that may be allowed to operate on tokens without being their owner."
148
- }
149
- }
150
- ],
151
- "ERC1155InvalidReceiver(address)": [
152
- {
153
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
154
- "params": {
155
- "receiver": "Address to which tokens are being transferred."
156
- }
157
- }
158
- ],
159
- "ERC1155InvalidSender(address)": [
160
- {
161
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
162
- "params": {
163
- "sender": "Address whose tokens are being transferred."
164
- }
165
- }
166
- ],
167
- "ERC1155MissingApprovalForAll(address,address)": [
168
- {
169
- "details": "Indicates a failure with the `operator`’s approval. Used in transfers.",
170
- "params": {
171
- "operator": "Address that may be allowed to operate on tokens without being their owner.",
172
- "owner": "Address of the current owner of a token."
173
- }
174
- }
175
- ]
176
- },
177
- "kind": "dev",
178
- "methods": {},
179
- "version": 1
180
- },
181
- "userdoc": {
182
- "kind": "user",
183
- "methods": {},
184
- "version": 1
185
- },
186
- "evm": {
187
- "gasEstimates": null,
188
- "methodIdentifiers": {}
189
- }
190
- }
@@ -1,165 +0,0 @@
1
- {
2
- "contractName": "IERC20Errors",
3
- "sourceName": "@openzeppelin/contracts/interfaces/draft-IERC6093.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
- "bytecode": "0x",
93
- "deployedBytecode": "0x",
94
- "linkReferences": {},
95
- "deployedLinkReferences": {},
96
- "devdoc": {
97
- "details": "Standard ERC20 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.",
98
- "errors": {
99
- "ERC20InsufficientAllowance(address,uint256,uint256)": [
100
- {
101
- "details": "Indicates a failure with the `spender`’s `allowance`. Used in transfers.",
102
- "params": {
103
- "allowance": "Amount of tokens a `spender` is allowed to operate with.",
104
- "needed": "Minimum amount required to perform a transfer.",
105
- "spender": "Address that may be allowed to operate on tokens without being their owner."
106
- }
107
- }
108
- ],
109
- "ERC20InsufficientBalance(address,uint256,uint256)": [
110
- {
111
- "details": "Indicates an error related to the current `balance` of a `sender`. Used in transfers.",
112
- "params": {
113
- "balance": "Current balance for the interacting account.",
114
- "needed": "Minimum amount required to perform a transfer.",
115
- "sender": "Address whose tokens are being transferred."
116
- }
117
- }
118
- ],
119
- "ERC20InvalidApprover(address)": [
120
- {
121
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
122
- "params": {
123
- "approver": "Address initiating an approval operation."
124
- }
125
- }
126
- ],
127
- "ERC20InvalidReceiver(address)": [
128
- {
129
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
130
- "params": {
131
- "receiver": "Address to which tokens are being transferred."
132
- }
133
- }
134
- ],
135
- "ERC20InvalidSender(address)": [
136
- {
137
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
138
- "params": {
139
- "sender": "Address whose tokens are being transferred."
140
- }
141
- }
142
- ],
143
- "ERC20InvalidSpender(address)": [
144
- {
145
- "details": "Indicates a failure with the `spender` to be approved. Used in approvals.",
146
- "params": {
147
- "spender": "Address that may be allowed to operate on tokens without being their owner."
148
- }
149
- }
150
- ]
151
- },
152
- "kind": "dev",
153
- "methods": {},
154
- "version": 1
155
- },
156
- "userdoc": {
157
- "kind": "user",
158
- "methods": {},
159
- "version": 1
160
- },
161
- "evm": {
162
- "gasEstimates": null,
163
- "methodIdentifiers": {}
164
- }
165
- }
@@ -1,197 +0,0 @@
1
- {
2
- "contractName": "IERC721Errors",
3
- "sourceName": "@openzeppelin/contracts/interfaces/draft-IERC6093.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "sender",
10
- "type": "address"
11
- },
12
- {
13
- "internalType": "uint256",
14
- "name": "tokenId",
15
- "type": "uint256"
16
- },
17
- {
18
- "internalType": "address",
19
- "name": "owner",
20
- "type": "address"
21
- }
22
- ],
23
- "name": "ERC721IncorrectOwner",
24
- "type": "error"
25
- },
26
- {
27
- "inputs": [
28
- {
29
- "internalType": "address",
30
- "name": "operator",
31
- "type": "address"
32
- },
33
- {
34
- "internalType": "uint256",
35
- "name": "tokenId",
36
- "type": "uint256"
37
- }
38
- ],
39
- "name": "ERC721InsufficientApproval",
40
- "type": "error"
41
- },
42
- {
43
- "inputs": [
44
- {
45
- "internalType": "address",
46
- "name": "approver",
47
- "type": "address"
48
- }
49
- ],
50
- "name": "ERC721InvalidApprover",
51
- "type": "error"
52
- },
53
- {
54
- "inputs": [
55
- {
56
- "internalType": "address",
57
- "name": "operator",
58
- "type": "address"
59
- }
60
- ],
61
- "name": "ERC721InvalidOperator",
62
- "type": "error"
63
- },
64
- {
65
- "inputs": [
66
- {
67
- "internalType": "address",
68
- "name": "owner",
69
- "type": "address"
70
- }
71
- ],
72
- "name": "ERC721InvalidOwner",
73
- "type": "error"
74
- },
75
- {
76
- "inputs": [
77
- {
78
- "internalType": "address",
79
- "name": "receiver",
80
- "type": "address"
81
- }
82
- ],
83
- "name": "ERC721InvalidReceiver",
84
- "type": "error"
85
- },
86
- {
87
- "inputs": [
88
- {
89
- "internalType": "address",
90
- "name": "sender",
91
- "type": "address"
92
- }
93
- ],
94
- "name": "ERC721InvalidSender",
95
- "type": "error"
96
- },
97
- {
98
- "inputs": [
99
- {
100
- "internalType": "uint256",
101
- "name": "tokenId",
102
- "type": "uint256"
103
- }
104
- ],
105
- "name": "ERC721NonexistentToken",
106
- "type": "error"
107
- }
108
- ],
109
- "bytecode": "0x",
110
- "deployedBytecode": "0x",
111
- "linkReferences": {},
112
- "deployedLinkReferences": {},
113
- "devdoc": {
114
- "details": "Standard ERC721 Errors Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.",
115
- "errors": {
116
- "ERC721IncorrectOwner(address,uint256,address)": [
117
- {
118
- "details": "Indicates an error related to the ownership over a particular token. Used in transfers.",
119
- "params": {
120
- "owner": "Address of the current owner of a token.",
121
- "sender": "Address whose tokens are being transferred.",
122
- "tokenId": "Identifier number of a token."
123
- }
124
- }
125
- ],
126
- "ERC721InsufficientApproval(address,uint256)": [
127
- {
128
- "details": "Indicates a failure with the `operator`’s approval. Used in transfers.",
129
- "params": {
130
- "operator": "Address that may be allowed to operate on tokens without being their owner.",
131
- "tokenId": "Identifier number of a token."
132
- }
133
- }
134
- ],
135
- "ERC721InvalidApprover(address)": [
136
- {
137
- "details": "Indicates a failure with the `approver` of a token to be approved. Used in approvals.",
138
- "params": {
139
- "approver": "Address initiating an approval operation."
140
- }
141
- }
142
- ],
143
- "ERC721InvalidOperator(address)": [
144
- {
145
- "details": "Indicates a failure with the `operator` to be approved. Used in approvals.",
146
- "params": {
147
- "operator": "Address that may be allowed to operate on tokens without being their owner."
148
- }
149
- }
150
- ],
151
- "ERC721InvalidOwner(address)": [
152
- {
153
- "details": "Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20. Used in balance queries.",
154
- "params": {
155
- "owner": "Address of the current owner of a token."
156
- }
157
- }
158
- ],
159
- "ERC721InvalidReceiver(address)": [
160
- {
161
- "details": "Indicates a failure with the token `receiver`. Used in transfers.",
162
- "params": {
163
- "receiver": "Address to which tokens are being transferred."
164
- }
165
- }
166
- ],
167
- "ERC721InvalidSender(address)": [
168
- {
169
- "details": "Indicates a failure with the token `sender`. Used in transfers.",
170
- "params": {
171
- "sender": "Address whose tokens are being transferred."
172
- }
173
- }
174
- ],
175
- "ERC721NonexistentToken(uint256)": [
176
- {
177
- "details": "Indicates a `tokenId` whose `owner` is the zero address.",
178
- "params": {
179
- "tokenId": "Identifier number of a token."
180
- }
181
- }
182
- ]
183
- },
184
- "kind": "dev",
185
- "methods": {},
186
- "version": 1
187
- },
188
- "userdoc": {
189
- "kind": "user",
190
- "methods": {},
191
- "version": 1
192
- },
193
- "evm": {
194
- "gasEstimates": null,
195
- "methodIdentifiers": {}
196
- }
197
- }