cn.hyperchain.sdk.service.ContractService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of litesdk Show documentation
Show all versions of litesdk Show documentation
A Java client tool for Hyperchain
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