@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
20 lines (19 loc) • 490 B
TypeScript
import { Wallet } from 'fabric-network';
import { AnyAction, Store } from 'redux';
declare type Action = {
type: string;
payload?: {
tx_id: string;
args: any;
};
};
export declare const getAction: <TAction extends Action>(action: string) => (option: {
tx_id: string;
args: TAction['payload']['args'];
store?: Store;
enrollmentId?: string;
channelName?: string;
connectionProfile?: string;
wallet?: Wallet;
}) => AnyAction;
export {};