forked from DAOcommunity/govern
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
63 lines (59 loc) · 1.54 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
import { config as dotenvConfig } from 'dotenv'
import { resolve } from 'path'
dotenvConfig({ path: resolve(__dirname, './.env') })
import { HardhatUserConfig } from 'hardhat/types'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
import '@nomiclabs/hardhat-waffle'
import 'hardhat-deploy'
import 'hardhat-typechain'
import 'solidity-coverage'
import './tasks/govern'
import './tasks/ens'
import { node_url, accounts, RINKEBY_URL } from './utils/network'
const config: HardhatUserConfig = {
solidity: {
version: '0.6.8',
settings: {
optimizer: {
enabled: true,
runs: 20000, // TODO: target average DAO use
},
},
},
namedAccounts: {
deployer: 0,
},
etherscan: {
apiKey: process.env.ETHERSCAN_KEY,
},
networks: {
hardhat: {
throwOnTransactionFailures: true,
throwOnCallFailures: true,
allowUnlimitedContractSize: true,
blockGasLimit: 0x1fffffffffffff,
// tests that deploy new tokens with proxies set to false, require more than 8,000,000 GAS.
// Without setting this,tests do fail due to out of gas error
gas: 10000000,
accounts: accounts(),
},
localhost: {
url: 'http://localhost:8545',
accounts: accounts(),
},
coverage: {
url: 'http://localhost:8555',
allowUnlimitedContractSize: true,
},
mainnet: {
url: node_url('mainnet'),
accounts: accounts('mainnet'),
},
rinkeby: {
url: RINKEBY_URL,
accounts: accounts('rinkeby'),
},
},
}
export default config