forked from filecoin-project/fevm-contract-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
46 lines (43 loc) · 1.08 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
require('dotenv').config()
require('@nomiclabs/hardhat-ethers')
require('@nomiclabs/hardhat-web3')
require('@nomicfoundation/hardhat-chai-matchers')
const defaultNodeUrl = "http://localhost:1234/rpc/v0";
const nodeUrl = require('./kit')(1000);
module.exports = {
solidity: "0.8.15",
defaultNetwork: "local",
networks: {
local: {
url: defaultNodeUrl,
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
itest: {
url: nodeUrl + "/rpc/v0",
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
hyperspace: {
url: "http://api.hyperspace.node.glif.io/rpc/v0",
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
wallaby: {
url: "https://wallaby.node.glif.io/rpc/v0",
httpHeaders: {
"Content-Type": "application/json",
},
accounts: [process.env.DEPLOYER_PRIVATE_KEY],
},
hardhat: {
mining: {
auto: false,
interval: 1000,
},
accounts: [
{
privateKey: process.env.DEPLOYER_PRIVATE_KEY,
balance: "1000000000000000000",
},
],
},
},
};