-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
50 lines (46 loc) · 1.08 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
44
45
46
47
48
49
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "dotenv/config";
const defaultNetwork = "localhost";
const mainnetGwei = 21;
const config: HardhatUserConfig = {
defaultNetwork,
gasReporter: {
currency: "USD",
coinmarketcap: process.env.COINMARKETCAP || undefined,
},
networks: {
hardhat: {
forking: {
url: "https://eth-mainnet.alchemyapi.io/v2/kYdQOWZIPE-9fbTFQ_NJ_RqJbszUNk-w",
blockNumber: 14989351
}
},
localhost: {
url: "http://localhost:8545",
},
mainnet: {
url: `${process.env.MAINNET_RPC_URL}`,
gasPrice: mainnetGwei * 1000000000,
accounts: [`${process.env.PROD_DEPLOYER_PRIV_KEY}`],
},
sepolia: {
url: `${process.env.SEPOLIA_RPC_URL}`,
accounts: [`${process.env.SEPOLIA_DEPLOYER_PRIV_KEY}`],
},
},
solidity: {
compilers: [
{
version: "0.8.16",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
}
],
}
};
export default config;