mirror of
https://github.com/lens-protocol/core.git
synced 2026-01-08 05:43:57 -05:00
26 lines
855 B
TypeScript
26 lines
855 B
TypeScript
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/',
|
|
};
|