diff --git a/swagger_client/__init__.py b/swagger_client/__init__.py index 5c0893b..ae3f230 100644 --- a/swagger_client/__init__.py +++ b/swagger_client/__init__.py @@ -77,8 +77,11 @@ 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 +from swagger_client.models.response_wrapper_token_security_fake_token import ResponseWrapperTokenSecurityFakeToken +from swagger_client.models.response_wrapper_token_security_holders import ResponseWrapperTokenSecurityHolders from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders +from swagger_client.models.response_wrapper_token_security_nft_list import ResponseWrapperTokenSecurityNFTList from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult from swagger_client.models.response_wrapperobject import ResponseWrapperobject from swagger_client.models.ta_token_security_response import TaTokenSecurityResponse diff --git a/swagger_client/api/approve_controller_v_1_api.py b/swagger_client/api/approve_controller_v_1_api.py index 30a26a7..bf798aa 100644 --- a/swagger_client/api/approve_controller_v_1_api.py +++ b/swagger_client/api/approve_controller_v_1_api.py @@ -43,7 +43,7 @@ def address_contract_using_get1(self, address, **kwargs): # noqa: E501 :param async_req bool :param str address: address (required) :param str authorization: Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) - :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"1666600000\" means Harmony; \"tron\" means Tron. + :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; :return: ResponseWrapperAddressContract If the method is called asynchronously, returns the request thread. @@ -66,7 +66,7 @@ def address_contract_using_get1_with_http_info(self, address, **kwargs): # noqa :param async_req bool :param str address: address (required) :param str authorization: Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) - :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"1666600000\" means Harmony; \"tron\" means Tron. + :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59140\" means Linea; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; :return: ResponseWrapperAddressContract If the method is called asynchronously, returns the request thread. diff --git a/swagger_client/api/nft_controller_api.py b/swagger_client/api/nft_controller_api.py index 0dc1e71..ac8c0ff 100644 --- a/swagger_client/api/nft_controller_api.py +++ b/swagger_client/api/nft_controller_api.py @@ -41,7 +41,7 @@ def get_nft_info_using_get1(self, chain_id, contract_addresses, **kwargs): # no >>> result = thread.get() :param async_req bool - :param str chain_id: Chain id, (eth: 1, bsc: 56, Polygon: 137, Avalanche: 43114) (required) + :param str chain_id: The chain_id of the blockchain.\"1\" means Ethereum; \"10\" means Optimism;\"25\" means Cronos;\"56\" means BSC; \"100\" means Gnosis;\"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom;\"321\" means KCC;\"324\" means zkSync Era; \"201022\" means FON;\"42161\" means Arbitrum; \"43114\" means Avalanche;\"59144\" means Linea Mainnet;\"8453\" Base;\"5000\" Mantle; (required) :param str contract_addresses: NFT contract address (required) :param str authorization: Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) :param str token_id: tokenId @@ -65,7 +65,7 @@ def get_nft_info_using_get1_with_http_info(self, chain_id, contract_addresses, * >>> result = thread.get() :param async_req bool - :param str chain_id: Chain id, (eth: 1, bsc: 56, Polygon: 137, Avalanche: 43114) (required) + :param str chain_id: The chain_id of the blockchain.\"1\" means Ethereum; \"10\" means Optimism;\"25\" means Cronos;\"56\" means BSC; \"100\" means Gnosis;\"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom;\"321\" means KCC;\"324\" means zkSync Era; \"201022\" means FON;\"42161\" means Arbitrum; \"43114\" means Avalanche;\"59144\" means Linea Mainnet;\"8453\" Base;\"5000\" Mantle; (required) :param str contract_addresses: NFT contract address (required) :param str authorization: Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) :param str token_id: tokenId diff --git a/swagger_client/api/token_controller_v_1_api.py b/swagger_client/api/token_controller_v_1_api.py index 09b70da..2b93555 100644 --- a/swagger_client/api/token_controller_v_1_api.py +++ b/swagger_client/api/token_controller_v_1_api.py @@ -134,7 +134,7 @@ def token_security_using_get1(self, chain_id, contract_addresses, **kwargs): # >>> result = thread.get() :param async_req bool - :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59144\" means Linea Mainet; \"59140\" means Linea Testnet; \"8453\" Base; \"1666600000\" means Harmony; \"tron\" means Tron. (required) + :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59144\" means Linea Mainnet; \"8453\" Base; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; (required) :param str contract_addresses: The contract address of tokens. (required) :param str authorization: Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) :return: ResponseWrapperTokenSecurity @@ -157,7 +157,7 @@ def token_security_using_get1_with_http_info(self, chain_id, contract_addresses, >>> result = thread.get() :param async_req bool - :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59144\" means Linea Mainet; \"59140\" means Linea Testnet; \"8453\" Base; \"1666600000\" means Harmony; \"tron\" means Tron. (required) + :param str chain_id: The chain_id of the blockchain. \"1\" means Ethereum; \"10\" means Optimism; \"25\" means Cronos; \"56\" means BSC; \"66\" means OKC; \"100\" means Gnosis; \"128\" means HECO; \"137\" means Polygon; \"250\" means Fantom; \"321\" means KCC; \"324\" means zkSync Era; \"10001\" means ETHW; \"201022\" means FON; \"42161\" means Arbitrum; \"43114\" means Avalanche; \"59144\" means Linea Mainnet; \"8453\" Base; \"tron\" means Tron; \"534352\" means Scroll; \"204\" means opBNB; (required) :param str contract_addresses: The contract address of tokens. (required) :param str authorization: Authorization (test: Bearer 81|9ihH8JzEuFu4MQ9DjWmH5WrNCPW...) :return: ResponseWrapperTokenSecurity diff --git a/swagger_client/models/__init__.py b/swagger_client/models/__init__.py index 1128878..f406a1e 100644 --- a/swagger_client/models/__init__.py +++ b/swagger_client/models/__init__.py @@ -63,8 +63,11 @@ 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 +from swagger_client.models.response_wrapper_token_security_fake_token import ResponseWrapperTokenSecurityFakeToken +from swagger_client.models.response_wrapper_token_security_holders import ResponseWrapperTokenSecurityHolders from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders +from swagger_client.models.response_wrapper_token_security_nft_list import ResponseWrapperTokenSecurityNFTList from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult from swagger_client.models.response_wrapperobject import ResponseWrapperobject from swagger_client.models.ta_token_security_response import TaTokenSecurityResponse diff --git a/swagger_client/models/get_access_token_request.py b/swagger_client/models/get_access_token_request.py index c6a7bad..ff95273 100644 --- a/swagger_client/models/get_access_token_request.py +++ b/swagger_client/models/get_access_token_request.py @@ -103,7 +103,7 @@ def sign(self, sign): def time(self): """Gets the time of this GetAccessTokenRequest. # noqa: E501 - Quest timestamp (Second) # noqa: E501 + Quest timestamp (Second), should be within +-1000s around current timestamp # noqa: E501 :return: The time of this GetAccessTokenRequest. # noqa: E501 :rtype: int @@ -114,7 +114,7 @@ def time(self): def time(self, time): """Sets the time of this GetAccessTokenRequest. - Quest timestamp (Second) # noqa: E501 + Quest timestamp (Second), should be within +-1000s around current timestamp # noqa: E501 :param time: The time of this GetAccessTokenRequest. # noqa: E501 :type: int diff --git a/swagger_client/models/response_wrapper_token_security_fake_token.py b/swagger_client/models/response_wrapper_token_security_fake_token.py new file mode 100644 index 0000000..7a3551e --- /dev/null +++ b/swagger_client/models/response_wrapper_token_security_fake_token.py @@ -0,0 +1,140 @@ +# 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 ResponseWrapperTokenSecurityFakeToken(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 = { + 'true_token_address': 'str', + 'value': 'int' + } + + attribute_map = { + 'true_token_address': 'true_token_address', + 'value': 'value' + } + + def __init__(self, true_token_address=None, value=None): # noqa: E501 + """ResponseWrapperTokenSecurityFakeToken - a model defined in Swagger""" # noqa: E501 + self._true_token_address = None + self._value = None + self.discriminator = None + if true_token_address is not None: + self.true_token_address = true_token_address + if value is not None: + self.value = value + + @property + def true_token_address(self): + """Gets the true_token_address of this ResponseWrapperTokenSecurityFakeToken. # noqa: E501 + + If the value is set to 1, and true_token_address is the address of the authentic mainstream asset that the token is imitating on this public chain. If there are multiple mainstream assets with the same name, they will be separated by commas. # noqa: E501 + + :return: The true_token_address of this ResponseWrapperTokenSecurityFakeToken. # noqa: E501 + :rtype: str + """ + return self._true_token_address + + @true_token_address.setter + def true_token_address(self, true_token_address): + """Sets the true_token_address of this ResponseWrapperTokenSecurityFakeToken. + + If the value is set to 1, and true_token_address is the address of the authentic mainstream asset that the token is imitating on this public chain. If there are multiple mainstream assets with the same name, they will be separated by commas. # noqa: E501 + + :param true_token_address: The true_token_address of this ResponseWrapperTokenSecurityFakeToken. # noqa: E501 + :type: str + """ + + self._true_token_address = true_token_address + + @property + def value(self): + """Gets the value of this ResponseWrapperTokenSecurityFakeToken. # noqa: E501 + + If the value is set to 1, and true_token_address is the address of the authentic mainstream asset that the token is imitating on this public chain. If there are multiple mainstream assets with the same name, they will be separated by commas. # noqa: E501 + + :return: The value of this ResponseWrapperTokenSecurityFakeToken. # noqa: E501 + :rtype: int + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResponseWrapperTokenSecurityFakeToken. + + If the value is set to 1, and true_token_address is the address of the authentic mainstream asset that the token is imitating on this public chain. If there are multiple mainstream assets with the same name, they will be separated by commas. # noqa: E501 + + :param value: The value of this ResponseWrapperTokenSecurityFakeToken. # noqa: E501 + :type: int + """ + + self._value = value + + 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(ResponseWrapperTokenSecurityFakeToken, 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, ResponseWrapperTokenSecurityFakeToken): + 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_token_security_holders.py b/swagger_client/models/response_wrapper_token_security_holders.py new file mode 100644 index 0000000..38f1487 --- /dev/null +++ b/swagger_client/models/response_wrapper_token_security_holders.py @@ -0,0 +1,280 @@ +# 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 ResponseWrapperTokenSecurityHolders(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 = { + 'is_locked': 'int', + 'is_contract': 'int', + 'address': 'str', + 'balance': 'str', + 'locked_detail': 'list[ResponseWrapperTokenSecurityLockedDetail]', + 'tag': 'str', + 'percent': 'str' + } + + attribute_map = { + 'is_locked': 'is_locked', + 'is_contract': 'is_contract', + 'address': 'address', + 'balance': 'balance', + 'locked_detail': 'locked_detail', + 'tag': 'tag', + 'percent': 'percent' + } + + def __init__(self, is_locked=None, is_contract=None, address=None, balance=None, locked_detail=None, tag=None, percent=None): # noqa: E501 + """ResponseWrapperTokenSecurityHolders - a model defined in Swagger""" # noqa: E501 + self._is_locked = None + self._is_contract = None + self._address = None + self._balance = None + self._locked_detail = None + self._tag = None + self._percent = None + self.discriminator = None + if is_locked is not None: + self.is_locked = is_locked + if is_contract is not None: + self.is_contract = is_contract + if address is not None: + self.address = address + if balance is not None: + self.balance = balance + if locked_detail is not None: + self.locked_detail = locked_detail + if tag is not None: + self.tag = tag + if percent is not None: + self.percent = percent + + @property + def is_locked(self): + """Gets the is_locked of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) \"tag\" describes the address's public tag. Example:Burn (Notice:About \"locked\": We only support the token lock addresses or black hole addresses that we have included. ) # noqa: E501 + + :return: The is_locked of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: int + """ + return self._is_locked + + @is_locked.setter + def is_locked(self, is_locked): + """Sets the is_locked of this ResponseWrapperTokenSecurityHolders. + + It describes whether the tokens owned by the holder are locked \"1\" means true; \"0\" means false; (3) \"tag\" describes the address's public tag. Example:Burn (Notice:About \"locked\": We only support the token lock addresses or black hole addresses that we have included. ) # noqa: E501 + + :param is_locked: The is_locked of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: int + """ + + self._is_locked = is_locked + + @property + def is_contract(self): + """Gets the is_contract of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It describes whether the holder is a contract \"1\" means true; \"0\" means false. # noqa: E501 + + :return: The is_contract of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: int + """ + return self._is_contract + + @is_contract.setter + def is_contract(self, is_contract): + """Sets the is_contract of this ResponseWrapperTokenSecurityHolders. + + It describes whether the holder is a contract \"1\" means true; \"0\" means false. # noqa: E501 + + :param is_contract: The is_contract of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: int + """ + + self._is_contract = is_contract + + @property + def address(self): + """Gets the address of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It describes the holder address; # noqa: E501 + + :return: The address of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: str + """ + return self._address + + @address.setter + def address(self, address): + """Sets the address of this ResponseWrapperTokenSecurityHolders. + + It describes the holder address; # noqa: E501 + + :param address: The address of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: str + """ + + self._address = address + + @property + def balance(self): + """Gets the balance of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It describes the balance of the holder. # noqa: E501 + + :return: The balance of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: str + """ + return self._balance + + @balance.setter + def balance(self, balance): + """Sets the balance of this ResponseWrapperTokenSecurityHolders. + + It describes the balance of the holder. # noqa: E501 + + :param balance: The balance of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: str + """ + + self._balance = balance + + @property + def locked_detail(self): + """Gets the locked_detail of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501 + + :return: The locked_detail of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: list[ResponseWrapperTokenSecurityLockedDetail] + """ + return self._locked_detail + + @locked_detail.setter + def locked_detail(self, locked_detail): + """Sets the locked_detail of this ResponseWrapperTokenSecurityHolders. + + It is an array, decribes lock position info of this holder, only shows when \"locked\": 1. This Array may contain multiple objects for multiple locking info. (Notice:When \"locked\":0, or lock address is a black hole address, \"locked_detail\" will be no return.) # noqa: E501 + + :param locked_detail: The locked_detail of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: list[ResponseWrapperTokenSecurityLockedDetail] + """ + + self._locked_detail = locked_detail + + @property + def tag(self): + """Gets the tag of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It describes the address's public tag. Example:Burn Address/Deployer; # noqa: E501 + + :return: The tag of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: str + """ + return self._tag + + @tag.setter + def tag(self, tag): + """Sets the tag of this ResponseWrapperTokenSecurityHolders. + + It describes the address's public tag. Example:Burn Address/Deployer; # noqa: E501 + + :param tag: The tag of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: str + """ + + self._tag = tag + + @property + def percent(self): + """Gets the percent of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + + It describes the percentage of tokens held by this holder (Notice:About \"percent\": 1 means 100% here.) # noqa: E501 + + :return: The percent of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :rtype: str + """ + return self._percent + + @percent.setter + def percent(self, percent): + """Sets the percent of this ResponseWrapperTokenSecurityHolders. + + It describes the percentage of tokens held by this holder (Notice:About \"percent\": 1 means 100% here.) # noqa: E501 + + :param percent: The percent of this ResponseWrapperTokenSecurityHolders. # noqa: E501 + :type: str + """ + + self._percent = percent + + 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(ResponseWrapperTokenSecurityHolders, 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, ResponseWrapperTokenSecurityHolders): + 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_token_security_lp_holders.py b/swagger_client/models/response_wrapper_token_security_lp_holders.py index 3213633..9abaa17 100644 --- a/swagger_client/models/response_wrapper_token_security_lp_holders.py +++ b/swagger_client/models/response_wrapper_token_security_lp_holders.py @@ -32,6 +32,7 @@ class ResponseWrapperTokenSecurityLpHolders(object): 'is_contract': 'int', 'address': 'str', 'balance': 'str', + 'nft_list': 'list[ResponseWrapperTokenSecurityNFTList]', 'locked_detail': 'list[ResponseWrapperTokenSecurityLockedDetail]', 'tag': 'str', 'percent': 'str' @@ -42,17 +43,19 @@ class ResponseWrapperTokenSecurityLpHolders(object): 'is_contract': 'is_contract', 'address': 'address', 'balance': 'balance', + 'nft_list': 'NFT_list', 'locked_detail': 'locked_detail', 'tag': 'tag', 'percent': 'percent' } - def __init__(self, is_locked=None, is_contract=None, address=None, balance=None, locked_detail=None, tag=None, percent=None): # noqa: E501 + def __init__(self, is_locked=None, is_contract=None, address=None, balance=None, nft_list=None, locked_detail=None, tag=None, percent=None): # noqa: E501 """ResponseWrapperTokenSecurityLpHolders - a model defined in Swagger""" # noqa: E501 self._is_locked = None self._is_contract = None self._address = None self._balance = None + self._nft_list = None self._locked_detail = None self._tag = None self._percent = None @@ -65,6 +68,8 @@ def __init__(self, is_locked=None, is_contract=None, address=None, balance=None, self.address = address if balance is not None: self.balance = balance + if nft_list is not None: + self.nft_list = nft_list if locked_detail is not None: self.locked_detail = locked_detail if tag is not None: @@ -164,6 +169,29 @@ def balance(self, balance): self._balance = balance + @property + def nft_list(self): + """Gets the nft_list of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 + + It is an array, decribes nft list # noqa: E501 + + :return: The nft_list of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 + :rtype: list[ResponseWrapperTokenSecurityNFTList] + """ + return self._nft_list + + @nft_list.setter + def nft_list(self, nft_list): + """Sets the nft_list of this ResponseWrapperTokenSecurityLpHolders. + + It is an array, decribes nft list # noqa: E501 + + :param nft_list: The nft_list of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 + :type: list[ResponseWrapperTokenSecurityNFTList] + """ + + self._nft_list = nft_list + @property def locked_detail(self): """Gets the locked_detail of this ResponseWrapperTokenSecurityLpHolders. # noqa: E501 diff --git a/swagger_client/models/response_wrapper_token_security_nft_list.py b/swagger_client/models/response_wrapper_token_security_nft_list.py new file mode 100644 index 0000000..35d199a --- /dev/null +++ b/swagger_client/models/response_wrapper_token_security_nft_list.py @@ -0,0 +1,224 @@ +# 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 ResponseWrapperTokenSecurityNFTList(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_percentage': 'str', + 'nft_id': 'str', + 'amount': 'str', + 'in_effect': 'str', + 'value': 'str' + } + + attribute_map = { + 'nft_percentage': 'NFT_percentage', + 'nft_id': 'NFT_id', + 'amount': 'amount', + 'in_effect': 'in_effect', + 'value': 'value' + } + + def __init__(self, nft_percentage=None, nft_id=None, amount=None, in_effect=None, value=None): # noqa: E501 + """ResponseWrapperTokenSecurityNFTList - a model defined in Swagger""" # noqa: E501 + self._nft_percentage = None + self._nft_id = None + self._amount = None + self._in_effect = None + self._value = None + self.discriminator = None + if nft_percentage is not None: + self.nft_percentage = nft_percentage + if nft_id is not None: + self.nft_id = nft_id + if amount is not None: + self.amount = amount + if in_effect is not None: + self.in_effect = in_effect + if value is not None: + self.value = value + + @property + def nft_percentage(self): + """Gets the nft_percentage of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + + \"NFT_percentage\" represents the proportion of that NFT in the total liquidity. When the LP holder is a lockup address, this information will also appear in the \"locked_detail\" section. # noqa: E501 + + :return: The nft_percentage of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :rtype: str + """ + return self._nft_percentage + + @nft_percentage.setter + def nft_percentage(self, nft_percentage): + """Sets the nft_percentage of this ResponseWrapperTokenSecurityNFTList. + + \"NFT_percentage\" represents the proportion of that NFT in the total liquidity. When the LP holder is a lockup address, this information will also appear in the \"locked_detail\" section. # noqa: E501 + + :param nft_percentage: The nft_percentage of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :type: str + """ + + self._nft_percentage = nft_percentage + + @property + def nft_id(self): + """Gets the nft_id of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + + \"NFT_id\" is the NFTID corresponding to that NFT. # noqa: E501 + + :return: The nft_id of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :rtype: str + """ + return self._nft_id + + @nft_id.setter + def nft_id(self, nft_id): + """Sets the nft_id of this ResponseWrapperTokenSecurityNFTList. + + \"NFT_id\" is the NFTID corresponding to that NFT. # noqa: E501 + + :param nft_id: The nft_id of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :type: str + """ + + self._nft_id = nft_id + + @property + def amount(self): + """Gets the amount of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + + \"amount\" is the liquidity quantity corresponding to the NFT. # noqa: E501 + + :return: The amount of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :rtype: str + """ + return self._amount + + @amount.setter + def amount(self, amount): + """Sets the amount of this ResponseWrapperTokenSecurityNFTList. + + \"amount\" is the liquidity quantity corresponding to the NFT. # noqa: E501 + + :param amount: The amount of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :type: str + """ + + self._amount = amount + + @property + def in_effect(self): + """Gets the in_effect of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + + \"in_effect\" indicates whether the liquidity corresponding to that NFT is effective at the current price. # noqa: E501 + + :return: The in_effect of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :rtype: str + """ + return self._in_effect + + @in_effect.setter + def in_effect(self, in_effect): + """Sets the in_effect of this ResponseWrapperTokenSecurityNFTList. + + \"in_effect\" indicates whether the liquidity corresponding to that NFT is effective at the current price. # noqa: E501 + + :param in_effect: The in_effect of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :type: str + """ + + self._in_effect = in_effect + + @property + def value(self): + """Gets the value of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + + \"value\" is the total USD value corresponding to the NFT. # noqa: E501 + + :return: The value of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this ResponseWrapperTokenSecurityNFTList. + + \"value\" is the total USD value corresponding to the NFT. # noqa: E501 + + :param value: The value of this ResponseWrapperTokenSecurityNFTList. # noqa: E501 + :type: str + """ + + self._value = value + + 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(ResponseWrapperTokenSecurityNFTList, 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, ResponseWrapperTokenSecurityNFTList): + 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_token_security_result.py b/swagger_client/models/response_wrapper_token_security_result.py index e32cd67..7f77704 100644 --- a/swagger_client/models/response_wrapper_token_security_result.py +++ b/swagger_client/models/response_wrapper_token_security_result.py @@ -43,11 +43,12 @@ class ResponseWrapperTokenSecurityResult(object): 'trust_list': 'str', 'is_honeypot': 'str', 'honeypot_with_same_creator': 'str', - 'holders': 'list[ResponseWrapperTokenSecurityLpHolders]', + 'holders': 'list[ResponseWrapperTokenSecurityHolders]', 'dex': 'list[ResponseWrapperTokenSecurityDex]', 'is_open_source': 'str', 'sell_tax': 'str', 'token_name': 'str', + 'fake_token': 'ResponseWrapperTokenSecurityFakeToken', 'creator_address': 'str', 'creator_percent': 'str', 'is_proxy': 'str', @@ -94,6 +95,7 @@ class ResponseWrapperTokenSecurityResult(object): 'is_open_source': 'is_open_source', 'sell_tax': 'sell_tax', 'token_name': 'token_name', + 'fake_token': 'fake_token', 'creator_address': 'creator_address', 'creator_percent': 'creator_percent', 'is_proxy': 'is_proxy', @@ -119,7 +121,7 @@ class ResponseWrapperTokenSecurityResult(object): 'token_symbol': 'token_symbol' } - def __init__(self, note=None, lp_total_supply=None, lp_holders=None, is_airdrop_scam=None, other_potential_risks=None, transfer_pausable=None, trading_cooldown=None, hidden_owner=None, selfdestruct=None, owner_percent=None, is_whitelisted=None, holder_count=None, trust_list=None, is_honeypot=None, honeypot_with_same_creator=None, holders=None, dex=None, is_open_source=None, sell_tax=None, token_name=None, creator_address=None, creator_percent=None, is_proxy=None, creator_balance=None, is_in_dex=None, owner_balance=None, total_supply=None, is_true_token=None, can_take_back_ownership=None, is_blacklisted=None, owner_address=None, slippage_modifiable=None, buy_tax=None, external_call=None, cannot_sell_all=None, lp_holder_count=None, personal_slippage_modifiable=None, is_anti_whale=None, is_mintable=None, owner_change_balance=None, cannot_buy=None, anti_whale_modifiable=None, token_symbol=None): # noqa: E501 + def __init__(self, note=None, lp_total_supply=None, lp_holders=None, is_airdrop_scam=None, other_potential_risks=None, transfer_pausable=None, trading_cooldown=None, hidden_owner=None, selfdestruct=None, owner_percent=None, is_whitelisted=None, holder_count=None, trust_list=None, is_honeypot=None, honeypot_with_same_creator=None, holders=None, dex=None, is_open_source=None, sell_tax=None, token_name=None, fake_token=None, creator_address=None, creator_percent=None, is_proxy=None, creator_balance=None, is_in_dex=None, owner_balance=None, total_supply=None, is_true_token=None, can_take_back_ownership=None, is_blacklisted=None, owner_address=None, slippage_modifiable=None, buy_tax=None, external_call=None, cannot_sell_all=None, lp_holder_count=None, personal_slippage_modifiable=None, is_anti_whale=None, is_mintable=None, owner_change_balance=None, cannot_buy=None, anti_whale_modifiable=None, token_symbol=None): # noqa: E501 """ResponseWrapperTokenSecurityResult - a model defined in Swagger""" # noqa: E501 self._note = None self._lp_total_supply = None @@ -141,6 +143,7 @@ def __init__(self, note=None, lp_total_supply=None, lp_holders=None, is_airdrop_ self._is_open_source = None self._sell_tax = None self._token_name = None + self._fake_token = None self._creator_address = None self._creator_percent = None self._is_proxy = None @@ -205,6 +208,8 @@ def __init__(self, note=None, lp_total_supply=None, lp_holders=None, is_airdrop_ self.sell_tax = sell_tax if token_name is not None: self.token_name = token_name + if fake_token is not None: + self.fake_token = fake_token if creator_address is not None: self.creator_address = creator_address if creator_percent is not None: @@ -604,7 +609,7 @@ def holders(self): Top10 holders info # noqa: E501 :return: The holders of this ResponseWrapperTokenSecurityResult. # noqa: E501 - :rtype: list[ResponseWrapperTokenSecurityLpHolders] + :rtype: list[ResponseWrapperTokenSecurityHolders] """ return self._holders @@ -615,7 +620,7 @@ def holders(self, holders): Top10 holders info # noqa: E501 :param holders: The holders of this ResponseWrapperTokenSecurityResult. # noqa: E501 - :type: list[ResponseWrapperTokenSecurityLpHolders] + :type: list[ResponseWrapperTokenSecurityHolders] """ self._holders = holders @@ -712,6 +717,27 @@ def token_name(self, token_name): self._token_name = token_name + @property + def fake_token(self): + """Gets the fake_token of this ResponseWrapperTokenSecurityResult. # noqa: E501 + + + :return: The fake_token of this ResponseWrapperTokenSecurityResult. # noqa: E501 + :rtype: ResponseWrapperTokenSecurityFakeToken + """ + return self._fake_token + + @fake_token.setter + def fake_token(self, fake_token): + """Sets the fake_token of this ResponseWrapperTokenSecurityResult. + + + :param fake_token: The fake_token of this ResponseWrapperTokenSecurityResult. # noqa: E501 + :type: ResponseWrapperTokenSecurityFakeToken + """ + + self._fake_token = fake_token + @property def creator_address(self): """Gets the creator_address of this ResponseWrapperTokenSecurityResult. # noqa: E501