Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions swagger_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions swagger_client/api/approve_controller_v_1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions swagger_client/api/nft_controller_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions swagger_client/api/token_controller_v_1_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions swagger_client/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions swagger_client/models/get_access_token_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
140 changes: 140 additions & 0 deletions swagger_client/models/response_wrapper_token_security_fake_token.py
Original file line number Diff line number Diff line change
@@ -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
Loading