forked from filecoin-project/fevm-contract-tests
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.js
45 lines (43 loc) · 1.17 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
require('dotenv').config()
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-web3')
require('@nomicfoundation/hardhat-chai-matchers')
require("hardhat-gas-reporter");
require('./tasks');
const defaultNodeUrl = "http://localhost:8545";
module.exports = {
solidity: "0.8.15",
defaultNetwork: "local",
networks: {
local: {
url: defaultNodeUrl,
accounts: [
process.env.ROOT_PRIVATE_KEY,
process.env.ACCOUNT1_PRIVATE_KEY || process.env.ROOT_PRIVATE_KEY,
process.env.ACCOUNT2_PRIVATE_KEY || process.env.ROOT_PRIVATE_KEY,
process.env.ACCOUNT3_PRIVATE_KEY || process.env.ROOT_PRIVATE_KEY,
process.env.ACCOUNT4_PRIVATE_KEY || process.env.ROOT_PRIVATE_KEY,
],
},
hardhat: {
mining: {
auto: false,
interval: 1000,
},
accounts: [
{
privateKey: process.env.ROOT_PRIVATE_KEY,
balance: "1000000000000000000",
},
{
privateKey: process.env.ACCOUNT1_PRIVATE_KEY || process.env.ROOT_PRIVATE_KEY,
balance: "1000000000000000000",
}
],
},
},
gasReporter: {
enabled: true,
noColors: true,
}
};