-
Notifications
You must be signed in to change notification settings - Fork 5
/
hardhat.config.js
46 lines (45 loc) · 1.02 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
require("@nomicfoundation/hardhat-toolbox");
require("@nomicfoundation/hardhat-foundry");
require('hardhat-contract-sizer');
require('dotenv').config();
module.exports = {
solidity: {
version: "0.8.25",
settings: {
optimizer: {
enabled: true,
runs: 20,
},
viaIR: true,
},
},
networks: {
hardhat: {},
titan: {
url: process.env.TITAN_SEPOLIA_RPC_URL,
accounts: [process.env.PRIVATE_KEY]
},
sepolia: {
url: process.env.SEPOLIA_RPC_URL,
accounts: [process.env.PRIVATE_KEY],
chainId: 11155111, // Sepolia testnet chain ID
}
},
etherscan: {
apiKey: {
sepolia: process.env.ETHERSCAN_API_KEY,
titan_sepolia: "abcd",
bscTestnet: "abcd",
},
customChains: [
{
network: "titan_sepolia",
chainId: 55007,
urls: {
apiURL: "https://explorer.titan-sepolia.tokamak.network/api",
browserURL: "https://explorer.titan-sepolia.tokamak.network/",
},
}
]
}
};