public class ContractServiceImpl extends java.lang.Object implements ContractService
| 构造器和说明 |
|---|
ContractServiceImpl() |
| 限定符和类型 | 方法和说明 |
|---|---|
com.alibaba.fastjson.JSONObject |
findByHash(java.lang.String hash)
Query contract by hash.
|
com.alibaba.fastjson.JSONObject |
findByName(java.lang.String contractName)
Query contract by name.
|
com.alibaba.fastjson.JSONObject |
findExByHash(java.lang.String hash)
Query contract and state by contract hash.
|
cn.tdchain.cb.domain.ContractState |
findStateByHash(java.lang.String hash)
Query contract state by hash.
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryByOwner(java.lang.String address)
Query contracts by owner(up to 1000 records).
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryContractHistory(java.lang.String contractName)
Query contract history(up to 20 records).
|
java.util.List<com.alibaba.fastjson.JSONObject> |
queryContractStateHistory(java.lang.String contractName)
Query contract state history(up to 20 records).
|
java.lang.String |
queryLatestCsHash(java.lang.String contractName)
Query latest contract state hash.
|
public com.alibaba.fastjson.JSONObject findByHash(java.lang.String hash)
throws cn.tdchain.cb.exception.BusinessException
ContractServicefindByHash 在接口中 ContractServicehash - contract hashcn.tdchain.cb.exception.BusinessException - business exceptionpublic cn.tdchain.cb.domain.ContractState findStateByHash(java.lang.String hash)
throws cn.tdchain.cb.exception.BusinessException
ContractServicefindStateByHash 在接口中 ContractServicehash - contract state hashcn.tdchain.cb.exception.BusinessException - business exceptionpublic com.alibaba.fastjson.JSONObject findExByHash(java.lang.String hash)
throws cn.tdchain.cb.exception.BusinessException
ContractServicefindExByHash 在接口中 ContractServicehash - contract hashcn.tdchain.cb.exception.BusinessException - business exceptionpublic com.alibaba.fastjson.JSONObject findByName(java.lang.String contractName)
throws cn.tdchain.cb.exception.BusinessException
ContractServicefindByName 在接口中 ContractServicecontractName - contract namecn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryByOwner(java.lang.String address)
throws cn.tdchain.cb.exception.BusinessException
ContractServicequeryByOwner 在接口中 ContractServiceaddress - owner addresscn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryContractHistory(java.lang.String contractName)
throws cn.tdchain.cb.exception.BusinessException
ContractServicequeryContractHistory 在接口中 ContractServicecontractName - contract namecn.tdchain.cb.exception.BusinessException - business exceptionpublic java.util.List<com.alibaba.fastjson.JSONObject> queryContractStateHistory(java.lang.String contractName)
throws cn.tdchain.cb.exception.BusinessException
ContractServicequeryContractStateHistory 在接口中 ContractServicecontractName - contract namecn.tdchain.cb.exception.BusinessException - business exceptionpublic java.lang.String queryLatestCsHash(java.lang.String contractName)
throws cn.tdchain.cb.exception.BusinessException
ContractServicequeryLatestCsHash 在接口中 ContractServicecontractName - contract namecn.tdchain.cb.exception.BusinessException - business exceptionCopyright © 2019. All Rights Reserved.