-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
49 lines (46 loc) · 953 Bytes
/
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
require("dotenv/config");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
const accounts = [process.env.OPERATOR_PRIVATE_KEY];
module.exports = {
networks: {
mainnet: {
chainId: 1,
url: process.env.MAINNET_NODE_RPC_URL,
accounts,
},
goerli: {
chainId: 5,
url: process.env.GOERLI_NODE_RPC_URL,
accounts,
},
sepolia: {
chainId: 11155111,
url: process.env.SEPOLIA_NODE_RPC_URL,
accounts,
},
},
paths: {
sources: "centre-tokens/contracts",
},
solidity: {
compilers: [
{
version: "0.6.12",
settings: {
optimizer: {
enabled: true,
runs: 10000000,
},
},
},
],
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY,
goerli: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
},
},
};