UNPKG

@smartinvoicexyz/utils

Version:

Unified source for utility functions used across the Smart Invoice protocol.

13 lines (12 loc) 964 B
import { SupportedChain, SupportedChainId } from '@smartinvoicexyz/constants'; import { Chain, PublicClient, Transport } from 'viem'; export declare const chainById: (chainId: SupportedChainId) => Chain; export declare const chainIdFromLabel: (label: string) => SupportedChainId | undefined; export declare const chainLabelFromId: (chainId: SupportedChainId) => string; export declare const getChainName: (chainId: number | undefined) => string; export declare const chainByName: (name?: string) => SupportedChain | undefined; type _transports = Record<SupportedChainId, Transport>; export declare const publicClients: Record<SupportedChainId, PublicClient>; export declare const wagmiConfig: import("wagmi").Config<[Chain, ...Chain[]], _transports, import("wagmi").CreateConnectorFn<unknown, Record<string, unknown>, Record<string, unknown>>[]>; export declare const parseChainId: (chainIdOrLabel: string | string[] | undefined) => number | undefined; export {};