-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
66 lines (66 loc) · 1.57 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
66
require("@nomicfoundation/hardhat-toolbox");
require("@openzeppelin/hardhat-upgrades");
const dotenv = require("dotenv");
const { HardhatUserConfig } = require("hardhat/config");
dotenv.config();
const { PRIVATE_KEY } = process.env;
const config = {
solidity: {
version: "0.8.27",
settings: {
viaIR: false,
optimizer: {
enabled: true,
runs: 500,
},
},
},
mocha: {
timeout: 3600000,
},
networks: {
holesky: {
url: process.env.HOLESKY_RPC_URL,
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
},
fusespark: {
url: process.env.FUSESPARK_RPC_URL,
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
},
mainnet: {
url: process.env.MAINNET_RPC_URL,
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
},
fuse: {
url: process.env.FUSE_RPC_URL,
accounts: PRIVATE_KEY ? [PRIVATE_KEY] : [],
},
},
etherscan: {
apiKey: {
holesky: process.env.ETHERSCAN_API_KEY || "",
fusespark: process.env.FUSESPARK_API_KEY || "",
fuse: process.env.FUSE_API_KEY || "",
mainnet: process.env.ETHERSCAN_API_KEY || "",
},
customChains: [
{
network: "fusespark",
chainId: 123,
urls: {
apiURL: "https://explorer.fusespark.io/api",
browserURL: "https://explorer.fusespark.io/",
},
},
{
network: "fuse",
chainId: 122,
urls: {
apiURL: "https://explorer.fuse.io/api",
browserURL: "https://explorer.fuse.io/",
},
},
],
},
};
module.exports = config;