import ITransactionStore from '../../lib/core/interfaces/ITransactionStore'; import IUnresolvableTransactionStore from '../../lib/core/interfaces/IUnresolvableTransactionStore'; import TransactionModel from '../../lib/common/models/TransactionModel'; /** * In-memory implementation of the `TransactionStore`. */ export default class MockTransactionStore implements ITransactionStore, IUnresolvableTransactionStore { private processedTransactions; private unresolvableTransactions; addTransaction(transaction: TransactionModel): Promise; getLastTransaction(): Promise; getExponentiallySpacedTransactions(): Promise; getTransaction(_transactionNumber: number): Promise; getTransactionsLaterThan(_transactionNumber: number | undefined, _max: number): Promise; recordUnresolvableTransactionFetchAttempt(transaction: TransactionModel): Promise; removeUnresolvableTransaction(transaction: TransactionModel): Promise; getUnresolvableTransactionsDueForRetry(): Promise; removeTransactionsLaterThan(transactionNumber?: number): Promise; removeUnresolvableTransactionsLaterThan(transactionNumber?: number): Promise; /** * Gets the list of transactions. * Mainly used for test purposes. */ getTransactions(): TransactionModel[]; }