@venusprotocol/venus-protocol 6.1.0-dev.4 → 6.1.0-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.
@@ -17,7 +17,6 @@ require("solidity-coverage");
17
17
  require("solidity-docgen");
18
18
  require("hardhat-contract-sizer");
19
19
  require("dotenv").config();
20
- const BSCSCAN_API_KEY = process.env.BSCSCAN_API_KEY;
21
20
  const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
22
21
  (0, config_1.task)("accounts", "Prints the list of accounts", async (taskArgs, hre) => {
23
22
  const accounts = await hre.ethers.getSigners();
@@ -105,42 +104,104 @@ const config = {
105
104
  networks: {
106
105
  hardhat: isFork(),
107
106
  bsctestnet: {
108
- url: process.env.BSC_ARCHIVE_NODE_URL || "https://data-seed-prebsc-1-s1.binance.org:8545",
107
+ url: process.env.ARCHIVE_NODE_bsctestnet || "https://data-seed-prebsc-1-s1.binance.org:8545",
109
108
  chainId: 97,
110
- live: true,
111
109
  accounts: {
112
110
  mnemonic: process.env.MNEMONIC || "",
113
111
  },
112
+ gasPrice: 10000000000,
114
113
  gasMultiplier: 10,
115
114
  timeout: 12000000,
116
115
  },
117
116
  bscmainnet: {
118
- url: "http://127.0.0.1:1248",
119
- chainId: 56,
120
- live: true,
121
- timeout: 1200000, // 20 minutes
117
+ url: process.env.ARCHIVE_NODE_bscmainnet || "https://bsc-dataseed.binance.org/",
118
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
122
119
  },
123
120
  sepolia: {
124
- url: process.env.RPC_URL || "https://rpc.notadegen.com/eth/sepolia",
121
+ url: process.env.ARCHIVE_NODE_sepolia || "https://ethereum-sepolia.blockpi.network/v1/rpc/public",
125
122
  chainId: 11155111,
126
123
  live: true,
127
124
  gasPrice: 20000000000,
128
- accounts: {
129
- mnemonic: process.env.MNEMONIC || "",
130
- },
125
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
131
126
  },
132
127
  ethereum: {
133
- url: process.env.ETHEREUM_ARCHIVE_NODE_URL || "https://eth-mainnet.public.blastapi.io",
128
+ url: process.env.ARCHIVE_NODE_ethereum || "https://ethereum.blockpi.network/v1/rpc/public",
134
129
  chainId: 1,
135
130
  live: true,
136
- timeout: 1200000,
137
- accounts: {
138
- mnemonic: process.env.MNEMONIC || "",
139
- },
131
+ timeout: 1200000, // 20 minutes
132
+ },
133
+ opbnbtestnet: {
134
+ url: process.env.ARCHIVE_NODE_opbnbtestnet || "https://opbnb-testnet-rpc.bnbchain.org",
135
+ chainId: 5611,
136
+ live: true,
137
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
138
+ },
139
+ opbnbmainnet: {
140
+ url: process.env.ARCHIVE_NODE_opbnbmainnet || "https://opbnb-mainnet-rpc.bnbchain.org",
141
+ chainId: 204,
142
+ live: true,
143
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
140
144
  },
141
145
  },
142
146
  etherscan: {
143
- apiKey: BSCSCAN_API_KEY,
147
+ apiKey: {
148
+ bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
149
+ bsctestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
150
+ sepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
151
+ ethereum: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
152
+ opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
153
+ opbnbmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
154
+ },
155
+ customChains: [
156
+ {
157
+ network: "bscmainnet",
158
+ chainId: 56,
159
+ urls: {
160
+ apiURL: "https://api.bscscan.com/api",
161
+ browserURL: "https://bscscan.com",
162
+ },
163
+ },
164
+ {
165
+ network: "bsctestnet",
166
+ chainId: 97,
167
+ urls: {
168
+ apiURL: "https://api-testnet.bscscan.com/api",
169
+ browserURL: "https://testnet.bscscan.com",
170
+ },
171
+ },
172
+ {
173
+ network: "sepolia",
174
+ chainId: 11155111,
175
+ urls: {
176
+ apiURL: "https://api-sepolia.etherscan.io/api",
177
+ browserURL: "https://sepolia.etherscan.io",
178
+ },
179
+ },
180
+ {
181
+ network: "ethereum",
182
+ chainId: 1,
183
+ urls: {
184
+ apiURL: "https://api.etherscan.io/api",
185
+ browserURL: "https://etherscan.io",
186
+ },
187
+ },
188
+ {
189
+ network: "opbnbtestnet",
190
+ chainId: 5611,
191
+ urls: {
192
+ apiURL: `https://open-platform.nodereal.io/${process.env.ETHERSCAN_API_KEY}/op-bnb-testnet/contract/`,
193
+ browserURL: "https://testnet.opbnbscan.com/",
194
+ },
195
+ },
196
+ {
197
+ network: "opbnbmainnet",
198
+ chainId: 204,
199
+ urls: {
200
+ apiURL: `https://open-platform.nodereal.io/${process.env.ETHERSCAN_API_KEY}/op-bnb-testnet/contract/`,
201
+ browserURL: "https://opbnbscan.com/",
202
+ },
203
+ },
204
+ ],
144
205
  },
145
206
  paths: {
146
207
  sources: "./contracts",
@@ -195,16 +256,17 @@ const config = {
195
256
  },
196
257
  };
197
258
  function isFork() {
198
- return process.env.FORK_MAINNET === "true"
259
+ return process.env.FORK === "true"
199
260
  ? {
200
261
  allowUnlimitedContractSize: false,
201
262
  loggingEnabled: false,
202
263
  forking: {
203
- url: process.env.BSC_ARCHIVE_NODE_URL || "",
264
+ url: process.env[`ARCHIVE_NODE_${process.env.FORKED_NETWORK}`] ||
265
+ "https://data-seed-prebsc-1-s1.binance.org:8545",
204
266
  blockNumber: 21068448,
205
267
  },
206
268
  accounts: {
207
- accountsBalance: "1000000000000000000000",
269
+ accountsBalance: "1000000000000000000",
208
270
  },
209
271
  live: false,
210
272
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/venus-protocol",
3
- "version": "6.1.0-dev.4",
3
+ "version": "6.1.0-dev.6",
4
4
  "description": "The Venus Money Market",
5
5
  "repository": "git@github.com:VenusProtocol/venus-protocol.git",
6
6
  "author": "Venus",