-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
39 lines (35 loc) · 948 Bytes
/
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
import * as dotenv from "dotenv";
import { HardhatUserConfig } from "hardhat/types";
import "@nomiclabs/hardhat-ethers";
import "@nomicfoundation/hardhat-chai-matchers";
dotenv.config();
const primaryWallet: string | null = process.env.WALLET_PRIMARY;
const secondaryWallet: string | null = process.env.WALLET_SECONDARY;
const config: HardhatUserConfig = {
solidity: "0.8.9",
networks: {
localhost: {
url: "http://localhost:8545",
accounts: [primaryWallet, secondaryWallet],
},
hardhat: {
chainId: 31337,
accounts: [
{
privateKey: primaryWallet,
balance: "1000000000000000000000",
},
{
privateKey: secondaryWallet,
balance: "1000000000000000000000",
},
],
},
},
paths: {
sources: "./src/hardhat/contracts",
artifacts: "./src/hardhat/artifacts",
tests: "./src/hardhat/tests",
},
};
export default config;