-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
31 lines (29 loc) · 926 Bytes
/
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
require("@nomicfoundation/hardhat-web3");
require("dotenv").config();
const privateKeys = process.env.PRIVATE_KEYS || "";
const goerliUrl = process.env.GOERLI_URL || "https://goerli.infura.io/v3/484100af5a444bf890223a65b03109ae";
const mumbaiUrl = process.env.MUMBAI_URL || "https://polygon-mumbai.infura.io/v3/484100af5a444bf890223a65b03109ae";
const xdcUrl = process.env.XDC_URL || "https://rpc.apothem.network";
module.exports = {
solidity: "0.8.18",
networks: {
localhost: {},
goerli: {
url: goerliUrl,
accounts: privateKeys.split(","),
},
mumbai: {
url: mumbaiUrl,
accounts: privateKeys.split(","),
},
xdc: {
url: xdcUrl,
accounts: privateKeys.split(","),
},
// Include CoinEx Smart Chain if you have the necessary configuration
// coinex: {
// url: "URL_OF_YOUR_COINEX_NODE",
// accounts: privateKeys.split(","),
// },
},
};