-
Notifications
You must be signed in to change notification settings - Fork 1
/
hardhat.config.ts
95 lines (87 loc) · 2.92 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/**
*
* @author Sawyer
* @copyright 2022-2024 Dirt Road Development
* @license MIT
*
**/
import { HardhatUserConfig, task } from "hardhat/config";
import "@nomicfoundation/hardhat-toolbox";
import dotenv from 'dotenv';
import 'hardhat-deploy';
import 'hardhat-deploy-ethers';
dotenv.config();
const PRIVATE_KEY: string | undefined = (process.env.PRIVATE_KEY as string | undefined);
if (!PRIVATE_KEY) {
throw new Error("Private Key Not Found");
}
const BASE_RPC_TESTNET: string = "https://testnet.skalenodes.com/v1/";
const BASE_RPC_MAINNET: string = "https://mainnet.skalenodes.com/v1/";
const config: HardhatUserConfig = {
solidity: "0.8.17",
/// Required to work with hardhat deploy and the auatomation
namedAccounts: {
deployer: 0
},
networks: {
"calypso-testnet": {
accounts: [PRIVATE_KEY],
url: BASE_RPC_TESTNET + 'giant-half-dual-testnet'
},
"calypso-mainnet": {
accounts: [PRIVATE_KEY],
url: BASE_RPC_MAINNET + 'honorable-steel-rasalhague'
},
"europa-testnet": {
accounts: [PRIVATE_KEY],
url: BASE_RPC_TESTNET + 'juicy-low-small-testnet'
},
"europa-mainnet": {
accounts: [PRIVATE_KEY],
url: BASE_RPC_MAINNET + "elated-tan-skat"
}
},
etherscan: {
apiKey: {
"calypso-testnet": "na",
"calypso-mainnet": "na",
"europa-testnet": "na",
"europa-mainnet": "na",
},
customChains: [
{
network: "calypso-testnet",
chainId: 974399131,
urls: {
apiURL: "https://giant-half-dual-testnet.explorer.testnet.skalenodes.com/api",
browserURL: "https://giant-half-dual-testnet.explorer.testnet.skalenodes.com"
}
},
{
network: "europa-testnet",
chainId: 1444673419,
urls: {
apiURL: "https://juicy-low-small-testnet.explorer.testnet.skalenodes.com/api",
browserURL: "https://juicy-low-small-testnet.explorer.testnet.skalenodes.com"
}
},
{
network: "calypso-mainnet",
chainId: 1564830818,
urls: {
apiURL: "https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com/api",
browserURL: "https://honorable-steel-rasalhague.explorer.mainnet.skalenodes.com"
}
},
{
network: "europa-mainnet",
chainId: 2046399126,
urls: {
apiURL: "https://elated-tan-skat.explorer.mainnet.skalenodes.com/api",
browserURL: "https://elated-tan-skat.explorer.mainnet.skalenodes.com"
}
}
]
}
};
export default config;