-
Notifications
You must be signed in to change notification settings - Fork 66
/
hardhat.config.ts
71 lines (66 loc) · 1.47 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
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
import '@nomiclabs/hardhat-waffle'
import './tasks/alchemist'
import './tasks/status'
import './tasks/crucible'
import './tasks/aludel'
import './tasks/uniswap'
import './tasks/mock'
import './tasks/transmuter'
import './tasks/wallet'
import './tasks/stream'
import './tasks/incentive'
import { HardhatUserConfig } from 'hardhat/config'
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: true,
forking: {
url: archive_node,
},
accounts: {
mnemonic,
},
},
goerli: {
url: 'https://goerli.infura.io/v3/' + process.env.INFURA_ID,
accounts: {
mnemonic,
},
},
mainnet: {
url: 'https://mainnet.infura.io/v3/' + process.env.INFURA_ID,
accounts: {
mnemonic,
},
},
alchemist: {
url:
'https://eth-mainnet.gateway.pokt.network/v1/607839d619a5c80034fba9d8',
accounts: {
mnemonic,
},
},
},
solidity: {
compilers: [
{
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
],
},
etherscan: {
apiKey: process.env.ETHERSCAN_APIKEY,
},
} as HardhatUserConfig