-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
49 lines (48 loc) · 1.34 KB
/
hardhat.config.js
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
/** @type import('hardhat/config').HardhatUserConfig */
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-solhint");
require("hardhat-gas-reporter");
require("hardhat-contract-sizer");
require("@xyrusworx/hardhat-solidity-json")
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
networks: {
eth_mainnet: {
url: `https://eth-mainnet.g.alchemy.com/v2/${process.env.ALCHEMY_API_KEY}`,
chainId: 1,
accounts: [`0x${process.env.PRIVATE_KEY}`]
},
sepolia_network: {
url: "https://ethereum-sepolia-rpc.publicnode.com",
chainId: 0xaa36a7,
accounts: [`0x${process.env.PRIVATE_KEY}`]
},
citreatestnet: {
url: "https://rpc.testnet.citrea.xyz",
chainId: 5115,
accounts: [`0x${process.env.PRIVATE_KEY}`]
},
localhost: {
url: "http://127.0.0.1:8545", // URL of the local Ethereum node
accounts: {
mnemonic: "test test test test test test test test test test test junk", // Default Hardhat mnemonic
},
},
},
gasReporter: {
enabled: false
},
contractSizer: {
runOnCompile: true, // Automatically display sizes after compile
only: [], // Use an array of contract names if you want to limit the output
},
};