@venusprotocol/isolated-pools 2.2.1-dev.1 → 2.3.0-dev.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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "ethereum",
3
+ "chainId": "1",
4
+ "contracts": {}
5
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "sepolia",
3
+ "chainId": "11155111",
4
+ "contracts": {}
5
+ }
@@ -15,6 +15,7 @@ const func = async function (hre) {
15
15
  const { deploy } = deployments;
16
16
  const { deployer } = await getNamedAccounts();
17
17
  const { tokensConfig, poolConfig, preconfiguredAddresses } = await (0, deploymentConfig_1.getConfig)(hre.network.name);
18
+ const protocolShareReserve = await deployments.getOrNull("ProtocolShareReserve");
18
19
  const accessControlManagerAddress = await (0, deploymentUtils_1.toAddress)(preconfiguredAddresses.AccessControlManager || "AccessControlManager", hre);
19
20
  // VToken Beacon
20
21
  const vTokenImpl = await deploy("VTokenImpl", {
@@ -89,7 +90,7 @@ const func = async function (hre) {
89
90
  accessControlManagerAddress,
90
91
  [
91
92
  preconfiguredAddresses.Shortfall || ADDRESS_ONE,
92
- preconfiguredAddresses.ProtocolShareReserve || treasuryAddress,
93
+ protocolShareReserve ? protocolShareReserve.address : treasuryAddress,
93
94
  ],
94
95
  reserveFactor,
95
96
  ];
@@ -174,6 +174,18 @@ const config = {
174
174
  mnemonic: process.env.MNEMONIC || "",
175
175
  },
176
176
  },
177
+ sepolia: {
178
+ url: process.env.RPC_URL || "https://rpc.notadegen.com/eth/sepolia",
179
+ chainId: 11155111,
180
+ live: true,
181
+ gasPrice: 20000000000, // 20 gwei
182
+ },
183
+ ethereum: {
184
+ url: process.env.ETHEREUM_ARCHIVE_NODE_URL || "https://eth-mainnet.public.blastapi.io",
185
+ chainId: 1,
186
+ live: true,
187
+ timeout: 1200000, // 20 minutes
188
+ },
177
189
  },
178
190
  gasReporter: {
179
191
  enabled: process.env.REPORT_GAS !== undefined,
@@ -232,7 +244,9 @@ const config = {
232
244
  bsctestnet: [
233
245
  "node_modules/@venusprotocol/oracle/deployments/bsctestnet",
234
246
  "node_modules/@venusprotocol/venus-protocol/deployments/bsctestnet",
247
+ "node_modules/@venusprotocol/protocol-reserve/deployments/bsctestnet",
235
248
  ],
249
+ bscmainnet: ["node_modules/@venusprotocol/protocol-reserve/deployments/bscmainnet"],
236
250
  },
237
251
  },
238
252
  };