-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathhardhat.config.ts
43 lines (39 loc) · 1.04 KB
/
hardhat.config.ts
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
import { HardhatUserConfig } from "hardhat/types";
import "@nomicfoundation/hardhat-toolbox";
import { config } from "dotenv";
// Load environment variables
config();
// Check that the required environment variables are set
if (
!process.env.LOCAL_KEYS
|| !process.env.TESTNET_KEYS
|| !process.env.MAINNET_KEYS
) {
throw new Error("some required keys are missing in the .env file");
}
const hardhatConfig: HardhatUserConfig = {
solidity: "0.8.20",
networks: {
evmoslocal: {
url: "http://127.0.0.1:8545",
chainId: 9002,
accounts: process.env.LOCAL_KEYS.split(","),
},
oslocal: {
url: "http://127.0.0.1:8545",
chainId: 9005,
accounts: process.env.LOCAL_KEYS.split(","),
},
evmostestnet: {
url: "https://evmos-testnet.lava.build",
chainId: 9000,
accounts: process.env.TESTNET_KEYS.split(","),
},
evmosmainnet: {
url: "https://evmos.lava.build",
chainId: 9001,
accounts: process.env.MAINNET_KEYS.split(","),
},
},
};
export default hardhatConfig;