-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhardhat.config.js
More file actions
43 lines (41 loc) · 1014 Bytes
/
Copy pathhardhat.config.js
File metadata and controls
43 lines (41 loc) · 1014 Bytes
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
require("@nomicfoundation/hardhat-ethers");
require("@nomicfoundation/hardhat-verify");
const PRIVATE_KEY = process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY] : [];
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.20",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
evmVersion: "paris",
},
},
paths: {
sources: "./contracts",
tests: "./test",
cache: "./cache",
artifacts: "./artifacts",
},
networks: {
sepolia: {
url: process.env.SEPOLIA_RPC_URL || "https://rpc.ankr.com/eth_sepolia",
accounts: PRIVATE_KEY,
},
arbitrumSepolia: {
url: process.env.ARBITRUM_SEPOLIA_RPC_URL || "https://sepolia-rollup.arbitrum.io/rpc",
accounts: PRIVATE_KEY,
},
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_API_KEY || "",
arbitrumSepolia: process.env.ARBISCAN_API_KEY || "",
},
},
mocha: {
timeout: 600000,
},
};