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

cn.hyperchain.sdk.service.ContractService Maven / Gradle / Ivy

There is a newer version: 1.4.3
Show newest version
package cn.hyperchain.sdk.service;

import cn.hyperchain.sdk.request.Request;
import cn.hyperchain.sdk.response.ReceiptResponse;
import cn.hyperchain.sdk.response.TxHashResponse;
import cn.hyperchain.sdk.response.contract.CompileContractResponse;
import cn.hyperchain.sdk.response.contract.DeployerListResponse;
import cn.hyperchain.sdk.response.contract.StringResponse;
import cn.hyperchain.sdk.transaction.Transaction;

/**
 * contract service interface.
 *
 * @author tomkk
 * @version 0.0.1
 */

public interface ContractService {

    Request deploy(Transaction transaction, int... nodeIds);

    Request grpcDeployReturnReceipt(Transaction transaction, int... nodeIds);


    Request invoke(Transaction transaction, int... nodeIds);

    Request grpcInvokeReturnReceipt(Transaction transaction, int... nodeIds);


    Request getReceipt(String txHash, int... nodeIds);

    Request maintain(Transaction transaction, int... nodeIds);

    Request grpcMaintainReturnReceipt(Transaction transaction, int... nodeIds);


    Request manageContractByVote(Transaction transaction, int... nodeIds);

    Request grpcManageContractByVoteReturnReceipt(Transaction transaction, int... nodeIds);


    Request getDeployedList(String address, int... nodeIds);

    Request compileContract(String code, int... nodeIds);

    Request getCode(String addr, int... nodeIds);

    Request getContractCountByAddr(String addr, int...nodeIds);

    Request getStatus(String addr, int...nodeIds);

    Request getCreator(String addr, int...nodeIds);

    Request getCreateTime(String addr, int...nodeIds);

    Request getStatusByCName(String cname, int...nodeIds);

    Request getCreatorByCName(String cname, int...nodeIds);

    Request getCreateTimeByCName(String cname, int...nodeIds);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy