From 447df2ef1551d77f6aca3c38fcbf6a7a26ed9b1d Mon Sep 17 00:00:00 2001 From: Andrei Vlad Birgaoanu <99738872+andreivladbrg@users.noreply.github.com> Date: Thu, 18 Jul 2024 17:41:13 +0300 Subject: [PATCH] build: rename RPC URL (#188) build: add more testnets in foundry.toml --- .env.example | 3 +-- foundry.toml | 17 ++++++++++------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/.env.example b/.env.example index a896b706..78200046 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,5 @@ # Run `cp .env.example .env` command to create your .env file -export API_KEY_INFURA="YOUR_API_KEY_INFURA" export EOA="YOUR_EOA_ADDRESS" export FOUNDRY_PROFILE="lite" export MNEMONIC="YOUR_MNEMONIC" -export RPC_URL_MAINNET="YOUR_RPC_URL_MAINNET" +export MAINNET_RPC_URL="YOUR_MAINNET_RPC_URL" diff --git a/foundry.toml b/foundry.toml index 049b51a3..8c820629 100644 --- a/foundry.toml +++ b/foundry.toml @@ -59,14 +59,17 @@ wrap_comments = true [rpc_endpoints] - arbitrum = "https://arbitrum-mainnet.infura.io/v3/${API_KEY_INFURA}" - avalanche = "https://avalanche-mainnet.infura.io/v3/${API_KEY_INFURA}" + arbitrum = "${ARBITRUM_RPC_URL}" + arbitrum_sepolia = "https://arbitrum-sepolia.blockpi.network/v1/rpc/public" + avalanche = "${AVALANCHE_RPC_URL}" base = "https://mainnet.base.org" + base_sepolia = "https://sepolia.base.org" bnb = "https://bsc-dataseed.binance.org" gnosis = "https://rpc.gnosischain.com" localhost = "http://localhost:8545" - ethereum = "${RPC_URL_MAINNET}" - mainnet = "${RPC_URL_MAINNET}" - optimism = "https://optimism-mainnet.infura.io/v3/${API_KEY_INFURA}" - polygon = "https://polygon-mainnet.infura.io/v3/${API_KEY_INFURA}" - sepolia = "https://sepolia.infura.io/v3/${API_KEY_INFURA}" + mainnet = "${MAINNET_RPC_URL}" + optimism = "${OPTIMISM_RPC_URL}" + optimism_sepolia = "https://sepolia.optimism.io" + polygon = "${POLYGON_RPC_URL}" + scroll = "https://rpc.scroll.io/" + sepolia = "${SEPOLIA_RPC_URL}" \ No newline at end of file