forked from lens-protocol/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.ts
25 lines (21 loc) · 855 Bytes
/
helper-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
import {
eEthereumNetwork,
ePolygonNetwork,
eXDaiNetwork,
iParamsPerNetwork,
} from './helpers/types';
import dotenv from 'dotenv';
dotenv.config({});
const TENDERLY_FORK_ID = process.env.TENDERLY_FORK_ID || '';
const GWEI = 1000 * 1000 * 1000;
export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
[eEthereumNetwork.kovan]: process.env.KOVAN_RPC_URL,
[eEthereumNetwork.ropsten]: process.env.ROPSTEN_RPC_URL,
[eEthereumNetwork.main]: process.env.MAINNET_RPC_URL,
[eEthereumNetwork.hardhat]: 'http://localhost:8545',
[eEthereumNetwork.harhatevm]: 'http://localhost:8545',
[eEthereumNetwork.tenderlyMain]: `https://rpc.tenderly.co/fork/${TENDERLY_FORK_ID}`,
[ePolygonNetwork.mumbai]: process.env.MUMBAI_RPC_URL,
[ePolygonNetwork.matic]: process.env.POLYGON_RPC_URL,
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
};