@requestnetwork/data-access
Version:
Main package for the Request Network data access layer.
16 lines • 686 B
TypeScript
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