Package io.gopluslabs.client.model
Class ContractApproveResponse
- java.lang.Object
-
- io.gopluslabs.client.model.ContractApproveResponse
-
public class ContractApproveResponse extends Object
ContractApproveResponse
-
-
Field Summary
Fields Modifier and Type Field Description private StringcontractNameprivate StringcreatorAddressprivate LongdeployedTimeprivate IntegerdoubtListprivate IntegerisContractprivate IntegerisOpenSourceprivate IntegerisProxyprivate List<String>maliciousBehaviorprivate Stringtagprivate IntegertrustList
-
Constructor Summary
Constructors Constructor Description ContractApproveResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContractApproveResponseaddMaliciousBehaviorItem(String maliciousBehaviorItem)ContractApproveResponsecontractName(String contractName)ContractApproveResponsecreatorAddress(String creatorAddress)ContractApproveResponsedeployedTime(Long deployedTime)ContractApproveResponsedoubtList(Integer doubtList)booleanequals(Object o)StringgetContractName()It describes the approved contract name.StringgetCreatorAddress()It describes the creator address of the contract.LonggetDeployedTime()It describes the deployed time of the contract.IntegergetDoubtList()It describes whether the address is a suspected malicious contractIntegergetIsContract()It describes whether the address is a contractIntegergetIsOpenSource()It describes whether this contract is open sourceIntegergetIsProxy()Whether the spender is a proxy contract.List<String>getMaliciousBehavior()It describes specific malicious behaviorsStringgetTag()It describes which dapp uses the contract.IntegergetTrustList()It describes whether the address is a famous and trustworthy oneinthashCode()ContractApproveResponseisContract(Integer isContract)ContractApproveResponseisOpenSource(Integer isOpenSource)ContractApproveResponseisProxy(Integer isProxy)ContractApproveResponsemaliciousBehavior(List<String> maliciousBehavior)voidsetContractName(String contractName)voidsetCreatorAddress(String creatorAddress)voidsetDeployedTime(Long deployedTime)voidsetDoubtList(Integer doubtList)voidsetIsContract(Integer isContract)voidsetIsOpenSource(Integer isOpenSource)voidsetIsProxy(Integer isProxy)voidsetMaliciousBehavior(List<String> maliciousBehavior)voidsetTag(String tag)voidsetTrustList(Integer trustList)ContractApproveResponsetag(String tag)private StringtoIndentedString(Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).StringtoString()ContractApproveResponsetrustList(Integer trustList)
-
-
-
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
-
tag
@SerializedName("tag") private String tag
-
trustList
@SerializedName("trust_list") private Integer trustList
-
-
Method Detail
-
contractName
public ContractApproveResponse contractName(String contractName)
-
getContractName
public String getContractName()
It describes the approved contract name.- Returns:
- contractName
-
setContractName
public void setContractName(String contractName)
-
creatorAddress
public ContractApproveResponse creatorAddress(String creatorAddress)
-
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)
-
deployedTime
public ContractApproveResponse deployedTime(Long deployedTime)
-
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)
-
doubtList
public ContractApproveResponse doubtList(Integer doubtList)
-
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)
-
isContract
public ContractApproveResponse isContract(Integer isContract)
-
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)
-
isOpenSource
public ContractApproveResponse isOpenSource(Integer isOpenSource)
-
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)
-
isProxy
public ContractApproveResponse isProxy(Integer isProxy)
-
getIsProxy
public Integer getIsProxy()
Whether the spender is a proxy contract.- Returns:
- isProxy
-
setIsProxy
public void setIsProxy(Integer isProxy)
-
maliciousBehavior
public ContractApproveResponse maliciousBehavior(List<String> maliciousBehavior)
-
addMaliciousBehaviorItem
public ContractApproveResponse addMaliciousBehaviorItem(String maliciousBehaviorItem)
-
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
-
tag
public ContractApproveResponse tag(String tag)
-
getTag
public String getTag()
It describes which dapp uses the contract. Example:\"tag\": \"Compound\"- Returns:
- tag
-
setTag
public void setTag(String tag)
-
trustList
public ContractApproveResponse trustList(Integer trustList)
-
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)
-
-