UNPKG

bsp-network

Version:

SDK for writing node.js applications to interact with bsp network. This package encapsulates the APIs to connect to a bsp network, submit transactions and perform queries against the ledger.

20 lines (19 loc) 672 B
/** * Copyright 2018, 2019 IBM All Rights Reserved. * * SPDX-License-Identifier: Apache-2.0 */ import { EventCount, SuccessCallback, FailCallback, TransactionEventStrategy } from './transactioneventstrategy'; /** * Event handling strategy that: * - Waits for all reponses from event hubs. * - Fails if all responses are errors. * - Succeeds if any reponses are successful. * * Instances of the strategy are stateful and must only be used for a single transaction. * @private * @class */ export declare class AllForTxStrategy extends TransactionEventStrategy { checkCompletion(counts: EventCount, successFn: SuccessCallback, failFn: FailCallback): void; }