diff --git a/webui/src/config.ts b/webui/src/config.ts index 6a2e8bb..c84e654 100644 --- a/webui/src/config.ts +++ b/webui/src/config.ts @@ -1,6 +1,6 @@ import { type Chain } from 'viem' import { holesky, sepolia } from "wagmi/chains"; -//import { defineChain } from "viem"; +//import { defineChain } from 'viem'; export interface ChainConfig { VaultContractAddr: `0x${string}`; @@ -18,6 +18,22 @@ export interface Config { Chains: ChainConfig[]; } +const sepoliaWithCustomRPC = Object.assign({}, sepolia, { + rpcUrls: { + default: { + http: ['https://rpc.sepolia.ethpandaops.io'], + }, + }, +}); + +const holeskyWithCustomRPC = Object.assign({}, holesky, { + rpcUrls: { + default: { + http: ['https://rpc.holesky.ethpandaops.io'], + }, + }, +}); + /* const now = Math.floor((new Date()).getTime() / 1000); const iteration = Math.floor(((now - 1638471600) / 604800)); @@ -61,7 +77,7 @@ const FundingVaultConfig: Config = { VaultContractAddr: "0x610866c6089768dA95524bcc4cE7dB61eDa3931c", TokenContractAddr: "0x97652A83CC29043fA9Be2781cc0038EBa70de911", TokenName: "HolETH", - Chain: holesky, + Chain: holeskyWithCustomRPC, HumanNetworkName: "Holesky", BlockExplorerUrl: "https://holesky.etherscan.io/", }, @@ -69,7 +85,7 @@ const FundingVaultConfig: Config = { VaultContractAddr: "0x610866c6089768dA95524bcc4cE7dB61eDa3931c", TokenContractAddr: "0x97652A83CC29043fA9Be2781cc0038EBa70de911", TokenName: "SepETH", - Chain: sepolia, + Chain: sepoliaWithCustomRPC, HumanNetworkName: "Sepolia", BlockExplorerUrl: "https://sepolia.etherscan.io/", }, @@ -87,8 +103,8 @@ const FundingVaultConfig: Config = { }; export var KnownChains = [ - holesky, - sepolia, + holeskyWithCustomRPC, + sepoliaWithCustomRPC, //ephemery, ];