-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
93 lines (90 loc) · 2.3 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import '@nomiclabs/hardhat-etherscan';
import '@nomiclabs/hardhat-solhint';
import '@nomiclabs/hardhat-waffle';
import '@openzeppelin/hardhat-upgrades';
import '@typechain/hardhat';
import 'dotenv/config';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
// import "solidity-coverage"
// Gas-reporter's parser dependency makes Warning:
// Accessing non-existent property 'INVALID_ALT_NUMBER' of module exports inside circular dependency
import 'hardhat-gas-reporter';
import { HardhatUserConfig } from 'hardhat/types';
import 'solidity-coverage';
const testMnemonic = 'suggest mirror pulp horn goat wagon body long fortune dirt glass awesome';
const config: HardhatUserConfig = {
solidity: {
version: '0.8.3',
settings: {
outputSelection: {
'*': {
'*': ['storageLayout'],
},
},
optimizer: {
enabled: true,
runs: 1,
},
},
},
namedAccounts: {
deployer: 0,
},
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: [process.env.ADMIN || ''],
chainId: 1,
},
ropsten: {
url: `https://ropsten.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.TEST_MNEMONIC || testMnemonic,
},
chainId: 3,
},
kovan: {
url: `https://kovan.infura.io/v3/${process.env.INFURA_API_KEY}`,
accounts: {
mnemonic: process.env.TEST_MNEMONIC || testMnemonic,
},
chainId: 42,
},
bsc_mainnet: {
url: 'https://bsc-dataseed.binance.org/',
chainId: 56,
gasPrice: 20000000000,
accounts: [process.env.BSC_ADMIN || ''],
},
bsc_testnet: {
url: 'https://data-seed-prebsc-1-s1.binance.org:8545',
chainId: 97,
gasPrice: 20000000000,
accounts: [process.env.BSC_ADMIN || ''],
},
ganache: {
url: 'https://elyfi-test.elyfi.world:8545',
chainId: 1337,
},
ganache_remote: {
url: 'http://host.docker.internal:8545',
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
paths: {
sources: './contracts',
tests: './test',
cache: './cache',
},
mocha: {
//reporter: 'eth-gas-reporter',
reporterOptions: {
currency: 'KRW',
showTimeSpent: true,
},
},
};
export default config;