@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,65 +0,0 @@
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
- }
@@ -1,103 +0,0 @@
1
- {
2
- "contractName": "Pausable",
3
- "sourceName": "@openzeppelin/contracts/utils/Pausable.sol",
4
- "abi": [
5
- {
6
- "inputs": [],
7
- "name": "EnforcedPause",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [],
12
- "name": "ExpectedPause",
13
- "type": "error"
14
- },
15
- {
16
- "anonymous": false,
17
- "inputs": [
18
- {
19
- "indexed": false,
20
- "internalType": "address",
21
- "name": "account",
22
- "type": "address"
23
- }
24
- ],
25
- "name": "Paused",
26
- "type": "event"
27
- },
28
- {
29
- "anonymous": false,
30
- "inputs": [
31
- {
32
- "indexed": false,
33
- "internalType": "address",
34
- "name": "account",
35
- "type": "address"
36
- }
37
- ],
38
- "name": "Unpaused",
39
- "type": "event"
40
- },
41
- {
42
- "inputs": [],
43
- "name": "paused",
44
- "outputs": [
45
- {
46
- "internalType": "bool",
47
- "name": "",
48
- "type": "bool"
49
- }
50
- ],
51
- "stateMutability": "view",
52
- "type": "function"
53
- }
54
- ],
55
- "bytecode": "0x",
56
- "deployedBytecode": "0x",
57
- "linkReferences": {},
58
- "deployedLinkReferences": {},
59
- "devdoc": {
60
- "details": "Contract module which allows children to implement an emergency stop mechanism that can be triggered by an authorized account. This module is used through inheritance. It will make available the modifiers `whenNotPaused` and `whenPaused`, which can be applied to the functions of your contract. Note that they will not be pausable by simply including this module, only once the modifiers are put in place.",
61
- "errors": {
62
- "EnforcedPause()": [
63
- {
64
- "details": "The operation failed because the contract is paused."
65
- }
66
- ],
67
- "ExpectedPause()": [
68
- {
69
- "details": "The operation failed because the contract is not paused."
70
- }
71
- ]
72
- },
73
- "events": {
74
- "Paused(address)": {
75
- "details": "Emitted when the pause is triggered by `account`."
76
- },
77
- "Unpaused(address)": {
78
- "details": "Emitted when the pause is lifted by `account`."
79
- }
80
- },
81
- "kind": "dev",
82
- "methods": {
83
- "constructor": {
84
- "details": "Initializes the contract in unpaused state."
85
- },
86
- "paused()": {
87
- "details": "Returns true if the contract is paused, and false otherwise."
88
- }
89
- },
90
- "version": 1
91
- },
92
- "userdoc": {
93
- "kind": "user",
94
- "methods": {},
95
- "version": 1
96
- },
97
- "evm": {
98
- "gasEstimates": null,
99
- "methodIdentifiers": {
100
- "paused()": "5c975abb"
101
- }
102
- }
103
- }
@@ -1,55 +0,0 @@
1
- {
2
- "contractName": "ShortStrings",
3
- "sourceName": "@openzeppelin/contracts/utils/ShortStrings.sol",
4
- "abi": [
5
- {
6
- "inputs": [],
7
- "name": "InvalidShortString",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "string",
14
- "name": "str",
15
- "type": "string"
16
- }
17
- ],
18
- "name": "StringTooLong",
19
- "type": "error"
20
- }
21
- ],
22
- "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cdd0045e9aa2d5a72ccff104732e9660d2e84b16c214c9cdbd0e31f426620d7d64736f6c63430008140033",
23
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220cdd0045e9aa2d5a72ccff104732e9660d2e84b16c214c9cdbd0e31f426620d7d64736f6c63430008140033",
24
- "linkReferences": {},
25
- "deployedLinkReferences": {},
26
- "devdoc": {
27
- "details": "This library provides functions to convert short memory strings into a `ShortString` type that can be used as an immutable variable. Strings of arbitrary length can be optimized using this library if they are short enough (up to 31 bytes) by packing them with their length (1 byte) in a single EVM word (32 bytes). Additionally, a fallback mechanism can be used for every other case. Usage example: ```solidity contract Named { using ShortStrings for *; ShortString private immutable _name; string private _nameFallback; constructor(string memory contractName) { _name = contractName.toShortStringWithFallback(_nameFallback); } function name() external view returns (string memory) { return _name.toStringWithFallback(_nameFallback); } } ```",
28
- "kind": "dev",
29
- "methods": {},
30
- "version": 1
31
- },
32
- "userdoc": {
33
- "kind": "user",
34
- "methods": {},
35
- "version": 1
36
- },
37
- "evm": {
38
- "gasEstimates": {
39
- "creation": {
40
- "codeDepositCost": "17200",
41
- "executionCost": "97",
42
- "totalCost": "17297"
43
- },
44
- "internal": {
45
- "byteLength(ShortString)": "infinite",
46
- "byteLengthWithFallback(ShortString,string storage pointer)": "infinite",
47
- "toShortString(string memory)": "infinite",
48
- "toShortStringWithFallback(string memory,string storage pointer)": "infinite",
49
- "toString(ShortString)": "infinite",
50
- "toStringWithFallback(ShortString,string storage pointer)": "infinite"
51
- }
52
- },
53
- "methodIdentifiers": {}
54
- }
55
- }
@@ -1,42 +0,0 @@
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
- }
@@ -1,41 +0,0 @@
1
- {
2
- "contractName": "StorageSlot",
3
- "sourceName": "@openzeppelin/contracts/utils/StorageSlot.sol",
4
- "abi": [],
5
- "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201f6672f43b6f1ee7f73c552fd0453fcefa408b4ce5c4ea13f41d46657d2cbc1a64736f6c63430008140033",
6
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212201f6672f43b6f1ee7f73c552fd0453fcefa408b4ce5c4ea13f41d46657d2cbc1a64736f6c63430008140033",
7
- "linkReferences": {},
8
- "deployedLinkReferences": {},
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 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
- "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
- "getAddressSlot(bytes32)": "infinite",
29
- "getBooleanSlot(bytes32)": "infinite",
30
- "getBytes32Slot(bytes32)": "infinite",
31
- "getBytesSlot(bytes storage pointer)": "infinite",
32
- "getBytesSlot(bytes32)": "infinite",
33
- "getInt256Slot(bytes32)": "infinite",
34
- "getStringSlot(bytes32)": "infinite",
35
- "getStringSlot(string storage pointer)": "infinite",
36
- "getUint256Slot(bytes32)": "infinite"
37
- }
38
- },
39
- "methodIdentifiers": {}
40
- }
41
- }
@@ -1,63 +0,0 @@
1
- {
2
- "contractName": "Strings",
3
- "sourceName": "@openzeppelin/contracts/utils/Strings.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "uint256",
9
- "name": "value",
10
- "type": "uint256"
11
- },
12
- {
13
- "internalType": "uint256",
14
- "name": "length",
15
- "type": "uint256"
16
- }
17
- ],
18
- "name": "StringsInsufficientHexLength",
19
- "type": "error"
20
- }
21
- ],
22
- "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122026812d90030215fae268de149673f2a420b4fbd26e61d2d76ea85f22a709a82064736f6c63430008140033",
23
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122026812d90030215fae268de149673f2a420b4fbd26e61d2d76ea85f22a709a82064736f6c63430008140033",
24
- "linkReferences": {},
25
- "deployedLinkReferences": {},
26
- "devdoc": {
27
- "details": "String operations.",
28
- "errors": {
29
- "StringsInsufficientHexLength(uint256,uint256)": [
30
- {
31
- "details": "The `value` string doesn't fit in the specified `length`."
32
- }
33
- ]
34
- },
35
- "kind": "dev",
36
- "methods": {},
37
- "version": 1
38
- },
39
- "userdoc": {
40
- "kind": "user",
41
- "methods": {},
42
- "version": 1
43
- },
44
- "evm": {
45
- "gasEstimates": {
46
- "creation": {
47
- "codeDepositCost": "17200",
48
- "executionCost": "97",
49
- "totalCost": "17297"
50
- },
51
- "internal": {
52
- "equal(string memory,string memory)": "infinite",
53
- "toChecksumHexString(address)": "infinite",
54
- "toHexString(address)": "infinite",
55
- "toHexString(uint256)": "infinite",
56
- "toHexString(uint256,uint256)": "infinite",
57
- "toString(uint256)": "infinite",
58
- "toStringSigned(int256)": "infinite"
59
- }
60
- },
61
- "methodIdentifiers": {}
62
- }
63
- }
@@ -1,84 +0,0 @@
1
- {
2
- "contractName": "ECDSA",
3
- "sourceName": "@openzeppelin/contracts/utils/cryptography/ECDSA.sol",
4
- "abi": [
5
- {
6
- "inputs": [],
7
- "name": "ECDSAInvalidSignature",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "uint256",
14
- "name": "length",
15
- "type": "uint256"
16
- }
17
- ],
18
- "name": "ECDSAInvalidSignatureLength",
19
- "type": "error"
20
- },
21
- {
22
- "inputs": [
23
- {
24
- "internalType": "bytes32",
25
- "name": "s",
26
- "type": "bytes32"
27
- }
28
- ],
29
- "name": "ECDSAInvalidSignatureS",
30
- "type": "error"
31
- }
32
- ],
33
- "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220425fcee5efaa31e99bf7afdec6b1a25d61c7abe165d723a8b7183d96623b470a64736f6c63430008140033",
34
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220425fcee5efaa31e99bf7afdec6b1a25d61c7abe165d723a8b7183d96623b470a64736f6c63430008140033",
35
- "linkReferences": {},
36
- "deployedLinkReferences": {},
37
- "devdoc": {
38
- "details": "Elliptic Curve Digital Signature Algorithm (ECDSA) operations. These functions can be used to verify that a message was signed by the holder of the private keys of a given address.",
39
- "errors": {
40
- "ECDSAInvalidSignature()": [
41
- {
42
- "details": "The signature derives the `address(0)`."
43
- }
44
- ],
45
- "ECDSAInvalidSignatureLength(uint256)": [
46
- {
47
- "details": "The signature has an invalid length."
48
- }
49
- ],
50
- "ECDSAInvalidSignatureS(bytes32)": [
51
- {
52
- "details": "The signature has an S value that is in the upper half order."
53
- }
54
- ]
55
- },
56
- "kind": "dev",
57
- "methods": {},
58
- "version": 1
59
- },
60
- "userdoc": {
61
- "kind": "user",
62
- "methods": {},
63
- "version": 1
64
- },
65
- "evm": {
66
- "gasEstimates": {
67
- "creation": {
68
- "codeDepositCost": "17200",
69
- "executionCost": "97",
70
- "totalCost": "17297"
71
- },
72
- "internal": {
73
- "_throwError(enum ECDSA.RecoverError,bytes32)": "infinite",
74
- "recover(bytes32,bytes memory)": "infinite",
75
- "recover(bytes32,bytes32,bytes32)": "infinite",
76
- "recover(bytes32,uint8,bytes32,bytes32)": "infinite",
77
- "tryRecover(bytes32,bytes memory)": "infinite",
78
- "tryRecover(bytes32,bytes32,bytes32)": "infinite",
79
- "tryRecover(bytes32,uint8,bytes32,bytes32)": "infinite"
80
- }
81
- },
82
- "methodIdentifiers": {}
83
- }
84
- }
@@ -1,105 +0,0 @@
1
- {
2
- "contractName": "EIP712",
3
- "sourceName": "@openzeppelin/contracts/utils/cryptography/EIP712.sol",
4
- "abi": [
5
- {
6
- "inputs": [],
7
- "name": "InvalidShortString",
8
- "type": "error"
9
- },
10
- {
11
- "inputs": [
12
- {
13
- "internalType": "string",
14
- "name": "str",
15
- "type": "string"
16
- }
17
- ],
18
- "name": "StringTooLong",
19
- "type": "error"
20
- },
21
- {
22
- "anonymous": false,
23
- "inputs": [],
24
- "name": "EIP712DomainChanged",
25
- "type": "event"
26
- },
27
- {
28
- "inputs": [],
29
- "name": "eip712Domain",
30
- "outputs": [
31
- {
32
- "internalType": "bytes1",
33
- "name": "fields",
34
- "type": "bytes1"
35
- },
36
- {
37
- "internalType": "string",
38
- "name": "name",
39
- "type": "string"
40
- },
41
- {
42
- "internalType": "string",
43
- "name": "version",
44
- "type": "string"
45
- },
46
- {
47
- "internalType": "uint256",
48
- "name": "chainId",
49
- "type": "uint256"
50
- },
51
- {
52
- "internalType": "address",
53
- "name": "verifyingContract",
54
- "type": "address"
55
- },
56
- {
57
- "internalType": "bytes32",
58
- "name": "salt",
59
- "type": "bytes32"
60
- },
61
- {
62
- "internalType": "uint256[]",
63
- "name": "extensions",
64
- "type": "uint256[]"
65
- }
66
- ],
67
- "stateMutability": "view",
68
- "type": "function"
69
- }
70
- ],
71
- "bytecode": "0x",
72
- "deployedBytecode": "0x",
73
- "linkReferences": {},
74
- "deployedLinkReferences": {},
75
- "devdoc": {
76
- "custom:oz-upgrades-unsafe-allow": "state-variable-immutable",
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
- "events": {
79
- "EIP712DomainChanged()": {
80
- "details": "MAY be emitted to signal that the domain could have changed."
81
- }
82
- },
83
- "kind": "dev",
84
- "methods": {
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-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
- },
88
- "eip712Domain()": {
89
- "details": "See {IERC-5267}."
90
- }
91
- },
92
- "version": 1
93
- },
94
- "userdoc": {
95
- "kind": "user",
96
- "methods": {},
97
- "version": 1
98
- },
99
- "evm": {
100
- "gasEstimates": null,
101
- "methodIdentifiers": {
102
- "eip712Domain()": "84b0196e"
103
- }
104
- }
105
- }
@@ -1,36 +0,0 @@
1
- {
2
- "contractName": "MessageHashUtils",
3
- "sourceName": "@openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol",
4
- "abi": [],
5
- "bytecode": "0x60566050600b82828239805160001a6073146043577f4e487b7100000000000000000000000000000000000000000000000000000000600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220005c3347fdc3a4236ac2f873b8e3c782aeaf769f89331999ec0d19d3171f25f564736f6c63430008140033",
6
- "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea2646970667358221220005c3347fdc3a4236ac2f873b8e3c782aeaf769f89331999ec0d19d3171f25f564736f6c63430008140033",
7
- "linkReferences": {},
8
- "deployedLinkReferences": {},
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[ERC-191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712] specifications.",
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
- "toDataWithIntendedValidatorHash(address,bytes memory)": "infinite",
29
- "toEthSignedMessageHash(bytes memory)": "infinite",
30
- "toEthSignedMessageHash(bytes32)": "infinite",
31
- "toTypedDataHash(bytes32,bytes32)": "infinite"
32
- }
33
- },
34
- "methodIdentifiers": {}
35
- }
36
- }
@@ -1,50 +0,0 @@
1
- {
2
- "contractName": "ERC165",
3
- "sourceName": "@openzeppelin/contracts/utils/introspection/ERC165.sol",
4
- "abi": [
5
- {
6
- "inputs": [
7
- {
8
- "internalType": "bytes4",
9
- "name": "interfaceId",
10
- "type": "bytes4"
11
- }
12
- ],
13
- "name": "supportsInterface",
14
- "outputs": [
15
- {
16
- "internalType": "bool",
17
- "name": "",
18
- "type": "bool"
19
- }
20
- ],
21
- "stateMutability": "view",
22
- "type": "function"
23
- }
24
- ],
25
- "bytecode": "0x",
26
- "deployedBytecode": "0x",
27
- "linkReferences": {},
28
- "deployedLinkReferences": {},
29
- "devdoc": {
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
- "kind": "dev",
32
- "methods": {
33
- "supportsInterface(bytes4)": {
34
- "details": "See {IERC165-supportsInterface}."
35
- }
36
- },
37
- "version": 1
38
- },
39
- "userdoc": {
40
- "kind": "user",
41
- "methods": {},
42
- "version": 1
43
- },
44
- "evm": {
45
- "gasEstimates": null,
46
- "methodIdentifiers": {
47
- "supportsInterface(bytes4)": "01ffc9a7"
48
- }
49
- }
50
- }