Class Contracts


  • public class Contracts
    extends Object
    Contracts
    • 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
      • maliciousBehavior

        @SerializedName("malicious_behavior")
        private List<Object> maliciousBehavior
      • maliciousContract

        @SerializedName("malicious_contract")
        private Integer maliciousContract
      • maliciousCreator

        @SerializedName("malicious_creator")
        private Integer maliciousCreator
      • maliciousCreatorBehavior

        @SerializedName("malicious_creator_behavior")
        private List<Object> maliciousCreatorBehavior
    • Constructor Detail

      • Contracts

        public Contracts()
    • Method Detail

      • contractAddress

        public Contracts contractAddress​(String contractAddress)
      • getContractAddress

        public String getContractAddress()
        It describes the dAap's contract address.
        Returns:
        contractAddress
      • setContractAddress

        public void setContractAddress​(String contractAddress)
      • creatorAddress

        public Contracts creatorAddress​(String creatorAddress)
      • getCreatorAddress

        public String getCreatorAddress()
        It describes the creator address of the contract.
        Returns:
        creatorAddress
      • setCreatorAddress

        public void setCreatorAddress​(String creatorAddress)
      • deploymentTime

        public Contracts deploymentTime​(Long deploymentTime)
      • 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)
      • addMaliciousBehaviorItem

        public Contracts addMaliciousBehaviorItem​(Object maliciousBehaviorItem)
      • getMaliciousBehavior

        public List<Object> getMaliciousBehavior()
        It describes specific malicious behaviors of the contract.
        Returns:
        maliciousBehavior
      • setMaliciousBehavior

        public void setMaliciousBehavior​(List<Object> maliciousBehavior)
      • maliciousContract

        public Contracts maliciousContract​(Integer maliciousContract)
      • 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)
      • maliciousCreator

        public Contracts maliciousCreator​(Integer maliciousCreator)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toIndentedString

        private String toIndentedString​(Object o)
        Convert the given object to string with each line indented by 4 spaces (except the first line).