-
Notifications
You must be signed in to change notification settings - Fork 47
/
hardhat.config.js
70 lines (69 loc) · 1.83 KB
/
hardhat.config.js
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
require("dotenv").config();
require("@nomiclabs/hardhat-waffle");
require("@openzeppelin/hardhat-upgrades");
require("hardhat-gas-reporter");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-docgen');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${process.env.ALCHEMY_RINKEBY_API_KEY}`,
accounts: [`0x${process.env.DEV_PRIVATE_KEY}`],
},
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${process.env.ALCHEMY_ROPSTEN_API_KEY}`,
accounts: [`0x${process.env.DEV_PRIVATE_KEY}`],
timeout: 600000,
},
goerli: {
url: `https://eth-goerli.alchemyapi.io/v2/${process.env.ALCHEMY_GOERLI_API_KEY}`,
accounts: [`0x${process.env.DEV_PRIVATE_KEY}`],
gasPrice: 2500000000,
},
mainnet: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_MAINNET_API_KEY}`,
accounts: [`0x${process.env.DEV_PRIVATE_KEY}`],
timeout: 60000,
// gasPrice: 75000000000,
},
palm: {
url: `https://palm-mainnet.infura.io/v3/${process.env.PALM_API_KEY}`,
accounts: [`0x${process.env.DEV_PRIVATE_KEY}`],
},
arbitrum: {
url: "https://arb1.arbitrum.io/rpc",
accounts: [`0x${process.env.DEV_PRIVATE_KEY}`],
timeout: 600000,
},
frame: {
url: "http://127.0.0.1:1248",
},
hardhat: {
mining: {
auto: true,
},
forking: {
url: `https://eth-mainnet.alchemyapi.io/v2/${process.env.ALCHEMY_MAINNET_API_KEY}`,
blockNumber: 12772572,
},
},
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 1000,
},
},
},
mocha: {
timeout: 100000,
},
etherscan: {
apiKey: process.env.ETHERSCAN_API_KEY
},
};