forked from Uniswap/v2-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
78 lines (76 loc) · 2.08 KB
/
hardhat.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
require("@nomicfoundation/hardhat-toolbox");
/** @type import('hardhat/config').HardhatUserConfig */
require("hardhat-contract-sizer");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-gas-reporter");
//require("@nomiclabs/hardhat-solhint");
//require('@nomicfoundation/hardhat-chai-matchers');
//require("@nomiclabs/hardhat-etherscan")
const dotenv = require("dotenv");
dotenv.config();
module.exports = {
solidity: {
version: "0.5.16",
},
networks: {
hardhat: {
//forking: {
// url: `https://sepolia.infura.io/v3/${process.env.WEB3_INFURA_PROJECT_ID}`,
// blockNumber: 3085764
//},
accounts: {
mnemonic: `${process.env.MNEMONIC}`,
count: 10,
}
//accounts: [{
// "privateKey": process.env.MAINNET_DEPLOYER_PRIVATE_KEY,
// "balance": "10000000000000000000000000",
//}],
},
sepolia: {
url: `https://sepolia.infura.io/v3/${process.env.WEB3_INFURA_PROJECT_ID}`,
accounts: [process.env. MAINNET_DEPLOYER_PRIVATE_KEY],
},
local: {
url: `http://127.0.0.1:8545`,
accounts: [process.env. MAINNET_DEPLOYER_PRIVATE_KEY],
},
holesky: {
url: `https://holesky.infura.io/v3/${process.env.WEB3_INFURA_PROJECT_ID}`,
accounts: [process.env. MAINNET_DEPLOYER_PRIVATE_KEY],
},
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: false,
strict: true,
},
gasReporter: {
enabled: false,
currency: "CHF",
gasPrice: 21,
},
mocha: {
timeout: 100000,
},
etherscan: {
apiKey: {
goerli: `${process.env.ETHERSCAN_API_KEY}`,
sepolia: `${process.env.ETHERSCAN_API_KEY}`,
mainnet: `${process.env.ETHERSCAN_API_KEY}`,
optimisticEthereum: `${process.env.OP_ETHERSCAN_API_KEY}`,
optimismmainnet: `${process.env.OP_ETHERSCAN_API_KEY}`,
},
customChains: [
{
network: "optimismmainnet",
chainId: 10,
urls: {
apiURL: "https://api-optimistic.etherscan.io/api",
browserURL: "https://optimistic.etherscan.io"
}
}
]
},
};