@venusprotocol/isolated-pools 3.7.0 → 3.7.1-dev.1
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.
|
@@ -3,7 +3,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
6
|
+
const _001_source_timelocks_1 = __importDefault(require("@venusprotocol/governance-contracts/dist/deploy/001-source-timelocks"));
|
|
7
|
+
const _000_psr_1 = __importDefault(require("@venusprotocol/protocol-reserve/dist/deploy/000-psr"));
|
|
7
8
|
const ethers_1 = require("ethers");
|
|
8
9
|
const utils_1 = require("ethers/lib/utils");
|
|
9
10
|
const hardhat_1 = require("hardhat");
|
|
@@ -21,6 +22,7 @@ const func = async function (hre) {
|
|
|
21
22
|
const { tokensConfig, poolConfig, preconfiguredAddresses } = await (0, deploymentConfig_1.getConfig)(hre.network.name);
|
|
22
23
|
const { isTimeBased, blocksPerYear } = (0, deploymentUtils_1.getBlockOrTimestampBasedDeploymentInfo)(hre.network.name);
|
|
23
24
|
const maxBorrowRateMantissa = (0, deploymentConfig_1.getMaxBorrowRateMantissa)(hre.network.name);
|
|
25
|
+
await (0, _001_source_timelocks_1.default)(hre);
|
|
24
26
|
const accessControlManagerAddress = await (0, deploymentUtils_1.toAddress)(preconfiguredAddresses.AccessControlManager || "AccessControlManager", hre);
|
|
25
27
|
// VToken Beacon
|
|
26
28
|
const vTokenImpl = await deploy("VTokenImpl", {
|
|
@@ -101,7 +103,7 @@ const func = async function (hre) {
|
|
|
101
103
|
catch (e) {
|
|
102
104
|
if (!hre.network.live) {
|
|
103
105
|
console.warn("ProtocolShareReserve contract not found. Deploying address");
|
|
104
|
-
await (0,
|
|
106
|
+
await (0, _000_psr_1.default)(hre);
|
|
105
107
|
protocolShareReserveAddress = (await hardhat_1.ethers.getContract("ProtocolShareReserve")).address;
|
|
106
108
|
}
|
|
107
109
|
else {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import deployRiskFund from "@venusprotocol/protocol-reserve/dist/deploy/
|
|
1
|
+
import deployRiskFund from "@venusprotocol/protocol-reserve/dist/deploy/001-risk-fund-v2";
|
|
2
2
|
export default deployRiskFund;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
exports.default =
|
|
6
|
+
const _001_risk_fund_v2_1 = __importDefault(require("@venusprotocol/protocol-reserve/dist/deploy/001-risk-fund-v2"));
|
|
7
|
+
_001_risk_fund_v2_1.default.tags = ["RiskFund", "il"];
|
|
8
|
+
_001_risk_fund_v2_1.default.skip = async (hre) => hre.network.live;
|
|
9
|
+
exports.default = _001_risk_fund_v2_1.default;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const _001_psr_1 = __importDefault(require("@venusprotocol/protocol-reserve/dist/deploy/001-psr"));
|
|
7
3
|
const hardhat_1 = require("hardhat");
|
|
8
4
|
const getAllMarkets = async (poolRegistry) => {
|
|
9
5
|
const pools = await poolRegistry.getAllPools();
|
|
@@ -37,7 +33,6 @@ const func = async function (hre) {
|
|
|
37
33
|
catch (e) {
|
|
38
34
|
if (!hre.network.live) {
|
|
39
35
|
console.warn("ProtocolShareReserve contract not found. Deploying address");
|
|
40
|
-
await (0, _001_psr_1.default)(hre);
|
|
41
36
|
protocolShareReserveAddress = (await hardhat_1.ethers.getContract("ProtocolShareReserve")).address;
|
|
42
37
|
}
|
|
43
38
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venusprotocol/isolated-pools",
|
|
3
|
-
"version": "3.7.
|
|
3
|
+
"version": "3.7.1-dev.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"files": [
|
|
6
6
|
"artifacts",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@openzeppelin/contracts-upgradeable": "^4.8.3",
|
|
49
49
|
"@openzeppelin/hardhat-upgrades": "^1.21.0",
|
|
50
50
|
"@solidity-parser/parser": "^0.13.2",
|
|
51
|
-
"@venusprotocol/solidity-utilities": "
|
|
51
|
+
"@venusprotocol/solidity-utilities": "2.0.3",
|
|
52
52
|
"ethers": "^5.7.0",
|
|
53
53
|
"hardhat-deploy": "^0.11.14",
|
|
54
54
|
"module-alias": "^2.2.2"
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"@typescript-eslint/parser": "^5.27.1",
|
|
80
80
|
"@venusprotocol/governance-contracts": "2.6.0",
|
|
81
81
|
"@venusprotocol/oracle": "2.7.0",
|
|
82
|
-
"@venusprotocol/protocol-reserve": "
|
|
82
|
+
"@venusprotocol/protocol-reserve": "3.0.1",
|
|
83
83
|
"@venusprotocol/venus-protocol": "9.4.0",
|
|
84
84
|
"bignumber.js": "9.0.0",
|
|
85
85
|
"chai": "^4.3.6",
|
|
@@ -113,7 +113,8 @@
|
|
|
113
113
|
"ganache-core": "github:compound-finance/ganache-core.git#jflatow/unbreak-fork",
|
|
114
114
|
"solidity-parser-antlr": "https://github.com/solidity-parser/parser#0.8.2",
|
|
115
115
|
"@defi-wonderland/smock": "2.3.5",
|
|
116
|
-
"hardhat": "2.19.4"
|
|
116
|
+
"hardhat": "2.19.4",
|
|
117
|
+
"@venusprotocol/solidity-utilities": "2.0.3"
|
|
117
118
|
},
|
|
118
119
|
"publishConfig": {
|
|
119
120
|
"access": "public",
|