forked from lidofinance/governance-crosschain-bridges
-
Notifications
You must be signed in to change notification settings - Fork 0
/
helper-hardhat-config.ts
39 lines (37 loc) · 1.71 KB
/
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import {
eArbitrumNetwork,
eEthereumNetwork,
eOptimismNetwork,
eBobNetwork,
ePolygonNetwork,
eXDaiNetwork,
iParamsPerNetwork,
} from './helpers/types';
const INFURA_KEY = process.env.INFURA_KEY || '';
const ALCHEMY_KEY = process.env.ALCHEMY_KEY || '';
const TENDERLY_FORK = process.env.TENDERLY_FORK || '';
export const NETWORKS_RPC_URL: iParamsPerNetwork<string> = {
[eEthereumNetwork.sepolia]: ALCHEMY_KEY
? `https://eth-sepolia.alchemyapi.io/v2/${ALCHEMY_KEY}`
: INFURA_KEY ? `https://sepolia.infura.io/v3/${INFURA_KEY}` :
"https://ethereum-sepolia-rpc.publicnode.com",
[eEthereumNetwork.goerli]: ALCHEMY_KEY
? `https://eth-goerli.alchemyapi.io/v2/${ALCHEMY_KEY}`
: `https://goerli.infura.io/v3/${INFURA_KEY}`,
[eEthereumNetwork.main]: ALCHEMY_KEY
? `https://eth-mainnet.alchemyapi.io/v2/${ALCHEMY_KEY}`
: INFURA_KEY ? `https://mainnet.infura.io/v3/${INFURA_KEY}`
: "https://ethereum-rpc.publicnode.com",
[eEthereumNetwork.coverage]: 'http://localhost:8555',
[eEthereumNetwork.hardhat]: 'http://localhost:8545',
[eEthereumNetwork.tenderlyMain]: `https://rpc.tenderly.co/fork/${TENDERLY_FORK}`,
[ePolygonNetwork.mumbai]: 'https://rpc-mumbai.maticvigil.com',
[ePolygonNetwork.matic]: 'https://rpc-mainnet.matic.network',
[eXDaiNetwork.xdai]: 'https://rpc.xdaichain.com/',
[eArbitrumNetwork.arbitrum]: `https://arb1.arbitrum.io/rpc`,
[eArbitrumNetwork.arbitrumTestnet]: `https://sepolia-rollup.arbitrum.io/rpc`,
[eOptimismNetwork.main]: `https://opt-mainnet.g.alchemy.com/v2/${ALCHEMY_KEY}`,
[eOptimismNetwork.testnet]: "https://sepolia.optimism.io",
[eBobNetwork.testnet]: "https://l2-puff-bob-jznbxtoq7h.t.conduit.xyz",
[eBobNetwork.main]: "https://rpc.gobob.xyz",
};