UNPKG

@airgap/etherlink

Version:

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

18 lines (17 loc) 1.18 kB
import { MainProtocolSymbols } from '@airgap/coinlib-core'; import { AirGapBlockExplorer, AirGapModule, AirGapOfflineProtocol, AirGapOnlineProtocol, AirGapV3SerializerCompanion, ProtocolConfiguration } from '@airgap/module-kit'; import { EvmProtocolNetwork } from '@airgap/evm'; declare type SupportedProtocols = MainProtocolSymbols.ETHERLINK; export declare class EtherlinkModule implements AirGapModule<{ Protocols: SupportedProtocols; ProtocolNetwork: EvmProtocolNetwork; }> { private readonly networkRegistries; readonly supportedProtocols: Record<MainProtocolSymbols.ETHERLINK, ProtocolConfiguration>; createOfflineProtocol(identifier: MainProtocolSymbols.ETHERLINK): Promise<AirGapOfflineProtocol | undefined>; createOnlineProtocol(identifier: MainProtocolSymbols.ETHERLINK, networkOrId?: string | EvmProtocolNetwork | undefined): Promise<AirGapOnlineProtocol | undefined>; createBlockExplorer(identifier: MainProtocolSymbols.ETHERLINK, networkOrId?: string | EvmProtocolNetwork | undefined): Promise<AirGapBlockExplorer | undefined>; createV3SerializerCompanion(): Promise<AirGapV3SerializerCompanion>; private createProtocol; } export {};