@fabric-es/fabric-cqrs
Version:
Hyperledger Fabric middleware for event sourcing and cqrs pattern
21 lines • 682 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAction = void 0;
const assign_1 = __importDefault(require("lodash/assign"));
const getAction = (action) => ({ tx_id, args, store, enrollmentId, channelName, connectionProfile, wallet, }) => assign_1.default({}, {
type: action,
payload: {
tx_id,
args,
store,
enrollmentId,
channelName,
connectionProfile,
wallet,
},
});
exports.getAction = getAction;
//# sourceMappingURL=getAction.js.map