UNPKG

@airgap/etherlink

Version:

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

14 lines (13 loc) 924 B
import { EvmInfoClient, EvmInfoClientTransactionsResult } from '@airgap/evm'; import { TransactionCursor } from 'packages/module-kit/src'; export interface EtherlinkTransactionCursor extends TransactionCursor { page?: number; } export interface EtherlinkInfoClientTransactionsResult extends EvmInfoClientTransactionsResult<EtherlinkTransactionCursor> { } export declare abstract class EtherlinkInfoClient implements EvmInfoClient<EtherlinkTransactionCursor, EtherlinkInfoClientTransactionsResult> { readonly baseUrl: string; constructor(baseUrl: string); abstract fetchTransactions(address: string, limit: number, cursor?: EtherlinkTransactionCursor | undefined): Promise<EtherlinkInfoClientTransactionsResult>; abstract fetchContractTransactions(contractAddress: string, address: string, limit: number, cursor?: EtherlinkTransactionCursor | undefined): Promise<EtherlinkInfoClientTransactionsResult>; }