-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
91 lines (89 loc) · 2.21 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
79
80
81
82
83
84
85
86
87
88
89
90
91
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-abi-exporter');
require('dotenv').config();
require("solidity-coverage");
require('hardhat-contract-sizer');
require("hardhat-gas-reporter");
// You need to export an object to set up your config
// Go to https://hardhat.org/config/ to learn more
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
namedAccounts: {
deployer: {
default: 0, // here this will by default take the first account as deployer
},
},
networks: {
ropsten: {
chainId: 3,
url: `https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.WALLET_PK]
},
rinkeby: {
chainId: 4,
url: `https://rinkeby.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.WALLET_PK]
},
mainnet: {
chainId: 1,
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.WALLET_PK]
},
bnbtestnet: {
chainId: 97,
url: "https://data-seed-prebsc-1-s1.binance.org:8545",
accounts: [process.env.WALLET_PK]
},
bnb: {
chainId: 56,
url: "https://bsc-dataseed1.ninicoin.io",
accounts: [process.env.WALLET_PK]
},
mumbai: {
chainId: 80001 ,
url: `https://polygon-mumbai.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.WALLET_PK]
},
matic: {
chainId: 137,
url: `https://polygon-mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.WALLET_PK]
},
hardhat: {
accounts: {
count: 150,
},
mining: {
mempool: {
order: "fifo"
}
}
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
bscscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 9999,
},
},
},
contractSizer: {
alphaSort: true,
runOnCompile: true,
disambiguatePaths: false,
},
gasReporter: {
enabled: true
},
};