Skip to content

Commit 92a19c4

Browse files
Fix for additional uint and int types (#41)
1 parent be5d376 commit 92a19c4

34 files changed

+1909
-113
lines changed

cdp/address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def faucet(self, asset_id=None) -> FaucetTransaction:
6868
network_id=self.network_id,
6969
address_id=self.address_id,
7070
asset_id=asset_id,
71-
skip_wait=True
71+
skip_wait=True,
7272
)
7373

7474
return FaucetTransaction(model)

cdp/client/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from cdp.client.api.contract_invocations_api import ContractInvocationsApi
2525
from cdp.client.api.external_addresses_api import ExternalAddressesApi
2626
from cdp.client.api.fund_api import FundApi
27+
from cdp.client.api.mpc_wallet_stake_api import MPCWalletStakeApi
2728
from cdp.client.api.networks_api import NetworksApi
2829
from cdp.client.api.onchain_identity_api import OnchainIdentityApi
2930
from cdp.client.api.server_signers_api import ServerSignersApi
@@ -33,8 +34,6 @@
3334
from cdp.client.api.transaction_history_api import TransactionHistoryApi
3435
from cdp.client.api.transfers_api import TransfersApi
3536
from cdp.client.api.users_api import UsersApi
36-
from cdp.client.api.validators_api import ValidatorsApi
37-
from cdp.client.api.wallet_stake_api import WalletStakeApi
3837
from cdp.client.api.wallets_api import WalletsApi
3938
from cdp.client.api.webhooks_api import WebhooksApi
4039

cdp/client/api/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from cdp.client.api.contract_invocations_api import ContractInvocationsApi
99
from cdp.client.api.external_addresses_api import ExternalAddressesApi
1010
from cdp.client.api.fund_api import FundApi
11+
from cdp.client.api.mpc_wallet_stake_api import MPCWalletStakeApi
1112
from cdp.client.api.networks_api import NetworksApi
1213
from cdp.client.api.onchain_identity_api import OnchainIdentityApi
1314
from cdp.client.api.server_signers_api import ServerSignersApi
@@ -17,8 +18,6 @@
1718
from cdp.client.api.transaction_history_api import TransactionHistoryApi
1819
from cdp.client.api.transfers_api import TransfersApi
1920
from cdp.client.api.users_api import UsersApi
20-
from cdp.client.api.validators_api import ValidatorsApi
21-
from cdp.client.api.wallet_stake_api import WalletStakeApi
2221
from cdp.client.api.wallets_api import WalletsApi
2322
from cdp.client.api.webhooks_api import WebhooksApi
2423

cdp/client/api/addresses_api.py

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,9 @@ def _create_address_serialize(
275275
_query_params: List[Tuple[str, str]] = []
276276
_header_params: Dict[str, Optional[str]] = _headers or {}
277277
_form_params: List[Tuple[str, str]] = []
278-
_files: Dict[str, Union[str, bytes]] = {}
278+
_files: Dict[
279+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
280+
] = {}
279281
_body_params: Optional[bytes] = None
280282

281283
# process the path parameters
@@ -574,7 +576,9 @@ def _create_payload_signature_serialize(
574576
_query_params: List[Tuple[str, str]] = []
575577
_header_params: Dict[str, Optional[str]] = _headers or {}
576578
_form_params: List[Tuple[str, str]] = []
577-
_files: Dict[str, Union[str, bytes]] = {}
579+
_files: Dict[
580+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
581+
] = {}
578582
_body_params: Optional[bytes] = None
579583

580584
# process the path parameters
@@ -862,7 +866,9 @@ def _get_address_serialize(
862866
_query_params: List[Tuple[str, str]] = []
863867
_header_params: Dict[str, Optional[str]] = _headers or {}
864868
_form_params: List[Tuple[str, str]] = []
865-
_files: Dict[str, Union[str, bytes]] = {}
869+
_files: Dict[
870+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
871+
] = {}
866872
_body_params: Optional[bytes] = None
867873

868874
# process the path parameters
@@ -1148,7 +1154,9 @@ def _get_address_balance_serialize(
11481154
_query_params: List[Tuple[str, str]] = []
11491155
_header_params: Dict[str, Optional[str]] = _headers or {}
11501156
_form_params: List[Tuple[str, str]] = []
1151-
_files: Dict[str, Union[str, bytes]] = {}
1157+
_files: Dict[
1158+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1159+
] = {}
11521160
_body_params: Optional[bytes] = None
11531161

11541162
# process the path parameters
@@ -1436,7 +1444,9 @@ def _get_payload_signature_serialize(
14361444
_query_params: List[Tuple[str, str]] = []
14371445
_header_params: Dict[str, Optional[str]] = _headers or {}
14381446
_form_params: List[Tuple[str, str]] = []
1439-
_files: Dict[str, Union[str, bytes]] = {}
1447+
_files: Dict[
1448+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1449+
] = {}
14401450
_body_params: Optional[bytes] = None
14411451

14421452
# process the path parameters
@@ -1724,7 +1734,9 @@ def _list_address_balances_serialize(
17241734
_query_params: List[Tuple[str, str]] = []
17251735
_header_params: Dict[str, Optional[str]] = _headers or {}
17261736
_form_params: List[Tuple[str, str]] = []
1727-
_files: Dict[str, Union[str, bytes]] = {}
1737+
_files: Dict[
1738+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1739+
] = {}
17281740
_body_params: Optional[bytes] = None
17291741

17301742
# process the path parameters
@@ -2014,7 +2026,9 @@ def _list_addresses_serialize(
20142026
_query_params: List[Tuple[str, str]] = []
20152027
_header_params: Dict[str, Optional[str]] = _headers or {}
20162028
_form_params: List[Tuple[str, str]] = []
2017-
_files: Dict[str, Union[str, bytes]] = {}
2029+
_files: Dict[
2030+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2031+
] = {}
20182032
_body_params: Optional[bytes] = None
20192033

20202034
# process the path parameters
@@ -2319,7 +2333,9 @@ def _list_payload_signatures_serialize(
23192333
_query_params: List[Tuple[str, str]] = []
23202334
_header_params: Dict[str, Optional[str]] = _headers or {}
23212335
_form_params: List[Tuple[str, str]] = []
2322-
_files: Dict[str, Union[str, bytes]] = {}
2336+
_files: Dict[
2337+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2338+
] = {}
23232339
_body_params: Optional[bytes] = None
23242340

23252341
# process the path parameters
@@ -2616,7 +2632,9 @@ def _request_faucet_funds_serialize(
26162632
_query_params: List[Tuple[str, str]] = []
26172633
_header_params: Dict[str, Optional[str]] = _headers or {}
26182634
_form_params: List[Tuple[str, str]] = []
2619-
_files: Dict[str, Union[str, bytes]] = {}
2635+
_files: Dict[
2636+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
2637+
] = {}
26202638
_body_params: Optional[bytes] = None
26212639

26222640
# process the path parameters

cdp/client/api/assets_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,9 @@ def _get_asset_serialize(
266266
_query_params: List[Tuple[str, str]] = []
267267
_header_params: Dict[str, Optional[str]] = _headers or {}
268268
_form_params: List[Tuple[str, str]] = []
269-
_files: Dict[str, Union[str, bytes]] = {}
269+
_files: Dict[
270+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
271+
] = {}
270272
_body_params: Optional[bytes] = None
271273

272274
# process the path parameters

cdp/client/api/balance_history_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,9 @@ def _list_address_historical_balance_serialize(
306306
_query_params: List[Tuple[str, str]] = []
307307
_header_params: Dict[str, Optional[str]] = _headers or {}
308308
_form_params: List[Tuple[str, str]] = []
309-
_files: Dict[str, Union[str, bytes]] = {}
309+
_files: Dict[
310+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
311+
] = {}
310312
_body_params: Optional[bytes] = None
311313

312314
# process the path parameters

cdp/client/api/contract_events_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ def _list_contract_events_serialize(
345345
_query_params: List[Tuple[str, str]] = []
346346
_header_params: Dict[str, Optional[str]] = _headers or {}
347347
_form_params: List[Tuple[str, str]] = []
348-
_files: Dict[str, Union[str, bytes]] = {}
348+
_files: Dict[
349+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
350+
] = {}
349351
_body_params: Optional[bytes] = None
350352

351353
# process the path parameters

cdp/client/api/contract_invocations_api.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,9 @@ def _broadcast_contract_invocation_serialize(
296296
_query_params: List[Tuple[str, str]] = []
297297
_header_params: Dict[str, Optional[str]] = _headers or {}
298298
_form_params: List[Tuple[str, str]] = []
299-
_files: Dict[str, Union[str, bytes]] = {}
299+
_files: Dict[
300+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
301+
] = {}
300302
_body_params: Optional[bytes] = None
301303

302304
# process the path parameters
@@ -599,7 +601,9 @@ def _create_contract_invocation_serialize(
599601
_query_params: List[Tuple[str, str]] = []
600602
_header_params: Dict[str, Optional[str]] = _headers or {}
601603
_form_params: List[Tuple[str, str]] = []
602-
_files: Dict[str, Union[str, bytes]] = {}
604+
_files: Dict[
605+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
606+
] = {}
603607
_body_params: Optional[bytes] = None
604608

605609
# process the path parameters
@@ -900,7 +904,9 @@ def _get_contract_invocation_serialize(
900904
_query_params: List[Tuple[str, str]] = []
901905
_header_params: Dict[str, Optional[str]] = _headers or {}
902906
_form_params: List[Tuple[str, str]] = []
903-
_files: Dict[str, Union[str, bytes]] = {}
907+
_files: Dict[
908+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
909+
] = {}
904910
_body_params: Optional[bytes] = None
905911

906912
# process the path parameters
@@ -1201,7 +1207,9 @@ def _list_contract_invocations_serialize(
12011207
_query_params: List[Tuple[str, str]] = []
12021208
_header_params: Dict[str, Optional[str]] = _headers or {}
12031209
_form_params: List[Tuple[str, str]] = []
1204-
_files: Dict[str, Union[str, bytes]] = {}
1210+
_files: Dict[
1211+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1212+
] = {}
12051213
_body_params: Optional[bytes] = None
12061214

12071215
# process the path parameters

cdp/client/api/external_addresses_api.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,9 @@ def _get_external_address_balance_serialize(
282282
_query_params: List[Tuple[str, str]] = []
283283
_header_params: Dict[str, Optional[str]] = _headers or {}
284284
_form_params: List[Tuple[str, str]] = []
285-
_files: Dict[str, Union[str, bytes]] = {}
285+
_files: Dict[
286+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
287+
] = {}
286288
_body_params: Optional[bytes] = None
287289

288290
# process the path parameters
@@ -570,7 +572,9 @@ def _get_faucet_transaction_serialize(
570572
_query_params: List[Tuple[str, str]] = []
571573
_header_params: Dict[str, Optional[str]] = _headers or {}
572574
_form_params: List[Tuple[str, str]] = []
573-
_files: Dict[str, Union[str, bytes]] = {}
575+
_files: Dict[
576+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
577+
] = {}
574578
_body_params: Optional[bytes] = None
575579

576580
# process the path parameters
@@ -858,7 +862,9 @@ def _list_external_address_balances_serialize(
858862
_query_params: List[Tuple[str, str]] = []
859863
_header_params: Dict[str, Optional[str]] = _headers or {}
860864
_form_params: List[Tuple[str, str]] = []
861-
_files: Dict[str, Union[str, bytes]] = {}
865+
_files: Dict[
866+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
867+
] = {}
862868
_body_params: Optional[bytes] = None
863869

864870
# process the path parameters
@@ -1161,7 +1167,9 @@ def _request_external_faucet_funds_serialize(
11611167
_query_params: List[Tuple[str, str]] = []
11621168
_header_params: Dict[str, Optional[str]] = _headers or {}
11631169
_form_params: List[Tuple[str, str]] = []
1164-
_files: Dict[str, Union[str, bytes]] = {}
1170+
_files: Dict[
1171+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1172+
] = {}
11651173
_body_params: Optional[bytes] = None
11661174

11671175
# process the path parameters

cdp/client/api/fund_api.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ def _create_fund_operation_serialize(
284284
_query_params: List[Tuple[str, str]] = []
285285
_header_params: Dict[str, Optional[str]] = _headers or {}
286286
_form_params: List[Tuple[str, str]] = []
287-
_files: Dict[str, Union[str, bytes]] = {}
287+
_files: Dict[
288+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
289+
] = {}
288290
_body_params: Optional[bytes] = None
289291

290292
# process the path parameters
@@ -585,7 +587,9 @@ def _create_fund_quote_serialize(
585587
_query_params: List[Tuple[str, str]] = []
586588
_header_params: Dict[str, Optional[str]] = _headers or {}
587589
_form_params: List[Tuple[str, str]] = []
588-
_files: Dict[str, Union[str, bytes]] = {}
590+
_files: Dict[
591+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
592+
] = {}
589593
_body_params: Optional[bytes] = None
590594

591595
# process the path parameters
@@ -886,7 +890,9 @@ def _get_fund_operation_serialize(
886890
_query_params: List[Tuple[str, str]] = []
887891
_header_params: Dict[str, Optional[str]] = _headers or {}
888892
_form_params: List[Tuple[str, str]] = []
889-
_files: Dict[str, Union[str, bytes]] = {}
893+
_files: Dict[
894+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
895+
] = {}
890896
_body_params: Optional[bytes] = None
891897

892898
# process the path parameters
@@ -1187,7 +1193,9 @@ def _list_fund_operations_serialize(
11871193
_query_params: List[Tuple[str, str]] = []
11881194
_header_params: Dict[str, Optional[str]] = _headers or {}
11891195
_form_params: List[Tuple[str, str]] = []
1190-
_files: Dict[str, Union[str, bytes]] = {}
1196+
_files: Dict[
1197+
str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1198+
] = {}
11911199
_body_params: Optional[bytes] = None
11921200

11931201
# process the path parameters

0 commit comments

Comments
 (0)