-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.js
56 lines (54 loc) · 1.34 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
require('dotenv').config();
require("@nomicfoundation/hardhat-toolbox");
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: './contracts',
},
defaultNetwork: 'localhost',
networks: {
hardhat: {
forking: {
enabled: true,
url: 'https://data-seed-prebsc-1-s3.binance.org:8545/',
// blockNumber: 24243078,
accounts: [
process.env.PRIVATE_KEY_OWNER,
process.env.PRIVATE_KEY_BOT,
process.env.PRIVATE_KEY_FEE_TO,
process.env.PRIVATE_KEY_USER,
process.env.PRIVATE_KEY_USER_2
],
},
},
localhost: {
url: 'http://127.0.0.1:8545',
accounts: [
process.env.PRIVATE_KEY_OWNER,
process.env.PRIVATE_KEY_BOT,
process.env.PRIVATE_KEY_FEE_TO,
process.env.PRIVATE_KEY_USER,
process.env.PRIVATE_KEY_USER_2
],
},
bscTestnet: {
url: 'https://data-seed-prebsc-1-s3.binance.org:8545/',
accounts: [
process.env.PRIVATE_KEY_OWNER,
process.env.PRIVATE_KEY_BOT,
process.env.PRIVATE_KEY_FEE_TO,
process.env.PRIVATE_KEY_USER,
process.env.PRIVATE_KEY_USER_2
],
},
},
};