-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.ts
More file actions
47 lines (43 loc) · 1.01 KB
/
hardhat.config.ts
File metadata and controls
47 lines (43 loc) · 1.01 KB
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
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/config";
import "@typechain/hardhat";
import "@nomiclabs/hardhat-ethers"
dotenv.config();
// 140a0304ec0fb981ecf2c554e9fed0138f406e3962f507bedf9e6d6e1678ee45
const privateKey =
process.env.PRIVATE_KEY ||
"0x0123456789012345678901234567890123456789012345678901234567890123";
const config: HardhatUserConfig = {
solidity: {
version: "0.8.0",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
networks: {
bsc: {
url: `https://bsc-dataseed.binance.org/`,
accounts: [privateKey],
},
tbsc: {
url: `https://data-seed-prebsc-1-s2.binance.org:8545/`,
accounts: [privateKey],
},
hardhat: {
chainId: 1337,
},
local: {
chainId: 1337,
url: `http://127.0.0.1:8545`,
},
ropsten: {
url: process.env.ROPSTEN_URL || "",
accounts: privateKey ? [privateKey] : [],
},
},
defaultNetwork: "local"
};
export default config;