forked from Fathom-Fi/fathom-solidity-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hardhat.config.js
51 lines (48 loc) · 1.26 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-ethers");
require('dotenv').config();
require('hardhat-deploy');
require('@openzeppelin/hardhat-upgrades');
/** @type import('hardhat/config').HardhatUserConfig */
module.exports = {
solidity: {
version: "0.8.17",
settings: {
optimizer: {
enabled: true,
runs: 200 // You can adjust the number of runs as needed
}
}
},
networks: {
hardhat: {
accounts: {
// 1 million ETH in wei
count: 3,
initialBalance: '1000000000000000000000000',
},
forking: {
url: "https://earpc.xinfin.network"
// url: "https://erpc.xdcrpc.com",
// url: "https://erpc.xinfin.network",
}
},
mainnet: {
url: "https://erpc.xinfin.network",
// url: "https://erpc.xdcrpc.com ",
accounts: [`0x${process.env.mainnetDeployer}`]
},
apothem: {
// url: "https://apothem.xdcrpc.com",
// url: "https://rpc.apothem.network",
url: "https://erpc.apothem.network",
// accounts: [`0x${process.env.apothemDeployer}`]
accounts: [process.env.apothemDeployer]
}
},
namedAccounts: {
deployer: {
default: 0, // Use the first account by default
},
},
};