-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.ts
45 lines (42 loc) · 949 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
40
41
42
43
44
45
import "@nomicfoundation/hardhat-toolbox";
import { config as dotenvConfig } from "dotenv";
import type { HardhatUserConfig } from "hardhat/config";
import "./tasks/accounts";
import "./tasks/deploy";
import assert from "node:assert";
dotenvConfig();
assert(process.env.MUMBAI_PRIVATE_KEY !== undefined);
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
networks: {
hardhat: {},
mumbai: {
url: "https://rpc-mumbai.maticvigil.com",
accounts: [process.env.MUMBAI_PRIVATE_KEY],
gas: 2100000,
},
},
paths: {
artifacts: "./artifacts",
cache: "./cache",
sources: "./contracts",
tests: "./test",
},
solidity: {
version: "0.8.17",
settings: {
metadata: {
bytecodeHash: "none",
},
optimizer: {
enabled: true,
runs: 800,
},
},
},
typechain: {
outDir: "types",
target: "ethers-v5",
},
};
export default config;