Remove etherscan verification from solidity hardhat configs (#196)

pull/206/head
Asa Oines 3 years ago committed by GitHub
parent 72ae94e655
commit 582e4bd83c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 43
      solidity/abacus-core/hardhat.config.ts
  2. 3
      solidity/abacus-core/package.json
  3. 61
      solidity/abacus-xapps/hardhat.config.ts
  4. 2
      solidity/abacus-xapps/package.json

@ -1,27 +1,8 @@
import "solidity-coverage";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "hardhat-gas-reporter";
import { task } from "hardhat/config";
import { verifyLatestCoreDeploy } from "../../typescript/abacus-deploy/src/verification/verifyLatestDeploy";
import * as dotenv from "dotenv";
dotenv.config();
const etherscanKey = process.env.ETHERSCAN_API_KEY;
task(
"verify-latest-deploy",
"Verifies the source code of the latest contract deploy"
).setAction(async (args: any, hre: any) => {
if (!etherscanKey) {
throw new Error("set ETHERSCAN_API_KEY");
}
await verifyLatestCoreDeploy(hre, etherscanKey);
});
/**
* @type import('hardhat/config').HardhatUserConfig
*/
@ -38,27 +19,6 @@ module.exports = {
gasReporter: {
currency: "USD",
},
networks: {
localhost: {
url: "http://localhost:8545",
},
goerli: {
url: "https://goerli.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
kovan: {
url: "https://kovan.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
mainnet: {
url: "https://mainnet.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
arbitrum_rinkeby: {
url: "rinkeby.arbitrum.io/rpc",
},
// TODO: add Ropsten
},
typechain: {
outDir: "./typechain",
target: "ethers-v5",
@ -67,7 +27,4 @@ module.exports = {
mocha: {
bail: true,
},
etherscan: {
apiKey: etherscanKey,
},
};

@ -2,7 +2,6 @@
"name": "@abacus-network/abacus-sol",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-etherscan": "^2.1.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@typechain/ethers-v5": "~7.0.0",
"@typechain/hardhat": "^2.0.1",
@ -46,10 +45,10 @@
"author": "James Prestwich",
"license": "MIT OR Apache-2.0",
"dependencies": {
"@abacus-network/utils": "^0.0.5",
"@openzeppelin/contracts": "^3.4.2",
"@openzeppelin/contracts-upgradeable": "~3.4.2",
"@summa-tx/memview-sol": "^2.0.0",
"dotenv": "^10.0.0",
"ts-generator": "^0.1.1"
}
}

@ -1,33 +1,14 @@
import "solidity-coverage";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
import "hardhat-gas-reporter";
import { task } from "hardhat/config";
import { verifyLatestBridgeDeploy } from "../../typescript/abacus-deploy/src/verification/verifyLatestDeploy";
import * as dotenv from "dotenv";
dotenv.config();
const etherscanKey = process.env.ETHERSCAN_API_KEY;
task(
"verify-latest-deploy",
"Verifies the source code of the latest contract deploy"
).setAction(async (args: any, hre: any) => {
if (!etherscanKey) {
throw new Error("set ETHERSCAN_API_KEY");
}
await verifyLatestBridgeDeploy(hre, etherscanKey);
});
import 'solidity-coverage';
import '@typechain/hardhat';
import '@nomiclabs/hardhat-waffle';
import 'hardhat-gas-reporter';
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.7.6",
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
@ -36,37 +17,11 @@ module.exports = {
},
},
gasReporter: {
currency: "USD",
},
networks: {
localhost: {
url: "http://localhost:8545",
},
goerli: {
url: "https://goerli.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
kovan: {
url: "https://kovan.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
rinkeby: {
url: "https://rinkeby.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
mainnet: {
url: "https://mainnet.infura.io/v3/5c456d7844fa40a683e934df60534c60",
},
arbitrum_rinkeby: {
url: "rinkeby.arbitrum.io/rpc",
},
// TODO: add Ropsten
currency: 'USD',
},
typechain: {
outDir: "./typechain",
target: "ethers-v5",
outDir: './typechain',
target: 'ethers-v5',
alwaysGenerateOverloads: false, // should overloads with full signatures like deposit(uint256) be generated always, even if there are no overloads?
},
etherscan: {
apiKey: etherscanKey,
},
};

@ -2,12 +2,10 @@
"name": "@abacus-network/abacus-xapps-sol",
"devDependencies": {
"@nomiclabs/hardhat-ethers": "^2.0.1",
"@nomiclabs/hardhat-etherscan": "^2.1.2",
"@nomiclabs/hardhat-waffle": "^2.0.1",
"@typechain/ethers-v5": "~7.0.0",
"@typechain/hardhat": "^2.0.1",
"chai": "^4.3.0",
"dotenv": "^10.0.0",
"eslint": "^7.20.0",
"ethereum-waffle": "^3.2.2",
"ethers": "^5.4.4",

Loading…
Cancel
Save