-
Notifications
You must be signed in to change notification settings - Fork 7
/
hardhat.config.ts
40 lines (37 loc) · 965 Bytes
/
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
import '@nomiclabs/hardhat-waffle'
import 'hardhat-spdx-license-identifier'
import '@nomiclabs/hardhat-etherscan'
import './src/tasks'
import '@typechain/hardhat'
import { HardhatUserConfig } from 'hardhat/config'
const { MNEMONIC = 'gesture rather obey video awake genuine patient base soon parrot upset lounge', API_KEY = '', ES_KEY } = process.env
const config: HardhatUserConfig = {
defaultNetwork: 'hardhat',
networks: {
mainnet: {
url: `https://mainnet.infura.io/v3/${API_KEY}`,
chainId: 1,
gas: 'auto',
accounts: { mnemonic: MNEMONIC }
}
},
solidity: '0.8.7',
spdxLicenseIdentifier: {
overwrite: true,
runOnCompile: true
},
typechain: {
outDir: 'src/types',
target: 'ethers-v5',
alwaysGenerateOverloads: false
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: ES_KEY
},
mocha: {
timeout: 99999
}
}
export default config