Skip to content

Commit

Permalink
Add Support for all (Viem) Chains (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
bh2smith authored Sep 2, 2024
1 parent 1b6a01b commit 8ef54cb
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions src/network.ts
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
import { Chain, createPublicClient, http, PublicClient } from "viem";
import {
arbitrum,
base,
blast,
gnosis,
holesky,
localhost,
mainnet,
optimism,
optimismSepolia,
sepolia,
} from "viem/chains";
import * as chains from "viem/chains";

// All supported networks
const SUPPORTED_NETWORKS = createNetworkMap([
base,
blast,
mainnet,
gnosis,
sepolia,
holesky,
arbitrum,
optimism,
optimismSepolia,
localhost,
]);
// We support all networks exported by viem
const SUPPORTED_NETWORKS = createNetworkMap(Object.values(chains));

interface NetworkFields {
name: string;
Expand Down

0 comments on commit 8ef54cb

Please sign in to comment.