UNPKG

@requestnetwork/data-access

Version:
16 lines 686 B
import { DataAccessTypes } from '@requestnetwork/types'; /** * A simple in-memory store to share state between DataReader and DataWriter * Useful to retrieve a transaction that was just emitted but is not confirmed yet **/ export declare class PendingStore implements DataAccessTypes.IPendingStore { private pending; /** Gets a pending tx */ get(channelId: string): DataAccessTypes.PendingItem | undefined; findByTopics(topics: string[]): (DataAccessTypes.PendingItem & { channelId: string; })[]; add(channelId: string, pendingItem: DataAccessTypes.PendingItem): void; remove(channelId: string): void; } //# sourceMappingURL=pending-store.d.ts.map