-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
105 lines (83 loc) · 2.26 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
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
require("@nomiclabs/hardhat-waffle");
require("@nomiclabs/hardhat-ethers");
require("@nomiclabs/hardhat-etherscan");
require('hardhat-contract-sizer');
require('hardhat-deploy');
const {
infuraProjectId,
accountPrivateKey,
etherscanAPIKey,
alchemyAPi
} = require(__dirname+'/.secrets.js');
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
networks: {
hardhat: {
accounts: [{privateKey: `0x${accountPrivateKey}`, balance: "91229544000000000000"}],
forking: {
url: `https://eth-kovan.alchemyapi.io/v2/${alchemyAPi}`
},
loggingEnabled: false,
mining: {
auto: true,
interval: [1000, 5000]
},
///chainId: 1337
},
kovan: {
url: `https://eth-kovan.alchemyapi.io/v2/${alchemyAPi}`,//`https://kovan.infura.io/v3/${infuraProjectId}`,
chainId: 42,
//gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
ropsten: {
url: `https://eth-ropsten.alchemyapi.io/v2/${alchemyAPi}`,//`https://ropsten.infura.io/v3/${infuraProjectId}`,
chainId: 3,
//gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
rinkeby: {
url: `https://eth-rinkeby.alchemyapi.io/v2/${alchemyAPi}`,
chainId: 4,
//gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
eth_mainnet: {
url: `https://mainnet.infura.io/v3/${infuraProjectId}`,
chainId: 1,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
bsc_testnet: {
url: `https://data-seed-prebsc-2-s3.binance.org:8545/`,
chainId: 97,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
bsc_mainnet: {
url: `https://speedy-nodes-nyc.moralis.io/d50bd66cec108c5d322163fe/bsc/mainnet`,
chainId: 56,
///gasPrice: 20000000000,
accounts: [`0x${accountPrivateKey}`]
},
},
etherscan: {
// Your API key for Etherscan
// Obtain one at https://etherscan.io/
apiKey: etherscanAPIKey
},
solidity: {
version: "0.8.4",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
mocha: {
timeout: 1000000
}
};