-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
56 lines (52 loc) · 1.2 KB
/
hardhat.config.ts
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
import { config as dotEnvConfig } from "dotenv";
dotEnvConfig();
import { HardhatUserConfig, NetworkUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-ethers";
import "@nomiclabs/hardhat-etherscan";
import "@nomiclabs/hardhat-waffle";
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: "0.8.19",
settings: {
viaIR: true,
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
networks: {
// Development
hardhat: {
accounts: {
// Custom mnemonic so that the wallets have no initial state
mnemonic:
"void forward involve old phone resource sentence fall friend wait strike copper urge reduce chapter",
},
},
localhost: {
url: "http://127.0.0.1:8545"
},
// Testnets
goerli: {
url: process.env.API_URL,
accounts: [process.env.PRIVATE_KEY as string]
},
// Mainnets
mainnet: {
url: process.env.API_URL,
accounts: [process.env.PRIVATE_KEY as string]
}
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
mocha: {
timeout: 60000 * 10,
},
};
export default config;