-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathhardhat.config.ts
51 lines (49 loc) · 1.01 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
import 'dotenv/config';
import {HardhatUserConfig} from 'hardhat/types';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
import 'hardhat-gas-reporter';
import {accounts} from './utils/networks';
const config: HardhatUserConfig = {
solidity: {
compilers: [
{
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
hardhat: {
accounts: accounts('localhost'),
},
localhost: {
url: 'http://localhost:8545',
accounts: accounts('localhost'),
},
mumbai: {
url: 'https://rpc-mumbai.maticvigil.com',
accounts: accounts('mumbai'),
live: true,
},
matic: {
url: 'https://rpc-mainnet.maticvigil.com',
accounts: accounts('matic'),
live: true,
},
},
gasReporter: {
currency: 'USD',
gasPrice: 5,
enabled: !!process.env.REPORT_GAS,
},
namedAccounts: {
creator: 0,
},
};
export default config;