@venusprotocol/oracle 1.6.0 → 1.6.2

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 (129) hide show
  1. package/LICENSE +11 -0
  2. package/README.md +107 -0
  3. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.sol/AggregatorInterface.dbg.json +1 -1
  4. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +1 -1
  5. package/artifacts/@chainlink/contracts/src/v0.8/interfaces/AggregatorV3Interface.sol/AggregatorV3Interface.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.dbg.json +4 -0
  7. package/artifacts/@openzeppelin/contracts/access/AccessControl.sol/AccessControl.json +215 -0
  8. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +4 -0
  9. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.json +183 -0
  10. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  14. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.dbg.json +4 -0
  15. package/artifacts/@openzeppelin/contracts/utils/Strings.sol/Strings.json +10 -0
  16. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.dbg.json +4 -0
  17. package/artifacts/@openzeppelin/contracts/utils/introspection/ERC165.sol/ERC165.json +30 -0
  18. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.dbg.json +4 -0
  19. package/artifacts/@openzeppelin/contracts/utils/introspection/IERC165.sol/IERC165.json +30 -0
  20. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.dbg.json +4 -0
  21. package/artifacts/@openzeppelin/contracts/utils/math/Math.sol/Math.json +10 -0
  22. package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
  23. package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.dbg.json +1 -1
  24. package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
  25. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +4 -0
  26. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.json +115 -0
  27. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  28. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  29. package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
  30. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  31. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  32. package/artifacts/build-info/a47a69a8f108d3e7113faf89771988ff.json +1 -0
  33. package/artifacts/contracts/Governance/AccessControlManager.sol/AccessControlManager.dbg.json +4 -0
  34. package/artifacts/contracts/Governance/AccessControlManager.sol/AccessControlManager.json +369 -0
  35. package/artifacts/contracts/Governance/AccessControlled.sol/AccessControlled.dbg.json +4 -0
  36. package/artifacts/contracts/Governance/AccessControlled.sol/AccessControlled.json +181 -0
  37. package/artifacts/contracts/Governance/IAccessControlManager.sol/IAccessControlManager.dbg.json +4 -0
  38. package/artifacts/contracts/Governance/IAccessControlManager.sol/IAccessControlManager.json +282 -0
  39. package/artifacts/contracts/PriceOracle.sol/PriceOracle.dbg.json +1 -1
  40. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
  41. package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +130 -2
  42. package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +1 -1
  43. package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +1 -1
  44. package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
  45. package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +1 -1
  46. package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +1 -1
  47. package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.dbg.json +4 -0
  48. package/artifacts/contracts/interfaces/PublicResolverInterface.sol/PublicResolverInterface.json +30 -0
  49. package/artifacts/contracts/interfaces/PythInterface.sol/AbstractPyth.dbg.json +1 -1
  50. package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +1 -1
  51. package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +1 -1
  52. package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.dbg.json +4 -0
  53. package/artifacts/contracts/interfaces/SIDRegistryInterface.sol/SIDRegistryInterface.json +30 -0
  54. package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
  55. package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
  56. package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +1 -1
  57. package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +1 -1
  58. package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +1 -1
  59. package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +37 -6
  60. package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
  61. package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +131 -2
  62. package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
  63. package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +122 -6
  64. package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
  65. package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +130 -2
  66. package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
  67. package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +132 -3
  68. package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +1 -1
  69. package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +1 -1
  70. package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +1 -1
  71. package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +2 -2
  72. package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +1 -1
  73. package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +2 -2
  74. package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +1 -1
  75. package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +1 -1
  76. package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
  77. package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +1 -1
  78. package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
  79. package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
  80. package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
  81. package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
  82. package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
  83. package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +1 -1
  84. package/contracts/Governance/AccessControlManager.sol +99 -0
  85. package/contracts/Governance/AccessControlled.sol +75 -0
  86. package/contracts/Governance/IAccessControlManager.sol +22 -0
  87. package/contracts/ResilientOracle.sol +44 -14
  88. package/contracts/interfaces/PublicResolverInterface.sol +7 -0
  89. package/contracts/interfaces/SIDRegistryInterface.sol +7 -0
  90. package/contracts/oracles/BinanceOracle.sol +35 -7
  91. package/contracts/oracles/BoundValidator.sol +36 -8
  92. package/contracts/oracles/ChainlinkOracle.sol +31 -21
  93. package/contracts/oracles/PythOracle.sol +23 -8
  94. package/contracts/oracles/TwapOracle.sol +41 -11
  95. package/deploy/1-deploy-oracles.ts +149 -0
  96. package/deploy/2-configure-feeds.ts +208 -0
  97. package/deployments/bsctestnet/AccessControlManager.json +563 -0
  98. package/deployments/bsctestnet/BinanceOracle.json +66 -40
  99. package/deployments/bsctestnet/BinanceOracle_Implementation.json +84 -38
  100. package/deployments/bsctestnet/BinanceOracle_Proxy.json +34 -34
  101. package/deployments/bsctestnet/BoundValidator.json +177 -39
  102. package/deployments/bsctestnet/BoundValidator_Implementation.json +248 -40
  103. package/deployments/bsctestnet/BoundValidator_Proxy.json +51 -37
  104. package/deployments/bsctestnet/ChainlinkOracle.json +161 -50
  105. package/deployments/bsctestnet/ChainlinkOracle_Implementation.json +239 -47
  106. package/deployments/bsctestnet/ChainlinkOracle_Proxy.json +44 -44
  107. package/deployments/bsctestnet/DefaultProxyAdmin.json +18 -18
  108. package/deployments/bsctestnet/PythOracle.json +178 -45
  109. package/deployments/bsctestnet/PythOracle_Implementation.json +246 -43
  110. package/deployments/bsctestnet/PythOracle_Proxy.json +53 -43
  111. package/deployments/bsctestnet/ResilientOracle.json +167 -48
  112. package/deployments/bsctestnet/ResilientOracle_Implementation.json +254 -51
  113. package/deployments/bsctestnet/ResilientOracle_Proxy.json +42 -46
  114. package/deployments/bsctestnet/TwapOracle.json +178 -40
  115. package/deployments/bsctestnet/TwapOracle_Implementation.json +270 -58
  116. package/deployments/bsctestnet/TwapOracle_Proxy.json +51 -37
  117. package/deployments/bsctestnet/solcInputs/{6153c675ce838eebb6442d63350712be.json → 30f2cb3e89e183b8669f05bddf9426d9.json} +46 -7
  118. package/package.json +3 -2
  119. package/artifacts/build-info/1d7bedd9b14544f287811332b9a539d7.json +0 -1
  120. package/artifacts/build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json +0 -1
  121. package/artifacts/build-info/f6af69795174616b8b4a6373f9f1c538.json +0 -1
  122. package/deploy/1-deploy-oracles.d.ts +0 -2
  123. package/deploy/1-deploy-oracles.d.ts.map +0 -1
  124. package/deploy/1-deploy-oracles.js +0 -128
  125. package/deploy/1-deploy-oracles.js.map +0 -1
  126. package/deploy/2-configure-feeds.d.ts +0 -2
  127. package/deploy/2-configure-feeds.d.ts.map +0 -1
  128. package/deploy/2-configure-feeds.js +0 -139
  129. package/deploy/2-configure-feeds.js.map +0 -1
package/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Copyright 2022 Venus Protocol.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/README.md ADDED
@@ -0,0 +1,107 @@
1
+ # Venus Oracle
2
+
3
+ ## Usage
4
+
5
+ ### Prerequisites
6
+
7
+ - NodeJS - 12.x
8
+
9
+ - Solc - v0.8.13 (https://github.com/ethereum/solidity/releases/tag/v0.8.13)
10
+
11
+ ### Installing
12
+
13
+ ```
14
+
15
+ yarn install
16
+
17
+ ```
18
+
19
+ ### Linting and code formatting
20
+
21
+ Linting is done using eslint for typescript and solhint for solidity. Prettier is used to format solidity and typescript files.
22
+
23
+ To check linting and formatting on all files run:
24
+
25
+ ```sh
26
+ $ yarn lint
27
+ ```
28
+
29
+ Linting command can be run with the fix flag to fix eligible errors automatically
30
+
31
+ ```sh
32
+ $ yarn lint:sol --fix
33
+ $ yarn lint:ts --fix
34
+ ```
35
+
36
+ To pretty all files run:
37
+
38
+ ```sh
39
+ $ yarn prettier
40
+ ```
41
+
42
+ ### Run Tests
43
+
44
+ ```
45
+
46
+ npx hardhat test
47
+
48
+ ```
49
+
50
+ - To run fork tests add FORK_MAINNET=true PRIVATE_KEY and QUICK_NODE_KEY in the .env file.
51
+
52
+ ### Deployment
53
+
54
+ ```
55
+
56
+ npx hardhat deploy
57
+
58
+ ```
59
+
60
+ - This command will execute all the deployment scripts in `./deploy` directory
61
+ - The default network will be `hardhat`
62
+ - Deployment to another network: - Make sure the desired network is configured in `hardhat.config.ts` - Add `PRIVATE_KEY` variable in `.env` file - Execute deploy command by adding `--network <network_name>` in the deploy command above - E.g. `npx hardhat deploy --network bsctestnet`
63
+ - Execution of single or custom set of scripts is possible, if:
64
+ - In the deployment scripts you have added `tags` for example: - `func.tags = ["MockTokens"];`
65
+ - Once this is done, adding `--tags "<tag_name>,<tag_name>..."` to the deployment command will execute only the scripts containing the tags.
66
+
67
+ ### Hardhat Commands
68
+
69
+ ```
70
+
71
+ npx hardhat accounts
72
+
73
+ npx hardhat compile
74
+
75
+ npx hardhat clean
76
+
77
+ npx hardhat test
78
+
79
+ npx hardhat node
80
+
81
+ npx hardhat help
82
+
83
+ REPORT_GAS=true npx hardhat test
84
+
85
+ npx hardhat coverage
86
+
87
+ TS_NODE_FILES=true npx ts-node scripts/deploy.ts
88
+
89
+ npx eslint '**/*.{js,ts}'
90
+
91
+ npx eslint '**/*.{js,ts}' --fix
92
+
93
+ npx prettier '**/*.{json,sol,md}' --check
94
+
95
+ npx prettier '**/*.{json,sol,md}' --write
96
+
97
+ npx solhint 'contracts/**/*.sol'
98
+
99
+ npx solhint 'contracts/**/*.sol' --fix
100
+
101
+ ```
102
+
103
+ ### Documentation
104
+
105
+ Documentation is autogenerated using [solidity-docgen](https://github.com/OpenZeppelin/solidity-docgen).
106
+
107
+ They can be generated by running `yarn docgen`
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
+ }
@@ -0,0 +1,215 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "AccessControl",
4
+ "sourceName": "@openzeppelin/contracts/access/AccessControl.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "bytes32",
12
+ "name": "role",
13
+ "type": "bytes32"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "bytes32",
18
+ "name": "previousAdminRole",
19
+ "type": "bytes32"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "bytes32",
24
+ "name": "newAdminRole",
25
+ "type": "bytes32"
26
+ }
27
+ ],
28
+ "name": "RoleAdminChanged",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "bytes32",
37
+ "name": "role",
38
+ "type": "bytes32"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "account",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "sender",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "RoleGranted",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "bytes32",
62
+ "name": "role",
63
+ "type": "bytes32"
64
+ },
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "account",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "sender",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "RoleRevoked",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "inputs": [],
83
+ "name": "DEFAULT_ADMIN_ROLE",
84
+ "outputs": [
85
+ {
86
+ "internalType": "bytes32",
87
+ "name": "",
88
+ "type": "bytes32"
89
+ }
90
+ ],
91
+ "stateMutability": "view",
92
+ "type": "function"
93
+ },
94
+ {
95
+ "inputs": [
96
+ {
97
+ "internalType": "bytes32",
98
+ "name": "role",
99
+ "type": "bytes32"
100
+ }
101
+ ],
102
+ "name": "getRoleAdmin",
103
+ "outputs": [
104
+ {
105
+ "internalType": "bytes32",
106
+ "name": "",
107
+ "type": "bytes32"
108
+ }
109
+ ],
110
+ "stateMutability": "view",
111
+ "type": "function"
112
+ },
113
+ {
114
+ "inputs": [
115
+ {
116
+ "internalType": "bytes32",
117
+ "name": "role",
118
+ "type": "bytes32"
119
+ },
120
+ {
121
+ "internalType": "address",
122
+ "name": "account",
123
+ "type": "address"
124
+ }
125
+ ],
126
+ "name": "grantRole",
127
+ "outputs": [],
128
+ "stateMutability": "nonpayable",
129
+ "type": "function"
130
+ },
131
+ {
132
+ "inputs": [
133
+ {
134
+ "internalType": "bytes32",
135
+ "name": "role",
136
+ "type": "bytes32"
137
+ },
138
+ {
139
+ "internalType": "address",
140
+ "name": "account",
141
+ "type": "address"
142
+ }
143
+ ],
144
+ "name": "hasRole",
145
+ "outputs": [
146
+ {
147
+ "internalType": "bool",
148
+ "name": "",
149
+ "type": "bool"
150
+ }
151
+ ],
152
+ "stateMutability": "view",
153
+ "type": "function"
154
+ },
155
+ {
156
+ "inputs": [
157
+ {
158
+ "internalType": "bytes32",
159
+ "name": "role",
160
+ "type": "bytes32"
161
+ },
162
+ {
163
+ "internalType": "address",
164
+ "name": "account",
165
+ "type": "address"
166
+ }
167
+ ],
168
+ "name": "renounceRole",
169
+ "outputs": [],
170
+ "stateMutability": "nonpayable",
171
+ "type": "function"
172
+ },
173
+ {
174
+ "inputs": [
175
+ {
176
+ "internalType": "bytes32",
177
+ "name": "role",
178
+ "type": "bytes32"
179
+ },
180
+ {
181
+ "internalType": "address",
182
+ "name": "account",
183
+ "type": "address"
184
+ }
185
+ ],
186
+ "name": "revokeRole",
187
+ "outputs": [],
188
+ "stateMutability": "nonpayable",
189
+ "type": "function"
190
+ },
191
+ {
192
+ "inputs": [
193
+ {
194
+ "internalType": "bytes4",
195
+ "name": "interfaceId",
196
+ "type": "bytes4"
197
+ }
198
+ ],
199
+ "name": "supportsInterface",
200
+ "outputs": [
201
+ {
202
+ "internalType": "bool",
203
+ "name": "",
204
+ "type": "bool"
205
+ }
206
+ ],
207
+ "stateMutability": "view",
208
+ "type": "function"
209
+ }
210
+ ],
211
+ "bytecode": "0x",
212
+ "deployedBytecode": "0x",
213
+ "linkReferences": {},
214
+ "deployedLinkReferences": {}
215
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
+ }
@@ -0,0 +1,183 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IAccessControl",
4
+ "sourceName": "@openzeppelin/contracts/access/IAccessControl.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": true,
11
+ "internalType": "bytes32",
12
+ "name": "role",
13
+ "type": "bytes32"
14
+ },
15
+ {
16
+ "indexed": true,
17
+ "internalType": "bytes32",
18
+ "name": "previousAdminRole",
19
+ "type": "bytes32"
20
+ },
21
+ {
22
+ "indexed": true,
23
+ "internalType": "bytes32",
24
+ "name": "newAdminRole",
25
+ "type": "bytes32"
26
+ }
27
+ ],
28
+ "name": "RoleAdminChanged",
29
+ "type": "event"
30
+ },
31
+ {
32
+ "anonymous": false,
33
+ "inputs": [
34
+ {
35
+ "indexed": true,
36
+ "internalType": "bytes32",
37
+ "name": "role",
38
+ "type": "bytes32"
39
+ },
40
+ {
41
+ "indexed": true,
42
+ "internalType": "address",
43
+ "name": "account",
44
+ "type": "address"
45
+ },
46
+ {
47
+ "indexed": true,
48
+ "internalType": "address",
49
+ "name": "sender",
50
+ "type": "address"
51
+ }
52
+ ],
53
+ "name": "RoleGranted",
54
+ "type": "event"
55
+ },
56
+ {
57
+ "anonymous": false,
58
+ "inputs": [
59
+ {
60
+ "indexed": true,
61
+ "internalType": "bytes32",
62
+ "name": "role",
63
+ "type": "bytes32"
64
+ },
65
+ {
66
+ "indexed": true,
67
+ "internalType": "address",
68
+ "name": "account",
69
+ "type": "address"
70
+ },
71
+ {
72
+ "indexed": true,
73
+ "internalType": "address",
74
+ "name": "sender",
75
+ "type": "address"
76
+ }
77
+ ],
78
+ "name": "RoleRevoked",
79
+ "type": "event"
80
+ },
81
+ {
82
+ "inputs": [
83
+ {
84
+ "internalType": "bytes32",
85
+ "name": "role",
86
+ "type": "bytes32"
87
+ }
88
+ ],
89
+ "name": "getRoleAdmin",
90
+ "outputs": [
91
+ {
92
+ "internalType": "bytes32",
93
+ "name": "",
94
+ "type": "bytes32"
95
+ }
96
+ ],
97
+ "stateMutability": "view",
98
+ "type": "function"
99
+ },
100
+ {
101
+ "inputs": [
102
+ {
103
+ "internalType": "bytes32",
104
+ "name": "role",
105
+ "type": "bytes32"
106
+ },
107
+ {
108
+ "internalType": "address",
109
+ "name": "account",
110
+ "type": "address"
111
+ }
112
+ ],
113
+ "name": "grantRole",
114
+ "outputs": [],
115
+ "stateMutability": "nonpayable",
116
+ "type": "function"
117
+ },
118
+ {
119
+ "inputs": [
120
+ {
121
+ "internalType": "bytes32",
122
+ "name": "role",
123
+ "type": "bytes32"
124
+ },
125
+ {
126
+ "internalType": "address",
127
+ "name": "account",
128
+ "type": "address"
129
+ }
130
+ ],
131
+ "name": "hasRole",
132
+ "outputs": [
133
+ {
134
+ "internalType": "bool",
135
+ "name": "",
136
+ "type": "bool"
137
+ }
138
+ ],
139
+ "stateMutability": "view",
140
+ "type": "function"
141
+ },
142
+ {
143
+ "inputs": [
144
+ {
145
+ "internalType": "bytes32",
146
+ "name": "role",
147
+ "type": "bytes32"
148
+ },
149
+ {
150
+ "internalType": "address",
151
+ "name": "account",
152
+ "type": "address"
153
+ }
154
+ ],
155
+ "name": "renounceRole",
156
+ "outputs": [],
157
+ "stateMutability": "nonpayable",
158
+ "type": "function"
159
+ },
160
+ {
161
+ "inputs": [
162
+ {
163
+ "internalType": "bytes32",
164
+ "name": "role",
165
+ "type": "bytes32"
166
+ },
167
+ {
168
+ "internalType": "address",
169
+ "name": "account",
170
+ "type": "address"
171
+ }
172
+ ],
173
+ "name": "revokeRole",
174
+ "outputs": [],
175
+ "stateMutability": "nonpayable",
176
+ "type": "function"
177
+ }
178
+ ],
179
+ "bytecode": "0x",
180
+ "deployedBytecode": "0x",
181
+ "linkReferences": {},
182
+ "deployedLinkReferences": {}
183
+ }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "_format": "hh-sol-dbg-1",
3
- "buildInfo": "../../../../build-info/57da5d39a9f98618d0dcf1f6d4ff6b0d.json"
3
+ "buildInfo": "../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
4
  }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Strings",
4
+ "sourceName": "@openzeppelin/contracts/utils/Strings.sol",
5
+ "abi": [],
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122087bcda7a67cc1aaaf950acc99398b84f4010b5563749e01e3734c34c2fdaa1d564736f6c634300080d0033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea264697066735822122087bcda7a67cc1aaaf950acc99398b84f4010b5563749e01e3734c34c2fdaa1d564736f6c634300080d0033",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "ERC165",
4
+ "sourceName": "@openzeppelin/contracts/utils/introspection/ERC165.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "bytes4",
10
+ "name": "interfaceId",
11
+ "type": "bytes4"
12
+ }
13
+ ],
14
+ "name": "supportsInterface",
15
+ "outputs": [
16
+ {
17
+ "internalType": "bool",
18
+ "name": "",
19
+ "type": "bool"
20
+ }
21
+ ],
22
+ "stateMutability": "view",
23
+ "type": "function"
24
+ }
25
+ ],
26
+ "bytecode": "0x",
27
+ "deployedBytecode": "0x",
28
+ "linkReferences": {},
29
+ "deployedLinkReferences": {}
30
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
+ }
@@ -0,0 +1,30 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "IERC165",
4
+ "sourceName": "@openzeppelin/contracts/utils/introspection/IERC165.sol",
5
+ "abi": [
6
+ {
7
+ "inputs": [
8
+ {
9
+ "internalType": "bytes4",
10
+ "name": "interfaceId",
11
+ "type": "bytes4"
12
+ }
13
+ ],
14
+ "name": "supportsInterface",
15
+ "outputs": [
16
+ {
17
+ "internalType": "bool",
18
+ "name": "",
19
+ "type": "bool"
20
+ }
21
+ ],
22
+ "stateMutability": "view",
23
+ "type": "function"
24
+ }
25
+ ],
26
+ "bytecode": "0x",
27
+ "deployedBytecode": "0x",
28
+ "linkReferences": {},
29
+ "deployedLinkReferences": {}
30
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "_format": "hh-sol-dbg-1",
3
+ "buildInfo": "../../../../../build-info/a47a69a8f108d3e7113faf89771988ff.json"
4
+ }