From 5b24a535fbaa508458c2315f53c3d1d79c5ecb26 Mon Sep 17 00:00:00 2001 From: Kevin Ingersoll Date: Fri, 26 Apr 2024 19:22:41 +0100 Subject: [PATCH] add back in chain types --- packages/common/src/chains/types.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/packages/common/src/chains/types.ts b/packages/common/src/chains/types.ts index e3e5376777..ea38496759 100644 --- a/packages/common/src/chains/types.ts +++ b/packages/common/src/chains/types.ts @@ -1,5 +1,22 @@ +import { ChainContract } from "viem"; import type { Chain } from "viem/chains"; +// TODO: import from viem once available +export type RpcUrls = { + http: readonly [string, ...string[]]; + webSocket?: readonly [string, ...string[]] | undefined; +}; + export type MUDChain = Chain & { faucetUrl?: string; + iconUrls?: readonly string[]; + rpcUrls?: Chain["rpcUrls"] & { + erc4337Bundler?: RpcUrls | undefined; + }; + contracts?: Chain["contracts"] & { + gasTank?: ChainContract | undefined; + portal?: { + [sourceId: number]: ChainContract | undefined; + }; + }; };