UNPKG

@fabric-es/fabric-cqrs

Version:

Hyperledger Fabric middleware for event sourcing and cqrs pattern

17 lines (16 loc) 489 B
import { Wallet } from 'fabric-network'; import { Store } from 'redux'; import type { Logger } from 'winston'; import type { SaveFcn } from '../types'; export declare const commandCreate: <TEvent = any>(entityName: string, isPrivateData: boolean, option: { channelName: string; logger: Logger; connectionProfile: string; wallet: Wallet; store: Store; }, parentName?: string) => (option: { enrollmentId: string; id: string; }) => { save: SaveFcn<TEvent>; };