Skip to content

Commit 81bd01e

Browse files
authored
Update client code for 714d857cabdb48ac37c4c37b32ceee79f555239f (#30)
1 parent 4ffb826 commit 81bd01e

10 files changed

+1239
-5
lines changed

swagger_client/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@
7474
from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse
7575
from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite
7676
from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult
77+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk import ResponseWrapperPhishingSiteResultNftRisk
78+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_burn import ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn
79+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_minting import ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting
80+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_self_destruct import ResponseWrapperPhishingSiteResultNftRiskSelfDestruct
81+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_transfer_without_approval import ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval
82+
from swagger_client.models.response_wrapper_phishing_site_result_website_contract_security import ResponseWrapperPhishingSiteResultWebsiteContractSecurity
7783
from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse
7884
from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity
7985
from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex

swagger_client/models/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@
6060
from swagger_client.models.response_wrapper_parse_abi_data_response import ResponseWrapperParseAbiDataResponse
6161
from swagger_client.models.response_wrapper_phishing_site import ResponseWrapperPhishingSite
6262
from swagger_client.models.response_wrapper_phishing_site_result import ResponseWrapperPhishingSiteResult
63+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk import ResponseWrapperPhishingSiteResultNftRisk
64+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_burn import ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn
65+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_privileged_minting import ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting
66+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_self_destruct import ResponseWrapperPhishingSiteResultNftRiskSelfDestruct
67+
from swagger_client.models.response_wrapper_phishing_site_result_nft_risk_transfer_without_approval import ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval
68+
from swagger_client.models.response_wrapper_phishing_site_result_website_contract_security import ResponseWrapperPhishingSiteResultWebsiteContractSecurity
6369
from swagger_client.models.response_wrapper_ta_token_security_response import ResponseWrapperTaTokenSecurityResponse
6470
from swagger_client.models.response_wrapper_token_security import ResponseWrapperTokenSecurity
6571
from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex

swagger_client/models/response_wrapper_phishing_site.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def __init__(self, code=None, message=None, result=None): # noqa: E501
5656
def code(self):
5757
"""Gets the code of this ResponseWrapperPhishingSite. # noqa: E501
5858
59-
Code 1: Success # noqa: E501
59+
Code 1Success # noqa: E501
6060
6161
:return: The code of this ResponseWrapperPhishingSite. # noqa: E501
6262
:rtype: int
@@ -67,7 +67,7 @@ def code(self):
6767
def code(self, code):
6868
"""Sets the code of this ResponseWrapperPhishingSite.
6969
70-
Code 1: Success # noqa: E501
70+
Code 1Success # noqa: E501
7171
7272
:param code: The code of this ResponseWrapperPhishingSite. # noqa: E501
7373
:type: int

swagger_client/models/response_wrapper_phishing_site_result.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ResponseWrapperPhishingSiteResult(object):
2828
and the value is json key in definition.
2929
"""
3030
swagger_types = {
31-
'website_contract_security': 'list[str]',
31+
'website_contract_security': 'list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity]',
3232
'phishing_site': 'int'
3333
}
3434

@@ -53,7 +53,7 @@ def website_contract_security(self):
5353
5454
5555
:return: The website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501
56-
:rtype: list[str]
56+
:rtype: list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity]
5757
"""
5858
return self._website_contract_security
5959

@@ -63,7 +63,7 @@ def website_contract_security(self, website_contract_security):
6363
6464
6565
:param website_contract_security: The website_contract_security of this ResponseWrapperPhishingSiteResult. # noqa: E501
66-
:type: list[str]
66+
:type: list[ResponseWrapperPhishingSiteResultWebsiteContractSecurity]
6767
"""
6868

6969
self._website_contract_security = website_contract_security
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,300 @@
1+
# coding: utf-8
2+
3+
"""
4+
GoPlus Security API Document
5+
6+
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
7+
8+
OpenAPI spec version: 1.0
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
import pprint
14+
import re # noqa: F401
15+
16+
import six
17+
18+
class ResponseWrapperPhishingSiteResultNftRisk(object):
19+
"""NOTE: This class is auto generated by the swagger code generator program.
20+
21+
Do not edit the class manually.
22+
"""
23+
"""
24+
Attributes:
25+
swagger_types (dict): The key is attribute name
26+
and the value is attribute type.
27+
attribute_map (dict): The key is attribute name
28+
and the value is json key in definition.
29+
"""
30+
swagger_types = {
31+
'nft_open_source': 'int',
32+
'privileged_minting': 'ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting',
33+
'oversupply_minting': 'int',
34+
'nft_proxy': 'int',
35+
'restricted_approval': 'int',
36+
'transfer_without_approval': 'ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval',
37+
'privileged_burn': 'ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn',
38+
'self_destruct': 'ResponseWrapperPhishingSiteResultNftRiskSelfDestruct'
39+
}
40+
41+
attribute_map = {
42+
'nft_open_source': 'nft_open_source',
43+
'privileged_minting': 'privileged_minting',
44+
'oversupply_minting': 'oversupply_minting',
45+
'nft_proxy': 'nft_proxy',
46+
'restricted_approval': 'restricted_approval',
47+
'transfer_without_approval': 'transfer_without_approval',
48+
'privileged_burn': 'privileged_burn',
49+
'self_destruct': 'self_destruct'
50+
}
51+
52+
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
53+
"""ResponseWrapperPhishingSiteResultNftRisk - a model defined in Swagger""" # noqa: E501
54+
self._nft_open_source = None
55+
self._privileged_minting = None
56+
self._oversupply_minting = None
57+
self._nft_proxy = None
58+
self._restricted_approval = None
59+
self._transfer_without_approval = None
60+
self._privileged_burn = None
61+
self._self_destruct = None
62+
self.discriminator = None
63+
if nft_open_source is not None:
64+
self.nft_open_source = nft_open_source
65+
if privileged_minting is not None:
66+
self.privileged_minting = privileged_minting
67+
if oversupply_minting is not None:
68+
self.oversupply_minting = oversupply_minting
69+
if nft_proxy is not None:
70+
self.nft_proxy = nft_proxy
71+
if restricted_approval is not None:
72+
self.restricted_approval = restricted_approval
73+
if transfer_without_approval is not None:
74+
self.transfer_without_approval = transfer_without_approval
75+
if privileged_burn is not None:
76+
self.privileged_burn = privileged_burn
77+
if self_destruct is not None:
78+
self.self_destruct = self_destruct
79+
80+
@property
81+
def nft_open_source(self):
82+
"""Gets the nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
83+
84+
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
85+
86+
:return: The nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
87+
:rtype: int
88+
"""
89+
return self._nft_open_source
90+
91+
@nft_open_source.setter
92+
def nft_open_source(self, nft_open_source):
93+
"""Sets the nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk.
94+
95+
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
96+
97+
:param nft_open_source: The nft_open_source of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
98+
:type: int
99+
"""
100+
101+
self._nft_open_source = nft_open_source
102+
103+
@property
104+
def privileged_minting(self):
105+
"""Gets the privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
106+
107+
108+
:return: The privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
109+
:rtype: ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting
110+
"""
111+
return self._privileged_minting
112+
113+
@privileged_minting.setter
114+
def privileged_minting(self, privileged_minting):
115+
"""Sets the privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk.
116+
117+
118+
:param privileged_minting: The privileged_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
119+
:type: ResponseWrapperPhishingSiteResultNftRiskPrivilegedMinting
120+
"""
121+
122+
self._privileged_minting = privileged_minting
123+
124+
@property
125+
def oversupply_minting(self):
126+
"""Gets the oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
127+
128+
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
129+
130+
:return: The oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
131+
:rtype: int
132+
"""
133+
return self._oversupply_minting
134+
135+
@oversupply_minting.setter
136+
def oversupply_minting(self, oversupply_minting):
137+
"""Sets the oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk.
138+
139+
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
140+
141+
:param oversupply_minting: The oversupply_minting of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
142+
:type: int
143+
"""
144+
145+
self._oversupply_minting = oversupply_minting
146+
147+
@property
148+
def nft_proxy(self):
149+
"""Gets the nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
150+
151+
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
152+
153+
:return: The nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
154+
:rtype: int
155+
"""
156+
return self._nft_proxy
157+
158+
@nft_proxy.setter
159+
def nft_proxy(self, nft_proxy):
160+
"""Sets the nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk.
161+
162+
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
163+
164+
:param nft_proxy: The nft_proxy of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
165+
:type: int
166+
"""
167+
168+
self._nft_proxy = nft_proxy
169+
170+
@property
171+
def restricted_approval(self):
172+
"""Gets the restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
173+
174+
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
175+
176+
:return: The restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
177+
:rtype: int
178+
"""
179+
return self._restricted_approval
180+
181+
@restricted_approval.setter
182+
def restricted_approval(self, restricted_approval):
183+
"""Sets the restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk.
184+
185+
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
186+
187+
:param restricted_approval: The restricted_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
188+
:type: int
189+
"""
190+
191+
self._restricted_approval = restricted_approval
192+
193+
@property
194+
def transfer_without_approval(self):
195+
"""Gets the transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
196+
197+
198+
:return: The transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
199+
:rtype: ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval
200+
"""
201+
return self._transfer_without_approval
202+
203+
@transfer_without_approval.setter
204+
def transfer_without_approval(self, transfer_without_approval):
205+
"""Sets the transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk.
206+
207+
208+
:param transfer_without_approval: The transfer_without_approval of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
209+
:type: ResponseWrapperPhishingSiteResultNftRiskTransferWithoutApproval
210+
"""
211+
212+
self._transfer_without_approval = transfer_without_approval
213+
214+
@property
215+
def privileged_burn(self):
216+
"""Gets the privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
217+
218+
219+
:return: The privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
220+
:rtype: ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn
221+
"""
222+
return self._privileged_burn
223+
224+
@privileged_burn.setter
225+
def privileged_burn(self, privileged_burn):
226+
"""Sets the privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk.
227+
228+
229+
:param privileged_burn: The privileged_burn of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
230+
:type: ResponseWrapperPhishingSiteResultNftRiskPrivilegedBurn
231+
"""
232+
233+
self._privileged_burn = privileged_burn
234+
235+
@property
236+
def self_destruct(self):
237+
"""Gets the self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
238+
239+
240+
:return: The self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
241+
:rtype: ResponseWrapperPhishingSiteResultNftRiskSelfDestruct
242+
"""
243+
return self._self_destruct
244+
245+
@self_destruct.setter
246+
def self_destruct(self, self_destruct):
247+
"""Sets the self_destruct of this ResponseWrapperPhishingSiteResultNftRisk.
248+
249+
250+
:param self_destruct: The self_destruct of this ResponseWrapperPhishingSiteResultNftRisk. # noqa: E501
251+
:type: ResponseWrapperPhishingSiteResultNftRiskSelfDestruct
252+
"""
253+
254+
self._self_destruct = self_destruct
255+
256+
def to_dict(self):
257+
"""Returns the model properties as a dict"""
258+
result = {}
259+
260+
for attr, _ in six.iteritems(self.swagger_types):
261+
value = getattr(self, attr)
262+
if isinstance(value, list):
263+
result[attr] = list(map(
264+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
265+
value
266+
))
267+
elif hasattr(value, "to_dict"):
268+
result[attr] = value.to_dict()
269+
elif isinstance(value, dict):
270+
result[attr] = dict(map(
271+
lambda item: (item[0], item[1].to_dict())
272+
if hasattr(item[1], "to_dict") else item,
273+
value.items()
274+
))
275+
else:
276+
result[attr] = value
277+
if issubclass(ResponseWrapperPhishingSiteResultNftRisk, dict):
278+
for key, value in self.items():
279+
result[key] = value
280+
281+
return result
282+
283+
def to_str(self):
284+
"""Returns the string representation of the model"""
285+
return pprint.pformat(self.to_dict())
286+
287+
def __repr__(self):
288+
"""For `print` and `pprint`"""
289+
return self.to_str()
290+
291+
def __eq__(self, other):
292+
"""Returns true if both objects are equal"""
293+
if not isinstance(other, ResponseWrapperPhishingSiteResultNftRisk):
294+
return False
295+
296+
return self.__dict__ == other.__dict__
297+
298+
def __ne__(self, other):
299+
"""Returns true if both objects are not equal"""
300+
return not self == other

0 commit comments

Comments
 (0)