@venusprotocol/venus-protocol 7.1.0-dev.2 → 7.1.0-dev.3
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/deploy/005-update-governance.ts +15 -6
- package/deploy/008-deploy-prime.ts +44 -35
- package/deploy/009-configure-vaults.ts +1 -0
- package/deployments/ethereum/XVSStore.json +374 -0
- package/deployments/ethereum/XVSVault.json +2373 -0
- package/deployments/ethereum/XVSVaultProxy.json +352 -0
- package/deployments/ethereum/solcInputs/7830d2b3dd486e9651687b362529ec15.json +345 -0
- package/deployments/ethereum.json +2040 -0
- package/deployments/ethereum_addresses.json +4 -1
- package/deployments/opbnbtestnet/XVSStore.json +374 -0
- package/deployments/opbnbtestnet/XVSVault.json +2373 -0
- package/deployments/opbnbtestnet/XVSVaultProxy.json +352 -0
- package/deployments/opbnbtestnet/solcInputs/6955f97c86c4a782497d93a270048fd7.json +345 -0
- package/deployments/opbnbtestnet.json +2040 -0
- package/deployments/opbnbtestnet_addresses.json +4 -1
- package/deployments/sepolia/Prime.json +2047 -0
- package/deployments/sepolia/PrimeLiquidityProvider.json +1118 -0
- package/deployments/sepolia/PrimeLiquidityProvider_Implementation.json +1415 -0
- package/deployments/sepolia/PrimeLiquidityProvider_Proxy.json +277 -0
- package/deployments/sepolia/Prime_Implementation.json +2949 -0
- package/deployments/sepolia/Prime_Proxy.json +287 -0
- package/deployments/sepolia/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
- package/deployments/sepolia/solcInputs/12c4cccf56f76ea87e105d789e4ae67f.json +228 -0
- package/deployments/sepolia/solcInputs/eda719eaabd93845f8c222de346f78bb.json +84 -0
- package/deployments/sepolia.json +5823 -0
- package/deployments/sepolia_addresses.json +6 -0
- package/dist/deploy/005-update-governance.js +11 -5
- package/dist/deploy/008-deploy-prime.js +36 -33
- package/dist/deploy/009-configure-vaults.js +2 -1
- package/dist/deployments/sepolia.json +8063 -0
- package/dist/hardhat.config.js +7 -2
- package/dist/helpers/address.d.ts +28 -48
- package/dist/helpers/address.js +15 -0
- package/package.json +4 -2
package/dist/hardhat.config.js
CHANGED
|
@@ -40,7 +40,10 @@ const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
|
|
|
40
40
|
"node_modules/@venusprotocol/oracle/deployments/sepolia",
|
|
41
41
|
"node_modules/@venusprotocol/token-bridge/deployments/sepolia",
|
|
42
42
|
],
|
|
43
|
-
ethereum: [
|
|
43
|
+
ethereum: [
|
|
44
|
+
"node_modules/@venusprotocol/token-bridge/deployments/ethereum",
|
|
45
|
+
"node_modules/@venusprotocol/governance-contracts/deployments/ethereum",
|
|
46
|
+
],
|
|
44
47
|
},
|
|
45
48
|
};
|
|
46
49
|
}
|
|
@@ -150,7 +153,9 @@ const config = {
|
|
|
150
153
|
chainId: 11155111,
|
|
151
154
|
live: true,
|
|
152
155
|
gasPrice: 20000000000,
|
|
153
|
-
accounts:
|
|
156
|
+
accounts: {
|
|
157
|
+
mnemonic: process.env.MNEMONIC || "",
|
|
158
|
+
},
|
|
154
159
|
},
|
|
155
160
|
ethereum: {
|
|
156
161
|
url: process.env.ARCHIVE_NODE_ethereum || "https://ethereum.blockpi.network/v1/rpc/public",
|
|
@@ -1,49 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
acm: string;
|
|
30
|
-
treasury: string;
|
|
31
|
-
oracle: string;
|
|
32
|
-
vai: string;
|
|
33
|
-
wbnb: string;
|
|
34
|
-
pancakeFactory: string;
|
|
35
|
-
unitroller: string;
|
|
36
|
-
vbnb: string;
|
|
37
|
-
protocolShareReserve: string;
|
|
38
|
-
xvs: string;
|
|
39
|
-
eth: string;
|
|
40
|
-
btcb: string;
|
|
41
|
-
usdc: string;
|
|
42
|
-
usdt: string;
|
|
43
|
-
veth: string;
|
|
44
|
-
vbtc: string;
|
|
45
|
-
vusdc: string;
|
|
46
|
-
vusdt: string;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
1
|
+
interface NetworkAddresses {
|
|
2
|
+
governorProxy?: string;
|
|
3
|
+
normalVipTimelock?: string;
|
|
4
|
+
xvsVault?: string;
|
|
5
|
+
acm?: string;
|
|
6
|
+
treasury?: string;
|
|
7
|
+
oracle?: string;
|
|
8
|
+
vai?: string;
|
|
9
|
+
wbnb?: string;
|
|
10
|
+
pancakeFactory?: string;
|
|
11
|
+
unitroller?: string;
|
|
12
|
+
vbnb?: string;
|
|
13
|
+
protocolShareReserve?: string;
|
|
14
|
+
xvs?: string;
|
|
15
|
+
eth?: string;
|
|
16
|
+
btcb?: string;
|
|
17
|
+
usdc?: string;
|
|
18
|
+
usdt?: string;
|
|
19
|
+
veth?: string;
|
|
20
|
+
vbtc?: string;
|
|
21
|
+
vusdc?: string;
|
|
22
|
+
vusdt?: string;
|
|
23
|
+
poolRegistry?: string;
|
|
24
|
+
}
|
|
25
|
+
interface Addresses {
|
|
26
|
+
[network: string]: NetworkAddresses;
|
|
27
|
+
}
|
|
28
|
+
declare const ADDRESSES: Addresses;
|
|
49
29
|
export default ADDRESSES;
|
package/dist/helpers/address.js
CHANGED
|
@@ -5,14 +5,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const bscmainnet_json_1 = __importDefault(require("@venusprotocol/governance-contracts/deployments/bscmainnet.json"));
|
|
7
7
|
const bsctestnet_json_1 = __importDefault(require("@venusprotocol/governance-contracts/deployments/bsctestnet.json"));
|
|
8
|
+
const sepolia_json_1 = __importDefault(require("@venusprotocol/governance-contracts/deployments/sepolia.json"));
|
|
9
|
+
const sepolia_json_2 = __importDefault(require("@venusprotocol/isolated-pools/deployments/sepolia.json"));
|
|
8
10
|
const bscmainnet_json_2 = __importDefault(require("@venusprotocol/oracle/deployments/bscmainnet.json"));
|
|
9
11
|
const bsctestnet_json_2 = __importDefault(require("@venusprotocol/oracle/deployments/bsctestnet.json"));
|
|
12
|
+
const sepolia_json_3 = __importDefault(require("@venusprotocol/oracle/deployments/sepolia.json"));
|
|
10
13
|
const ProtocolShareReserve_Proxy_json_1 = __importDefault(require("@venusprotocol/protocol-reserve/deployments/bscmainnet/ProtocolShareReserve_Proxy.json"));
|
|
11
14
|
const ProtocolShareReserve_Proxy_json_2 = __importDefault(require("@venusprotocol/protocol-reserve/deployments/bsctestnet/ProtocolShareReserve_Proxy.json"));
|
|
15
|
+
const sepolia_json_4 = __importDefault(require("@venusprotocol/token-bridge/deployments/sepolia.json"));
|
|
12
16
|
//TESTNET DEPLOYED CONTRACTS
|
|
13
17
|
const bscmainnet_json_3 = __importDefault(require("../deployments/bscmainnet.json"));
|
|
14
18
|
//MAINNET DEPLOYED CONTRACTS
|
|
15
19
|
const bsctestnet_json_3 = __importDefault(require("../deployments/bsctestnet.json"));
|
|
20
|
+
//SEPOLIA DEPLOYED CONTRACTS
|
|
21
|
+
const sepolia_json_5 = __importDefault(require("../deployments/sepolia.json"));
|
|
22
|
+
const SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
|
|
16
23
|
const ADDRESSES = {
|
|
17
24
|
bsctestnet: {
|
|
18
25
|
governorProxy: bsctestnet_json_1.default.contracts.GovernorBravoDelegator.address,
|
|
@@ -60,5 +67,13 @@ const ADDRESSES = {
|
|
|
60
67
|
vusdc: bscmainnet_json_3.default.contracts.vUSDC.address,
|
|
61
68
|
vusdt: bscmainnet_json_3.default.contracts.vUSDT.address,
|
|
62
69
|
},
|
|
70
|
+
sepolia: {
|
|
71
|
+
xvsVault: sepolia_json_5.default.contracts.XVSVaultProxy.address,
|
|
72
|
+
xvs: sepolia_json_4.default.contracts.XVS.address,
|
|
73
|
+
normalVipTimelock: SEPOLIA_MULTISIG,
|
|
74
|
+
acm: sepolia_json_1.default.contracts.AccessControlManager.address,
|
|
75
|
+
oracle: sepolia_json_3.default.contracts.ResilientOracle_Proxy.address,
|
|
76
|
+
poolRegistry: sepolia_json_2.default.contracts.PoolRegistry.address,
|
|
77
|
+
},
|
|
63
78
|
};
|
|
64
79
|
exports.default = ADDRESSES;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venusprotocol/venus-protocol",
|
|
3
|
-
"version": "7.1.0-dev.
|
|
3
|
+
"version": "7.1.0-dev.3",
|
|
4
4
|
"description": "The Venus Money Market",
|
|
5
5
|
"repository": "git@github.com:VenusProtocol/venus-protocol.git",
|
|
6
6
|
"author": "Venus",
|
|
@@ -33,8 +33,10 @@
|
|
|
33
33
|
"@openzeppelin/contracts": "4.9.3",
|
|
34
34
|
"@openzeppelin/contracts-upgradeable": "^4.8.0",
|
|
35
35
|
"@venusprotocol/governance-contracts": "^1.4.0",
|
|
36
|
+
"@venusprotocol/isolated-pools": "2.3.0",
|
|
36
37
|
"@venusprotocol/protocol-reserve": "^1.2.0",
|
|
37
38
|
"@venusprotocol/solidity-utilities": "^1.2.0",
|
|
39
|
+
"@venusprotocol/token-bridge": "1.0.0",
|
|
38
40
|
"bignumber.js": "^9.1.2",
|
|
39
41
|
"dotenv": "^16.0.1",
|
|
40
42
|
"module-alias": "^2.2.2"
|
|
@@ -64,7 +66,7 @@
|
|
|
64
66
|
"@types/node": "^18.7.1",
|
|
65
67
|
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
66
68
|
"@typescript-eslint/parser": "^5.40.0",
|
|
67
|
-
"@venusprotocol/oracle": "1.8.0
|
|
69
|
+
"@venusprotocol/oracle": "1.8.0",
|
|
68
70
|
"bignumber.js": "^9.1.2",
|
|
69
71
|
"chai": "^4.3.6",
|
|
70
72
|
"eslint": "^8.25.0",
|