@venusprotocol/isolated-pools 4.4.0-dev.2 → 4.4.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/README.md CHANGED
@@ -148,7 +148,7 @@ $ yarn hardhat export --network <network-name> --export ./deployments/<network-n
148
148
  ## Source Code Verification
149
149
 
150
150
  In order to verify the source code of already deployed contracts, run:
151
- `npx hardhat etherscan-verify --network <network_name>`
151
+ `npx hardhat verify --network <network-name> <contract-address> <constructor-arg1> <constructor-arg2>`
152
152
 
153
153
  Make sure you have added `ETHERSCAN_API_KEY` in `.env` file.
154
154
 
@@ -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"));
@@ -382,40 +381,11 @@ const config = {
382
381
  enabled: process.env.REPORT_GAS !== undefined,
383
382
  currency: "USD",
384
383
  },
384
+ sourcify: {
385
+ enabled: true,
386
+ },
385
387
  etherscan: {
386
388
  customChains: [
387
- {
388
- network: "bsctestnet",
389
- chainId: 97,
390
- urls: {
391
- apiURL: "https://api-testnet.bscscan.com/api",
392
- browserURL: "https://testnet.bscscan.com",
393
- },
394
- },
395
- {
396
- network: "bscmainnet",
397
- chainId: 56,
398
- urls: {
399
- apiURL: "https://api.bscscan.com/api",
400
- browserURL: "https://bscscan.com",
401
- },
402
- },
403
- {
404
- network: "sepolia",
405
- chainId: 11155111,
406
- urls: {
407
- apiURL: "https://api-sepolia.etherscan.io/api",
408
- browserURL: "https://sepolia.etherscan.io",
409
- },
410
- },
411
- {
412
- network: "ethereum",
413
- chainId: 1,
414
- urls: {
415
- apiURL: "https://api.etherscan.io/api",
416
- browserURL: "https://etherscan.io",
417
- },
418
- },
419
389
  {
420
390
  network: "opbnbtestnet",
421
391
  chainId: 5611,
@@ -440,22 +410,6 @@ const config = {
440
410
  browserURL: "https://etherscan.io",
441
411
  },
442
412
  },
443
- {
444
- network: "arbitrumsepolia",
445
- chainId: 421614,
446
- urls: {
447
- apiURL: `https://api-sepolia.arbiscan.io/api`,
448
- browserURL: "https://sepolia.arbiscan.io/",
449
- },
450
- },
451
- {
452
- network: "arbitrumone",
453
- chainId: 42161,
454
- urls: {
455
- apiURL: `https://api.arbiscan.io/api/`,
456
- browserURL: "https://arbiscan.io/",
457
- },
458
- },
459
413
  {
460
414
  network: "opsepolia",
461
415
  chainId: 11155420,
@@ -464,30 +418,6 @@ const config = {
464
418
  browserURL: "https://sepolia-optimistic.etherscan.io/",
465
419
  },
466
420
  },
467
- {
468
- network: "opmainnet",
469
- chainId: 10,
470
- urls: {
471
- apiURL: "https://api-optimistic.etherscan.io/api",
472
- browserURL: "https://optimistic.etherscan.io/",
473
- },
474
- },
475
- {
476
- network: "basesepolia",
477
- chainId: 84532,
478
- urls: {
479
- apiURL: "https://api-sepolia.basescan.org/api",
480
- browserURL: "https://sepolia.basescan.org/",
481
- },
482
- },
483
- {
484
- network: "basemainnet",
485
- chainId: 8453,
486
- urls: {
487
- apiURL: "https://api.basescan.org/api",
488
- browserURL: "https://basescan.org/",
489
- },
490
- },
491
421
  {
492
422
  network: "unichainsepolia",
493
423
  chainId: 1301,
@@ -505,22 +435,7 @@ const config = {
505
435
  },
506
436
  },
507
437
  ],
508
- apiKey: {
509
- bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
510
- bsctestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
511
- ethereum: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
512
- sepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
513
- opbnbmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
514
- opbnbtestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
515
- arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
516
- arbitrumsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
517
- opsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
518
- opmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
519
- basesepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
520
- basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
521
- unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
522
- unichainmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
523
- },
438
+ apiKey: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
524
439
  },
525
440
  paths: {
526
441
  tests: "./tests",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "4.4.0-dev.2",
3
+ "version": "4.4.0-dev.3",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -65,8 +65,7 @@
65
65
  "@matterlabs/hardhat-zksync-verify": "0.7.0",
66
66
  "@nomicfoundation/hardhat-chai-matchers": "^1.0.3",
67
67
  "@nomicfoundation/hardhat-network-helpers": "^1.0.4",
68
- "@nomicfoundation/hardhat-toolbox": "^2.0.0",
69
- "@nomiclabs/hardhat-etherscan": "^3.0.3",
68
+ "@nomicfoundation/hardhat-verify": "^2.0.14",
70
69
  "@semantic-release/changelog": "^6.0.1",
71
70
  "@semantic-release/git": "^10.0.1",
72
71
  "@semantic-release/npm": "^9.0.1",