forked from D3LAB-DAO/FOX-contract
-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
49 lines (46 loc) · 1020 Bytes
/
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
require('dotenv').config();
require("@nomicfoundation/hardhat-toolbox");
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
];
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.9",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
paths: {
sources: './contracts',
},
defaultNetwork: 'calibrationnet',
networks: {
hardhat: {
// forking: {
// enabled: true,
// url: "https://api.calibration.node.glif.io/rpc/v1",
// },
},
localhost: {
url: 'http://127.0.0.1:8545',
},
calibrationnet: {
chainId: 314159,
url: "https://api.calibration.node.glif.io/rpc/v1",
accounts: accounts,
},
filecoinmainnet: {
chainId: 314,
url: "https://api.node.glif.io",
accounts: accounts,
},
},
};