forked from ora-io/opml
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
41 lines (37 loc) · 952 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
/**
* @type import('hardhat/config').HardhatUserConfig
*/
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-ethers");
require("hardhat-gas-reporter");
const fs = require("fs")
// attempt to read private key
let private = "0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"
try {
private = fs.readFileSync(process.env.HOME+"/.privatekey").toString().strip()
} catch {
}
module.exports = {
//defaultNetwork: "hosthat",
networks: {
l1: {
url: "http://127.0.0.1:8545/",
accounts: ["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"],
timeout: 600_000,
},
l2: {
url: "http://127.0.0.1:9545/",
accounts: ["0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80"],
timeout: 600_000,
},
},
solidity: {
version: "0.7.3",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
};