-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhardhat.config.js
63 lines (59 loc) · 1.16 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
const { config } = require("dotenv");
require("@nomiclabs/hardhat-waffle");
require("@nomicfoundation/hardhat-verify");
require("solidity-coverage");
const CHAIN_ID = 80084; // Berachain Bartio
config();
const PRIVATE_KEY = process.env.PRIVATE_KEY || "";
const SCAN_API_KEY = process.env.SCAN_API_KEY || "";
const RPC_URL = process.env.RPC_URL || "";
module.exports = {
solidity: {
compilers: [
{
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
{
version: "0.8.24",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
},
},
],
},
networks: {
mainnet: {
url: RPC_URL,
chainId: CHAIN_ID,
accounts: [PRIVATE_KEY],
},
hardhat: {
chainId: CHAIN_ID,
forking: {
url: RPC_URL,
blockNumber: 1814400,
},
},
},
etherscan: {
apiKey: SCAN_API_KEY,
},
paths: {
sources: "./contracts",
tests: "./tests",
cache: "./cache",
artifacts: "./artifacts",
},
mocha: {
timeout: 300000,
},
};