@cartesi/devnet 1.6.0

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 (76) hide show
  1. package/LICENSE +202 -0
  2. package/build/anvil_state.json +1 -0
  3. package/deployments/localhost/.chainId +1 -0
  4. package/deployments/localhost/AuthorityFactory.json +177 -0
  5. package/deployments/localhost/AuthorityHistoryPairFactory.json +276 -0
  6. package/deployments/localhost/Bitmask.json +44 -0
  7. package/deployments/localhost/CartesiDAppFactory.json +231 -0
  8. package/deployments/localhost/CartesiMathV2.json +213 -0
  9. package/deployments/localhost/DAppAddressRelay.json +102 -0
  10. package/deployments/localhost/ERC1155BatchPortal.json +133 -0
  11. package/deployments/localhost/ERC1155SinglePortal.json +132 -0
  12. package/deployments/localhost/ERC20Portal.json +120 -0
  13. package/deployments/localhost/ERC721Portal.json +126 -0
  14. package/deployments/localhost/EtherPortal.json +121 -0
  15. package/deployments/localhost/HistoryFactory.json +177 -0
  16. package/deployments/localhost/InputBox.json +207 -0
  17. package/deployments/localhost/MerkleV2.json +217 -0
  18. package/deployments/localhost/SelfHostedApplicationFactory.json +226 -0
  19. package/deployments/localhost/TestMultiToken.json +829 -0
  20. package/deployments/localhost/TestNFT.json +891 -0
  21. package/deployments/localhost/TestToken.json +1079 -0
  22. package/deployments/localhost/UnrolledCordic.json +54 -0
  23. package/dist/deploy/01_token.js +15 -0
  24. package/dist/deploy/02_nft.js +15 -0
  25. package/dist/deploy/03_multitoken.js +15 -0
  26. package/dist/src/tasks/deploy-anvil.d.ts +6 -0
  27. package/dist/src/tasks/deploy-anvil.d.ts.map +1 -0
  28. package/dist/src/tasks/deploy-anvil.js +38 -0
  29. package/export/abi/localhost.json +3205 -0
  30. package/export/artifacts/@openzeppelin/contracts/access/Ownable.sol/Ownable.json +128 -0
  31. package/export/artifacts/@openzeppelin/contracts/access/manager/AccessManaged.sol/AccessManaged.json +137 -0
  32. package/export/artifacts/@openzeppelin/contracts/access/manager/AuthorityUtils.sol/AuthorityUtils.json +32 -0
  33. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManaged.sol/IAccessManaged.json +133 -0
  34. package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +1251 -0
  35. package/export/artifacts/@openzeppelin/contracts/access/manager/IAuthority.sol/IAuthority.json +60 -0
  36. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +401 -0
  37. package/export/artifacts/@openzeppelin/contracts/interfaces/IERC5267.sol/IERC5267.json +84 -0
  38. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +190 -0
  39. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +165 -0
  40. package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +197 -0
  41. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +553 -0
  42. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +362 -0
  43. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +156 -0
  44. package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +385 -0
  45. package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +436 -0
  46. package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +242 -0
  47. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +472 -0
  48. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +502 -0
  49. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +695 -0
  50. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +293 -0
  51. package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +114 -0
  52. package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +595 -0
  53. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +363 -0
  54. package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +66 -0
  55. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +630 -0
  56. package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +421 -0
  57. package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +38 -0
  58. package/export/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +24 -0
  59. package/export/artifacts/@openzeppelin/contracts/utils/Nonces.sol/Nonces.json +73 -0
  60. package/export/artifacts/@openzeppelin/contracts/utils/Pausable.sol/Pausable.json +103 -0
  61. package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +55 -0
  62. package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +40 -0
  63. package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +62 -0
  64. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +84 -0
  65. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +105 -0
  66. package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +36 -0
  67. package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +50 -0
  68. package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +50 -0
  69. package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +65 -0
  70. package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +173 -0
  71. package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +36 -0
  72. package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +41 -0
  73. package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +750 -0
  74. package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +779 -0
  75. package/export/artifacts/contracts/TestToken.sol/TestToken.json +963 -0
  76. package/package.json +41 -0
@@ -0,0 +1,173 @@
1
+ {
2
+ "contractName": "SafeCast",
3
+ "sourceName": "@openzeppelin/contracts/utils/math/SafeCast.sol",
4
+ "abi": [
5
+ {
6
+ "inputs": [
7
+ {
8
+ "internalType": "uint8",
9
+ "name": "bits",
10
+ "type": "uint8"
11
+ },
12
+ {
13
+ "internalType": "int256",
14
+ "name": "value",
15
+ "type": "int256"
16
+ }
17
+ ],
18
+ "name": "SafeCastOverflowedIntDowncast",
19
+ "type": "error"
20
+ },
21
+ {
22
+ "inputs": [
23
+ {
24
+ "internalType": "int256",
25
+ "name": "value",
26
+ "type": "int256"
27
+ }
28
+ ],
29
+ "name": "SafeCastOverflowedIntToUint",
30
+ "type": "error"
31
+ },
32
+ {
33
+ "inputs": [
34
+ {
35
+ "internalType": "uint8",
36
+ "name": "bits",
37
+ "type": "uint8"
38
+ },
39
+ {
40
+ "internalType": "uint256",
41
+ "name": "value",
42
+ "type": "uint256"
43
+ }
44
+ ],
45
+ "name": "SafeCastOverflowedUintDowncast",
46
+ "type": "error"
47
+ },
48
+ {
49
+ "inputs": [
50
+ {
51
+ "internalType": "uint256",
52
+ "name": "value",
53
+ "type": "uint256"
54
+ }
55
+ ],
56
+ "name": "SafeCastOverflowedUintToInt",
57
+ "type": "error"
58
+ }
59
+ ],
60
+ "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fcfddf1f27502ffc9e2871e45ca9a30af04b3aacfea614384d8a970509a13a1464736f6c63430008140033",
61
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fcfddf1f27502ffc9e2871e45ca9a30af04b3aacfea614384d8a970509a13a1464736f6c63430008140033",
62
+ "linkReferences": {},
63
+ "deployedLinkReferences": {},
64
+ "devdoc": {
65
+ "details": "Wrappers over Solidity's uintXX/intXX casting operators with added overflow checks. Downcasting from uint256/int256 in Solidity does not revert on overflow. This can easily result in undesired exploitation or bugs, since developers usually assume that overflows raise errors. `SafeCast` restores this intuition by reverting the transaction when such an operation overflows. Using this library instead of the unchecked operations eliminates an entire class of bugs, so it's recommended to use it always.",
66
+ "errors": {
67
+ "SafeCastOverflowedIntDowncast(uint8,int256)": [
68
+ {
69
+ "details": "Value doesn't fit in an int of `bits` size."
70
+ }
71
+ ],
72
+ "SafeCastOverflowedIntToUint(int256)": [
73
+ {
74
+ "details": "An int value doesn't fit in an uint of `bits` size."
75
+ }
76
+ ],
77
+ "SafeCastOverflowedUintDowncast(uint8,uint256)": [
78
+ {
79
+ "details": "Value doesn't fit in an uint of `bits` size."
80
+ }
81
+ ],
82
+ "SafeCastOverflowedUintToInt(uint256)": [
83
+ {
84
+ "details": "An uint value doesn't fit in an int of `bits` size."
85
+ }
86
+ ]
87
+ },
88
+ "kind": "dev",
89
+ "methods": {},
90
+ "version": 1
91
+ },
92
+ "userdoc": {
93
+ "kind": "user",
94
+ "methods": {},
95
+ "version": 1
96
+ },
97
+ "evm": {
98
+ "gasEstimates": {
99
+ "creation": {
100
+ "codeDepositCost": "17200",
101
+ "executionCost": "97",
102
+ "totalCost": "17297"
103
+ },
104
+ "internal": {
105
+ "toInt104(int256)": "infinite",
106
+ "toInt112(int256)": "infinite",
107
+ "toInt120(int256)": "infinite",
108
+ "toInt128(int256)": "infinite",
109
+ "toInt136(int256)": "infinite",
110
+ "toInt144(int256)": "infinite",
111
+ "toInt152(int256)": "infinite",
112
+ "toInt16(int256)": "infinite",
113
+ "toInt160(int256)": "infinite",
114
+ "toInt168(int256)": "infinite",
115
+ "toInt176(int256)": "infinite",
116
+ "toInt184(int256)": "infinite",
117
+ "toInt192(int256)": "infinite",
118
+ "toInt200(int256)": "infinite",
119
+ "toInt208(int256)": "infinite",
120
+ "toInt216(int256)": "infinite",
121
+ "toInt224(int256)": "infinite",
122
+ "toInt232(int256)": "infinite",
123
+ "toInt24(int256)": "infinite",
124
+ "toInt240(int256)": "infinite",
125
+ "toInt248(int256)": "infinite",
126
+ "toInt256(uint256)": "infinite",
127
+ "toInt32(int256)": "infinite",
128
+ "toInt40(int256)": "infinite",
129
+ "toInt48(int256)": "infinite",
130
+ "toInt56(int256)": "infinite",
131
+ "toInt64(int256)": "infinite",
132
+ "toInt72(int256)": "infinite",
133
+ "toInt8(int256)": "infinite",
134
+ "toInt80(int256)": "infinite",
135
+ "toInt88(int256)": "infinite",
136
+ "toInt96(int256)": "infinite",
137
+ "toUint104(uint256)": "infinite",
138
+ "toUint112(uint256)": "infinite",
139
+ "toUint120(uint256)": "infinite",
140
+ "toUint128(uint256)": "infinite",
141
+ "toUint136(uint256)": "infinite",
142
+ "toUint144(uint256)": "infinite",
143
+ "toUint152(uint256)": "infinite",
144
+ "toUint16(uint256)": "infinite",
145
+ "toUint160(uint256)": "infinite",
146
+ "toUint168(uint256)": "infinite",
147
+ "toUint176(uint256)": "infinite",
148
+ "toUint184(uint256)": "infinite",
149
+ "toUint192(uint256)": "infinite",
150
+ "toUint200(uint256)": "infinite",
151
+ "toUint208(uint256)": "infinite",
152
+ "toUint216(uint256)": "infinite",
153
+ "toUint224(uint256)": "infinite",
154
+ "toUint232(uint256)": "infinite",
155
+ "toUint24(uint256)": "infinite",
156
+ "toUint240(uint256)": "infinite",
157
+ "toUint248(uint256)": "infinite",
158
+ "toUint256(int256)": "infinite",
159
+ "toUint32(uint256)": "infinite",
160
+ "toUint40(uint256)": "infinite",
161
+ "toUint48(uint256)": "infinite",
162
+ "toUint56(uint256)": "infinite",
163
+ "toUint64(uint256)": "infinite",
164
+ "toUint72(uint256)": "infinite",
165
+ "toUint8(uint256)": "infinite",
166
+ "toUint80(uint256)": "infinite",
167
+ "toUint88(uint256)": "infinite",
168
+ "toUint96(uint256)": "infinite"
169
+ }
170
+ },
171
+ "methodIdentifiers": {}
172
+ }
173
+ }
@@ -0,0 +1,36 @@
1
+ {
2
+ "contractName": "SignedMath",
3
+ "sourceName": "@openzeppelin/contracts/utils/math/SignedMath.sol",
4
+ "abi": [],
5
+ "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122066d55c3938bdee5e14d05a6a04425c3d0b6d4fad67efc8aafeaf67cc517b228a64736f6c63430008140033",
6
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122066d55c3938bdee5e14d05a6a04425c3d0b6d4fad67efc8aafeaf67cc517b228a64736f6c63430008140033",
7
+ "linkReferences": {},
8
+ "deployedLinkReferences": {},
9
+ "devdoc": {
10
+ "details": "Standard signed math utilities missing in the Solidity language.",
11
+ "kind": "dev",
12
+ "methods": {},
13
+ "version": 1
14
+ },
15
+ "userdoc": {
16
+ "kind": "user",
17
+ "methods": {},
18
+ "version": 1
19
+ },
20
+ "evm": {
21
+ "gasEstimates": {
22
+ "creation": {
23
+ "codeDepositCost": "17200",
24
+ "executionCost": "97",
25
+ "totalCost": "17297"
26
+ },
27
+ "internal": {
28
+ "abs(int256)": "infinite",
29
+ "average(int256,int256)": "infinite",
30
+ "max(int256,int256)": "infinite",
31
+ "min(int256,int256)": "infinite"
32
+ }
33
+ },
34
+ "methodIdentifiers": {}
35
+ }
36
+ }
@@ -0,0 +1,41 @@
1
+ {
2
+ "contractName": "Time",
3
+ "sourceName": "@openzeppelin/contracts/utils/types/Time.sol",
4
+ "abi": [],
5
+ "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122080932264a5641e27cfdb1ea659873dd92485e5d617ae9aba19e483548058a32b64736f6c63430008140033",
6
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122080932264a5641e27cfdb1ea659873dd92485e5d617ae9aba19e483548058a32b64736f6c63430008140033",
7
+ "linkReferences": {},
8
+ "deployedLinkReferences": {},
9
+ "devdoc": {
10
+ "details": "This library provides helpers for manipulating time-related objects. It uses the following types: - `uint48` for timepoints - `uint32` for durations While the library doesn't provide specific types for timepoints and duration, it does provide: - a `Delay` type to represent duration that can be programmed to change value automatically at a given point - additional helper functions",
11
+ "kind": "dev",
12
+ "methods": {},
13
+ "version": 1
14
+ },
15
+ "userdoc": {
16
+ "kind": "user",
17
+ "methods": {},
18
+ "version": 1
19
+ },
20
+ "evm": {
21
+ "gasEstimates": {
22
+ "creation": {
23
+ "codeDepositCost": "17200",
24
+ "executionCost": "97",
25
+ "totalCost": "17297"
26
+ },
27
+ "internal": {
28
+ "_getFullAt(Time.Delay,uint48)": "infinite",
29
+ "blockNumber()": "infinite",
30
+ "get(Time.Delay)": "infinite",
31
+ "getFull(Time.Delay)": "infinite",
32
+ "pack(uint32,uint32,uint48)": "infinite",
33
+ "timestamp()": "infinite",
34
+ "toDelay(uint32)": "infinite",
35
+ "unpack(Time.Delay)": "infinite",
36
+ "withUpdate(Time.Delay,uint32,uint32)": "infinite"
37
+ }
38
+ },
39
+ "methodIdentifiers": {}
40
+ }
41
+ }