From 0926ea46bec677eec5c97c4b11eb315fd6a19837 Mon Sep 17 00:00:00 2001 From: GoPlusBot Date: Fri, 1 Mar 2024 06:55:19 +0000 Subject: [PATCH] Update client code for 714d857cabdb48ac37c4c37b32ceee79f555239f --- swagger_client/__init__.py | 6 + swagger_client/models/__init__.py | 6 + .../models/response_wrapper_phishing_site.py | 4 +- .../response_wrapper_phishing_site_result.py | 6 +- ...e_wrapper_phishing_site_result_nft_risk.py | 300 ++++++++++++++++++ ...ng_site_result_nft_risk_privileged_burn.py | 168 ++++++++++ ...site_result_nft_risk_privileged_minting.py | 168 ++++++++++ ...hing_site_result_nft_risk_self_destruct.py | 168 ++++++++++ ...sult_nft_risk_transfer_without_approval.py | 168 ++++++++++ ...g_site_result_website_contract_security.py | 250 +++++++++++++++ 10 files changed, 1239 insertions(+), 5 deletions(-) create mode 100644 swagger_client/models/response_wrapper_phishing_site_result_nft_risk.py create mode 100644 swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_burn.py create mode 100644 swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_minting.py create mode 100644 swagger_client/models/response_wrapper_phishing_site_result_nft_risk_self_destruct.py create mode 100644 swagger_client/models/response_wrapper_phishing_site_result_nft_risk_transfer_without_approval.py create mode 100644 swagger_client/models/response_wrapper_phishing_site_result_website_contract_security.py diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py index ae3f230..415c138 100644 --- a/swagger_client/__init__.py +++ b/swagger_client/__init__.py @@ -74,6 +74,12 @@ from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk import ResponseWrapperPhishingSiteResultNftRisk +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_burn import ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_minting import ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_self_destruct import ResponseWrapperPhishingSiteResultNftRiskSelfDestruct +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_transfer_without_approval import ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval +from swagger_client.models.response_wrapper_phishing_site_result_website_contract_security import ResponseWrapperPhishingSiteResultWebsiteContractSecurity from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex diff --git a/swagger_client/models/__init__.py b/swagger_client/models/__init__.py index f406a1e..450d1d8 100644 --- a/swagger_client/models/__init__.py +++ b/swagger_client/models/__init__.py @@ -60,6 +60,12 @@ from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk import ResponseWrapperPhishingSiteResultNftRisk +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_burn import ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_minting import ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_self_destruct import ResponseWrapperPhishingSiteResultNftRiskSelfDestruct +from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_transfer_without_approval import ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval +from swagger_client.models.response_wrapper_phishing_site_result_website_contract_security import ResponseWrapperPhishingSiteResultWebsiteContractSecurity from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex diff --git a/swagger_client/models/response_wrapper_phishing_site.py b/swagger_client/models/response_wrapper_phishing_site.py index 327fe87..a7f5d46 100644 --- a/swagger_client/models/response_wrapper_phishing_site.py +++ b/swagger_client/models/response_wrapper_phishing_site.py @@ -56,7 +56,7 @@ def __init__(self, code=None, message=None, result=None): # noqa: E501 def code(self): """Gets the code of this ResponseWrapperPhishingSite. # noqa: E501 - Code 1: Success # noqa: E501 + Code 1:Success # noqa: E501 :return: The code of this ResponseWrapperPhishingSite. # noqa: E501 :rtype: int @@ -67,7 +67,7 @@ def code(self): def code(self, code): """Sets the code of this ResponseWrapperPhishingSite. - Code 1: Success # noqa: E501 + Code 1:Success # noqa: E501 :param code: The code of this ResponseWrapperPhishingSite. # noqa: E501 :type: int diff --git a/swagger_client/models/response_wrapper_phishing_site_result.py b/swagger_client/models/response_wrapper_phishing_site_result.py index 033e998..95afada 100644 --- a/swagger_client/models/response_wrapper_phishing_site_result.py +++ b/swagger_client/models/response_wrapper_phishing_site_result.py @@ -28,7 +28,7 @@ class ResponseWrapperPhishingSiteResult(object): and the value is json key in definition. """ swagger_types = { - 'website_contract_security': 'list[str]', + 'website_contract_security': 'list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity]', 'phishing_site': 'int' } @@ -53,7 +53,7 @@ def website_contract_security(self): :return: The website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501 - :rtype: list[str] + :rtype: list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity] """ return self._website_contract_security @@ -63,7 +63,7 @@ def website_contract_security(self, website_contract_security): :param website_contract_security: The website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501 - :type: list[str] + :type: list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity] """ self._website_contract_security = website_contract_security diff --git a/swagger_client/models/response_wrapper_phishing_site_result_nft_risk.py b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk.py new file mode 100644 index 0000000..e9b2250 --- /dev/null +++ b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk.py @@ -0,0 +1,300 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperPhishingSiteResultNftRisk(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'nft_open_source': 'int', + 'privileged_minting': 'ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting', + 'oversupply_minting': 'int', + 'nft_proxy': 'int', + 'restricted_approval': 'int', + 'transfer_without_approval': 'ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval', + 'privileged_burn': 'ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn', + 'self_destruct': 'ResponseWrapperPhishingSiteResultNftRiskSelfDestruct' + } + + attribute_map = { + 'nft_open_source': 'nft_open_source', + 'privileged_minting': 'privileged_minting', + 'oversupply_minting': 'oversupply_minting', + 'nft_proxy': 'nft_proxy', + 'restricted_approval': 'restricted_approval', + 'transfer_without_approval': 'transfer_without_approval', + 'privileged_burn': 'privileged_burn', + 'self_destruct': 'self_destruct' + } + + def __init__(self, nft_open_source=None, privileged_minting=None, oversupply_minting=None, nft_proxy=None, restricted_approval=None, transfer_without_approval=None, privileged_burn=None, self_destruct=None): # noqa: E501 + """ResponseWrapperPhishingSiteResultNftRisk - a model defined in Swagger""" # noqa: E501 + self._nft_open_source = None + self._privileged_minting = None + self._oversupply_minting = None + self._nft_proxy = None + self._restricted_approval = None + self._transfer_without_approval = None + self._privileged_burn = None + self._self_destruct = None + self.discriminator = None + if nft_open_source is not None: + self.nft_open_source = nft_open_source + if privileged_minting is not None: + self.privileged_minting = privileged_minting + if oversupply_minting is not None: + self.oversupply_minting = oversupply_minting + if nft_proxy is not None: + self.nft_proxy = nft_proxy + if restricted_approval is not None: + self.restricted_approval = restricted_approval + if transfer_without_approval is not None: + self.transfer_without_approval = transfer_without_approval + if privileged_burn is not None: + self.privileged_burn = privileged_burn + if self_destruct is not None: + self.self_destruct = self_destruct + + @property + def nft_open_source(self): + """Gets the nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + It describes whether this contract is open source. \"1\" means true; \"0\" means false.(Notice:Un-open-sourced contracts may hide various unknown mechanisms and are extremely risky. When the contract is not open source, we will not be able to detect other risk items.) # noqa: E501 + + :return: The nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: int + """ + return self._nft_open_source + + @nft_open_source.setter + def nft_open_source(self, nft_open_source): + """Sets the nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. + + It describes whether this contract is open source. \"1\" means true; \"0\" means false.(Notice:Un-open-sourced contracts may hide various unknown mechanisms and are extremely risky. When the contract is not open source, we will not be able to detect other risk items.) # noqa: E501 + + :param nft_open_source: The nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: int + """ + + self._nft_open_source = nft_open_source + + @property + def privileged_minting(self): + """Gets the privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + + :return: The privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting + """ + return self._privileged_minting + + @privileged_minting.setter + def privileged_minting(self, privileged_minting): + """Sets the privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. + + + :param privileged_minting: The privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting + """ + + self._privileged_minting = privileged_minting + + @property + def oversupply_minting(self): + """Gets the oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + It describes whether this NFT owner can bypass the maximum amount of minting specified in the contract, and continue to mint NFTs beyond this limit. \"1\" means true; \"0\" means false; \"Null\" means unknown.(Notice:Oversupply minting refers to the existence of a special mint method in the NFT contract - the owner can bypass the maximum amount of minting specified in the contract, and continue to mint NFTs beyond this limit.) # noqa: E501 + + :return: The oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: int + """ + return self._oversupply_minting + + @oversupply_minting.setter + def oversupply_minting(self, oversupply_minting): + """Sets the oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. + + It describes whether this NFT owner can bypass the maximum amount of minting specified in the contract, and continue to mint NFTs beyond this limit. \"1\" means true; \"0\" means false; \"Null\" means unknown.(Notice:Oversupply minting refers to the existence of a special mint method in the NFT contract - the owner can bypass the maximum amount of minting specified in the contract, and continue to mint NFTs beyond this limit.) # noqa: E501 + + :param oversupply_minting: The oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: int + """ + + self._oversupply_minting = oversupply_minting + + @property + def nft_proxy(self): + """Gets the nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + It describes whether this NFT contract has a proxy contract. \"1\" means true; \"0\" means false; \"Null\" means unknown.(Notice:(1) When \"is_open_source\":\"0\", it will return \"null\". (2) Most Proxy contracts are accompanied by modifiable implementation contracts, and implementation contracts may contain significant potential risk.) # noqa: E501 + + :return: The nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: int + """ + return self._nft_proxy + + @nft_proxy.setter + def nft_proxy(self, nft_proxy): + """Sets the nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. + + It describes whether this NFT contract has a proxy contract. \"1\" means true; \"0\" means false; \"Null\" means unknown.(Notice:(1) When \"is_open_source\":\"0\", it will return \"null\". (2) Most Proxy contracts are accompanied by modifiable implementation contracts, and implementation contracts may contain significant potential risk.) # noqa: E501 + + :param nft_proxy: The nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: int + """ + + self._nft_proxy = nft_proxy + + @property + def restricted_approval(self): + """Gets the restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + It describes whether the NFT contract can restrict the approval, resulting in NFT can not be traded on the NFT DEX. \"1\" means true; \"0\" means false; \"Null\" means unknown.(Notice:If this risk exists, it means that users will not be able to trade the NFT on the exchange and only privileged users in the whitelist will be able to trade normally.) # noqa: E501 + + :return: The restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: int + """ + return self._restricted_approval + + @restricted_approval.setter + def restricted_approval(self, restricted_approval): + """Sets the restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. + + It describes whether the NFT contract can restrict the approval, resulting in NFT can not be traded on the NFT DEX. \"1\" means true; \"0\" means false; \"Null\" means unknown.(Notice:If this risk exists, it means that users will not be able to trade the NFT on the exchange and only privileged users in the whitelist will be able to trade normally.) # noqa: E501 + + :param restricted_approval: The restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: int + """ + + self._restricted_approval = restricted_approval + + @property + def transfer_without_approval(self): + """Gets the transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + + :return: The transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval + """ + return self._transfer_without_approval + + @transfer_without_approval.setter + def transfer_without_approval(self, transfer_without_approval): + """Sets the transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. + + + :param transfer_without_approval: The transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval + """ + + self._transfer_without_approval = transfer_without_approval + + @property + def privileged_burn(self): + """Gets the privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + + :return: The privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn + """ + return self._privileged_burn + + @privileged_burn.setter + def privileged_burn(self, privileged_burn): + """Sets the privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. + + + :param privileged_burn: The privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn + """ + + self._privileged_burn = privileged_burn + + @property + def self_destruct(self): + """Gets the self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + + + :return: The self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :rtype: ResponseWrapperPhishingSiteResultNftRiskSelfDestruct + """ + return self._self_destruct + + @self_destruct.setter + def self_destruct(self, self_destruct): + """Sets the self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. + + + :param self_destruct: The self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501 + :type: ResponseWrapperPhishingSiteResultNftRiskSelfDestruct + """ + + self._self_destruct = self_destruct + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperPhishingSiteResultNftRisk, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperPhishingSiteResultNftRisk): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_burn.py b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_burn.py new file mode 100644 index 0000000..ece5e2f --- /dev/null +++ b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_burn.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'owner_address': 'str', + 'value': 'int', + 'owner_type': 'str' + } + + attribute_map = { + 'owner_address': 'owner_address', + 'value': 'value', + 'owner_type': 'owner_type' + } + + def __init__(self, owner_address=None, value=None, owner_type=None): # noqa: E501 + """ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn - a model defined in Swagger""" # noqa: E501 + self._owner_address = None + self._value = None + self._owner_type = None + self.discriminator = None + if owner_address is not None: + self.owner_address = owner_address + if value is not None: + self.value = value + if owner_type is not None: + self.owner_type = owner_type + + @property + def owner_address(self): + """Gets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :return: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + :rtype: str + """ + return self._owner_address + + @owner_address.setter + def owner_address(self, owner_address): + """Sets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :param owner_address: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + :type: str + """ + + self._owner_address = owner_address + + @property + def value(self): + """Gets the value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :return: The value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :param value: The value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + :type: int + """ + + self._value = value + + @property + def owner_type(self): + """Gets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :return: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + :rtype: str + """ + return self._owner_type + + @owner_type.setter + def owner_type(self, owner_type): + """Sets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :param owner_type: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn. # noqa: E501 + :type: str + """ + + self._owner_type = owner_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_minting.py b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_minting.py new file mode 100644 index 0000000..6867391 --- /dev/null +++ b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_privileged_minting.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'owner_address': 'str', + 'value': 'int', + 'owner_type': 'str' + } + + attribute_map = { + 'owner_address': 'owner_address', + 'value': 'value', + 'owner_type': 'owner_type' + } + + def __init__(self, owner_address=None, value=None, owner_type=None): # noqa: E501 + """ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting - a model defined in Swagger""" # noqa: E501 + self._owner_address = None + self._value = None + self._owner_type = None + self.discriminator = None + if owner_address is not None: + self.owner_address = owner_address + if value is not None: + self.value = value + if owner_type is not None: + self.owner_type = owner_type + + @property + def owner_address(self): + """Gets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :return: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + :rtype: str + """ + return self._owner_address + + @owner_address.setter + def owner_address(self, owner_address): + """Sets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :param owner_address: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + :type: str + """ + + self._owner_address = owner_address + + @property + def value(self): + """Gets the value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :return: The value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :param value: The value of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + :type: int + """ + + self._value = value + + @property + def owner_type(self): + """Gets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :return: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + :rtype: str + """ + return self._owner_type + + @owner_type.setter + def owner_type(self, owner_type): + """Sets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :param owner_type: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting. # noqa: E501 + :type: str + """ + + self._owner_type = owner_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_self_destruct.py b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_self_destruct.py new file mode 100644 index 0000000..27ee1e8 --- /dev/null +++ b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_self_destruct.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperPhishingSiteResultNftRiskSelfDestruct(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'owner_address': 'str', + 'value': 'int', + 'owner_type': 'str' + } + + attribute_map = { + 'owner_address': 'owner_address', + 'value': 'value', + 'owner_type': 'owner_type' + } + + def __init__(self, owner_address=None, value=None, owner_type=None): # noqa: E501 + """ResponseWrapperPhishingSiteResultNftRiskSelfDestruct - a model defined in Swagger""" # noqa: E501 + self._owner_address = None + self._value = None + self._owner_type = None + self.discriminator = None + if owner_address is not None: + self.owner_address = owner_address + if value is not None: + self.value = value + if owner_type is not None: + self.owner_type = owner_type + + @property + def owner_address(self): + """Gets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :return: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + :rtype: str + """ + return self._owner_address + + @owner_address.setter + def owner_address(self, owner_address): + """Sets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :param owner_address: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + :type: str + """ + + self._owner_address = owner_address + + @property + def value(self): + """Gets the value of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :return: The value of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :param value: The value of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + :type: int + """ + + self._value = value + + @property + def owner_type(self): + """Gets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :return: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + :rtype: str + """ + return self._owner_type + + @owner_type.setter + def owner_type(self, owner_type): + """Sets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :param owner_type: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskSelfDestruct. # noqa: E501 + :type: str + """ + + self._owner_type = owner_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperPhishingSiteResultNftRiskSelfDestruct, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperPhishingSiteResultNftRiskSelfDestruct): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_transfer_without_approval.py b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_transfer_without_approval.py new file mode 100644 index 0000000..d0dbd36 --- /dev/null +++ b/swagger_client/models/response_wrapper_phishing_site_result_nft_risk_transfer_without_approval.py @@ -0,0 +1,168 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'owner_address': 'str', + 'value': 'int', + 'owner_type': 'str' + } + + attribute_map = { + 'owner_address': 'owner_address', + 'value': 'value', + 'owner_type': 'owner_type' + } + + def __init__(self, owner_address=None, value=None, owner_type=None): # noqa: E501 + """ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval - a model defined in Swagger""" # noqa: E501 + self._owner_address = None + self._value = None + self._owner_type = None + self.discriminator = None + if owner_address is not None: + self.owner_address = owner_address + if value is not None: + self.value = value + if owner_type is not None: + self.owner_type = owner_type + + @property + def owner_address(self): + """Gets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :return: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + :rtype: str + """ + return self._owner_address + + @owner_address.setter + def owner_address(self, owner_address): + """Sets the owner_address of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. + + Owner_address describes the owner address. null: the owner address cannot be fetched. # noqa: E501 + + :param owner_address: The owner_address of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + :type: str + """ + + self._owner_address = owner_address + + @property + def value(self): + """Gets the value of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :return: The value of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. + + The \"value\" describes the status of the risk. null: the contract is not open source or there is a proxy, it is not possible to detect whether the risk exists. -1: the risk is detected but the ownership give up. If the detection of a code vulnerability, it can also be considered risk-free. 0: the risk is not detected. 1: the risk is detected, and the owner address is a common address (EOA), then it can be said that there is a clear risk. 2: The risk is detected, but the owner address is a contract address, the risk is not significant. 3: The risk is detected, but the owner address is not detectable / or an array. # noqa: E501 + + :param value: The value of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + :type: int + """ + + self._value = value + + @property + def owner_type(self): + """Gets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :return: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + :rtype: str + """ + return self._owner_type + + @owner_type.setter + def owner_type(self, owner_type): + """Sets the owner_type of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. + + \"blackhole\" : the owner is a blackhole address. \"contract\" : the owner is a contract. \"eoa\" : the owner is a common address (eoa). \"multi-address\":the owner is an array/list. null: the address is not detected. # noqa: E501 + + :param owner_type: The owner_type of this ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval. # noqa: E501 + :type: str + """ + + self._owner_type = owner_type + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/swagger_client/models/response_wrapper_phishing_site_result_website_contract_security.py b/swagger_client/models/response_wrapper_phishing_site_result_website_contract_security.py new file mode 100644 index 0000000..4409688 --- /dev/null +++ b/swagger_client/models/response_wrapper_phishing_site_result_website_contract_security.py @@ -0,0 +1,250 @@ +# coding: utf-8 + +""" + GoPlus Security API Document + + No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 + + OpenAPI spec version: 1.0 + + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + +import pprint +import re # noqa: F401 + +import six + +class ResponseWrapperPhishingSiteResultWebsiteContractSecurity(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'standard': 'str', + 'is_contract': 'int', + 'address_risk': 'list[str]', + 'contract': 'str', + 'is_open_source': 'int', + 'nft_risk': 'ResponseWrapperPhishingSiteResultNftRisk' + } + + attribute_map = { + 'standard': 'standard', + 'is_contract': 'is_contract', + 'address_risk': 'address_risk', + 'contract': 'contract', + 'is_open_source': 'is_open_source', + 'nft_risk': 'nft_risk' + } + + def __init__(self, standard=None, is_contract=None, address_risk=None, contract=None, is_open_source=None, nft_risk=None): # noqa: E501 + """ResponseWrapperPhishingSiteResultWebsiteContractSecurity - a model defined in Swagger""" # noqa: E501 + self._standard = None + self._is_contract = None + self._address_risk = None + self._contract = None + self._is_open_source = None + self._nft_risk = None + self.discriminator = None + if standard is not None: + self.standard = standard + if is_contract is not None: + self.is_contract = is_contract + if address_risk is not None: + self.address_risk = address_risk + if contract is not None: + self.contract = contract + if is_open_source is not None: + self.is_open_source = is_open_source + if nft_risk is not None: + self.nft_risk = nft_risk + + @property + def standard(self): + """Gets the standard of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + + contract type(erc20, erc721, erc1155) # noqa: E501 + + :return: The standard of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :rtype: str + """ + return self._standard + + @standard.setter + def standard(self, standard): + """Sets the standard of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. + + contract type(erc20, erc721, erc1155) # noqa: E501 + + :param standard: The standard of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :type: str + """ + + self._standard = standard + + @property + def is_contract(self): + """Gets the is_contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + + It describes whether the holder is a contract \"1\" means true; \"0\" means false. # noqa: E501 + + :return: The is_contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :rtype: int + """ + return self._is_contract + + @is_contract.setter + def is_contract(self, is_contract): + """Sets the is_contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. + + It describes whether the holder is a contract \"1\" means true; \"0\" means false. # noqa: E501 + + :param is_contract: The is_contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :type: int + """ + + self._is_contract = is_contract + + @property + def address_risk(self): + """Gets the address_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + + address risk # noqa: E501 + + :return: The address_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :rtype: list[str] + """ + return self._address_risk + + @address_risk.setter + def address_risk(self, address_risk): + """Sets the address_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. + + address risk # noqa: E501 + + :param address_risk: The address_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :type: list[str] + """ + + self._address_risk = address_risk + + @property + def contract(self): + """Gets the contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + + contract address # noqa: E501 + + :return: The contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :rtype: str + """ + return self._contract + + @contract.setter + def contract(self, contract): + """Sets the contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. + + contract address # noqa: E501 + + :param contract: The contract of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :type: str + """ + + self._contract = contract + + @property + def is_open_source(self): + """Gets the is_open_source of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + + It describes whether this contract is open source. \"1\" means true; \"0\" means false.(Notice:Un-open-sourced contracts may hide various unknown mechanisms and are extremely risky. When the contract is not open source, we will not be able to detect other risk items.) # noqa: E501 + + :return: The is_open_source of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :rtype: int + """ + return self._is_open_source + + @is_open_source.setter + def is_open_source(self, is_open_source): + """Sets the is_open_source of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. + + It describes whether this contract is open source. \"1\" means true; \"0\" means false.(Notice:Un-open-sourced contracts may hide various unknown mechanisms and are extremely risky. When the contract is not open source, we will not be able to detect other risk items.) # noqa: E501 + + :param is_open_source: The is_open_source of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :type: int + """ + + self._is_open_source = is_open_source + + @property + def nft_risk(self): + """Gets the nft_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + + + :return: The nft_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :rtype: ResponseWrapperPhishingSiteResultNftRisk + """ + return self._nft_risk + + @nft_risk.setter + def nft_risk(self, nft_risk): + """Sets the nft_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. + + + :param nft_risk: The nft_risk of this ResponseWrapperPhishingSiteResultWebsiteContractSecurity. # noqa: E501 + :type: ResponseWrapperPhishingSiteResultNftRisk + """ + + self._nft_risk = nft_risk + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResponseWrapperPhishingSiteResultWebsiteContractSecurity, dict): + for key, value in self.items(): + result[key] = value + + return result + + def to_str(self): + """Returns the string representation of the model""" + return pprint.pformat(self.to_dict()) + + def __repr__(self): + """For `print` and `pprint`""" + return self.to_str() + + def __eq__(self, other): + """Returns true if both objects are equal""" + if not isinstance(other, ResponseWrapperPhishingSiteResultWebsiteContractSecurity): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other