@venusprotocol/venus-periphery 1.0.0 → 1.0.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.
@@ -1,8 +1,7 @@
1
1
  import "module-alias/register";
2
2
  import "@nomicfoundation/hardhat-chai-matchers";
3
- import "@nomicfoundation/hardhat-toolbox";
3
+ import "@nomicfoundation/hardhat-verify";
4
4
  import "@nomiclabs/hardhat-ethers";
5
- import "@nomiclabs/hardhat-etherscan";
6
5
  import "@openzeppelin/hardhat-upgrades";
7
6
  import "@typechain/hardhat";
8
7
  import "hardhat-dependency-compiler";
@@ -25,9 +25,8 @@ var __importStar = (this && this.__importStar) || function (mod) {
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
26
  require("module-alias/register");
27
27
  require("@nomicfoundation/hardhat-chai-matchers");
28
- require("@nomicfoundation/hardhat-toolbox");
28
+ require("@nomicfoundation/hardhat-verify");
29
29
  require("@nomiclabs/hardhat-ethers");
30
- require("@nomiclabs/hardhat-etherscan");
31
30
  require("@openzeppelin/hardhat-upgrades");
32
31
  require("@typechain/hardhat");
33
32
  const dotenv = __importStar(require("dotenv"));
@@ -234,40 +233,11 @@ const config = {
234
233
  enabled: process.env.REPORT_GAS !== undefined,
235
234
  currency: "USD",
236
235
  },
236
+ sourcify: {
237
+ enabled: true,
238
+ },
237
239
  etherscan: {
238
240
  customChains: [
239
- {
240
- network: "bsctestnet",
241
- chainId: 97,
242
- urls: {
243
- apiURL: "https://api-testnet.bscscan.com/api",
244
- browserURL: "https://testnet.bscscan.com",
245
- },
246
- },
247
- {
248
- network: "bscmainnet",
249
- chainId: 56,
250
- urls: {
251
- apiURL: "https://api.bscscan.com/api",
252
- browserURL: "https://bscscan.com",
253
- },
254
- },
255
- {
256
- network: "sepolia",
257
- chainId: 11155111,
258
- urls: {
259
- apiURL: "https://api-sepolia.etherscan.io/api",
260
- browserURL: "https://sepolia.etherscan.io",
261
- },
262
- },
263
- {
264
- network: "ethereum",
265
- chainId: 1,
266
- urls: {
267
- apiURL: "https://api.etherscan.io/api",
268
- browserURL: "https://etherscan.io",
269
- },
270
- },
271
241
  {
272
242
  network: "opbnbtestnet",
273
243
  chainId: 5611,
@@ -284,30 +254,6 @@ const config = {
284
254
  browserURL: "https://opbnbscan.com/",
285
255
  },
286
256
  },
287
- {
288
- network: "ethereum",
289
- chainId: 1,
290
- urls: {
291
- apiURL: "https://api.etherscan.io/api",
292
- browserURL: "https://etherscan.io",
293
- },
294
- },
295
- {
296
- network: "arbitrumsepolia",
297
- chainId: 421614,
298
- urls: {
299
- apiURL: `https://api-sepolia.arbiscan.io/api`,
300
- browserURL: "https://sepolia.arbiscan.io/",
301
- },
302
- },
303
- {
304
- network: "arbitrumone",
305
- chainId: 42161,
306
- urls: {
307
- apiURL: `https://api.arbiscan.io/api/`,
308
- browserURL: "https://arbiscan.io/",
309
- },
310
- },
311
257
  {
312
258
  network: "opsepolia",
313
259
  chainId: 11155420,
@@ -316,35 +262,11 @@ const config = {
316
262
  browserURL: "https://sepolia-optimistic.etherscan.io/",
317
263
  },
318
264
  },
319
- {
320
- network: "opmainnet",
321
- chainId: 10,
322
- urls: {
323
- apiURL: "https://api-optimistic.etherscan.io/api",
324
- browserURL: "https://optimistic.etherscan.io/",
325
- },
326
- },
327
- {
328
- network: "basesepolia",
329
- chainId: 84532,
330
- urls: {
331
- apiURL: "https://api-sepolia.basescan.org/api",
332
- browserURL: "https://sepolia.basescan.org/",
333
- },
334
- },
335
- {
336
- network: "basemainnet",
337
- chainId: 8453,
338
- urls: {
339
- apiURL: "https://api.basescan.org/api",
340
- browserURL: "https://basescan.org/",
341
- },
342
- },
343
265
  {
344
266
  network: "unichainsepolia",
345
267
  chainId: 1301,
346
268
  urls: {
347
- apiURL: "https://api-sepolia.uniscan.xyz/api/",
269
+ apiURL: `https://api-sepolia.uniscan.xyz/api/`,
348
270
  browserURL: "https://sepolia.uniscan.xyz/",
349
271
  },
350
272
  },
@@ -352,27 +274,12 @@ const config = {
352
274
  network: "unichainmainnet",
353
275
  chainId: 130,
354
276
  urls: {
355
- apiURL: "https://api.uniscan.xyz/api/",
277
+ apiURL: `https://api.uniscan.xyz/api/`,
356
278
  browserURL: "https://uniscan.xyz/",
357
279
  },
358
280
  },
359
281
  ],
360
- apiKey: {
361
- bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
362
- bsctestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
363
- ethereum: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
364
- sepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
365
- opbnbmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
366
- opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
367
- arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
368
- arbitrumsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
369
- opsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
370
- opmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
371
- basesepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
372
- basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
373
- unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
374
- unichainmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
375
- },
282
+ apiKey: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
376
283
  },
377
284
  paths: {
378
285
  tests: "./tests",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/venus-periphery",
3
- "version": "1.0.0",
3
+ "version": "1.0.1-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -63,8 +63,7 @@
63
63
  "@matterlabs/hardhat-zksync-verify": "0.7.0",
64
64
  "@nomicfoundation/hardhat-chai-matchers": "^1.0.3",
65
65
  "@nomicfoundation/hardhat-network-helpers": "^1.0.4",
66
- "@nomicfoundation/hardhat-toolbox": "^2.0.0",
67
- "@nomiclabs/hardhat-etherscan": "^3.0.3",
66
+ "@nomicfoundation/hardhat-verify": "^2.0.14",
68
67
  "@semantic-release/changelog": "^6.0.1",
69
68
  "@semantic-release/git": "^10.0.1",
70
69
  "@semantic-release/npm": "^9.0.1",