-
Notifications
You must be signed in to change notification settings - Fork 0
/
g7.config.ts
37 lines (31 loc) · 994 Bytes
/
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
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 Testnet config`);
defaultConfig.networks = {
...defaultConfig.networks,
[NetworkName.Game7Testnet]: {
url: rpcUrls[ChainId.Game7Testnet],
accounts: [PRIVATE_KEY],
chainId: ChainId.Game7Testnet,
},
};
defaultConfig.etherscan = {
apiKey: ETHSCAN_API_KEY,
customChains: [
{
network: NetworkName.Game7Testnet,
chainId: ChainId.Game7Testnet,
urls: {
apiURL: `${NetworkExplorer.Game7Testnet}/api`,
browserURL: NetworkExplorer.Game7Testnet,
},
},
// TODO: Add mainnet later
],
};
export default defaultConfig;