-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.ts
48 lines (43 loc) · 1.24 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
import * as dotenv from "dotenv";
dotenv.config();
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "hardhat-gas-reporter"
const deployerPrivateKey = process.env.DEPLOYER_PRIVATE_KEY;
if (!deployerPrivateKey) {
throw new Error("DEPLOYER_PRIVATE_KEY environment variable is not set.");
}
const config: HardhatUserConfig = {
solidity: "0.8.19",
gasReporter: {
enabled: false //Enable to get gas usage report when testing with `npx hardhat test`
},
networks: {
optimismSepolia: {
url: process.env.OPTIMISM_SEPOLIA_RPC_URL,
accounts: [deployerPrivateKey],
}
}
};
// const config: HardhatUserConfig = {
// solidity: {
// version: "0.5.0", // Adjust this to an appropriate version
// settings: {
// optimizer: {
// enabled: true,
// runs: 200
// },
// evmVersion: "byzantium" // Adjust this to match your GoQuorum's EVM capabilities
// }
// },
// gasReporter: {
// enabled: false //Enable to get gas usage report when testing with `npx hardhat test`
// },
// networks: {
// alastria: {
// url: process.env.ALASTRIA_RPC_URL,
// accounts: [deployerPrivateKey]
// }
// }
// };
export default config;