@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
@@ -0,0 +1,10 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Math",
4
+ "sourceName": "@openzeppelin/contracts/utils/math/Math.sol",
5
+ "abi": [],
6
+ "bytecode": "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207079082e6d1770bb0695830c7d69b11889185937bd745b54402eeacc5c9f219764736f6c634300080d0033",
7
+ "deployedBytecode": "0x73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207079082e6d1770bb0695830c7d69b11889185937bd745b54402eeacc5c9f219764736f6c634300080d0033",
8
+ "linkReferences": {},
9
+ "deployedLinkReferences": {}
10
+ }
@@ -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,115 @@
1
+ {
2
+ "_format": "hh-sol-artifact-1",
3
+ "contractName": "Ownable2StepUpgradeable",
4
+ "sourceName": "@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol",
5
+ "abi": [
6
+ {
7
+ "anonymous": false,
8
+ "inputs": [
9
+ {
10
+ "indexed": false,
11
+ "internalType": "uint8",
12
+ "name": "version",
13
+ "type": "uint8"
14
+ }
15
+ ],
16
+ "name": "Initialized",
17
+ "type": "event"
18
+ },
19
+ {
20
+ "anonymous": false,
21
+ "inputs": [
22
+ {
23
+ "indexed": true,
24
+ "internalType": "address",
25
+ "name": "previousOwner",
26
+ "type": "address"
27
+ },
28
+ {
29
+ "indexed": true,
30
+ "internalType": "address",
31
+ "name": "newOwner",
32
+ "type": "address"
33
+ }
34
+ ],
35
+ "name": "OwnershipTransferStarted",
36
+ "type": "event"
37
+ },
38
+ {
39
+ "anonymous": false,
40
+ "inputs": [
41
+ {
42
+ "indexed": true,
43
+ "internalType": "address",
44
+ "name": "previousOwner",
45
+ "type": "address"
46
+ },
47
+ {
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "newOwner",
51
+ "type": "address"
52
+ }
53
+ ],
54
+ "name": "OwnershipTransferred",
55
+ "type": "event"
56
+ },
57
+ {
58
+ "inputs": [],
59
+ "name": "acceptOwnership",
60
+ "outputs": [],
61
+ "stateMutability": "nonpayable",
62
+ "type": "function"
63
+ },
64
+ {
65
+ "inputs": [],
66
+ "name": "owner",
67
+ "outputs": [
68
+ {
69
+ "internalType": "address",
70
+ "name": "",
71
+ "type": "address"
72
+ }
73
+ ],
74
+ "stateMutability": "view",
75
+ "type": "function"
76
+ },
77
+ {
78
+ "inputs": [],
79
+ "name": "pendingOwner",
80
+ "outputs": [
81
+ {
82
+ "internalType": "address",
83
+ "name": "",
84
+ "type": "address"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "renounceOwnership",
93
+ "outputs": [],
94
+ "stateMutability": "nonpayable",
95
+ "type": "function"
96
+ },
97
+ {
98
+ "inputs": [
99
+ {
100
+ "internalType": "address",
101
+ "name": "newOwner",
102
+ "type": "address"
103
+ }
104
+ ],
105
+ "name": "transferOwnership",
106
+ "outputs": [],
107
+ "stateMutability": "nonpayable",
108
+ "type": "function"
109
+ }
110
+ ],
111
+ "bytecode": "0x",
112
+ "deployedBytecode": "0x",
113
+ "linkReferences": {},
114
+ "deployedLinkReferences": {}
115
+ }
@@ -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
  }
@@ -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
  }