forked from robichi/hypervisor
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathhardhat.config.ts
82 lines (80 loc) · 2.4 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
import '@nomiclabs/hardhat-ethers'
import '@nomiclabs/hardhat-etherscan'
import '@nomiclabs/hardhat-waffle'
import '@typechain/hardhat'
import "hardhat-watcher"
import './scripts/copy-uniswap-v3-artifacts.ts'
import './tasks/hypervisor'
import './tasks/swap'
import { parseUnits } from 'ethers/lib/utils'
import { HardhatUserConfig } from 'hardhat/types'
require('dotenv').config()
const mnemonic = process.env.DEV_MNEMONIC || ''
const config: HardhatUserConfig = {
networks: {
hardhat: {
allowUnlimitedContractSize: false,
},
celo: {
url: "https://forno.celo.org",
accounts: [process.env.MAINNET_PRIVATE_KEY as string],
chainId: 42220
},
polygon: {
url: 'https://polygon-mainnet.g.alchemy.com/v2/' + process.env.ALCHEMY_POLYGON,
accounts: [process.env.MAINNET_PRIVATE_KEY as string],
gasPrice: parseUnits('300', 'gwei').toNumber(),
},
mainnet: {
url: 'https://eth-mainnet.alchemyapi.io/v2/' + process.env.ALCHEMY_MAINNET,
accounts: [process.env.MAINNET_PRIVATE_KEY as string],
gasPrice: parseUnits('40', 'gwei').toNumber(),
},
optimism: {
url: 'https://opt-mainnet.g.alchemy.com/v2/' + process.env.ALCHEMY_OPTIMISM,
accounts: [process.env.MAINNET_PRIVATE_KEY as string],
gasPrice: parseUnits('100', 'gwei').toNumber(),
},
arbitrum: {
url: 'https://arb-mainnet.g.alchemy.com/v2/' + process.env.ALCHEMY_ARBITRUM,
accounts: [process.env.MAINNET_PRIVATE_KEY as string],
gasPrice: parseUnits('10', 'gwei').toNumber(),
},
},
watcher: {
compilation: {
tasks: ["compile"],
}
},
solidity: {
compilers: [
{
version: '0.7.6',
settings: {
optimizer: {
enabled: true,
runs: 800,
},
metadata: {
bytecodeHash: 'none',
},
},
},
{ version: '0.6.11' },
{ version: '0.6.0' },
{ version: '0.6.2' },
{ version: '0.6.12' },
],
},
etherscan: {
apiKey: process.env.CELO_APIKEY,
// apiKey: process.env.ETHERSCAN_APIKEY,
// apiKey: process.env.OPTIMISM_APIKEY,
// apiKey: process.env.ARBISCAN_APIKEY,
// apiKey: process.env.POLYGONSCAN_APIKEY,
},
mocha: {
timeout: 2000000
}
}
export default config;