Skip to content

Commit

Permalink
reset rpc for old envs
Browse files Browse the repository at this point in the history
  • Loading branch information
dan13ram committed Jan 23, 2025
1 parent a558a24 commit 8a55495
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
17 changes: 11 additions & 6 deletions apps/web/src/constants/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,16 @@ import { foundry } from 'wagmi/chains'

import { CHAIN_ID } from 'src/typings'

export const RPC_URL: Record<number, string> = {
[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],
}
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8a55495

Please sign in to comment.