Skip to content

Commit

Permalink
chore: add additional rpc urls for eth (#442)
Browse files Browse the repository at this point in the history
  • Loading branch information
npty authored Sep 6, 2024
1 parent a33b327 commit d874c19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions apps/maestro/src/config/evm-chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,18 @@ const ENVIRONMENTS = {
testnet: "testnet",
} as const;

function createRpcUrlConfig(chain: Chain, additionalUrls: string[] = []) {
const httpUrls = [...chain.rpcUrls.default.http, ...additionalUrls];
return {
default: { http: httpUrls },
public: { http: httpUrls },
};
}

export const ALL_CHAINS: ExtendedWagmiChainConfig[] = [
{
...mainnet,
rpcUrls: createRpcUrlConfig(mainnet, ["https://eth.llamarpc.com"]),
axelarChainId: "ethereum",
axelarChainName: "ethereum",
environment: ENVIRONMENTS.mainnet,
Expand Down

0 comments on commit d874c19

Please sign in to comment.