-
Notifications
You must be signed in to change notification settings - Fork 2
/
hardhat.config.js
105 lines (103 loc) · 2.93 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
require("@nomicfoundation/hardhat-chai-matchers")
require("@nomicfoundation/hardhat-ethers")
require("@typechain/hardhat")
require("hardhat-gas-reporter")
require("solidity-coverage")
require("@nomicfoundation/hardhat-verify")
// 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 = {
solidity: {
compilers: [
{
version: "0.8.6",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
{
version: "0.4.11"
}
]
},
networks: {
hardhat: {},
polygon: {
chainId: 137,
url: "https://polygon-rpc.com",
// gasPrice: 80000000000,
},
polygonAmoy: {
chainId: 80002,
url: process.env.ETHEREUM_RPC || "https://rpc-amoy.polygon.technology",
},
ethereum: {
chainId: 1,
url: "https://mainnet.infura.io/v3/" + process.env.INFURA_KEY || "",
},
peaq: {
chainId: 3338,
url: "https://peaq.api.onfinality.io/public",
},
iotex: {
url: "https://babel-api.mainnet.IoTeX.io",
chainId: 4689,
gas: 8500000,
gasPrice: 1000000000000
},
iotexTestnet: {
url: "https://babel-api.testnet.IoTeX.io",
chainId: 4690,
gas: 8500000,
gasPrice: 1000000000000
},
},
typechain: {
outDir: "typechain",
target: "ethers-v6"
},
etherscan: {
apiKey: {
polygon: process.env.VERIFY_API_KEY || "",
polygonAmoy: process.env.VERIFY_API_KEY || "",
peaq: process.env.VERIFY_API_KEY || "",
iotexTestnet: "no key needed!",
iotex: "no key needed!",
},
customChains: [{
network: "polygonAmoy",
chainId: 80002,
urls: {
apiURL: "https://api-amoy.polygonscan.com/api",
browserURL: "https://amoy.polygonscan.com"
},
}, {
network: "peaq",
chainId: 3338,
urls: {
apiURL: "https://peaq-testnet.api.subscan.io",
browserURL: "https://peaq.subscan.io/"
},
}, {
network: "iotex",
chainId: 4689,
urls: {
apiURL: "https://iotexscout.io/api",
browserURL: "https://iotexscan.io"
},
}, {
network: "iotexTestnet",
chainId: 4690,
urls: {
apiURL: "https://testnet.iotexscout.io/api",
browserURL: "https://testnet.iotexscan.io"
},
}]
},
}