We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 95b4b0c commit 3f60839Copy full SHA for 3f60839
src/dev/providers.ts
@@ -1,3 +1,4 @@
1
+import { z } from "zod/v4";
2
import { chains, getChain, type NetworkType } from "../sdk/index.js";
3
4
export const SUPPORTED_RPC_PROVIDERS = [
@@ -7,7 +8,9 @@ export const SUPPORTED_RPC_PROVIDERS = [
7
8
"ankr",
9
] as const;
10
-export type RpcProvider = (typeof SUPPORTED_RPC_PROVIDERS)[number];
11
+export const rpcProvidersSchema = z.enum(SUPPORTED_RPC_PROVIDERS);
12
+
13
+export type RpcProvider = z.infer<typeof rpcProvidersSchema>;
14
15
export function getRpcProviderUrl(
16
provider: RpcProvider,
0 commit comments