Skip to content

Commit

Permalink
add back in chain types
Browse files Browse the repository at this point in the history
  • Loading branch information
holic committed Apr 26, 2024
1 parent 1e40a68 commit 5b24a53
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions packages/common/src/chains/types.ts
Original file line number Diff line number Diff line change
@@ -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;
};
};
};

0 comments on commit 5b24a53

Please sign in to comment.