-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathg7.config.ts
49 lines (43 loc) · 1.29 KB
/
g7.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
import { ChainId, NetworkExplorer, NetworkName, rpcUrls } from './constants/network';
import defaultConfig from './hardhat.config';
import { log } from '@helpers/logger';
const { PRIVATE_KEY, ETHSCAN_API_KEY } = process.env;
if (!PRIVATE_KEY) {
throw new Error('MantleConfig: The private key is required');
}
log(`Using Game7 L3 config`);
defaultConfig.networks = {
...defaultConfig.networks,
[NetworkName.Game7Testnet]: {
url: rpcUrls[ChainId.Game7Testnet],
accounts: [PRIVATE_KEY],
chainId: ChainId.Game7Testnet,
},
[NetworkName.Game7]: {
url: rpcUrls[ChainId.Game7],
accounts: [PRIVATE_KEY],
chainId: ChainId.Game7,
},
};
defaultConfig.etherscan = {
apiKey: ETHSCAN_API_KEY,
customChains: [
{
network: NetworkName.Game7Testnet,
chainId: ChainId.Game7Testnet,
urls: {
apiURL: `${NetworkExplorer.Game7Testnet}/api`,
browserURL: NetworkExplorer.Game7Testnet,
},
},
{
network: NetworkName.Game7,
chainId: ChainId.Game7,
urls: {
apiURL: `${NetworkExplorer.Game7}/api`,
browserURL: NetworkExplorer.Game7,
},
},
],
};
export default defaultConfig;