-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
46 lines (43 loc) · 940 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
46
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-verify";
import "hardhat-deploy";
import "dotenv/config";
import "solidity-coverage";
import "hardhat-gas-reporter";
const config: HardhatUserConfig = {
defaultNetwork: "hardhat",
solidity: "0.8.19",
networks: {
hardhat: {
forking: {
url: process.env.MAINNET_SERVER!,
blockNumber: Number(process.env.MAINNET_BLOCKID!),
},
},
sepolia: {
url: process.env.RPC_SERVER!,
accounts: [process.env.PRIVATE_KEY!],
chainId: Number(process.env.CHAIN_ID!),
},
},
namedAccounts: {
deployer: {
default: 0,
},
user: {
default: 0,
},
},
gasReporter: {
enabled: true,
currency: "USD",
},
etherscan: {
apiKey: process.env.ETHER_SCAN_API!,
},
sourcify: {
enabled: true,
},
};
export default config;