All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hyperledger.fabric.contract.execution.ExecutionService Maven / Gradle / Ivy

There is a newer version: 2.5.3
Show newest version
/*
 * Copyright 2019 IBM DTCC All Rights Reserved.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

package org.hyperledger.fabric.contract.execution;

import org.hyperledger.fabric.contract.routing.TxFunction;
import org.hyperledger.fabric.shim.Chaincode;
import org.hyperledger.fabric.shim.ChaincodeStub;

/**
 * ExecutionService.
 *
 * Service that executes {@link InvocationRequest} (wrapped Init/Invoke + extra
 * data) using routing information
 */
public interface ExecutionService {

    /**
     *
     * @param txFn
     * @param req
     * @param stub
     * @return Chaincode response
     */
    Chaincode.Response executeRequest(TxFunction txFn, InvocationRequest req, ChaincodeStub stub);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy