UNPKG

@airgap/etherlink

Version:

The @airgap/etherlink package is an implementation of the ICoinProtocol interface from @airgap/coinlib-core.

12 lines (11 loc) 586 B
import { ProtocolNetwork } from '../types/protocol'; export declare class ModuleNetworkRegistry<_ProtocolNetwork extends ProtocolNetwork = ProtocolNetwork> { readonly supportedNetworks: Record<string, _ProtocolNetwork>; private readonly defaultNetworkId; constructor(options: NetworkRegistryOptions<_ProtocolNetwork>); findNetwork(networkId?: string): _ProtocolNetwork | undefined; } export interface NetworkRegistryOptions<_ProtocolNetwork extends ProtocolNetwork = ProtocolNetwork> { supportedNetworks: _ProtocolNetwork[]; defaultNetwork?: _ProtocolNetwork; }