-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
54 lines (52 loc) · 979 Bytes
/
hardhat.config.js
File metadata and controls
54 lines (52 loc) · 979 Bytes
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
require("@nomicfoundation/hardhat-toolbox");
require("hardhat-deploy");
require("hardhat-deploy-ethers")
require("dotenv").config();
const PRIVATE_KEY = process.env.PRIVATE_KEY;
const HYPERSPACE_RPC_URL= process.env.HYPERSPACE_RPC_URL;
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: "0.8.17",
defaultNetwork: "hardhat",
networks: {
hardhat: {
chainId: 1337,
blockConfirmations: 1,
},
localhost: {
chainId: 1337,
blockConfirmations: 1,
},
hyperspace: {
chainId: 3141,
url: HYPERSPACE_RPC_URL,
accounts: [PRIVATE_KEY],
},
},
namedAccounts: {
deployer: {
default: 0,
},
account1: {
default: 1,
},
account2: {
default: 2,
},
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
mocha: {
timeout: 500000, // 500 seconds.
},
};