From 8a554955790997058705508bec62e8fe248192d5 Mon Sep 17 00:00:00 2001 From: dan13ram Date: Thu, 23 Jan 2025 19:27:44 +0530 Subject: [PATCH] reset rpc for old envs --- apps/web/src/constants/rpc.ts | 17 +++++++++++------ turbo.json | 1 + 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/apps/web/src/constants/rpc.ts b/apps/web/src/constants/rpc.ts index d7158b7fe..1231b5935 100644 --- a/apps/web/src/constants/rpc.ts +++ b/apps/web/src/constants/rpc.ts @@ -2,11 +2,16 @@ import { foundry } from 'wagmi/chains' import { CHAIN_ID } from 'src/typings' -export const RPC_URL: Record = { - [CHAIN_ID.ETHEREUM]: `https://mainnet.gateway.tenderly.co/${process.env.NEXT_PUBLIC_TENDERLY_MAINNET_RPC_KEY}`, - [CHAIN_ID.OPTIMISM]: `https://optimism.gateway.tenderly.co/${process.env.NEXT_PUBLIC_TENDERLY_OPTIMISM_RPC_KEY}`, - [CHAIN_ID.SEPOLIA]: `https://sepolia.gateway.tenderly.co/${process.env.NEXT_PUBLIC_TENDERLY_SEPOLIA_RPC_KEY}`, - [CHAIN_ID.BASE]: `https://base.gateway.tenderly.co/${process.env.NEXT_PUBLIC_TENDERLY_BASE_RPC_KEY}`, - [CHAIN_ID.ZORA]: `https://rpc-zora-mainnet-0.t.conduit.xyz/${process.env.NEXT_PUBLIC_ZORA_CONDUIT_RPC_KEY}`, +const TENDERLY_RPC_KEY = process.env.NEXT_PUBLIC_TENDERLY_RPC_KEY ?? '' + +export const RPC_URL = { + [CHAIN_ID.ETHEREUM]: `https://mainnet.gateway.tenderly.co/${TENDERLY_RPC_KEY}`, + [CHAIN_ID.OPTIMISM]: `https://optimism.gateway.tenderly.co/${TENDERLY_RPC_KEY}`, + [CHAIN_ID.SEPOLIA]: `https://sepolia.gateway.tenderly.co/${TENDERLY_RPC_KEY}`, + [CHAIN_ID.OPTIMISM_SEPOLIA]: `https://optimism-sepolia.gateway.tenderly.co/${TENDERLY_RPC_KEY}`, + [CHAIN_ID.BASE]: `https://base.gateway.tenderly.co/${TENDERLY_RPC_KEY}`, + [CHAIN_ID.BASE_SEPOLIA]: `https://base-sepolia.gateway.tenderly.co/${TENDERLY_RPC_KEY}`, + [CHAIN_ID.ZORA]: 'https://rpc.zora.energy', + [CHAIN_ID.ZORA_SEPOLIA]: 'https://sepolia.rpc.zora.energy', [CHAIN_ID.FOUNDRY]: foundry.rpcUrls.default.http[0], } diff --git a/turbo.json b/turbo.json index e043f4525..5d39625ba 100644 --- a/turbo.json +++ b/turbo.json @@ -39,6 +39,7 @@ "NEXT_PUBLIC_ZORA_API_KEY", "NEXT_PUBLIC_NETWORK_TYPE", "NEXT_PUBLIC_VERCEL_ENV", + "NEXT_PUBLIC_TENDERLY_RPC_KEY", "NEXT_PUBLIC_TENDERLY_MAINNET_RPC_KEY", "NEXT_PUBLIC_TENDERLY_BASE_RPC_KEY", "NEXT_PUBLIC_TENDERLY_OPTIMISM_RPC_KEY",