-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.js
52 lines (50 loc) · 1.21 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
const { VoidSigner } = require("ethers");
require("@nomiclabs/hardhat-waffle");
require("hardhat-gas-reporter");
require("dotenv").config();
const network = require("./network.config.json");
/**
* @type import('hardhat/config').HardhatUserConfig
*/
module.exports = {
solidity: {
version: "0.8.23",
settings: {
optimizer: {
enabled: true,
runs: 200,
},
viaIR: true,
},
},
networks: {
xdcparentnet: {
url: network["xdcparentnet"],
accounts: [
process.env.PRIVATE_KEY ||
"1234567890123456789012345678901234567890123456789012345678901234",
],
},
xdcsubnet: {
url: network["xdcsubnet"],
accounts: [
process.env.PRIVATE_KEY ||
"1234567890123456789012345678901234567890123456789012345678901234",
],
},
xdcdevnet: {
url: network["xdcdevnet"],
accounts: [
process.env.PRIVATE_KEY ||
"1234567890123456789012345678901234567890123456789012345678901234",
],
},
xdctestnet: {
url: network["xdctestnet"],
accounts: [
process.env.PRIVATE_KEY ||
"1234567890123456789012345678901234567890123456789012345678901234",
],
},
},
};