Package io.gopluslabs.client.model
Class Contracts
- java.lang.Object
-
- io.gopluslabs.client.model.Contracts
-
public class Contracts extends Object
Contracts
-
-
Field Summary
Fields Modifier and Type Field Description private StringcontractAddressprivate StringcreatorAddressprivate LongdeploymentTimeprivate IntegerisOpenSourceprivate List<Object>maliciousBehaviorprivate IntegermaliciousContractprivate IntegermaliciousCreatorprivate List<Object>maliciousCreatorBehavior
-
Constructor Summary
Constructors Constructor Description Contracts()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContractsaddMaliciousBehaviorItem(Object maliciousBehaviorItem)ContractsaddMaliciousCreatorBehaviorItem(Object maliciousCreatorBehaviorItem)ContractscontractAddress(String contractAddress)ContractscreatorAddress(String creatorAddress)ContractsdeploymentTime(Long deploymentTime)booleanequals(Object o)StringgetContractAddress()It describes the dAap's contract address.StringgetCreatorAddress()It describes the creator address of the contract.LonggetDeploymentTime()It describes the deployed time of the contract.The value is presented as a timestamp.IntegergetIsOpenSource()It describes whether this contract is open sourceList<Object>getMaliciousBehavior()It describes specific malicious behaviors of the contract.IntegergetMaliciousContract()It describes whether the address is a suspected malicious contractIntegergetMaliciousCreator()It describes whether the creator is a suspected malicious addressList<Object>getMaliciousCreatorBehavior()It describes specific malicious behaviors of the contract creator.inthashCode()ContractsisOpenSource(Integer isOpenSource)ContractsmaliciousBehavior(List<Object> maliciousBehavior)ContractsmaliciousContract(Integer maliciousContract)ContractsmaliciousCreator(Integer maliciousCreator)ContractsmaliciousCreatorBehavior(List<Object> maliciousCreatorBehavior)voidsetContractAddress(String contractAddress)voidsetCreatorAddress(String creatorAddress)voidsetDeploymentTime(Long deploymentTime)voidsetIsOpenSource(Integer isOpenSource)voidsetMaliciousBehavior(List<Object> maliciousBehavior)voidsetMaliciousContract(Integer maliciousContract)voidsetMaliciousCreator(Integer maliciousCreator)voidsetMaliciousCreatorBehavior(List<Object> maliciousCreatorBehavior)private StringtoIndentedString(Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).StringtoString()
-
-
-
Field Detail
-
contractAddress
@SerializedName("contract_address") private String contractAddress
-
creatorAddress
@SerializedName("creator_address") private String creatorAddress
-
deploymentTime
@SerializedName("deployment_time") private Long deploymentTime
-
isOpenSource
@SerializedName("is_open_source") private Integer isOpenSource
-
maliciousContract
@SerializedName("malicious_contract") private Integer maliciousContract
-
maliciousCreator
@SerializedName("malicious_creator") private Integer maliciousCreator
-
-
Method Detail
-
getContractAddress
public String getContractAddress()
It describes the dAap's contract address.- Returns:
- contractAddress
-
setContractAddress
public void setContractAddress(String contractAddress)
-
getCreatorAddress
public String getCreatorAddress()
It describes the creator address of the contract.- Returns:
- creatorAddress
-
setCreatorAddress
public void setCreatorAddress(String creatorAddress)
-
getDeploymentTime
public Long getDeploymentTime()
It describes the deployed time of the contract.The value is presented as a timestamp. Example: \"deployed_time\": 1626578345- Returns:
- deploymentTime
-
setDeploymentTime
public void setDeploymentTime(Long deploymentTime)
-
getIsOpenSource
public Integer getIsOpenSource()
It describes whether this contract is open source. \"1\" means true; \"0\" means false.- Returns:
- isOpenSource
-
setIsOpenSource
public void setIsOpenSource(Integer isOpenSource)
-
getMaliciousBehavior
public List<Object> getMaliciousBehavior()
It describes specific malicious behaviors of the contract.- Returns:
- maliciousBehavior
-
getMaliciousContract
public Integer getMaliciousContract()
It describes whether the address is a suspected malicious contract. \"1\" means true; \"0\" means that we have not found malicious behavior of this contract.(Notice:\"malicious_contract\" return \"0\" does not mean the address is completely safe. Maybe we just haven't found its malicious behavior.)- Returns:
- maliciousContract
-
setMaliciousContract
public void setMaliciousContract(Integer maliciousContract)
-
getMaliciousCreator
public Integer getMaliciousCreator()
It describes whether the creator is a suspected malicious address. \"1\" means true; \"0\" means that we have not found malicious behavior of this address.(Notice:\"malicious_creator\" return \"0\" does not mean the address is completely safe. Maybe we just haven't found its malicious behavior.)- Returns:
- maliciousCreator
-
setMaliciousCreator
public void setMaliciousCreator(Integer maliciousCreator)
-
maliciousCreatorBehavior
public Contracts maliciousCreatorBehavior(List<Object> maliciousCreatorBehavior)
-
addMaliciousCreatorBehaviorItem
public Contracts addMaliciousCreatorBehaviorItem(Object maliciousCreatorBehaviorItem)
-
getMaliciousCreatorBehavior
public List<Object> getMaliciousCreatorBehavior()
It describes specific malicious behaviors of the contract creator.- Returns:
- maliciousCreatorBehavior
-
setMaliciousCreatorBehavior
public void setMaliciousCreatorBehavior(List<Object> maliciousCreatorBehavior)
-
-