-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.cjs
94 lines (93 loc) · 2.43 KB
/
hardhat.config.cjs
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("hardhat-contract-sizer");
require("dotenv").config();
require("@nomicfoundation/hardhat-verify");
require("solidity-coverage");
/**
* @type import('hardhat/config').HardhatUserConfig
*/
const config = {
mocha: {
timeout: 100_000_000,
},
solidity: {
compilers: [
{
version: "0.6.11",
},
{
version: "0.8.22",
settings: {
viaIR: true,
optimizer: { enabled: true, runs: 200 },
},
},
],
},
networks: {
mainnet: {
url: "https://mainnet.infura.io/v3/" + process.env.INFURA_API_KEY,
accounts: { mnemonic: process.env.deploymentKey, initialIndex: 1 },
gasPrice: 12_000_000_000, // 12 GWEI
chainId: 1,
},
hardhat: {
accounts: { mnemonic: process.env.deploymentKey },
gasPrice: 1_000_000_000,
blockGasLimit: 20_000_000,
chainId: 12345,
// loggingEnabled: false
},
baseSepolia: {
// network ID: 84532
// url: 'https://sepolia.base.org',
url: process.env.baseSepoliaRPC,
accounts: { mnemonic: process.env.deploymentKey },
gas: 5_000_000,
gasPrice: 100_000_000, // 0.1 GWEI
},
base: {
// network ID: 84532
// url: 'https://sepolia.base.org',
url: process.env.baseRPC,
accounts: { mnemonic: process.env.deploymentKey, initialIndex: 0 },
// gas: 5_000_000,
gasPrice: 10_000_000, // 0.01 GWEI
},
sepolia: {
// url: 'https://sepolia.infura.io/v3/' + process.env.INFURA_API_KEY,
// url: 'https://sepolia.rpc.grove.city/v1/' + process.env.grove,
url: "https://ethereum-sepolia.blockpi.network/v1/rpc/public",
accounts: { mnemonic: process.env.deploymentKey },
gasPrice: 15_000_000_000, // 15 GWEI
// gas: 10_000_000,
},
},
gasReporter: {
currency: "USD",
gasPrice: 0.1,
url: "http://localhost:8545",
coinmarketcap: "38b60711-0559-45f4-8bda-e72f446c8278",
enabled: true,
showMethodSig: true,
},
sourcify: {
enabled: false,
},
etherscan: {
apiKey: {
mainnet: process.env.etherscanApiNew,
sepolia: process.env.etherscanApiNew,
base: process.env.etherscanApiBase,
baseSepolia: process.env.etherscanApiBase,
},
},
contractSizer: {
alphaSort: true,
disambiguatePaths: false,
runOnCompile: true,
strict: false,
},
};
module.exports = config;