forked from 0xSplits/splits-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
110 lines (105 loc) · 2.75 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
import { HardhatUserConfig } from 'hardhat/types'
import '@typechain/hardhat'
import '@typechain/ethers-v5'
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-waffle'
import '@nomiclabs/hardhat-solhint'
import 'hardhat-deploy'
// import 'hardhat-deploy-ethers'
import 'hardhat-gas-reporter'
import 'solidity-coverage'
import '@primitivefi/hardhat-dodoc'
import '@nomiclabs/hardhat-etherscan'
import 'tsconfig-paths/register'
// import tasks
import 'tasks/reset'
import 'tasks/createSplit'
import 'tasks/seedAccount'
import 'tasks/estimateGas'
import * as dotenv from 'dotenv'
dotenv.config({ path: '.env.local' })
const config: HardhatUserConfig = {
// solidity: '0.8.4',
solidity: {
compilers: [
{
version: '0.8.4',
settings: {
optimizer: {
enabled: true,
runs: 200,
// runs: 999999,
},
},
},
{
version: '0.5.17',
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
// typechain: {
// outDir: 'src/types',
// target: 'ethers-v5',
// },
namedAccounts: {
deployer: 0,
},
networks: {
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`]
: 'remote',
},
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`]
: 'remote',
},
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`]
: 'remote',
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`]
: 'remote',
},
kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
accounts: process.env.DEPLOYER_PRIVATE_KEY
? [`0x${process.env.DEPLOYER_PRIVATE_KEY}`]
: 'remote',
},
hardhat: {
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_API_KEY}`,
blockNumber: 13852105,
},
chainId: 1337,
},
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY,
},
gasReporter: {
enabled: process.env.REPORT_GAS ? true : false,
},
mocha: {
timeout: 50000,
},
dodoc: {
exclude: ['Clones', 'ReverseRecords', 'SafeTransferLib', 'ERC20'],
},
}
export default config