@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
18 lines (17 loc) • 515 B
TypeScript
import { Network } from 'fabric-network';
import { Observable } from 'rxjs';
import type { Commit } from '../types';
export declare const submit: (fcn: string, args: string[], options: {
network: Network;
}) => Promise<Record<string, Commit> & {
error?: any;
status?: string;
message?: string;
}>;
export declare const submit$: (fcn: string, args: string[], options: {
network: Network;
}) => Observable<Record<string, Commit> | {
error?: any;
status?: string;
message?: string;
}>;