-
Notifications
You must be signed in to change notification settings - Fork 4
/
hardhat.config.ts
64 lines (62 loc) · 1.61 KB
/
hardhat.config.ts
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
import {HardhatUserConfig, task} from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@nomicfoundation/hardhat-foundry";
import dotenv from 'dotenv';
dotenv.config();
const config: HardhatUserConfig = {
networks: {
opbnb: {
url: "https://opbnb-testnet-rpc.bnbchain.org/",
chainId: 5611, // Replace with the correct chainId for the "opbnb" network
gasPrice: 20000000000,
accounts: [process.env.PRIVATE_KEY],
},
},
etherscan: {
apiKey: {
opbnb: process.env.NODEREAL_KEY,//replace your nodereal API key
},
customChains: [
{
network: "opbnb",
chainId: 5611, // Replace with the correct chainId for the "opbnb" network
urls: {
apiURL: `https://open-platform.nodereal.io/${process.env.NODEREAL_KEY}/op-bnb-testnet/contract/`,
browserURL: "https://opbnbscan.com/",
},
},
],
},
// etherscan: {
// apiKey: {
// opbnb: process.env.BSCSCAN_KEY, // bscscan key
// },
// customChains: [
// {
// network: "opbnb",
// chainId: 5611,
// urls: {
// apiURL: "https://api-opbnb-testnet.bscscan.com/api",
// browserURL: "https://opbnb-testnet.bscscan.com",
// },
// },
// ],
// },
solidity: {
compilers: [
{
version: '0.8.15',
settings: {
optimizer: {enabled: true, runs: 10_000},
},
},
{
version: '0.5.17', // Required for WETH9
settings: {
optimizer: {enabled: true, runs: 10_000},
},
},
],
},
};
export default config;