From b5e106c5ca5b11f73c37991b0f181d5853c83539 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Fri, 13 Dec 2024 09:17:45 -0800 Subject: [PATCH 1/5] feat(foundry.toml): RPC Endpoints add exhaustive list of RPC endpoints --- foundry.toml | 92 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/foundry.toml b/foundry.toml index 96de72b..674ac63 100644 --- a/foundry.toml +++ b/foundry.toml @@ -224,5 +224,97 @@ stackAllocation = true [bind_json] out = "utils/JsonBindings.sol" + +## RPC Endpoints + +[rpc_endpoints] +mainnet = "${RPC_URL_MAINNET}" +arbitrum = "${RPC_URL_ARBITRUM}" +aurora = "${RPC_URL_AURORA}" +avalanche = "${RPC_URL_AVALANCHE}" +base = "${RPC_URL_BASE}" +blast = "${RPC_URL_BLAST}" +boba = "${RPC_URL_BOBA}" +bsc = "${RPC_URL_BSC}" +celo = "${RPC_URL_CELO}" +cronos = "${RPC_URL_CRONOS}" +evmos = "${RPC_URL_EVMOS}" +fantom = "${RPC_URL_FANTOM}" +fraxtal = "${RPC_URL_FRAXTAL}" +fuse = "${RPC_URL_FUSE}" +harmony = "${RPC_URL_HARMONY}" +gnosis = "${RPC_URL_GNOSIS}" +gravity = "${RPC_URL_GRAVITY}" +immutablezkevm = "${RPC_URL_IMMUTABLEZKEVM}" +kaia = "${RPC_URL_KAIA}" +linea = "${RPC_URL_LINEA}" +lisk = "${RPC_URL_LISK}" +mantle = "${RPC_URL_MANTLE}" +metis = "${RPC_URL_METIS}" +mode = "${RPC_URL_MODE}" +moonbeam = "${RPC_URL_MOONBEAM}" +moonriver = "${RPC_URL_MOONRIVER}" +nova = "${RPC_URL_NOVA}" +okx = "${RPC_URL_OKX}" +opbnb = "${RPC_URL_OPBNB}" +optimism = "${RPC_URL_OPTIMISM}" +polygon = "${RPC_URL_POLYGON}" +rootstock = "${RPC_URL_ROOTSTOCK}" +scroll = "${RPC_URL_SCROLL}" +sei = "${RPC_URL_SEI}" +taiko = "${RPC_URL_TAIKO}" +velas = "${RPC_URL_VELAS}" +xlayer = "${RPC_URL_XLAYER}" +worldchain = "${RPC_URL_WORLDCHAIN}" +zksync = "${RPC_URL_ZKSYNC}" +zkevm = "${RPC_URL_ZKEVM}" + +# testnets +goerli = "${RPC_URL_GOERLI}" +sepolia = "${RPC_URL_SEPOLIA}" +mumbai = "${RPC_URL_MUMBAI}" +arbitrum-goerli = "${RPC_URL_ARBITRUM_GOERLI}" +consensys-zkevm-testnet = "${RPC_URL_CONSENSYS_ZKEVM_TESTNET}" +bsc-testnet = "${RPC_URL_BSC_TESTNET}" +scroll-alpha = "${RPC_URL_SCROLL_ALPHA}" +beratest = "${RPC_URL_BERATEST}" + +[etherscan] +mainnet = { key = "${ETHERSCAN_KEY}" } +arbitrum = { key = "${ARBISCAN_KEY}", url = "https://api.arbiscan.io/api" } +avalanche = { key = "${SNOWTRACE_KEY}", url = "https://api.snowtrace.io/api" } +base = { key = "${BASESCAN_API_KEY}", url = "https://api.basescan.org/api" } +blast = { key = "${BLASTSCAN_API_KEY}", url = "https://api.blastscan.org/api" } +bsc = { key = "${BSCSCAN_KEY}", url = "https://api.bscscan.com/api" } +gnosis = { key = "${GNOSISBSCOUT_KEY}", url = "https://blockscout.com/poa/xdai/api" } +fantom = { key = "${FTMSCAN_KEY}", url = "https://api.ftmscan.com/api" } +fraxtal = { key = "${FRAXSCAN_API_KEY}", url = "https://api.fraxscan.com/api" } +gravity = { key = "${GRAVITYSCAN_API_KEY}", url = "https://explorer.gravity.xyz/api", verifier = "blockscout", chain = 1625} +immutablezkevm = { key = "${IMMUTABLEZKEVM_API_KEY}", url = "https://explorer.immutable.com/api", verifier = "blockscout", chain = 13371} +kaia = { key = "${KAIA_API_KEY}", url = "https://kaiascope.com/api", verifier = "blockscout", chain = 8217 } +linea = { key = "${LINEASCAN_API_KEY}", url = "https://api.lineascan.build/api" } +lisk = { key = "${LISK_API_KEY}", url = "https://blockscout.lisk.com/api", chain = 1135, verifier = "blockscout" } +mantle = { key = "${MANTLESCAN_API_KEY}", url = "https://api.mantlescan.xyz/api" } +metis = { key = "${METISSCAN_API_KEY}", url = "https://api.routescan.io/v2/network/mainnet/evm/1088/etherscan" } +mode = { key = "${MODESCAN_API_KEY}", url = "https://api.routescan.io/v2/network/mainnet/evm/34443/etherscan" } +moonbeam = { key = "${MOONBEAM_MOONSCAN_KEY}", url = "https://api-moonbeam.moonscan.io/api" } +moonriver = { key = "${MOONRIVER_MOONSCAN_KEY}", url = "https://api-moonriver.moonscan.io/api" } +nova = { key = "${NOVA_ARBISCAN_KEY}", url = "https://nova.arbiscan.io/api" } +optimism = { key = "${OPTIMISM_ETHERSCAN_KEY}", url = "https://api-optimistic.etherscan.io/api" } +polygon = { key = "${POLYGONSCAN_KEY}", url = "https://api.polygonscan.com/api" } +rootstock = { key = "${RSKSCAN_API_KEY}", url = "https://api.rskscan.com/api" } +scroll = { key = "${SCROLLSCAN_API_KEY}", url = "https://api.scrollscan.com/api" } +sei = { key = "${SEISCAN_API_KEY}", url = "https://api.seitrace.com/api" } +taiko = { key = "${TAIKO_API_KEY}", url = "https://api.taikoscan.io/api" } +worldchain = { key = "${WORLDCHAIN_API_KEY}", url = "https://api.worldscan.org/api" } +xlayer = { key = "${XLAYER_API_KEY}", url = "https://www.oklink.com/api/v5/explorer/xlayer/api", chain = 196 } + +#testnets +goerli = { key = "${ETHERSCAN_KEY}" } +sepolia = { key = "${ETHERSCAN_KEY}" } +mumbai = { key = "${POLYGONSCAN_KEY}", url = "https://api-testnet.polygonscan.com/api" } +arbitrum-goerli = { key = "${ARBISCAN_KEY}", url = "https://api-goerli.arbiscan.io/api" } +beratest = { key = "${BERATEST_API_KEY}", url = "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan/api", chain = "80084" } + include = [] exclude = [] From 8a59790a3d87084afe1b9eca412656ba89487916 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Fri, 13 Dec 2024 09:20:32 -0800 Subject: [PATCH 2/5] fixup --- foundry.toml | 7 ------- 1 file changed, 7 deletions(-) diff --git a/foundry.toml b/foundry.toml index 674ac63..0365290 100644 --- a/foundry.toml +++ b/foundry.toml @@ -270,10 +270,8 @@ zksync = "${RPC_URL_ZKSYNC}" zkevm = "${RPC_URL_ZKEVM}" # testnets -goerli = "${RPC_URL_GOERLI}" sepolia = "${RPC_URL_SEPOLIA}" mumbai = "${RPC_URL_MUMBAI}" -arbitrum-goerli = "${RPC_URL_ARBITRUM_GOERLI}" consensys-zkevm-testnet = "${RPC_URL_CONSENSYS_ZKEVM_TESTNET}" bsc-testnet = "${RPC_URL_BSC_TESTNET}" scroll-alpha = "${RPC_URL_SCROLL_ALPHA}" @@ -310,11 +308,6 @@ worldchain = { key = "${WORLDCHAIN_API_KEY}", url = "https://api.worldscan.org/a xlayer = { key = "${XLAYER_API_KEY}", url = "https://www.oklink.com/api/v5/explorer/xlayer/api", chain = 196 } #testnets -goerli = { key = "${ETHERSCAN_KEY}" } sepolia = { key = "${ETHERSCAN_KEY}" } mumbai = { key = "${POLYGONSCAN_KEY}", url = "https://api-testnet.polygonscan.com/api" } -arbitrum-goerli = { key = "${ARBISCAN_KEY}", url = "https://api-goerli.arbiscan.io/api" } beratest = { key = "${BERATEST_API_KEY}", url = "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan/api", chain = "80084" } - -include = [] -exclude = [] From 9d07645f86f1e75b8a84076f8b5173bc218c1316 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Fri, 13 Dec 2024 09:22:13 -0800 Subject: [PATCH 3/5] fix(ci): forge-std install --- .github/workflows/forge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/forge.yml b/.github/workflows/forge.yml index 9ffd4cf..c59319b 100644 --- a/.github/workflows/forge.yml +++ b/.github/workflows/forge.yml @@ -52,7 +52,7 @@ jobs: - name: Run Install id: install - run: forge install + run: forge install && forge install foundry-rs/forge-std - name: Run forge config --fix run: forge config --fix foundry.toml From fdc8314ce75c0fe4b389b04528555bb41b83729c Mon Sep 17 00:00:00 2001 From: sam bacha Date: Fri, 13 Dec 2024 09:23:32 -0800 Subject: [PATCH 4/5] fix(ci): diffutils --- .github/workflows/forge.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/forge.yml b/.github/workflows/forge.yml index c59319b..a5a1ade 100644 --- a/.github/workflows/forge.yml +++ b/.github/workflows/forge.yml @@ -43,6 +43,7 @@ jobs: steps: - uses: actions/checkout@v4 + - uses: extractions/setup-just@v2 - name: Install Foundry @@ -57,6 +58,9 @@ jobs: - name: Run forge config --fix run: forge config --fix foundry.toml + - name: Install diffutils + run: sudo apt-get install diffutils + - name: Check for changes id: check_changes run: | @@ -79,8 +83,6 @@ jobs: ```diff $(git diff foundry.toml) ``` - - name: Install diffutils - run: sudo apt-get install diffutils - name: Run Forge build run: just build From db3ac529f2e287ee2b25b66977c73bb74768e037 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Fri, 13 Dec 2024 09:24:56 -0800 Subject: [PATCH 5/5] fix(forge): no commit --- .github/workflows/forge.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/forge.yml b/.github/workflows/forge.yml index a5a1ade..b6a509e 100644 --- a/.github/workflows/forge.yml +++ b/.github/workflows/forge.yml @@ -53,7 +53,7 @@ jobs: - name: Run Install id: install - run: forge install && forge install foundry-rs/forge-std + run: forge install && forge install foundry-rs/forge-std --no-commit - name: Run forge config --fix run: forge config --fix foundry.toml