UNPKG

fabric-network

Version:

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

15 lines (14 loc) 601 B
import { EventCount, SuccessCallback, FailCallback, TransactionEventStrategy } from './transactioneventstrategy'; /** * Event handling strategy that: * - Waits for first successful reponse from an event service. * - 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 AnyForTxStrategy extends TransactionEventStrategy { protected checkCompletion(counts: EventCount, successFn: SuccessCallback, failFn: FailCallback): void; }