generated from wighawag/template-ethereum-contracts
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
62 lines (60 loc) · 1.29 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
import 'dotenv/config';
import {HardhatUserConfig} from 'hardhat/types';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import 'hardhat-gas-reporter';
import '@nomiclabs/hardhat-etherscan';
import '@symfoni/hardhat-react';
import 'hardhat-typechain';
import '@typechain/ethers-v5';
import {node_url, accounts} from './utils/network';
const config: HardhatUserConfig = {
solidity: {
version: '0.6.12',
},
namedAccounts: {
deployer: 0,
},
networks: {
hardhat: {
accounts: accounts(),
},
localhost: {
url: 'http://localhost:8545',
accounts: accounts(),
},
mainnet: {
url: node_url('mainnet'),
accounts: accounts('mainnet'),
},
rinkeby: {
url: node_url('rinkeby'),
accounts: accounts('rinkeby'),
},
kovan: {
url: node_url('kovan'),
accounts: accounts('kovan'),
},
staging: {
url: node_url('kovan'),
accounts: accounts('kovan'),
},
},
paths: {
sources: 'src',
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
gasReporter: {
currency: 'USD',
gasPrice: 100,
enabled: process.env.REPORT_GAS ? true : false,
coinmarketcap: process.env.COINMARKETCAP_API_KEY,
maxMethodDiff: 10,
},
mocha: {
timeout: 0,
},
};
export default config;