-
Notifications
You must be signed in to change notification settings - Fork 29
/
hardhat.config.ts
56 lines (55 loc) · 1.49 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
import 'hardhat-typechain'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
import '@nomiclabs/hardhat-waffle'
import './scripts/copy-uniswap-v3-artifacts.ts'
import { parseUnits } from 'ethers/lib/utils'
require('dotenv').config()
const mnemonic = process.env.DEV_MNEMONIC || ''
const archive_node = process.env.ETHEREUM_ARCHIVE_URL || ''
export default {
networks: {
hardhat: {
allowUnlimitedContractSize: false,
},
goerli: {
url: 'https://goerli.infura.io/v3/' + process.env.INFURA_ID,
accounts: {
mnemonic,
},
gasPrice: parseUnits('130', 'gwei').toNumber(),
},
mainnet: {
url: 'https://mainnet.infura.io/v3/' + process.env.INFURA_ID,
accounts: {
mnemonic,
},
}
},
watcher: {
compilation: {
tasks: ["compile"],
}
},
solidity: {
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 800,
},
metadata: {
// do not include the metadata hash, since this is machine dependent
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.7.6/metadata.html
bytecodeHash: 'none',
},
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_APIKEY,
},
mocha: {
timeout: 2000000
}
}