@cartesi/devnet 1.8.0 → 2.0.0-alpha.1
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.
- package/build/anvil_state.json +1 -1
- package/deployments/localhost/ApplicationFactory.json +227 -0
- package/deployments/localhost/AuthorityFactory.json +55 -44
- package/deployments/localhost/ERC1155BatchPortal.json +26 -26
- package/deployments/localhost/ERC1155SinglePortal.json +25 -25
- package/deployments/localhost/ERC20Portal.json +35 -23
- package/deployments/localhost/ERC721Portal.json +23 -23
- package/deployments/localhost/EtherPortal.json +21 -21
- package/deployments/localhost/InputBox.json +64 -58
- package/deployments/localhost/QuorumFactory.json +188 -0
- package/deployments/localhost/SafeERC20Transfer.json +118 -0
- package/deployments/localhost/SelfHostedApplicationFactory.json +71 -70
- package/deployments/localhost/TestMultiToken.json +18 -18
- package/deployments/localhost/TestNFT.json +24 -24
- package/deployments/localhost/TestToken.json +28 -28
- package/export/abi/localhost.json +234 -602
- package/export/artifacts/@openzeppelin/contracts/access/manager/IAccessManager.sol/IAccessManager.json +11 -22
- package/export/artifacts/@openzeppelin/contracts/interfaces/IERC4906.sol/IERC4906.json +4 -4
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC1155Errors.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC20Errors.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/interfaces/draft-IERC6093.sol/IERC721Errors.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/ERC1155.sol/ERC1155.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155.sol/IERC1155.json +4 -4
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/IERC1155Receiver.sol/IERC1155Receiver.json +3 -3
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/extensions/IERC1155MetadataURI.sol/IERC1155MetadataURI.json +4 -4
- package/export/artifacts/@openzeppelin/contracts/token/ERC1155/utils/ERC1155Utils.sol/ERC1155Utils.json +34 -0
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Burnable.sol/ERC20Burnable.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Pausable.sol/ERC20Pausable.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/ERC20Permit.sol/ERC20Permit.json +3 -3
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Permit.sol/IERC20Permit.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/ERC721.sol/ERC721.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721.sol/IERC721.json +4 -4
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol/IERC721Receiver.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/ERC721URIStorage.sol/ERC721URIStorage.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol/IERC721Metadata.json +3 -3
- package/export/artifacts/@openzeppelin/contracts/token/ERC721/utils/ERC721Utils.sol/ERC721Utils.json +33 -0
- package/export/artifacts/@openzeppelin/contracts/utils/Arrays.sol/Arrays.json +26 -3
- package/export/artifacts/@openzeppelin/contracts/utils/Comparators.sol/Comparators.json +34 -0
- package/export/artifacts/@openzeppelin/contracts/utils/Panic.sol/Panic.json +65 -0
- package/export/artifacts/@openzeppelin/contracts/utils/ShortStrings.sol/ShortStrings.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/utils/SlotDerivation.sol/SlotDerivation.json +42 -0
- package/export/artifacts/@openzeppelin/contracts/utils/StorageSlot.sol/StorageSlot.json +4 -3
- package/export/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +3 -2
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/ECDSA.sol/ECDSA.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/EIP712.sol/EIP712.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol/MessageHashUtils.json +3 -3
- package/export/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +1 -1
- package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +2 -2
- package/export/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +11 -16
- package/export/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +4 -3
- package/export/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +4 -3
- package/export/artifacts/@openzeppelin/contracts/utils/types/Time.sol/Time.json +2 -2
- package/export/artifacts/contracts/TestMultiToken.sol/TestMultiToken.json +3 -3
- package/export/artifacts/contracts/TestNFT.sol/TestNFT.json +4 -4
- package/export/artifacts/contracts/TestToken.sol/TestToken.json +3 -3
- package/package.json +11 -11
- package/deployments/localhost/AuthorityHistoryPairFactory.json +0 -276
- package/deployments/localhost/Bitmask.json +0 -44
- package/deployments/localhost/CartesiDAppFactory.json +0 -231
- package/deployments/localhost/CartesiMathV2.json +0 -213
- package/deployments/localhost/DAppAddressRelay.json +0 -102
- package/deployments/localhost/HistoryFactory.json +0 -177
- package/deployments/localhost/MerkleV2.json +0 -217
- package/deployments/localhost/UnrolledCordic.json +0 -54
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"contractName": "Arrays",
|
|
3
3
|
"sourceName": "@openzeppelin/contracts/utils/Arrays.sol",
|
|
4
4
|
"abi": [],
|
|
5
|
-
"bytecode": "
|
|
6
|
-
"deployedBytecode": "
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206da99e5070ed768e5be7c49a85376b3079829aff2084da1ceec948c054aa918164736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212206da99e5070ed768e5be7c49a85376b3079829aff2084da1ceec948c054aa918164736f6c63430008140033",
|
|
7
7
|
"linkReferences": {},
|
|
8
8
|
"deployedLinkReferences": {},
|
|
9
9
|
"devdoc": {
|
|
@@ -25,12 +25,35 @@
|
|
|
25
25
|
"totalCost": "17297"
|
|
26
26
|
},
|
|
27
27
|
"internal": {
|
|
28
|
+
"_begin(uint256[] memory)": "infinite",
|
|
29
|
+
"_castToUint256Array(address[] memory)": "infinite",
|
|
30
|
+
"_castToUint256Array(bytes32[] memory)": "infinite",
|
|
31
|
+
"_castToUint256Comp(function (address,address) pure returns (bool))": "infinite",
|
|
32
|
+
"_castToUint256Comp(function (bytes32,bytes32) pure returns (bool))": "infinite",
|
|
33
|
+
"_end(uint256[] memory)": "infinite",
|
|
34
|
+
"_mload(uint256)": "infinite",
|
|
35
|
+
"_quickSort(uint256,uint256,function (uint256,uint256) pure returns (bool))": "infinite",
|
|
36
|
+
"_swap(uint256,uint256)": "infinite",
|
|
28
37
|
"findUpperBound(uint256[] storage pointer,uint256)": "infinite",
|
|
38
|
+
"lowerBound(uint256[] storage pointer,uint256)": "infinite",
|
|
39
|
+
"lowerBoundMemory(uint256[] memory,uint256)": "infinite",
|
|
40
|
+
"sort(address[] memory)": "infinite",
|
|
41
|
+
"sort(address[] memory,function (address,address) pure returns (bool))": "infinite",
|
|
42
|
+
"sort(bytes32[] memory)": "infinite",
|
|
43
|
+
"sort(bytes32[] memory,function (bytes32,bytes32) pure returns (bool))": "infinite",
|
|
44
|
+
"sort(uint256[] memory)": "infinite",
|
|
45
|
+
"sort(uint256[] memory,function (uint256,uint256) pure returns (bool))": "infinite",
|
|
29
46
|
"unsafeAccess(address[] storage pointer,uint256)": "infinite",
|
|
30
47
|
"unsafeAccess(bytes32[] storage pointer,uint256)": "infinite",
|
|
31
48
|
"unsafeAccess(uint256[] storage pointer,uint256)": "infinite",
|
|
32
49
|
"unsafeMemoryAccess(address[] memory,uint256)": "infinite",
|
|
33
|
-
"unsafeMemoryAccess(
|
|
50
|
+
"unsafeMemoryAccess(bytes32[] memory,uint256)": "infinite",
|
|
51
|
+
"unsafeMemoryAccess(uint256[] memory,uint256)": "infinite",
|
|
52
|
+
"unsafeSetLength(address[] storage pointer,uint256)": "infinite",
|
|
53
|
+
"unsafeSetLength(bytes32[] storage pointer,uint256)": "infinite",
|
|
54
|
+
"unsafeSetLength(uint256[] storage pointer,uint256)": "infinite",
|
|
55
|
+
"upperBound(uint256[] storage pointer,uint256)": "infinite",
|
|
56
|
+
"upperBoundMemory(uint256[] memory,uint256)": "infinite"
|
|
34
57
|
}
|
|
35
58
|
},
|
|
36
59
|
"methodIdentifiers": {}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "Comparators",
|
|
3
|
+
"sourceName": "@openzeppelin/contracts/utils/Comparators.sol",
|
|
4
|
+
"abi": [],
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200712acc19ffcd72ef37be3a93ebaa58bd79e0d991bba8948a4389e362f158c5b64736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212200712acc19ffcd72ef37be3a93ebaa58bd79e0d991bba8948a4389e362f158c5b64736f6c63430008140033",
|
|
7
|
+
"linkReferences": {},
|
|
8
|
+
"deployedLinkReferences": {},
|
|
9
|
+
"devdoc": {
|
|
10
|
+
"details": "Provides a set of functions to compare values. _Available since v5.1._",
|
|
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
|
+
"gt(uint256,uint256)": "infinite",
|
|
29
|
+
"lt(uint256,uint256)": "infinite"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"methodIdentifiers": {}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "Panic",
|
|
3
|
+
"sourceName": "@openzeppelin/contracts/utils/Panic.sol",
|
|
4
|
+
"abi": [],
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122001d13d41b67a8951898cc82350b56096bf7576d7a4b558784791a9239d8e768364736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122001d13d41b67a8951898cc82350b56096bf7576d7a4b558784791a9239d8e768364736f6c63430008140033",
|
|
7
|
+
"linkReferences": {},
|
|
8
|
+
"deployedLinkReferences": {},
|
|
9
|
+
"devdoc": {
|
|
10
|
+
"details": "Helper library for emitting standardized panic codes. ```solidity contract Example { using Panic for uint256; // Use any of the declared internal constants function foo() { Panic.GENERIC.panic(); } // Alternatively function foo() { Panic.panic(Panic.GENERIC); } } ``` Follows the list from https://github.com/ethereum/solidity/blob/v0.8.24/libsolutil/ErrorCodes.h[libsolutil]. _Available since v5.1._",
|
|
11
|
+
"kind": "dev",
|
|
12
|
+
"methods": {},
|
|
13
|
+
"stateVariables": {
|
|
14
|
+
"ARRAY_OUT_OF_BOUNDS": {
|
|
15
|
+
"details": "array out of bounds access"
|
|
16
|
+
},
|
|
17
|
+
"ASSERT": {
|
|
18
|
+
"details": "used by the assert() builtin"
|
|
19
|
+
},
|
|
20
|
+
"DIVISION_BY_ZERO": {
|
|
21
|
+
"details": "division or modulo by zero"
|
|
22
|
+
},
|
|
23
|
+
"EMPTY_ARRAY_POP": {
|
|
24
|
+
"details": "empty array pop"
|
|
25
|
+
},
|
|
26
|
+
"ENUM_CONVERSION_ERROR": {
|
|
27
|
+
"details": "enum conversion error"
|
|
28
|
+
},
|
|
29
|
+
"GENERIC": {
|
|
30
|
+
"details": "generic / unspecified error"
|
|
31
|
+
},
|
|
32
|
+
"INVALID_INTERNAL_FUNCTION": {
|
|
33
|
+
"details": "calling invalid internal function"
|
|
34
|
+
},
|
|
35
|
+
"RESOURCE_ERROR": {
|
|
36
|
+
"details": "resource error (too large allocation or too large array)"
|
|
37
|
+
},
|
|
38
|
+
"STORAGE_ENCODING_ERROR": {
|
|
39
|
+
"details": "invalid encoding in storage"
|
|
40
|
+
},
|
|
41
|
+
"UNDER_OVERFLOW": {
|
|
42
|
+
"details": "arithmetic underflow or overflow"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"version": 1
|
|
46
|
+
},
|
|
47
|
+
"userdoc": {
|
|
48
|
+
"kind": "user",
|
|
49
|
+
"methods": {},
|
|
50
|
+
"version": 1
|
|
51
|
+
},
|
|
52
|
+
"evm": {
|
|
53
|
+
"gasEstimates": {
|
|
54
|
+
"creation": {
|
|
55
|
+
"codeDepositCost": "17200",
|
|
56
|
+
"executionCost": "97",
|
|
57
|
+
"totalCost": "17297"
|
|
58
|
+
},
|
|
59
|
+
"internal": {
|
|
60
|
+
"panic(uint256)": "infinite"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"methodIdentifiers": {}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"type": "error"
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
|
-
"bytecode": "
|
|
23
|
-
"deployedBytecode": "
|
|
22
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cdd0045e9aa2d5a72ccff104732e9660d2e84b16c214c9cdbd0e31f426620d7d64736f6c63430008140033",
|
|
23
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cdd0045e9aa2d5a72ccff104732e9660d2e84b16c214c9cdbd0e31f426620d7d64736f6c63430008140033",
|
|
24
24
|
"linkReferences": {},
|
|
25
25
|
"deployedLinkReferences": {},
|
|
26
26
|
"devdoc": {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contractName": "SlotDerivation",
|
|
3
|
+
"sourceName": "@openzeppelin/contracts/utils/SlotDerivation.sol",
|
|
4
|
+
"abi": [],
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b9baa6752d3d987eb149d6d910355ba902c8b72124d351f970372726dd97f31d64736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b9baa6752d3d987eb149d6d910355ba902c8b72124d351f970372726dd97f31d64736f6c63430008140033",
|
|
7
|
+
"linkReferences": {},
|
|
8
|
+
"deployedLinkReferences": {},
|
|
9
|
+
"devdoc": {
|
|
10
|
+
"details": "Library for computing storage (and transient storage) locations from namespaces and deriving slots corresponding to standard patterns. The derivation method for array and mapping matches the storage layout used by the solidity language / compiler. See https://docs.soliditylang.org/en/v0.8.20/internals/layout_in_storage.html#mappings-and-dynamic-arrays[Solidity docs for mappings and dynamic arrays.]. Example usage: ```solidity contract Example { // Add the library methods using StorageSlot for bytes32; using SlotDerivation for bytes32; // Declare a namespace string private constant _NAMESPACE = \"<namespace>\" // eg. OpenZeppelin.Slot function setValueInNamespace(uint256 key, address newValue) internal { _NAMESPACE.erc7201Slot().deriveMapping(key).getAddressSlot().value = newValue; } function getValueInNamespace(uint256 key) internal view returns (address) { return _NAMESPACE.erc7201Slot().deriveMapping(key).getAddressSlot().value; } } ``` TIP: Consider using this library along with {StorageSlot}. NOTE: This library provides a way to manipulate storage locations in a non-standard way. Tooling for checking upgrade safety will ignore the slots accessed through this library. _Available since v5.1._",
|
|
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
|
+
"deriveArray(bytes32)": "infinite",
|
|
29
|
+
"deriveMapping(bytes32,address)": "infinite",
|
|
30
|
+
"deriveMapping(bytes32,bool)": "infinite",
|
|
31
|
+
"deriveMapping(bytes32,bytes memory)": "infinite",
|
|
32
|
+
"deriveMapping(bytes32,bytes32)": "infinite",
|
|
33
|
+
"deriveMapping(bytes32,int256)": "infinite",
|
|
34
|
+
"deriveMapping(bytes32,string memory)": "infinite",
|
|
35
|
+
"deriveMapping(bytes32,uint256)": "infinite",
|
|
36
|
+
"erc7201Slot(string memory)": "infinite",
|
|
37
|
+
"offset(bytes32,uint256)": "infinite"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"methodIdentifiers": {}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"contractName": "StorageSlot",
|
|
3
3
|
"sourceName": "@openzeppelin/contracts/utils/StorageSlot.sol",
|
|
4
4
|
"abi": [],
|
|
5
|
-
"bytecode": "
|
|
6
|
-
"deployedBytecode": "
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201f6672f43b6f1ee7f73c552fd0453fcefa408b4ce5c4ea13f41d46657d2cbc1a64736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201f6672f43b6f1ee7f73c552fd0453fcefa408b4ce5c4ea13f41d46657d2cbc1a64736f6c63430008140033",
|
|
7
7
|
"linkReferences": {},
|
|
8
8
|
"deployedLinkReferences": {},
|
|
9
9
|
"devdoc": {
|
|
10
|
-
"details": "Library for reading and writing primitive types to specific storage slots. Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. This library helps with reading and writing to such slots without the need for inline assembly. The functions in this library return Slot structs that contain a `value` member that can be used to read or write. Example usage to set
|
|
10
|
+
"details": "Library for reading and writing primitive types to specific storage slots. Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts. This library helps with reading and writing to such slots without the need for inline assembly. The functions in this library return Slot structs that contain a `value` member that can be used to read or write. Example usage to set ERC-1967 implementation slot: ```solidity contract ERC1967 { // Define the slot. Alternatively, use the SlotDerivation library to derive the slot. bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc; function _getImplementation() internal view returns (address) { return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value; } function _setImplementation(address newImplementation) internal { require(newImplementation.code.length > 0); StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation; } } ``` TIP: Consider using this library along with {SlotDerivation}.",
|
|
11
11
|
"kind": "dev",
|
|
12
12
|
"methods": {},
|
|
13
13
|
"version": 1
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"getBytes32Slot(bytes32)": "infinite",
|
|
31
31
|
"getBytesSlot(bytes storage pointer)": "infinite",
|
|
32
32
|
"getBytesSlot(bytes32)": "infinite",
|
|
33
|
+
"getInt256Slot(bytes32)": "infinite",
|
|
33
34
|
"getStringSlot(bytes32)": "infinite",
|
|
34
35
|
"getStringSlot(string storage pointer)": "infinite",
|
|
35
36
|
"getUint256Slot(bytes32)": "infinite"
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"type": "error"
|
|
20
20
|
}
|
|
21
21
|
],
|
|
22
|
-
"bytecode": "
|
|
23
|
-
"deployedBytecode": "
|
|
22
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122026812d90030215fae268de149673f2a420b4fbd26e61d2d76ea85f22a709a82064736f6c63430008140033",
|
|
23
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122026812d90030215fae268de149673f2a420b4fbd26e61d2d76ea85f22a709a82064736f6c63430008140033",
|
|
24
24
|
"linkReferences": {},
|
|
25
25
|
"deployedLinkReferences": {},
|
|
26
26
|
"devdoc": {
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
},
|
|
51
51
|
"internal": {
|
|
52
52
|
"equal(string memory,string memory)": "infinite",
|
|
53
|
+
"toChecksumHexString(address)": "infinite",
|
|
53
54
|
"toHexString(address)": "infinite",
|
|
54
55
|
"toHexString(uint256)": "infinite",
|
|
55
56
|
"toHexString(uint256,uint256)": "infinite",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"type": "error"
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
|
-
"bytecode": "
|
|
34
|
-
"deployedBytecode": "
|
|
33
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220425fcee5efaa31e99bf7afdec6b1a25d61c7abe165d723a8b7183d96623b470a64736f6c63430008140033",
|
|
34
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220425fcee5efaa31e99bf7afdec6b1a25d61c7abe165d723a8b7183d96623b470a64736f6c63430008140033",
|
|
35
35
|
"linkReferences": {},
|
|
36
36
|
"deployedLinkReferences": {},
|
|
37
37
|
"devdoc": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"deployedLinkReferences": {},
|
|
75
75
|
"devdoc": {
|
|
76
76
|
"custom:oz-upgrades-unsafe-allow": "state-variable-immutable",
|
|
77
|
-
"details": "https://eips.ethereum.org/EIPS/eip-712[EIP
|
|
77
|
+
"details": "https://eips.ethereum.org/EIPS/eip-712[EIP-712] is a standard for hashing and signing of typed structured data. The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to produce the hash of their typed data using a combination of `abi.encode` and `keccak256`. This contract implements the EIP-712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA ({_hashTypedDataV4}). The implementation of the domain separator was designed to be as efficient as possible while still properly updating the chain id to protect against replay attacks on an eventual fork of the chain. NOTE: This contract implements the version of the encoding known as \"v4\", as implemented by the JSON RPC method https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask]. NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the separator from the immutable values, which is cheaper than accessing a cached version in cold storage.",
|
|
78
78
|
"events": {
|
|
79
79
|
"EIP712DomainChanged()": {
|
|
80
80
|
"details": "MAY be emitted to signal that the domain could have changed."
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"kind": "dev",
|
|
84
84
|
"methods": {
|
|
85
85
|
"constructor": {
|
|
86
|
-
"details": "Initializes the domain separator and parameter caches. The meaning of `name` and `version` is specified in https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP
|
|
86
|
+
"details": "Initializes the domain separator and parameter caches. The meaning of `name` and `version` is specified in https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP-712]: - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol. - `version`: the current major version of the signing domain. NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart contract upgrade]."
|
|
87
87
|
},
|
|
88
88
|
"eip712Domain()": {
|
|
89
89
|
"details": "See {IERC-5267}."
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
"contractName": "MessageHashUtils",
|
|
3
3
|
"sourceName": "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol",
|
|
4
4
|
"abi": [],
|
|
5
|
-
"bytecode": "
|
|
6
|
-
"deployedBytecode": "
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220005c3347fdc3a4236ac2f873b8e3c782aeaf769f89331999ec0d19d3171f25f564736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220005c3347fdc3a4236ac2f873b8e3c782aeaf769f89331999ec0d19d3171f25f564736f6c63430008140033",
|
|
7
7
|
"linkReferences": {},
|
|
8
8
|
"deployedLinkReferences": {},
|
|
9
9
|
"devdoc": {
|
|
10
|
-
"details": "Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. The library provides methods for generating a hash of a message that conforms to the https://eips.ethereum.org/EIPS/eip-191[
|
|
10
|
+
"details": "Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing. The library provides methods for generating a hash of a message that conforms to the https://eips.ethereum.org/EIPS/eip-191[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] specifications.",
|
|
11
11
|
"kind": "dev",
|
|
12
12
|
"methods": {},
|
|
13
13
|
"version": 1
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"linkReferences": {},
|
|
28
28
|
"deployedLinkReferences": {},
|
|
29
29
|
"devdoc": {
|
|
30
|
-
"details": "Implementation of the {IERC165} interface. Contracts that want to implement
|
|
30
|
+
"details": "Implementation of the {IERC165} interface. Contracts that want to implement ERC-165 should inherit from this contract and override {supportsInterface} to check for the additional interface id that will be supported. For example: ```solidity function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) { return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId); } ```",
|
|
31
31
|
"kind": "dev",
|
|
32
32
|
"methods": {
|
|
33
33
|
"supportsInterface(bytes4)": {
|
package/export/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json
CHANGED
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"linkReferences": {},
|
|
28
28
|
"deployedLinkReferences": {},
|
|
29
29
|
"devdoc": {
|
|
30
|
-
"details": "Interface of the
|
|
30
|
+
"details": "Interface of the ERC-165 standard, as defined in the https://eips.ethereum.org/EIPS/eip-165[ERC]. Implementers can declare support of contract interfaces, which can then be queried by others ({ERC165Checker}). For an implementation, see {ERC165}.",
|
|
31
31
|
"kind": "dev",
|
|
32
32
|
"methods": {
|
|
33
33
|
"supportsInterface(bytes4)": {
|
|
34
|
-
"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[
|
|
34
|
+
"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."
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
"version": 1
|
|
@@ -1,26 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"contractName": "Math",
|
|
3
3
|
"sourceName": "@openzeppelin/contracts/utils/math/Math.sol",
|
|
4
|
-
"abi": [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
"name": "MathOverflowedMulDiv",
|
|
8
|
-
"type": "error"
|
|
9
|
-
}
|
|
10
|
-
],
|
|
11
|
-
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c9332d4b0da81becbc8931c24d2cd33cbff57a93f4d2e609e7f243f8b0d2b8dc64736f6c63430008140033",
|
|
12
|
-
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220c9332d4b0da81becbc8931c24d2cd33cbff57a93f4d2e609e7f243f8b0d2b8dc64736f6c63430008140033",
|
|
4
|
+
"abi": [],
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220137fabfb44e7c3e22180b75001f40ec2e303d4614e94526c4e317c5181cbd6db64736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220137fabfb44e7c3e22180b75001f40ec2e303d4614e94526c4e317c5181cbd6db64736f6c63430008140033",
|
|
13
7
|
"linkReferences": {},
|
|
14
8
|
"deployedLinkReferences": {},
|
|
15
9
|
"devdoc": {
|
|
16
10
|
"details": "Standard math utilities missing in the Solidity language.",
|
|
17
|
-
"errors": {
|
|
18
|
-
"MathOverflowedMulDiv()": [
|
|
19
|
-
{
|
|
20
|
-
"details": "Muldiv operation overflow."
|
|
21
|
-
}
|
|
22
|
-
]
|
|
23
|
-
},
|
|
24
11
|
"kind": "dev",
|
|
25
12
|
"methods": {},
|
|
26
13
|
"version": 1
|
|
@@ -38,8 +25,11 @@
|
|
|
38
25
|
"totalCost": "17297"
|
|
39
26
|
},
|
|
40
27
|
"internal": {
|
|
28
|
+
"_zeroBytes(bytes memory)": "infinite",
|
|
41
29
|
"average(uint256,uint256)": "infinite",
|
|
42
30
|
"ceilDiv(uint256,uint256)": "infinite",
|
|
31
|
+
"invMod(uint256,uint256)": "infinite",
|
|
32
|
+
"invModPrime(uint256,uint256)": "infinite",
|
|
43
33
|
"log10(uint256)": "infinite",
|
|
44
34
|
"log10(uint256,enum Math.Rounding)": "infinite",
|
|
45
35
|
"log2(uint256)": "infinite",
|
|
@@ -48,13 +38,18 @@
|
|
|
48
38
|
"log256(uint256,enum Math.Rounding)": "infinite",
|
|
49
39
|
"max(uint256,uint256)": "infinite",
|
|
50
40
|
"min(uint256,uint256)": "infinite",
|
|
41
|
+
"modExp(bytes memory,bytes memory,bytes memory)": "infinite",
|
|
42
|
+
"modExp(uint256,uint256,uint256)": "infinite",
|
|
51
43
|
"mulDiv(uint256,uint256,uint256)": "infinite",
|
|
52
44
|
"mulDiv(uint256,uint256,uint256,enum Math.Rounding)": "infinite",
|
|
53
45
|
"sqrt(uint256)": "infinite",
|
|
54
46
|
"sqrt(uint256,enum Math.Rounding)": "infinite",
|
|
47
|
+
"ternary(bool,uint256,uint256)": "infinite",
|
|
55
48
|
"tryAdd(uint256,uint256)": "infinite",
|
|
56
49
|
"tryDiv(uint256,uint256)": "infinite",
|
|
57
50
|
"tryMod(uint256,uint256)": "infinite",
|
|
51
|
+
"tryModExp(bytes memory,bytes memory,bytes memory)": "infinite",
|
|
52
|
+
"tryModExp(uint256,uint256,uint256)": "infinite",
|
|
58
53
|
"tryMul(uint256,uint256)": "infinite",
|
|
59
54
|
"trySub(uint256,uint256)": "infinite",
|
|
60
55
|
"unsignedRoundsUp(enum Math.Rounding)": "infinite"
|
|
@@ -57,12 +57,12 @@
|
|
|
57
57
|
"type": "error"
|
|
58
58
|
}
|
|
59
59
|
],
|
|
60
|
-
"bytecode": "
|
|
61
|
-
"deployedBytecode": "
|
|
60
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b00d9d8d547b97744c2ab370a7c491822621fd5748ee205a79603c33cd199ba964736f6c63430008140033",
|
|
61
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220b00d9d8d547b97744c2ab370a7c491822621fd5748ee205a79603c33cd199ba964736f6c63430008140033",
|
|
62
62
|
"linkReferences": {},
|
|
63
63
|
"deployedLinkReferences": {},
|
|
64
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.",
|
|
65
|
+
"details": "Wrappers over Solidity's uintXX/intXX/bool 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
66
|
"errors": {
|
|
67
67
|
"SafeCastOverflowedIntDowncast(uint8,int256)": [
|
|
68
68
|
{
|
|
@@ -134,6 +134,7 @@
|
|
|
134
134
|
"toInt80(int256)": "infinite",
|
|
135
135
|
"toInt88(int256)": "infinite",
|
|
136
136
|
"toInt96(int256)": "infinite",
|
|
137
|
+
"toUint(bool)": "infinite",
|
|
137
138
|
"toUint104(uint256)": "infinite",
|
|
138
139
|
"toUint112(uint256)": "infinite",
|
|
139
140
|
"toUint120(uint256)": "infinite",
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"contractName": "SignedMath",
|
|
3
3
|
"sourceName": "@openzeppelin/contracts/utils/math/SignedMath.sol",
|
|
4
4
|
"abi": [],
|
|
5
|
-
"bytecode": "
|
|
6
|
-
"deployedBytecode": "
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fd4dd2bac108633d876efaa5b38bee7522180a23113fe36d8f6bbb454c5b0cbd64736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220fd4dd2bac108633d876efaa5b38bee7522180a23113fe36d8f6bbb454c5b0cbd64736f6c63430008140033",
|
|
7
7
|
"linkReferences": {},
|
|
8
8
|
"deployedLinkReferences": {},
|
|
9
9
|
"devdoc": {
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
"abs(int256)": "infinite",
|
|
29
29
|
"average(int256,int256)": "infinite",
|
|
30
30
|
"max(int256,int256)": "infinite",
|
|
31
|
-
"min(int256,int256)": "infinite"
|
|
31
|
+
"min(int256,int256)": "infinite",
|
|
32
|
+
"ternary(bool,int256,int256)": "infinite"
|
|
32
33
|
}
|
|
33
34
|
},
|
|
34
35
|
"methodIdentifiers": {}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"contractName": "Time",
|
|
3
3
|
"sourceName": "@openzeppelin/contracts/utils/types/Time.sol",
|
|
4
4
|
"abi": [],
|
|
5
|
-
"bytecode": "
|
|
6
|
-
"deployedBytecode": "
|
|
5
|
+
"bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a55e5fccbf5d35ea00487ede6d2a3d635761f34d3fabee72119d43ed398cc0e164736f6c63430008140033",
|
|
6
|
+
"deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220a55e5fccbf5d35ea00487ede6d2a3d635761f34d3fabee72119d43ed398cc0e164736f6c63430008140033",
|
|
7
7
|
"linkReferences": {},
|
|
8
8
|
"deployedLinkReferences": {},
|
|
9
9
|
"devdoc": {
|