@venusprotocol/oracle 2.16.0-slim → 2.16.0-slim-dev.6

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/README.md CHANGED
@@ -33,12 +33,18 @@ When fetching an oracle price, for the price to be valid it must be positive and
33
33
 
34
34
  - Solc - v0.8.13 (https://github.com/ethereum/solidity/releases/tag/v0.8.13)
35
35
 
36
+ - Foundry - v1.5.1 (https://getfoundry.sh)
37
+
36
38
  ## Installing
37
39
 
38
40
  ```
39
41
 
40
42
  yarn install
41
43
 
44
+ git submodule update --init --recursive
45
+
46
+ foundryup --install v1.5.1
47
+
42
48
  ```
43
49
 
44
50
  ## Linting and code formatting
@@ -70,6 +76,8 @@ $ yarn prettier
70
76
 
71
77
  npx hardhat test
72
78
 
79
+ forge test
80
+
73
81
  ```
74
82
 
75
83
  - To run fork tests add FORK=true, FORKED_NETWORK and one ARCHIVE_NODE var in the .env file.
@@ -2,6 +2,9 @@
2
2
  "name": "bscmainnet",
3
3
  "chainId": "56",
4
4
  "addresses": {
5
+ "APROOracle": "0x04480f1Ba2252CDF89deB022B58d0a03d1B4cF91",
6
+ "APROOracle_Implementation": "0x5499Aa0d1a7Ee06B92f3d9213774Ae848bC8c9A4",
7
+ "APROOracle_Proxy": "0x04480f1Ba2252CDF89deB022B58d0a03d1B4cF91",
5
8
  "AnkrBNBOracle": "0x4512e9579734f7B8730f0a05Cd0D92DC33EB2675",
6
9
  "AsBNBOracle": "0x652B90D1d45a7cD5BE82c5Fb61a4A00bA126dde5",
7
10
  "AtlasOracle": "0x9E6928Ec418948ceb9f1cd9872fD312b13D841D0",
@@ -72,6 +75,9 @@
72
75
  "WBETHOracle": "0x49938fc72262c126eb5D4BdF6430C55189AEB2BA",
73
76
  "sUSDeOneJumpChainlinkOracle": "0xA67F01322AF8EBa444D788Ee398775b446de51a0",
74
77
  "sUSDeOneJumpRedstoneOracle": "0x2B2895104f958E1EC042E6Ba5cbfeCbAD3C5beDb",
78
+ "vhUSDC_ERC4626Oracle": "0x85aa49526287F06cb36d57121BC7abAF58a8787a",
79
+ "vhUSDT_ERC4626Oracle": "0x50a998cf59Fe719129702125C9078b0B429DA6E7",
80
+ "vhU_ERC4626Oracle": "0x5b3735F362ed89b51FBe244509e398BFDDaC8da9",
75
81
  "weETHOneJumpChainlinkOracle": "0x3b3241698692906310A65ACA199701843404E175",
76
82
  "weETHOneJumpChainlinkOracle_Implementation": "0x157fb3dFe0Bd5569cC25DC79Ae195E82A3EB6855",
77
83
  "weETHOneJumpChainlinkOracle_Proxy": "0x3b3241698692906310A65ACA199701843404E175",
@@ -84,6 +90,7 @@
84
90
  "wstETHOneJumpRedstoneOracle": "0x90dd7ae1137cC072F7740Ee0b264f2351515B98A",
85
91
  "wstETHOneJumpRedstoneOracle_Implementation": "0xCf56AEB81930bB4d1Bd94a2381A4A3fb6b4Bd44b",
86
92
  "wstETHOneJumpRedstoneOracle_Proxy": "0x90dd7ae1137cC072F7740Ee0b264f2351515B98A",
93
+ "xSolvBTCOneJumpChainlinkOracle": "0xDfDbF9DAFbc94Cb1F827d3364637dDBB26823739",
87
94
  "xSolvBTCOneJumpRedStoneOracle": "0xf5534f78Df9b610B19A63956d498d00CFaD8B9D3"
88
95
  }
89
96
  }
@@ -2,6 +2,9 @@
2
2
  "name": "bsctestnet",
3
3
  "chainId": "97",
4
4
  "addresses": {
5
+ "APROOracle": "0x309bC6e25672fDBCFa09D76bAA68be59f215f98d",
6
+ "APROOracle_Implementation": "0x65527D9F60E6c6dEE2C5CF361C38499daf0587BA",
7
+ "APROOracle_Proxy": "0x309bC6e25672fDBCFa09D76bAA68be59f215f98d",
5
8
  "AnkrBNBOracle": "0x7655d558c3C865913013D82fF4d1e70e97cDf906",
6
9
  "AsBNBOracle": "0xb31909f6687Da5bEc559DB7baeed41E14f5Dc17E",
7
10
  "AtlasOracle": "0x7F00af2f30a55e79311392C98fBBfA629D19b3A5",
@@ -59,6 +62,7 @@
59
62
  "WBETHOracle_Proxy": "0x80f80ad1d963673819752c234339901fa19fA7cb",
60
63
  "sUSDeOneJumpChainlinkOracle": "0x4678BcB5B8eDd9f853725F64d59Ba592F9e41565",
61
64
  "sUSDeOneJumpRedstoneOracle": "0xA5b51bF1625c1F90341c4527AFa5B0865F15ac70",
65
+ "vhUSDT_ERC4626Oracle": "0xB5A17EB6A135A61057bc2F4f102c633899256BFa",
62
66
  "weETHOneJumpChainlinkOracle": "0x8C8a70695DC952CA2e8CD4038907201FaBB8134E",
63
67
  "weETHOneJumpChainlinkOracle_Implementation": "0x8C836bB533107A8FB4741377cf7b666DD0248C08",
64
68
  "weETHOneJumpChainlinkOracle_Proxy": "0x8C8a70695DC952CA2e8CD4038907201FaBB8134E",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@venusprotocol/oracle",
3
3
  "description": "Venus Protocol Price Oracle",
4
4
  "repository": "git@github.com:VenusProtocol/oracle.git",
5
- "version": "2.16.0-slim",
5
+ "version": "2.16.0-slim-dev.6",
6
6
  "author": "Venus",
7
7
  "engines": {
8
8
  "node": ">=18.x.x"
@@ -16,7 +16,7 @@
16
16
  "contracts"
17
17
  ],
18
18
  "scripts": {
19
- "clean": "shx rm -rf ./artifacts ./cache ./coverage ./coverage.json && hardhat clean && hardhat clean --config hardhat.config.zksync.ts",
19
+ "clean": "shx rm -rf ./artifacts ./cache ./coverage ./coverage.json ./out ./cache-foundry && hardhat clean && hardhat clean --config hardhat.config.zksync.ts",
20
20
  "commit": "git-cz",
21
21
  "compile": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat compile && hardhat compile --config hardhat.config.zksync.ts",
22
22
  "hardhat:coverage": "hardhat coverage",
@@ -28,7 +28,9 @@
28
28
  "lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",
29
29
  "prettier": "prettier --config ./.prettierrc.yaml --write \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
30
30
  "prettier:check": "prettier --check --config ./.prettierrc.yaml \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
31
+ "prettier:cached": "prettier --write --cache --config ./.prettierrc.yaml \"**/*.{js,json,md,sol,ts,yaml,yml}\"",
31
32
  "test": "npm run compile && hardhat test",
33
+ "test:foundry": "forge test",
32
34
  "typechain": "cross-env TS_NODE_TRANSPILE_ONLY=true hardhat typechain",
33
35
  "build": "rm -rf dist && hardhat compile && hardhat compile --config hardhat.config.zksync.ts && tsc --declaration",
34
36
  "docgen": "hardhat docgen"