@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
44 lines (43 loc) • 1.01 kB
TypeScript
import { Wallet } from 'fabric-network';
import { Store } from 'redux';
import { Commit } from '../../types';
export interface ReconcileAction {
type: string;
payload: {
tx_id: string;
args: {
entityName: string;
};
store: Store;
channelEventHub?: string;
channelName?: string;
connectionProfile?: string;
wallet?: Wallet;
};
}
export interface MergeCommitBatchAction {
type: string;
payload: {
tx_id: string;
args: {
entityName: string;
commits: Record<string, Commit>;
};
store: Store;
channelEventHub?: string;
channelName?: string;
connectionProfile?: string;
wallet?: Wallet;
};
}
export interface MergeEntityBatchAction {
type: string;
payload: {
tx_id: string;
args: {
entityName: string;
commits: Record<string, Commit>;
};
store: Store;
};
}