@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,227 +0,0 @@
1
- {
2
- "address": "0x4C11C7F82D6D56a726f9B53dd99af031AFd86BB6",
3
- "abi": [
4
- {
5
- "inputs": [
6
- {
7
- "internalType": "contract IAuthorityFactory",
8
- "name": "authorityFactory",
9
- "type": "address"
10
- },
11
- {
12
- "internalType": "contract IApplicationFactory",
13
- "name": "applicationFactory",
14
- "type": "address"
15
- }
16
- ],
17
- "stateMutability": "nonpayable",
18
- "type": "constructor"
19
- },
20
- {
21
- "inputs": [
22
- {
23
- "internalType": "address",
24
- "name": "authorityOwner",
25
- "type": "address"
26
- },
27
- {
28
- "internalType": "uint256",
29
- "name": "epochLength",
30
- "type": "uint256"
31
- },
32
- {
33
- "internalType": "address",
34
- "name": "appOwner",
35
- "type": "address"
36
- },
37
- {
38
- "internalType": "bytes32",
39
- "name": "templateHash",
40
- "type": "bytes32"
41
- },
42
- {
43
- "internalType": "bytes32",
44
- "name": "salt",
45
- "type": "bytes32"
46
- }
47
- ],
48
- "name": "calculateAddresses",
49
- "outputs": [
50
- {
51
- "internalType": "address",
52
- "name": "application",
53
- "type": "address"
54
- },
55
- {
56
- "internalType": "address",
57
- "name": "authority",
58
- "type": "address"
59
- }
60
- ],
61
- "stateMutability": "view",
62
- "type": "function"
63
- },
64
- {
65
- "inputs": [
66
- {
67
- "internalType": "address",
68
- "name": "authorityOwner",
69
- "type": "address"
70
- },
71
- {
72
- "internalType": "uint256",
73
- "name": "epochLength",
74
- "type": "uint256"
75
- },
76
- {
77
- "internalType": "address",
78
- "name": "appOwner",
79
- "type": "address"
80
- },
81
- {
82
- "internalType": "bytes32",
83
- "name": "templateHash",
84
- "type": "bytes32"
85
- },
86
- {
87
- "internalType": "bytes32",
88
- "name": "salt",
89
- "type": "bytes32"
90
- }
91
- ],
92
- "name": "deployContracts",
93
- "outputs": [
94
- {
95
- "internalType": "contract IApplication",
96
- "name": "application",
97
- "type": "address"
98
- },
99
- {
100
- "internalType": "contract IAuthority",
101
- "name": "authority",
102
- "type": "address"
103
- }
104
- ],
105
- "stateMutability": "nonpayable",
106
- "type": "function"
107
- },
108
- {
109
- "inputs": [],
110
- "name": "getApplicationFactory",
111
- "outputs": [
112
- {
113
- "internalType": "contract IApplicationFactory",
114
- "name": "",
115
- "type": "address"
116
- }
117
- ],
118
- "stateMutability": "view",
119
- "type": "function"
120
- },
121
- {
122
- "inputs": [],
123
- "name": "getAuthorityFactory",
124
- "outputs": [
125
- {
126
- "internalType": "contract IAuthorityFactory",
127
- "name": "",
128
- "type": "address"
129
- }
130
- ],
131
- "stateMutability": "view",
132
- "type": "function"
133
- }
134
- ],
135
- "transactionHash": "0x568515b70df1ca408ce9cfdc2c85c10e3dee2e1d9481e9500aac047db4e06ba5",
136
- "receipt": {
137
- "to": "0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7",
138
- "from": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
139
- "contractAddress": null,
140
- "transactionIndex": 0,
141
- "gasUsed": "287274",
142
- "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
143
- "blockHash": "0xca7077b70dbfd7cb547144125b75b3b352645e81b74de277eec8bad7795a751c",
144
- "transactionHash": "0x568515b70df1ca408ce9cfdc2c85c10e3dee2e1d9481e9500aac047db4e06ba5",
145
- "logs": [],
146
- "blockNumber": 12,
147
- "cumulativeGasUsed": "287274",
148
- "status": 1,
149
- "byzantium": true
150
- },
151
- "args": [
152
- "0xB897F7Fe78f220aE34B7FA9493092701a873Ed45",
153
- "0x1d4CfBD2622d802A07CeB4C3401Bbb455c9dbdC3"
154
- ],
155
- "numDeployments": 1,
156
- "bytecode": "0x60c060405234801561001057600080fd5b5060405161050738038061050783398101604081905261002f9161005e565b6001600160a01b039182166080521660a052610098565b6001600160a01b038116811461005b57600080fd5b50565b6000806040838503121561007157600080fd5b825161007c81610046565b602084015190925061008d81610046565b809150509250929050565b60805160a0516104306100d76000396000818160c5015281816101d1015261032101526000818160530152818161012e015261027c01526104306000f3fe608060405234801561001057600080fd5b506004361061004c5760003560e01c806375689f8314610051578063de4d53fd14610090578063e63d50ff146100c3578063ffc643ca146100e9575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b6100a361009e366004610384565b6100fc565b604080516001600160a01b03938416815292909116602083015201610087565b7f0000000000000000000000000000000000000000000000000000000000000000610073565b6100a36100f7366004610384565b61024a565b604051631442f7bb60e01b81526001600160a01b038681166004830152602482018690526044820183905260009182917f00000000000000000000000000000000000000000000000000000000000000001690631442f7bb90606401602060405180830381865afa158015610175573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019991906103d6565b60405163bd4f121960e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f00000000000000000000000000000000000000000000000000000000000000009091169063bd4f121990608401602060405180830381865afa15801561021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023e91906103d6565b91509550959350505050565b604051631d9324cd60e31b81526001600160a01b038681166004830152602482018690526044820183905260009182917f0000000000000000000000000000000000000000000000000000000000000000169063ec992668906064016020604051808303816000875af11580156102c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e991906103d6565b604051630e1a07f560e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f000000000000000000000000000000000000000000000000000000000000000090911690630e1a07f5906084016020604051808303816000875af115801561021a573d6000803e3d6000fd5b6001600160a01b038116811461038157600080fd5b50565b600080600080600060a0868803121561039c57600080fd5b85356103a78161036c565b94506020860135935060408601356103be8161036c565b94979396509394606081013594506080013592915050565b6000602082840312156103e857600080fd5b81516103f38161036c565b939250505056fea264697066735822122020a143bc4274577e61018885b1497d3d548317895553ccc9ead215bc303b532364736f6c63430008170033",
157
- "deployedBytecode": "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c806375689f8314610051578063de4d53fd14610090578063e63d50ff146100c3578063ffc643ca146100e9575b600080fd5b7f00000000000000000000000000000000000000000000000000000000000000005b6040516001600160a01b0390911681526020015b60405180910390f35b6100a361009e366004610384565b6100fc565b604080516001600160a01b03938416815292909116602083015201610087565b7f0000000000000000000000000000000000000000000000000000000000000000610073565b6100a36100f7366004610384565b61024a565b604051631442f7bb60e01b81526001600160a01b038681166004830152602482018690526044820183905260009182917f00000000000000000000000000000000000000000000000000000000000000001690631442f7bb90606401602060405180830381865afa158015610175573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061019991906103d6565b60405163bd4f121960e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f00000000000000000000000000000000000000000000000000000000000000009091169063bd4f121990608401602060405180830381865afa15801561021a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061023e91906103d6565b91509550959350505050565b604051631d9324cd60e31b81526001600160a01b038681166004830152602482018690526044820183905260009182917f0000000000000000000000000000000000000000000000000000000000000000169063ec992668906064016020604051808303816000875af11580156102c5573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102e991906103d6565b604051630e1a07f560e01b81526001600160a01b038083166004830152878116602483015260448201879052606482018690529192507f000000000000000000000000000000000000000000000000000000000000000090911690630e1a07f5906084016020604051808303816000875af115801561021a573d6000803e3d6000fd5b6001600160a01b038116811461038157600080fd5b50565b600080600080600060a0868803121561039c57600080fd5b85356103a78161036c565b94506020860135935060408601356103be8161036c565b94979396509394606081013594506080013592915050565b6000602082840312156103e857600080fd5b81516103f38161036c565b939250505056fea264697066735822122020a143bc4274577e61018885b1497d3d548317895553ccc9ead215bc303b532364736f6c63430008170033",
158
- "devdoc": {
159
- "kind": "dev",
160
- "methods": {
161
- "calculateAddresses(address,uint256,address,bytes32,bytes32)": {
162
- "params": {
163
- "appOwner": "The initial application owner",
164
- "authorityOwner": "The initial authority owner",
165
- "epochLength": "The epoch length",
166
- "salt": "The salt used to deterministically generate the addresses",
167
- "templateHash": "The initial machine state hash"
168
- },
169
- "returns": {
170
- "application": "The application address",
171
- "authority": "The authority address"
172
- }
173
- },
174
- "constructor": {
175
- "params": {
176
- "applicationFactory": "The application factory",
177
- "authorityFactory": "The authority factory"
178
- }
179
- },
180
- "deployContracts(address,uint256,address,bytes32,bytes32)": {
181
- "details": "Reverts if the authority owner address is zero.Reverts if the application owner address is zero.Reverts if the epoch length is zero.",
182
- "params": {
183
- "appOwner": "The initial application owner",
184
- "authorityOwner": "The initial authority owner",
185
- "epochLength": "The epoch length",
186
- "salt": "The salt used to deterministically generate the addresses",
187
- "templateHash": "The initial machine state hash"
188
- },
189
- "returns": {
190
- "application": "The application contract",
191
- "authority": "The authority contract"
192
- }
193
- },
194
- "getApplicationFactory()": {
195
- "returns": {
196
- "_0": "The application factory"
197
- }
198
- },
199
- "getAuthorityFactory()": {
200
- "returns": {
201
- "_0": "The authority factory"
202
- }
203
- }
204
- },
205
- "title": "Self-hosted Application Factory",
206
- "version": 1
207
- },
208
- "userdoc": {
209
- "kind": "user",
210
- "methods": {
211
- "calculateAddresses(address,uint256,address,bytes32,bytes32)": {
212
- "notice": "Calculate the addresses of the application and authority contracts to be deployed deterministically."
213
- },
214
- "deployContracts(address,uint256,address,bytes32,bytes32)": {
215
- "notice": "Deploy new application and authority contracts deterministically."
216
- },
217
- "getApplicationFactory()": {
218
- "notice": "Get the factory used to deploy `IApplication` contracts"
219
- },
220
- "getAuthorityFactory()": {
221
- "notice": "Get the factory used to deploy `IAuthority` contracts"
222
- }
223
- },
224
- "notice": "Allows anyone to reliably deploy a new IAuthority contract, along with an IApplication contract already linked to it.",
225
- "version": 1
226
- }
227
- }