-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
77 lines (73 loc) · 1.64 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-gas-reporter";
import 'solidity-coverage';
import 'hardhat-docgen';
require('dotenv').config();
/** @type import('hardhat/config').HardhatUserConfig */
const config: HardhatUserConfig = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
docgen: {
path: './docs',
clear: true,
runOnCompile: true,
},
gasReporter: {
coinmarketcap: '82c3ceca-d368-4e32-9296-e0ee96c95272',
gasPriceApi: 'https://api.etherscan.io/api?module=proxy&action=eth_gasPrice',
currency: 'EUR',
gasPrice: 15,
enabled: true,
},
defaultNetwork: "hardhat",
networks: {
localhost: {
gas: "auto",
gasPrice: "auto",
accounts: [`${process.env.TEST_ACCOUNT_PRIVATE_KEY}`]
},
hardhat: {
gas: "auto",
gasPrice: "auto",
accounts: {
mnemonic: `${process.env.MNEMONIC}`,
accountsBalance: "10000000000000000000000"
},
},
goerli: {
url: `${process.env.ALCHEMY_APIKEY_GOERLI}`,
chainId: 5,
accounts: [`${process.env.TEST_ACCOUNT_PRIVATE_KEY}`]
},
/*
mainnet: {
url: `${process.env.ALCHEMY_ETH_API_KEY}`,
chainId: 1,
accounts: [`${process.env.TEST_ACCOUNT_PRIVATE_KEY}`]
},
*/
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts"
},
mocha: {
timeout: 40000
},
etherscan: {
apiKey: {
goerli: 'WTGAMG95DQNVGWVA2FBIFKZ5SBF6Z7BQFG'
}
}
};
export default config;