-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhardhat.config.ts
79 lines (77 loc) · 2.65 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import { HardhatUserConfig } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import "@openzeppelin/hardhat-upgrades";
import "@nomicfoundation/hardhat-ledger";
const config: HardhatUserConfig = {
solidity: "0.8.7",
networks: {
bscTestnet: {
chainId: 97,
url: process.env.BSC_TESTNET_URL || "https://data-seed-prebsc-1-s1.binance.org:8545/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY as string] : [],
},
bscTestnetHW: {
chainId: 97,
url: process.env.BSC_TESTNET_URL || "https://data-seed-prebsc-1-s1.binance.org:8545/",
ledgerAccounts: process.env.LEDGER_ACCOUNT ? [process.env.LEDGER_ACCOUNT] : [],
gasPrice: 10000000000,
},
bscMainnet: {
chainId: 56,
url: process.env.BSC_MAINNET_URL || "https://bsc-dataseed.binance.org/",
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY as string] : [],
},
bscMainnetHW: {
chainId: 56,
url: process.env.BSC_MAINNET_URL || "https://bsc-dataseed.binance.org/",
ledgerAccounts: process.env.LEDGER_ACCOUNT ? [process.env.LEDGER_ACCOUNT] : [],
},
maxiTestnet: {
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY as string] : [],
chainId: 898,
url: process.env.MAXI_TESTNET_URL || "https://rpc-testnet.maxi.network",
},
maxiTestnetHW: {
chainId: 898,
url: process.env.MAXI_TESTNET_URL || "https://rpc-testnet.maxi.network",
ledgerAccounts: process.env.LEDGER_ACCOUNT ? [process.env.LEDGER_ACCOUNT] : [],
},
maxiMainnet: {
accounts: process.env.PRIVATE_KEY ? [process.env.PRIVATE_KEY as string] : [],
chainId: 899,
url: process.env.MAXI_MAINNET_URL || "https://rpc.maxi.network",
},
maxiMainnetHW: {
chainId: 899,
url: process.env.MAXI_MAINNET_URL || "https://rpc.maxi.network",
ledgerAccounts: process.env.LEDGER_ACCOUNT ? [process.env.LEDGER_ACCOUNT] : [],
},
},
etherscan: {
apiKey: {
bscTestnet: process.env.ETHERSCAN_API_KEY as string,
bsc: process.env.ETHERSCAN_API_KEY as string,
maxiTestnetHW: process.env.ETHERSCAN_API_KEY as string,
maxiMainnetHW: process.env.ETHERSCAN_API_KEY as string,
},
customChains: [
{
network: "maxiTestnetHW",
chainId: 898,
urls: {
apiURL: "https://testnet.maxi.network/api",
browserURL: "https://testnet.maxi.network/"
}
},
{
network: "maxiMainnetHW",
chainId: 899,
urls: {
apiURL: "https://mainnet.maxi.network/api",
browserURL: "https://mainnet.maxi.network/"
}
}
]
}
};
export default config;