@venusprotocol/oracle 1.1.0
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 +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.json +297 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.json +194 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.json +233 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeCast.sol/SafeCast.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SafeMath.sol/SafeMath.json +10 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts/utils/math/SignedMath.sol/SignedMath.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.json +76 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.json +24 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol/PausableUpgradeable.json +63 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.json +10 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +4 -0
- package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.json +24 -0
- package/artifacts/build-info/5759fed659a82870ff637da81e15ba57.json +1 -0
- package/artifacts/build-info/b22018d758b06a50b7c80c494f08be30.json +1 -0
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.dbg.json +4 -0
- package/artifacts/contracts/ResilientOracle.sol/ResilientOracle.json +433 -0
- package/artifacts/contracts/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/AggregatorV2V3Interface.sol/AggregatorV2V3Interface.json +249 -0
- package/artifacts/contracts/interfaces/BEP20Interface.sol/BEP20Interface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/BEP20Interface.sol/BEP20Interface.json +246 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/OracleInterface.json +30 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/PivotOracleInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/PivotOracleInterface.json +54 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/PivotValidatorInterface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/OracleInterface.sol/PivotValidatorInterface.json +35 -0
- package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.dbg.json +4 -0
- package/artifacts/contracts/interfaces/PythInterface.sol/IPyth.json +331 -0
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.dbg.json +4 -0
- package/artifacts/contracts/interfaces/PythInterface.sol/PythStructs.json +10 -0
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.dbg.json +4 -0
- package/artifacts/contracts/interfaces/VBep20Interface.sol/VBep20Interface.json +259 -0
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.dbg.json +4 -0
- package/artifacts/contracts/libraries/PancakeLibrary.sol/FixedPoint.json +10 -0
- package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.dbg.json +4 -0
- package/artifacts/contracts/libraries/PancakeLibrary.sol/IPancakePair.json +60 -0
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.dbg.json +4 -0
- package/artifacts/contracts/libraries/PancakeLibrary.sol/PancakeOracleLibrary.json +10 -0
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.dbg.json +4 -0
- package/artifacts/contracts/oracles/BoundValidator.sol/BoundValidator.json +219 -0
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/ChainlinkOracle.sol/ChainlinkOracle.json +315 -0
- package/artifacts/contracts/oracles/PivotPythOracle.sol/PivotPythOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/PivotPythOracle.sol/PivotPythOracle.json +441 -0
- package/artifacts/contracts/oracles/PivotTwapOracle.sol/PivotTwapOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/PivotTwapOracle.sol/PivotTwapOracle.json +691 -0
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/PythOracle.sol/PythOracle.json +274 -0
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/TwapOracle.sol/TwapOracle.json +524 -0
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/mocks/MockChainlinkOracle.sol/MockChainlinkOracle.json +144 -0
- package/artifacts/contracts/oracles/mocks/MockPivotTwapOracle.sol/MockPivotTwapOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/mocks/MockPivotTwapOracle.sol/MockPivotTwapOracle.json +163 -0
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.dbg.json +4 -0
- package/artifacts/contracts/oracles/mocks/MockPythOracle.sol/MockPythOracle.json +163 -0
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.dbg.json +4 -0
- package/artifacts/contracts/test/BEP20Harness.sol/BEP20Harness.json +315 -0
- package/artifacts/contracts/test/MockBoundValidator.sol/MockBoundValidator.dbg.json +4 -0
- package/artifacts/contracts/test/MockBoundValidator.sol/MockBoundValidator.json +226 -0
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.dbg.json +4 -0
- package/artifacts/contracts/test/MockPyth.sol/MockPyth.json +591 -0
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockPivotOracle.dbg.json +4 -0
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockPivotOracle.json +133 -0
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.dbg.json +4 -0
- package/artifacts/contracts/test/MockSimpleOracle.sol/MockSimpleOracle.json +72 -0
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.dbg.json +4 -0
- package/artifacts/contracts/test/MockV3Aggregator.sol/MockV3Aggregator.json +306 -0
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.dbg.json +4 -0
- package/artifacts/contracts/test/PancakePairHarness.sol/Math.json +10 -0
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.dbg.json +4 -0
- package/artifacts/contracts/test/PancakePairHarness.sol/PancakePairHarness.json +158 -0
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.dbg.json +4 -0
- package/artifacts/contracts/test/PancakePairHarness.sol/UQ112x112.json +10 -0
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.dbg.json +4 -0
- package/artifacts/contracts/test/VBEP20Harness.sol/VBEP20Harness.json +333 -0
- package/deploy/oracles.d.ts +4 -0
- package/deploy/oracles.d.ts.map +1 -0
- package/deploy/oracles.js +76 -0
- package/deploy/oracles.js.map +1 -0
- package/networks/mainnet.json +1 -0
- package/package.json +98 -0
package/package.json
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@venusprotocol/oracle",
|
|
3
|
+
"description": "Venus Protocol Price Oracle",
|
|
4
|
+
"version": "1.1.0",
|
|
5
|
+
"author": "",
|
|
6
|
+
"files": [
|
|
7
|
+
"artifacts",
|
|
8
|
+
"networks",
|
|
9
|
+
"deploy"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"clean": "shx rm -rf ./artifacts ./cache ./coverage ./src/types ./coverage.json",
|
|
13
|
+
"commit": "git-cz",
|
|
14
|
+
"compile": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile",
|
|
15
|
+
"coverage": "yarn typechain && hardhat coverage --solcoverjs ./.solcover.js --temp artifacts --testfiles \"test/**/*.ts\" && yarn typechain",
|
|
16
|
+
"deploy": "hardhat deploy",
|
|
17
|
+
"verify": "hardhat etherscan-verify",
|
|
18
|
+
"lint": "yarn lint:sol && yarn lint:ts && yarn prettier:check",
|
|
19
|
+
"lint:sol": "solhint --config ./.solhint.json --max-warnings 0 \"contracts/**/*.sol\"",
|
|
20
|
+
"lint:ts": "eslint --config ./.eslintrc.yaml --ignore-path ./.eslintignore --ext .js,.ts .",
|
|
21
|
+
"prettier": "prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
|
|
22
|
+
"prettier:check": "prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
|
|
23
|
+
"test": "npm run compile && hardhat test",
|
|
24
|
+
"typechain": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain",
|
|
25
|
+
"build": "rm -rf dist && tsc --declaration && hardhat compile && cp -r ./artifacts ./dist && cp -r networks dist/ && cp ./{package.json,yarn.lock} dist/",
|
|
26
|
+
"publish": "yarn build && cd dist && yarn npm publish"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"@openzeppelin/contracts": "^4.6.0",
|
|
30
|
+
"@openzeppelin/contracts-upgradeable": "^4.7.3",
|
|
31
|
+
"@venusprotocol/venus-protocol": "0.3.0",
|
|
32
|
+
"module-alias": "^2.2.2"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@commitlint/cli": "^17.0.2",
|
|
36
|
+
"@commitlint/config-conventional": "^17.0.2",
|
|
37
|
+
"@ethersproject/abstract-signer": "^5.6.2",
|
|
38
|
+
"@ethersproject/bignumber": "^5.6.2",
|
|
39
|
+
"@ethersproject/bytes": "^5.6.1",
|
|
40
|
+
"@ethersproject/providers": "^5.6.8",
|
|
41
|
+
"@nomiclabs/hardhat-etherscan": "^3.1.0",
|
|
42
|
+
"@nomiclabs/hardhat-waffle": "^2.0.3",
|
|
43
|
+
"@openzeppelin/hardhat-upgrades": "^1.20.0",
|
|
44
|
+
"@trivago/prettier-plugin-sort-imports": "^3.2.0",
|
|
45
|
+
"@typechain/ethers-v5": "^10.1.0",
|
|
46
|
+
"@typechain/hardhat": "^6.1.0",
|
|
47
|
+
"@types/chai": "^4.3.1",
|
|
48
|
+
"@types/fs-extra": "^9.0.13",
|
|
49
|
+
"@types/mocha": "^9.1.1",
|
|
50
|
+
"@types/node": "^17.0.42",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
52
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
53
|
+
"chai": "^4.3.6",
|
|
54
|
+
"commitizen": "^4.2.4",
|
|
55
|
+
"cross-env": "^7.0.3",
|
|
56
|
+
"cz-conventional-changelog": "^3.3.0",
|
|
57
|
+
"dotenv": "^16.0.1",
|
|
58
|
+
"eslint": "^8.17.0",
|
|
59
|
+
"eslint-config-prettier": "^8.5.0",
|
|
60
|
+
"ethereum-waffle": "^3.4.4",
|
|
61
|
+
"ethers": "^5.6.8",
|
|
62
|
+
"fs-extra": "^10.1.0",
|
|
63
|
+
"hardhat": "^2.9.9",
|
|
64
|
+
"hardhat-deploy": "^0.11.14",
|
|
65
|
+
"hardhat-deploy-ethers": "^0.3.0-beta.13",
|
|
66
|
+
"hardhat-gas-reporter": "^1.0.8",
|
|
67
|
+
"husky": "^8.0.1",
|
|
68
|
+
"lint-staged": "^13.0.1",
|
|
69
|
+
"lodash": "^4.17.21",
|
|
70
|
+
"mocha": "^10.0.0",
|
|
71
|
+
"prettier": "^2.6.2",
|
|
72
|
+
"prettier-plugin-solidity": "^1.0.0-dev.21",
|
|
73
|
+
"shelljs": "^0.8.5",
|
|
74
|
+
"shx": "^0.3.4",
|
|
75
|
+
"solhint": "^3.3.7",
|
|
76
|
+
"solhint-plugin-prettier": "^0.0.5",
|
|
77
|
+
"solidity-coverage": "^0.7.21",
|
|
78
|
+
"ts-generator": "^0.1.1",
|
|
79
|
+
"ts-node": "^10.8.1",
|
|
80
|
+
"typechain": "^8.1.0",
|
|
81
|
+
"typescript": "^4.7.3"
|
|
82
|
+
},
|
|
83
|
+
"keywords": [
|
|
84
|
+
"blockchain",
|
|
85
|
+
"ethereum",
|
|
86
|
+
"hardhat",
|
|
87
|
+
"smart-contracts",
|
|
88
|
+
"solidity"
|
|
89
|
+
],
|
|
90
|
+
"packageManager": "yarn@3.2.0",
|
|
91
|
+
"publishConfig": {
|
|
92
|
+
"access": "public"
|
|
93
|
+
},
|
|
94
|
+
"_moduleAliases": {
|
|
95
|
+
"@nomiclabs/hardhat-ethers": "node_modules/hardhat-deploy-ethers",
|
|
96
|
+
"@nomiclabs/hardhat-ethers/types": "hardhat-deploy-ethers/types"
|
|
97
|
+
}
|
|
98
|
+
}
|