@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,128 +0,0 @@
1
- {
2
- "contractName": "Ownable",
3
- "sourceName": "@openzeppelin/contracts/access/Ownable.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "owner",
10
- "type": "address"
11
- }
12
- ],
13
- "name": "OwnableInvalidOwner",
14
- "type": "error"
15
- },
16
- {
17
- "inputs": [
18
- {
19
- "internalType": "address",
20
- "name": "account",
21
- "type": "address"
22
- }
23
- ],
24
- "name": "OwnableUnauthorizedAccount",
25
- "type": "error"
26
- },
27
- {
28
- "anonymous": false,
29
- "inputs": [
30
- {
31
- "indexed": true,
32
- "internalType": "address",
33
- "name": "previousOwner",
34
- "type": "address"
35
- },
36
- {
37
- "indexed": true,
38
- "internalType": "address",
39
- "name": "newOwner",
40
- "type": "address"
41
- }
42
- ],
43
- "name": "OwnershipTransferred",
44
- "type": "event"
45
- },
46
- {
47
- "inputs": [],
48
- "name": "owner",
49
- "outputs": [
50
- {
51
- "internalType": "address",
52
- "name": "",
53
- "type": "address"
54
- }
55
- ],
56
- "stateMutability": "view",
57
- "type": "function"
58
- },
59
- {
60
- "inputs": [],
61
- "name": "renounceOwnership",
62
- "outputs": [],
63
- "stateMutability": "nonpayable",
64
- "type": "function"
65
- },
66
- {
67
- "inputs": [
68
- {
69
- "internalType": "address",
70
- "name": "newOwner",
71
- "type": "address"
72
- }
73
- ],
74
- "name": "transferOwnership",
75
- "outputs": [],
76
- "stateMutability": "nonpayable",
77
- "type": "function"
78
- }
79
- ],
80
- "bytecode": "0x",
81
- "deployedBytecode": "0x",
82
- "linkReferences": {},
83
- "deployedLinkReferences": {},
84
- "devdoc": {
85
- "details": "Contract module which provides a basic access control mechanism, where there is an account (an owner) that can be granted exclusive access to specific functions. The initial owner is set to the address provided by the deployer. This can later be changed with {transferOwnership}. This module is used through inheritance. It will make available the modifier `onlyOwner`, which can be applied to your functions to restrict their use to the owner.",
86
- "errors": {
87
- "OwnableInvalidOwner(address)": [
88
- {
89
- "details": "The owner is not a valid owner account. (eg. `address(0)`)"
90
- }
91
- ],
92
- "OwnableUnauthorizedAccount(address)": [
93
- {
94
- "details": "The caller account is not authorized to perform an operation."
95
- }
96
- ]
97
- },
98
- "kind": "dev",
99
- "methods": {
100
- "constructor": {
101
- "details": "Initializes the contract setting the address provided by the deployer as the initial owner."
102
- },
103
- "owner()": {
104
- "details": "Returns the address of the current owner."
105
- },
106
- "renounceOwnership()": {
107
- "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
108
- },
109
- "transferOwnership(address)": {
110
- "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
111
- }
112
- },
113
- "version": 1
114
- },
115
- "userdoc": {
116
- "kind": "user",
117
- "methods": {},
118
- "version": 1
119
- },
120
- "evm": {
121
- "gasEstimates": null,
122
- "methodIdentifiers": {
123
- "owner()": "8da5cb5b",
124
- "renounceOwnership()": "715018a6",
125
- "transferOwnership(address)": "f2fde38b"
126
- }
127
- }
128
- }
@@ -1,137 +0,0 @@
1
- {
2
- "contractName": "AccessManaged",
3
- "sourceName": "@openzeppelin/contracts/access/manager/AccessManaged.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "authority",
10
- "type": "address"
11
- }
12
- ],
13
- "name": "AccessManagedInvalidAuthority",
14
- "type": "error"
15
- },
16
- {
17
- "inputs": [
18
- {
19
- "internalType": "address",
20
- "name": "caller",
21
- "type": "address"
22
- },
23
- {
24
- "internalType": "uint32",
25
- "name": "delay",
26
- "type": "uint32"
27
- }
28
- ],
29
- "name": "AccessManagedRequiredDelay",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "address",
36
- "name": "caller",
37
- "type": "address"
38
- }
39
- ],
40
- "name": "AccessManagedUnauthorized",
41
- "type": "error"
42
- },
43
- {
44
- "anonymous": false,
45
- "inputs": [
46
- {
47
- "indexed": false,
48
- "internalType": "address",
49
- "name": "authority",
50
- "type": "address"
51
- }
52
- ],
53
- "name": "AuthorityUpdated",
54
- "type": "event"
55
- },
56
- {
57
- "inputs": [],
58
- "name": "authority",
59
- "outputs": [
60
- {
61
- "internalType": "address",
62
- "name": "",
63
- "type": "address"
64
- }
65
- ],
66
- "stateMutability": "view",
67
- "type": "function"
68
- },
69
- {
70
- "inputs": [],
71
- "name": "isConsumingScheduledOp",
72
- "outputs": [
73
- {
74
- "internalType": "bytes4",
75
- "name": "",
76
- "type": "bytes4"
77
- }
78
- ],
79
- "stateMutability": "view",
80
- "type": "function"
81
- },
82
- {
83
- "inputs": [
84
- {
85
- "internalType": "address",
86
- "name": "newAuthority",
87
- "type": "address"
88
- }
89
- ],
90
- "name": "setAuthority",
91
- "outputs": [],
92
- "stateMutability": "nonpayable",
93
- "type": "function"
94
- }
95
- ],
96
- "bytecode": "0x",
97
- "deployedBytecode": "0x",
98
- "linkReferences": {},
99
- "deployedLinkReferences": {},
100
- "devdoc": {
101
- "details": "This contract module makes available a {restricted} modifier. Functions decorated with this modifier will be permissioned according to an \"authority\": a contract like {AccessManager} that follows the {IAuthority} interface, implementing a policy that allows certain callers to access certain functions. IMPORTANT: The `restricted` modifier should never be used on `internal` functions, judiciously used in `public` functions, and ideally only used in `external` functions. See {restricted}.",
102
- "events": {
103
- "AuthorityUpdated(address)": {
104
- "details": "Authority that manages this contract was updated."
105
- }
106
- },
107
- "kind": "dev",
108
- "methods": {
109
- "authority()": {
110
- "details": "Returns the current authority."
111
- },
112
- "constructor": {
113
- "details": "Initializes the contract connected to an initial authority."
114
- },
115
- "isConsumingScheduledOp()": {
116
- "details": "Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls."
117
- },
118
- "setAuthority(address)": {
119
- "details": "Transfers control to a new authority. The caller must be the current authority."
120
- }
121
- },
122
- "version": 1
123
- },
124
- "userdoc": {
125
- "kind": "user",
126
- "methods": {},
127
- "version": 1
128
- },
129
- "evm": {
130
- "gasEstimates": null,
131
- "methodIdentifiers": {
132
- "authority()": "bf7e214f",
133
- "isConsumingScheduledOp()": "8fb36037",
134
- "setAuthority(address)": "7a9e5e4b"
135
- }
136
- }
137
- }
@@ -1,32 +0,0 @@
1
- {
2
- "contractName": "AuthorityUtils",
3
- "sourceName": "@openzeppelin/contracts/access/manager/AuthorityUtils.sol",
4
- "abi": [],
5
- "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e375e38562aabe269e091775903944e5765cd5e3a459e311b4d538495f3871364736f6c63430008140033",
6
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212202e375e38562aabe269e091775903944e5765cd5e3a459e311b4d538495f3871364736f6c63430008140033",
7
- "linkReferences": {},
8
- "deployedLinkReferences": {},
9
- "devdoc": {
10
- "kind": "dev",
11
- "methods": {},
12
- "version": 1
13
- },
14
- "userdoc": {
15
- "kind": "user",
16
- "methods": {},
17
- "version": 1
18
- },
19
- "evm": {
20
- "gasEstimates": {
21
- "creation": {
22
- "codeDepositCost": "17200",
23
- "executionCost": "97",
24
- "totalCost": "17297"
25
- },
26
- "internal": {
27
- "canCallWithDelay(address,address,address,bytes4)": "infinite"
28
- }
29
- },
30
- "methodIdentifiers": {}
31
- }
32
- }
@@ -1,133 +0,0 @@
1
- {
2
- "contractName": "IAccessManaged",
3
- "sourceName": "@openzeppelin/contracts/access/manager/IAccessManaged.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "address",
9
- "name": "authority",
10
- "type": "address"
11
- }
12
- ],
13
- "name": "AccessManagedInvalidAuthority",
14
- "type": "error"
15
- },
16
- {
17
- "inputs": [
18
- {
19
- "internalType": "address",
20
- "name": "caller",
21
- "type": "address"
22
- },
23
- {
24
- "internalType": "uint32",
25
- "name": "delay",
26
- "type": "uint32"
27
- }
28
- ],
29
- "name": "AccessManagedRequiredDelay",
30
- "type": "error"
31
- },
32
- {
33
- "inputs": [
34
- {
35
- "internalType": "address",
36
- "name": "caller",
37
- "type": "address"
38
- }
39
- ],
40
- "name": "AccessManagedUnauthorized",
41
- "type": "error"
42
- },
43
- {
44
- "anonymous": false,
45
- "inputs": [
46
- {
47
- "indexed": false,
48
- "internalType": "address",
49
- "name": "authority",
50
- "type": "address"
51
- }
52
- ],
53
- "name": "AuthorityUpdated",
54
- "type": "event"
55
- },
56
- {
57
- "inputs": [],
58
- "name": "authority",
59
- "outputs": [
60
- {
61
- "internalType": "address",
62
- "name": "",
63
- "type": "address"
64
- }
65
- ],
66
- "stateMutability": "view",
67
- "type": "function"
68
- },
69
- {
70
- "inputs": [],
71
- "name": "isConsumingScheduledOp",
72
- "outputs": [
73
- {
74
- "internalType": "bytes4",
75
- "name": "",
76
- "type": "bytes4"
77
- }
78
- ],
79
- "stateMutability": "view",
80
- "type": "function"
81
- },
82
- {
83
- "inputs": [
84
- {
85
- "internalType": "address",
86
- "name": "",
87
- "type": "address"
88
- }
89
- ],
90
- "name": "setAuthority",
91
- "outputs": [],
92
- "stateMutability": "nonpayable",
93
- "type": "function"
94
- }
95
- ],
96
- "bytecode": "0x",
97
- "deployedBytecode": "0x",
98
- "linkReferences": {},
99
- "deployedLinkReferences": {},
100
- "devdoc": {
101
- "events": {
102
- "AuthorityUpdated(address)": {
103
- "details": "Authority that manages this contract was updated."
104
- }
105
- },
106
- "kind": "dev",
107
- "methods": {
108
- "authority()": {
109
- "details": "Returns the current authority."
110
- },
111
- "isConsumingScheduledOp()": {
112
- "details": "Returns true only in the context of a delayed restricted call, at the moment that the scheduled operation is being consumed. Prevents denial of service for delayed restricted calls in the case that the contract performs attacker controlled calls."
113
- },
114
- "setAuthority(address)": {
115
- "details": "Transfers control to a new authority. The caller must be the current authority."
116
- }
117
- },
118
- "version": 1
119
- },
120
- "userdoc": {
121
- "kind": "user",
122
- "methods": {},
123
- "version": 1
124
- },
125
- "evm": {
126
- "gasEstimates": null,
127
- "methodIdentifiers": {
128
- "authority()": "bf7e214f",
129
- "isConsumingScheduledOp()": "8fb36037",
130
- "setAuthority(address)": "7a9e5e4b"
131
- }
132
- }
133
- }