From 1466e345b4d8de865e1d956e18fb1ac5f2eab89b Mon Sep 17 00:00:00 2001 From: jsy1218 <91580504+jsy1218@users.noreply.github.com> Date: Tue, 10 Dec 2024 12:07:04 -0500 Subject: [PATCH] feat: migrate all other L2s tenderly sim from API to node --- src/providers/tenderly-simulation-provider.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/providers/tenderly-simulation-provider.ts b/src/providers/tenderly-simulation-provider.ts index 75103d2c4..da4c182e3 100644 --- a/src/providers/tenderly-simulation-provider.ts +++ b/src/providers/tenderly-simulation-provider.ts @@ -140,6 +140,18 @@ const TENDERLY_NODE_API = (chainId: ChainId, tenderlyNodeApiKey: string) => { return `https://mainnet.gateway.tenderly.co/${tenderlyNodeApiKey}`; case ChainId.BASE: return `https://base.gateway.tenderly.co/${tenderlyNodeApiKey}`; + case ChainId.ARBITRUM_ONE: + return `https://arbitrum-one.gateway.tenderly.co/${tenderlyNodeApiKey}`; + case ChainId.OPTIMISM: + return `https://optimism.gateway.tenderly.co/${tenderlyNodeApiKey}`; + case ChainId.POLYGON: + return `https://polygon.gateway.tenderly.co/${tenderlyNodeApiKey}`; + case ChainId.AVALANCHE: + return `https://avalanche.gateway.tenderly.co/${tenderlyNodeApiKey}`; + case ChainId.BLAST: + return `https://blast.gateway.tenderly.co/${tenderlyNodeApiKey}`; + case ChainId.WORLDCHAIN: + return `https://worldchain-mainnet.gateway.tenderly.co/${tenderlyNodeApiKey}`; default: throw new Error( `ChainId ${chainId} does not correspond to a tenderly node endpoint` @@ -151,6 +163,9 @@ export const TENDERLY_NOT_SUPPORTED_CHAINS = [ ChainId.CELO, ChainId.CELO_ALFAJORES, ChainId.ZKSYNC, + // tenderly node RPC supports BNB and ZORA upon request, we will make them available + ChainId.BNB, + ChainId.ZORA, ]; // We multiply tenderly gas limit by this to overestimate gas limit