-
Notifications
You must be signed in to change notification settings - Fork 9
/
hardhat.config.js
66 lines (62 loc) · 1.77 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
64
65
require("@nomicfoundation/hardhat-toolbox");
require('@openzeppelin/hardhat-upgrades');
require("hardhat-diamond-abi");
require("@nomicfoundation/hardhat-verify");
require("dotenv/config");
const arb_sepolia_account = process.env.ARB_SEPOLIA_PRIVATE_KEY ? [process.env.ARB_SEPOLIA_PRIVATE_KEY] : [];
const arb_account = process.env.ARB_PRIVATE_KEY ? [process.env.ARB_PRIVATE_KEY] : [];
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
networks: {
arbitrum: {
url: "https://arb1.arbitrum.io/rpc",
chainId: 42161,
accounts: arb_account,
},
sepolia: {
url: "https://ethereum-sepolia-rpc.publicnode.com",
chainId: 11155111,
accounts: arb_sepolia_account,
},
arbitrumSepolia: {
url: "https://sepolia-rollup.arbitrum.io/rpc",
chainId: 421614,
accounts: arb_sepolia_account,
}
},
solidity: {
version: '0.8.26',
settings: {
optimizer: {
enabled: true,
runs: 1,
},
metadata: {
// do not include the metadata hash, since this is machine dependent
// and we want all generated code to be deterministic
// https://docs.soliditylang.org/en/v0.7.6/metadata.html
bytecodeHash: 'none',
},
},
},
etherscan: {
apiKey: {
mainnet: process.env.ETHERSCAN_API_KEY,
arbitrumOne: process.env.ARBISCAN_API_KEY,
arbitrumSepolia: process.env.ARBISCAN_API_KEY,
holesky: process.env.ETHERSCAN_API_KEY,
sepolia: process.env.ETHERSCAN_API_KEY,
},
},
sourcify: {
enabled: true,
},
diamondAbi: {
name: "ServiceNodeRewardsCombined",
include: ["ServiceNodeRewards", "IERC20"],
strict: false,
},
paths: {
tests: "./test/unit-js"
},
};