UNPKG

@alexkeating/common-utilities

Version:

Our **Common Utilities** package is a set of helper tools and utilities that are used throughout our libraries and apps. This includes things like our constants, types that are commonly shared across packages, and various utilities and helper functions.

16 lines (15 loc) 738 B
import { Keychain, NetworkType } from '../types'; export declare const VALID_NETWORKS: { '0x1': boolean; '0x5': boolean; '0x64': boolean; '0xa': boolean; '0x89': boolean; '0xa4b1': boolean; '0xa4ec': boolean; }; export declare const isValidNetwork: (str: unknown, networks?: Keychain<unknown>) => str is "0x1" | "0x5" | "0x64" | "0xa" | "0x89" | "0xa4b1" | "0xa4ec"; export declare const NETWORK_DATA: Keychain<NetworkType>; export declare const getNetwork: (chainId: string) => NetworkType | null | undefined; export declare const getNetworkName: (chainId: string) => string | null; export declare const addKeychain: (keychain: Keychain<unknown>, property: string, networkList?: Keychain<NetworkType>) => {};