Skip to content

Commit 0285a7d

Browse files
authored
Update client code for 40e362cdf492dcccb06d49f4be8639eacd3c3f64 (#35)
1 parent 001933c commit 0285a7d

8 files changed

+313
-31
lines changed

swagger_client/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,8 @@
9797
from swagger_client.models.response_wrapper_solana_token_security_default_account_state_upgradable import ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable
9898
from swagger_client.models.response_wrapper_solana_token_security_dex import ResponseWrapperSolanaTokenSecurityDex
9999
from swagger_client.models.response_wrapper_solana_token_security_freezable import ResponseWrapperSolanaTokenSecurityFreezable
100+
from swagger_client.models.response_wrapper_solana_token_security_holders import ResponseWrapperSolanaTokenSecurityHolders
101+
from swagger_client.models.response_wrapper_solana_token_security_locked_detail import ResponseWrapperSolanaTokenSecurityLockedDetail
100102
from swagger_client.models.response_wrapper_solana_token_security_lp_holders import ResponseWrapperSolanaTokenSecurityLpHolders
101103
from swagger_client.models.response_wrapper_solana_token_security_metadata import ResponseWrapperSolanaTokenSecurityMetadata
102104
from swagger_client.models.response_wrapper_solana_token_security_metadata_mutable import ResponseWrapperSolanaTokenSecurityMetadataMutable
@@ -122,7 +124,6 @@
122124
from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex
123125
from swagger_client.models.response_wrapper_token_security_fake_token import ResponseWrapperTokenSecurityFakeToken
124126
from swagger_client.models.response_wrapper_token_security_holders import ResponseWrapperTokenSecurityHolders
125-
from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail
126127
from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders
127128
from swagger_client.models.response_wrapper_token_security_nft_list import ResponseWrapperTokenSecurityNFTList
128129
from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult

swagger_client/models/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@
7979
from swagger_client.models.response_wrapper_solana_token_security_default_account_state_upgradable import ResponseWrapperSolanaTokenSecurityDefaultAccountStateUpgradable
8080
from swagger_client.models.response_wrapper_solana_token_security_dex import ResponseWrapperSolanaTokenSecurityDex
8181
from swagger_client.models.response_wrapper_solana_token_security_freezable import ResponseWrapperSolanaTokenSecurityFreezable
82+
from swagger_client.models.response_wrapper_solana_token_security_holders import ResponseWrapperSolanaTokenSecurityHolders
83+
from swagger_client.models.response_wrapper_solana_token_security_locked_detail import ResponseWrapperSolanaTokenSecurityLockedDetail
8284
from swagger_client.models.response_wrapper_solana_token_security_lp_holders import ResponseWrapperSolanaTokenSecurityLpHolders
8385
from swagger_client.models.response_wrapper_solana_token_security_metadata import ResponseWrapperSolanaTokenSecurityMetadata
8486
from swagger_client.models.response_wrapper_solana_token_security_metadata_mutable import ResponseWrapperSolanaTokenSecurityMetadataMutable
@@ -104,7 +106,6 @@
104106
from swagger_client.models.response_wrapper_token_security_dex import ResponseWrapperTokenSecurityDex
105107
from swagger_client.models.response_wrapper_token_security_fake_token import ResponseWrapperTokenSecurityFakeToken
106108
from swagger_client.models.response_wrapper_token_security_holders import ResponseWrapperTokenSecurityHolders
107-
from swagger_client.models.response_wrapper_token_security_locked_detail import ResponseWrapperTokenSecurityLockedDetail
108109
from swagger_client.models.response_wrapper_token_security_lp_holders import ResponseWrapperTokenSecurityLpHolders
109110
from swagger_client.models.response_wrapper_token_security_nft_list import ResponseWrapperTokenSecurityNFTList
110111
from swagger_client.models.response_wrapper_token_security_result import ResponseWrapperTokenSecurityResult

swagger_client/models/response_wrapper_solana_token_security_dex.py

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class ResponseWrapperSolanaTokenSecurityDex(object):
3737
'type': 'str',
3838
'dex_name': 'str',
3939
'day': 'ResponseWrapperSolanaTokenSecurityDay',
40+
'burn_percent': 'float',
4041
'lp_amount': 'str',
4142
'fee_rate': 'str'
4243
}
@@ -51,11 +52,12 @@ class ResponseWrapperSolanaTokenSecurityDex(object):
5152
'type': 'type',
5253
'dex_name': 'dex_name',
5354
'day': 'day',
55+
'burn_percent': 'burn_percent',
5456
'lp_amount': 'lp_amount',
5557
'fee_rate': 'fee_rate'
5658
}
5759

58-
def __init__(self, week=None, month=None, price=None, open_time=None, id=None, tvl=None, type=None, dex_name=None, day=None, lp_amount=None, fee_rate=None): # noqa: E501
60+
def __init__(self, week=None, month=None, price=None, open_time=None, id=None, tvl=None, type=None, dex_name=None, day=None, burn_percent=None, lp_amount=None, fee_rate=None): # noqa: E501
5961
"""ResponseWrapperSolanaTokenSecurityDex - a model defined in Swagger""" # noqa: E501
6062
self._week = None
6163
self._month = None
@@ -66,6 +68,7 @@ def __init__(self, week=None, month=None, price=None, open_time=None, id=None, t
6668
self._type = None
6769
self._dex_name = None
6870
self._day = None
71+
self._burn_percent = None
6972
self._lp_amount = None
7073
self._fee_rate = None
7174
self.discriminator = None
@@ -87,6 +90,8 @@ def __init__(self, week=None, month=None, price=None, open_time=None, id=None, t
8790
self.dex_name = dex_name
8891
if day is not None:
8992
self.day = day
93+
if burn_percent is not None:
94+
self.burn_percent = burn_percent
9095
if lp_amount is not None:
9196
self.lp_amount = lp_amount
9297
if fee_rate is not None:
@@ -293,6 +298,29 @@ def day(self, day):
293298

294299
self._day = day
295300

301+
@property
302+
def burn_percent(self):
303+
"""Gets the burn_percent of this ResponseWrapperSolanaTokenSecurityDex. # noqa: E501
304+
305+
Percentage of burned LP # noqa: E501
306+
307+
:return: The burn_percent of this ResponseWrapperSolanaTokenSecurityDex. # noqa: E501
308+
:rtype: float
309+
"""
310+
return self._burn_percent
311+
312+
@burn_percent.setter
313+
def burn_percent(self, burn_percent):
314+
"""Sets the burn_percent of this ResponseWrapperSolanaTokenSecurityDex.
315+
316+
Percentage of burned LP # noqa: E501
317+
318+
:param burn_percent: The burn_percent of this ResponseWrapperSolanaTokenSecurityDex. # noqa: E501
319+
:type: float
320+
"""
321+
322+
self._burn_percent = burn_percent
323+
296324
@property
297325
def lp_amount(self):
298326
"""Gets the lp_amount of this ResponseWrapperSolanaTokenSecurityDex. # noqa: E501
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
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 ResponseWrapperSolanaTokenSecurityHolders(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+
'is_locked': 'int',
32+
'balance': 'str',
33+
'locked_detail': 'list[ResponseWrapperSolanaTokenSecurityLockedDetail]',
34+
'token_account': 'str',
35+
'tag': 'str',
36+
'percent': 'str'
37+
}
38+
39+
attribute_map = {
40+
'is_locked': 'is_locked',
41+
'balance': 'balance',
42+
'locked_detail': 'locked_detail',
43+
'token_account': 'token_account',
44+
'tag': 'tag',
45+
'percent': 'percent'
46+
}
47+
48+
def __init__(self, is_locked=None, balance=None, locked_detail=None, token_account=None, tag=None, percent=None): # noqa: E501
49+
"""ResponseWrapperSolanaTokenSecurityHolders - a model defined in Swagger""" # noqa: E501
50+
self._is_locked = None
51+
self._balance = None
52+
self._locked_detail = None
53+
self._token_account = None
54+
self._tag = None
55+
self._percent = None
56+
self.discriminator = None
57+
if is_locked is not None:
58+
self.is_locked = is_locked
59+
if balance is not None:
60+
self.balance = balance
61+
if locked_detail is not None:
62+
self.locked_detail = locked_detail
63+
if token_account is not None:
64+
self.token_account = token_account
65+
if tag is not None:
66+
self.tag = tag
67+
if percent is not None:
68+
self.percent = percent
69+
70+
@property
71+
def is_locked(self):
72+
"""Gets the is_locked of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
73+
74+
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
75+
76+
:return: The is_locked of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
77+
:rtype: int
78+
"""
79+
return self._is_locked
80+
81+
@is_locked.setter
82+
def is_locked(self, is_locked):
83+
"""Sets the is_locked of this ResponseWrapperSolanaTokenSecurityHolders.
84+
85+
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
86+
87+
:param is_locked: The is_locked of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
88+
:type: int
89+
"""
90+
91+
self._is_locked = is_locked
92+
93+
@property
94+
def balance(self):
95+
"""Gets the balance of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
96+
97+
Amount of tokens held. # noqa: E501
98+
99+
:return: The balance of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
100+
:rtype: str
101+
"""
102+
return self._balance
103+
104+
@balance.setter
105+
def balance(self, balance):
106+
"""Sets the balance of this ResponseWrapperSolanaTokenSecurityHolders.
107+
108+
Amount of tokens held. # noqa: E501
109+
110+
:param balance: The balance of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
111+
:type: str
112+
"""
113+
114+
self._balance = balance
115+
116+
@property
117+
def locked_detail(self):
118+
"""Gets the locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
119+
120+
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
121+
122+
:return: The locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
123+
:rtype: list[ResponseWrapperSolanaTokenSecurityLockedDetail]
124+
"""
125+
return self._locked_detail
126+
127+
@locked_detail.setter
128+
def locked_detail(self, locked_detail):
129+
"""Sets the locked_detail of this ResponseWrapperSolanaTokenSecurityHolders.
130+
131+
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
132+
133+
:param locked_detail: The locked_detail of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
134+
:type: list[ResponseWrapperSolanaTokenSecurityLockedDetail]
135+
"""
136+
137+
self._locked_detail = locked_detail
138+
139+
@property
140+
def token_account(self):
141+
"""Gets the token_account of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
142+
143+
Address of the holder. # noqa: E501
144+
145+
:return: The token_account of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
146+
:rtype: str
147+
"""
148+
return self._token_account
149+
150+
@token_account.setter
151+
def token_account(self, token_account):
152+
"""Sets the token_account of this ResponseWrapperSolanaTokenSecurityHolders.
153+
154+
Address of the holder. # noqa: E501
155+
156+
:param token_account: The token_account of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
157+
:type: str
158+
"""
159+
160+
self._token_account = token_account
161+
162+
@property
163+
def tag(self):
164+
"""Gets the tag of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
165+
166+
Tag information of the holder. # noqa: E501
167+
168+
:return: The tag of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
169+
:rtype: str
170+
"""
171+
return self._tag
172+
173+
@tag.setter
174+
def tag(self, tag):
175+
"""Sets the tag of this ResponseWrapperSolanaTokenSecurityHolders.
176+
177+
Tag information of the holder. # noqa: E501
178+
179+
:param tag: The tag of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
180+
:type: str
181+
"""
182+
183+
self._tag = tag
184+
185+
@property
186+
def percent(self):
187+
"""Gets the percent of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
188+
189+
Percentage of total supply held. # noqa: E501
190+
191+
:return: The percent of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
192+
:rtype: str
193+
"""
194+
return self._percent
195+
196+
@percent.setter
197+
def percent(self, percent):
198+
"""Sets the percent of this ResponseWrapperSolanaTokenSecurityHolders.
199+
200+
Percentage of total supply held. # noqa: E501
201+
202+
:param percent: The percent of this ResponseWrapperSolanaTokenSecurityHolders. # noqa: E501
203+
:type: str
204+
"""
205+
206+
self._percent = percent
207+
208+
def to_dict(self):
209+
"""Returns the model properties as a dict"""
210+
result = {}
211+
212+
for attr, _ in six.iteritems(self.swagger_types):
213+
value = getattr(self, attr)
214+
if isinstance(value, list):
215+
result[attr] = list(map(
216+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
217+
value
218+
))
219+
elif hasattr(value, "to_dict"):
220+
result[attr] = value.to_dict()
221+
elif isinstance(value, dict):
222+
result[attr] = dict(map(
223+
lambda item: (item[0], item[1].to_dict())
224+
if hasattr(item[1], "to_dict") else item,
225+
value.items()
226+
))
227+
else:
228+
result[attr] = value
229+
if issubclass(ResponseWrapperSolanaTokenSecurityHolders, dict):
230+
for key, value in self.items():
231+
result[key] = value
232+
233+
return result
234+
235+
def to_str(self):
236+
"""Returns the string representation of the model"""
237+
return pprint.pformat(self.to_dict())
238+
239+
def __repr__(self):
240+
"""For `print` and `pprint`"""
241+
return self.to_str()
242+
243+
def __eq__(self, other):
244+
"""Returns true if both objects are equal"""
245+
if not isinstance(other, ResponseWrapperSolanaTokenSecurityHolders):
246+
return False
247+
248+
return self.__dict__ == other.__dict__
249+
250+
def __ne__(self, other):
251+
"""Returns true if both objects are not equal"""
252+
return not self == other

0 commit comments

Comments
 (0)