@venusprotocol/oracle 1.2.0 → 1.2.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.
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +2 -2
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +2 -2
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.json +2 -2
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +2 -2
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
- package/artifacts/build-info/4d2af5803ee95a57ec9aace7ed32201c.json +1 -0
- package/artifacts/build-info/766f05630947fa6d366a667b66c1141b.json +1 -0
- package/artifacts/contracts/PriceOracle.sol/PriceOracle.dbg.json +4 -0
- package/artifacts/contracts/PriceOracle.sol/PriceOracle.json +62 -0
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +1 -1
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +35 -3
- package/artifacts/contracts/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/BEP20Interface.sol/BEP20Interface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/FeedRegistryInterface.sol/FeedRegistryInterface.json +79 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/BoundValidatorInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/{PivotValidatorInterface.json → BoundValidatorInterface.json} +8 -3
- package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +1 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/ResilientOracleInterface.json +43 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/TwapInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/{PivotOracleInterface.json → TwapInterface.json} +5 -10
- package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +1 -1
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.json +2 -2
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.json +2 -2
- package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +1 -1
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.json +2 -2
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/BinanceOracle.sol/BinanceOracle.json +69 -0
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +1 -1
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +13 -6
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +6 -6
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +5 -5
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +23 -23
- package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.dbg.json +4 -0
- package/artifacts/contracts/oracles/mocks/MockBinanceFeedRegistry.sol/MockBinanceFeedRegistry.json +116 -0
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/mocks/MockBinanceOracle.sol/MockBinanceOracle.json +144 -0
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +1 -1
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +2 -2
- package/artifacts/contracts/oracles/mocks/MockTwapOracle.sol/MockTwapOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/mocks/{MockPivotTwapOracle.sol/MockPivotTwapOracle.json → MockTwapOracle.sol/MockTwapOracle.json} +4 -4
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +1 -1
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.json +2 -2
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +1 -1
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.json +2 -2
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.dbg.json +4 -0
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockBoundValidator.json +95 -0
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +1 -1
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.json +2 -2
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +1 -1
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.json +2 -2
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +1 -1
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.json +2 -2
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +1 -1
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.json +2 -2
- package/deploy/oracles.d.ts +1 -1
- package/deploy/oracles.d.ts.map +1 -1
- package/deploy/oracles.js +43 -29
- package/deploy/oracles.js.map +1 -1
- package/deployments/.gitkeep +0 -0
- package/package.json +4 -5
- package/artifacts/build-info/5759fed659a82870ff637da81e15ba57.json +0 -1
- package/artifacts/build-info/b22018d758b06a50b7c80c494f08be30.json +0 -1
- package/artifacts/contracts/interfaces/OracleInterface.sol/PivotOracleInterface.dbg.json +0 -4
- package/artifacts/contracts/interfaces/OracleInterface.sol/PivotValidatorInterface.dbg.json +0 -4
- package/artifacts/contracts/oracles/PivotPythOracle.sol/PivotPythOracle.dbg.json +0 -4
- package/artifacts/contracts/oracles/PivotPythOracle.sol/PivotPythOracle.json +0 -441
- package/artifacts/contracts/oracles/PivotTwapOracle.sol/PivotTwapOracle.dbg.json +0 -4
- package/artifacts/contracts/oracles/PivotTwapOracle.sol/PivotTwapOracle.json +0 -691
- package/artifacts/contracts/oracles/mocks/MockPivotTwapOracle.sol/MockPivotTwapOracle.dbg.json +0 -4
- package/artifacts/contracts/test/MockBoundValidator.sol/MockBoundValidator.dbg.json +0 -4
- package/artifacts/contracts/test/MockBoundValidator.sol/MockBoundValidator.json +0 -226
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockPivotOracle.dbg.json +0 -4
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockPivotOracle.json +0 -133
- package/contracts/ResilientOracle.sol +0 -220
- package/contracts/interfaces/AggregatorV2V3Interface.sol +0 -60
- package/contracts/interfaces/BEP20Interface.sol +0 -97
- package/contracts/interfaces/OracleInterface.sol +0 -15
- package/contracts/interfaces/PythInterface.sol +0 -160
- package/contracts/interfaces/VBep20Interface.sol +0 -11
- package/contracts/libraries/PancakeLibrary.sol +0 -64
- package/contracts/oracles/BoundValidator.sol +0 -96
- package/contracts/oracles/ChainlinkOracle.sol +0 -178
- package/contracts/oracles/PivotPythOracle.sol +0 -18
- package/contracts/oracles/PivotTwapOracle.sol +0 -18
- package/contracts/oracles/PythOracle.sol +0 -129
- package/contracts/oracles/TwapOracle.sol +0 -234
- package/contracts/oracles/mocks/MockChainlinkOracle.sol +0 -26
- package/contracts/oracles/mocks/MockPivotTwapOracle.sol +0 -31
- package/contracts/oracles/mocks/MockPythOracle.sol +0 -31
- package/contracts/test/BEP20Harness.sol +0 -21
- package/contracts/test/MockBoundValidator.sol +0 -10
- package/contracts/test/MockPyth.sol +0 -78
- package/contracts/test/MockSimpleOracle.sol +0 -37
- package/contracts/test/MockV3Aggregator.sol +0 -91
- package/contracts/test/PancakePairHarness.sol +0 -113
- package/contracts/test/VBEP20Harness.sol +0 -22
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venusprotocol/oracle",
|
|
3
3
|
"description": "Venus Protocol Price Oracle",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.2",
|
|
5
5
|
"author": "",
|
|
6
6
|
"files": [
|
|
7
7
|
"artifacts",
|
|
8
8
|
"networks",
|
|
9
9
|
"deploy",
|
|
10
|
-
"
|
|
10
|
+
"deployments"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
13
|
"clean": "shx rm -rf ./artifacts ./cache ./coverage ./src/types ./coverage.json",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"deploy": "hardhat deploy",
|
|
18
18
|
"verify": "hardhat etherscan-verify",
|
|
19
19
|
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
|
|
20
|
-
"lint:sol": "solhint --config ./.solhint.json
|
|
20
|
+
"lint:sol": "solhint --config ./.solhint.json \"contracts/**/*.sol\"",
|
|
21
21
|
"lint:ts": "eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .js,.ts .",
|
|
22
22
|
"prettier": "prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
|
|
23
23
|
"prettier:check": "prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
|
|
24
24
|
"test": "npm run compile && hardhat test",
|
|
25
25
|
"typechain": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain",
|
|
26
|
-
"build": "rm -rf dist && tsc --declaration && hardhat compile && cp -r ./{package.json,yarn.lock,artifacts,networks,contracts} dist/",
|
|
26
|
+
"build": "rm -rf dist && tsc --declaration && hardhat compile && cp -r ./{package.json,yarn.lock,artifacts,networks,contracts,deployments} dist/",
|
|
27
27
|
"publish": "yarn build && cd dist && yarn npm publish"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
@@ -74,7 +74,6 @@
|
|
|
74
74
|
"shelljs": "^0.8.5",
|
|
75
75
|
"shx": "^0.3.4",
|
|
76
76
|
"solhint": "^3.3.7",
|
|
77
|
-
"solhint-plugin-prettier": "^0.0.5",
|
|
78
77
|
"solidity-coverage": "^0.7.21",
|
|
79
78
|
"ts-generator": "^0.1.1",
|
|
80
79
|
"ts-node": "^10.8.1",
|