Class ContractApproveResponse


  • public class ContractApproveResponse
    extends Object
    ContractApproveResponse
    • Field Detail

      • contractName

        @SerializedName("contract_name")
        private String contractName
      • creatorAddress

        @SerializedName("creator_address")
        private String creatorAddress
      • deployedTime

        @SerializedName("deployed_time")
        private Long deployedTime
      • doubtList

        @SerializedName("doubt_list")
        private Integer doubtList
      • isContract

        @SerializedName("is_contract")
        private Integer isContract
      • isOpenSource

        @SerializedName("is_open_source")
        private Integer isOpenSource
      • isProxy

        @SerializedName("is_proxy")
        private Integer isProxy
      • maliciousBehavior

        @SerializedName("malicious_behavior")
        private List<String> maliciousBehavior
      • tag

        @SerializedName("tag")
        private String tag
      • trustList

        @SerializedName("trust_list")
        private Integer trustList
    • Constructor Detail

      • ContractApproveResponse

        public ContractApproveResponse()
    • Method Detail

      • getContractName

        public String getContractName()
        It describes the approved contract name.
        Returns:
        contractName
      • setContractName

        public void setContractName​(String contractName)
      • getCreatorAddress

        public String getCreatorAddress()
        It describes the creator address of the contract.(Notice:When the address is not a contract (\"is_contract\"=0), it will return \"null\".)
        Returns:
        creatorAddress
      • setCreatorAddress

        public void setCreatorAddress​(String creatorAddress)
      • getDeployedTime

        public Long getDeployedTime()
        It describes the deployed time of the contract. The value is presented as a timestamp. Example: \"deployed_time\": 1626578345(Notice:When the address is not a contract (\"is_contract\"=0), it will return \"null\".)
        Returns:
        deployedTime
      • setDeployedTime

        public void setDeployedTime​(Long deployedTime)
      • getDoubtList

        public Integer getDoubtList()
        It describes whether the address is a suspected malicious contract. \"1\" means true; \"0\" means that we have not found malicious behavior of this address.(Notice:Return \"0\" does not mean it is safe. Maybe we just haven't found its malicious behavior.)
        Returns:
        doubtList
      • setDoubtList

        public void setDoubtList​(Integer doubtList)
      • getIsContract

        public Integer getIsContract()
        It describes whether the address is a contract. \"1\" means true; \"0\" means false.
        Returns:
        isContract
      • setIsContract

        public void setIsContract​(Integer isContract)
      • getIsOpenSource

        public Integer getIsOpenSource()
        It describes whether this contract is open source. \"1\" means true; \"0\" means false.(Notice:When the address is not a contract (\"is_contract\"=0), it will return \"null\".)
        Returns:
        isOpenSource
      • setIsOpenSource

        public void setIsOpenSource​(Integer isOpenSource)
      • getIsProxy

        public Integer getIsProxy()
        Whether the spender is a proxy contract.
        Returns:
        isProxy
      • setIsProxy

        public void setIsProxy​(Integer isProxy)
      • getMaliciousBehavior

        public List<String> getMaliciousBehavior()
        It describes specific malicious behaviors. \"honeypot_related_address\" means that the address is related to honeypot tokens or has created scam tokens. \"phishing_activities\" means that this address has implemented phishing activities. \"blackmail_activities\" means that this address has implemented blackmail activities. \"stealing_attack\" means that this address has implemented stealing attacks. \"fake_kyc\" means that this address is involved in fake KYC. \"malicious_mining_activities\" means that this address is involved in malicious mining activities. \"darkweb_transactions\" means that this address is involved in darkweb transactions. \"cybercrime\" means that this address is involved in cybercrime. \"money_laundering\" means that this address is involved in money laundering. \"financial_crime\" means that this address is involved in financial crime. \"blacklist_doubt\" means that the address is suspected of malicious behavior and is therefore blacklisted.(Notice:Returning an empty array means that no malicious behavior was found at that address.)
        Returns:
        maliciousBehavior
      • setMaliciousBehavior

        public void setMaliciousBehavior​(List<String> maliciousBehavior)
      • getTag

        public String getTag()
        It describes which dapp uses the contract. Example:\"tag\": \"Compound\"
        Returns:
        tag
      • setTag

        public void setTag​(String tag)
      • getTrustList

        public Integer getTrustList()
        It describes whether the address is a famous and trustworthy one. \"1\" means true; \"0\" means that we have not included this address in the trusted list;(Notice:Return \"0\" does not mean the address is not trustworthy. Maybe we just haven't included it yet.)
        Returns:
        trustList
      • setTrustList

        public void setTrustList​(Integer trustList)
      • 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).