circle-developer-controlled-wallets 1.1.1__py3-none-any.whl → 1.2.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of circle-developer-controlled-wallets might be problematic. Click here for more details.
- circle/web3/developer_controlled_wallets/__init__.py +40 -33
- circle/web3/developer_controlled_wallets/api/signing_api.py +193 -38
- circle/web3/developer_controlled_wallets/api/token_lookup_api.py +8 -8
- circle/web3/developer_controlled_wallets/api/transactions_api.py +47 -47
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +14 -14
- circle/web3/developer_controlled_wallets/api/wallets_api.py +30 -30
- circle/web3/developer_controlled_wallets/api_client.py +1 -1
- circle/web3/developer_controlled_wallets/configuration.py +1 -1
- circle/web3/developer_controlled_wallets/models/__init__.py +39 -32
- circle/web3/developer_controlled_wallets/models/{create_developer_transaction_cancel200_response.py → accelerate_transaction_for_developer.py} +11 -11
- circle/web3/developer_controlled_wallets/models/{accelerate_transaction_for_developer_response.py → accelerate_transaction_for_developer_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/balance.py +3 -3
- circle/web3/developer_controlled_wallets/models/{wallet_set2.py → balances.py} +11 -11
- circle/web3/developer_controlled_wallets/models/{get_balances_response.py → balances_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/base_screening_decision.py +88 -0
- circle/web3/developer_controlled_wallets/models/blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +87 -0
- circle/web3/developer_controlled_wallets/models/{create_developer_transaction_contract_execution200_response.py → create_contract_execution_transaction_for_developer.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{create_contract_execution_transaction_for_developer_response.py → create_contract_execution_transaction_for_developer_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +4 -4
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +4 -4
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +9 -8
- circle/web3/developer_controlled_wallets/models/{cancel_transaction_for_developer_response.py → create_transfer_transaction_for_developer_response_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/error.py +3 -3
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +2 -2
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request_blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/{get_transaction200_response.py → estimate_transaction_fee.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{estimate_transaction_fee_response.py → estimate_transaction_fee_data.py} +15 -15
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/nft.py +5 -5
- circle/web3/developer_controlled_wallets/models/{wallet2.py → nfts.py} +11 -11
- circle/web3/developer_controlled_wallets/models/{get_nfts_response.py → nfts_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/risk_action.py +38 -0
- circle/web3/developer_controlled_wallets/models/risk_category.py +48 -0
- circle/web3/developer_controlled_wallets/models/risk_score.py +40 -0
- circle/web3/developer_controlled_wallets/models/risk_signal.py +101 -0
- circle/web3/developer_controlled_wallets/models/risk_type.py +37 -0
- circle/web3/developer_controlled_wallets/models/{sign_message_for_developer_request.py → sign_message_request.py} +9 -9
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +89 -0
- circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/{sign_typed_data_for_developer_response.py → sign_transaction_response_data.py} +13 -11
- circle/web3/developer_controlled_wallets/models/{sign_typed_data_for_developer_request.py → sign_typed_data_request.py} +9 -9
- circle/web3/developer_controlled_wallets/models/{list_wallet_nfts200_response.py → signature_response.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{sign_message_for_developer_response.py → signature_response_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/token.py +103 -0
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +9 -25
- circle/web3/developer_controlled_wallets/models/{get_token_by_id_response.py → token_response_data.py} +11 -11
- circle/web3/developer_controlled_wallets/models/token_standard.py +6 -0
- circle/web3/developer_controlled_wallets/models/transaction.py +12 -6
- circle/web3/developer_controlled_wallets/models/{estimated_transaction_fee.py → transaction_fee.py} +16 -14
- circle/web3/developer_controlled_wallets/models/{list_transactions200_response.py → transaction_response.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{get_transaction_by_id_response.py → transaction_response_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +98 -0
- circle/web3/developer_controlled_wallets/models/{get_token_id200_response.py → transactions.py} +11 -11
- circle/web3/developer_controlled_wallets/models/{get_transactions_response.py → transactions_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/{list_wallet_ballance200_response.py → validate_address.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{validate_address_response.py → validate_address_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/wallet_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/{wallet2_data.py → wallet_response_data.py} +8 -8
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/{wallet_set2_data.py → wallet_set_response_data.py} +8 -8
- {circle_developer_controlled_wallets-1.1.1.dist-info → circle_developer_controlled_wallets-1.2.1.dist-info}/METADATA +7 -7
- circle_developer_controlled_wallets-1.2.1.dist-info/RECORD +104 -0
- {circle_developer_controlled_wallets-1.1.1.dist-info → circle_developer_controlled_wallets-1.2.1.dist-info}/WHEEL +1 -1
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_accelerate200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_transfer200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/create_transfer_estimate_fee200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/create_validate_address200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/sign_developer_message200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/sign_developer_typed_data200_response.py +0 -87
- circle_developer_controlled_wallets-1.1.1.dist-info/RECORD +0 -97
- {circle_developer_controlled_wallets-1.1.1.dist-info → circle_developer_controlled_wallets-1.2.1.dist-info}/top_level.txt +0 -0
|
@@ -22,12 +22,12 @@ from pydantic import Field, StrictBool, StrictStr, conint
|
|
|
22
22
|
|
|
23
23
|
from typing import Optional
|
|
24
24
|
|
|
25
|
+
from circle.web3.developer_controlled_wallets.models.balances import Balances
|
|
25
26
|
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
26
27
|
from circle.web3.developer_controlled_wallets.models.create_wallet_request import CreateWalletRequest
|
|
27
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
28
|
-
from circle.web3.developer_controlled_wallets.models.list_wallet_nfts200_response import ListWalletNfts200Response
|
|
28
|
+
from circle.web3.developer_controlled_wallets.models.nfts import Nfts
|
|
29
29
|
from circle.web3.developer_controlled_wallets.models.update_wallet_request import UpdateWalletRequest
|
|
30
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
30
|
+
from circle.web3.developer_controlled_wallets.models.wallet_response import WalletResponse
|
|
31
31
|
from circle.web3.developer_controlled_wallets.models.wallets import Wallets
|
|
32
32
|
|
|
33
33
|
from circle.web3.developer_controlled_wallets.api_client import ApiClient
|
|
@@ -226,7 +226,7 @@ class WalletsApi(object):
|
|
|
226
226
|
|
|
227
227
|
@auto_fill
|
|
228
228
|
@validate_arguments
|
|
229
|
-
def get_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier (UUID v4) of the resource.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) ->
|
|
229
|
+
def get_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier (UUID v4) of the resource.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> WalletResponse: # noqa: E501
|
|
230
230
|
"""Retrieve a wallet # noqa: E501
|
|
231
231
|
|
|
232
232
|
Retrieve an existing wallet # noqa: E501
|
|
@@ -249,7 +249,7 @@ class WalletsApi(object):
|
|
|
249
249
|
:return: Returns the result object.
|
|
250
250
|
If the method is called asynchronously,
|
|
251
251
|
returns the request thread.
|
|
252
|
-
:rtype:
|
|
252
|
+
:rtype: WalletResponse
|
|
253
253
|
"""
|
|
254
254
|
kwargs['_return_http_data_only'] = True
|
|
255
255
|
if '_preload_content' in kwargs:
|
|
@@ -294,7 +294,7 @@ class WalletsApi(object):
|
|
|
294
294
|
:return: Returns the result object.
|
|
295
295
|
If the method is called asynchronously,
|
|
296
296
|
returns the request thread.
|
|
297
|
-
:rtype: tuple(
|
|
297
|
+
:rtype: tuple(WalletResponse, status_code(int), headers(HTTPHeaderDict))
|
|
298
298
|
"""
|
|
299
299
|
|
|
300
300
|
_params = locals()
|
|
@@ -353,7 +353,7 @@ class WalletsApi(object):
|
|
|
353
353
|
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
354
354
|
|
|
355
355
|
_response_types_map = {
|
|
356
|
-
'200': "
|
|
356
|
+
'200': "WalletResponse",
|
|
357
357
|
'401': "NotAuthorizedResponse",
|
|
358
358
|
'404': "NotFoundResponse",
|
|
359
359
|
}
|
|
@@ -589,14 +589,14 @@ class WalletsApi(object):
|
|
|
589
589
|
|
|
590
590
|
@auto_fill
|
|
591
591
|
@validate_arguments
|
|
592
|
-
def
|
|
592
|
+
def list_wallet_balance(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> Balances: # noqa: E501
|
|
593
593
|
"""Get token balance for a wallet # noqa: E501
|
|
594
594
|
|
|
595
595
|
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
|
|
596
596
|
This method makes a synchronous HTTP request by default. To make an
|
|
597
597
|
asynchronous HTTP request, please pass async_req=True
|
|
598
598
|
|
|
599
|
-
>>> thread = api.
|
|
599
|
+
>>> thread = api.list_wallet_balance(id, include_all, name, token_address, standard, page_before, page_after, page_size, async_req=True)
|
|
600
600
|
>>> result = thread.get()
|
|
601
601
|
|
|
602
602
|
:param id: Wallet ID (required)
|
|
@@ -607,7 +607,7 @@ class WalletsApi(object):
|
|
|
607
607
|
:type name: str
|
|
608
608
|
:param token_address: Filter by token addresses.
|
|
609
609
|
:type token_address: str
|
|
610
|
-
:param standard: Filter by the token standard.
|
|
610
|
+
:param standard: Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.
|
|
611
611
|
:type standard: str
|
|
612
612
|
:param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter.
|
|
613
613
|
:type page_before: str
|
|
@@ -624,23 +624,23 @@ class WalletsApi(object):
|
|
|
624
624
|
:return: Returns the result object.
|
|
625
625
|
If the method is called asynchronously,
|
|
626
626
|
returns the request thread.
|
|
627
|
-
:rtype:
|
|
627
|
+
:rtype: Balances
|
|
628
628
|
"""
|
|
629
629
|
kwargs['_return_http_data_only'] = True
|
|
630
630
|
if '_preload_content' in kwargs:
|
|
631
|
-
raise ValueError("Error! Please call the
|
|
632
|
-
return self.
|
|
631
|
+
raise ValueError("Error! Please call the list_wallet_balance_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data")
|
|
632
|
+
return self.list_wallet_balance_with_http_info(id, include_all, name, token_address, standard, page_before, page_after, page_size, **kwargs) # noqa: E501
|
|
633
633
|
|
|
634
634
|
@auto_fill
|
|
635
635
|
@validate_arguments
|
|
636
|
-
def
|
|
636
|
+
def list_wallet_balance_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
637
637
|
"""Get token balance for a wallet # noqa: E501
|
|
638
638
|
|
|
639
639
|
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
|
|
640
640
|
This method makes a synchronous HTTP request by default. To make an
|
|
641
641
|
asynchronous HTTP request, please pass async_req=True
|
|
642
642
|
|
|
643
|
-
>>> thread = api.
|
|
643
|
+
>>> thread = api.list_wallet_balance_with_http_info(id, include_all, name, token_address, standard, page_before, page_after, page_size, async_req=True)
|
|
644
644
|
>>> result = thread.get()
|
|
645
645
|
|
|
646
646
|
:param id: Wallet ID (required)
|
|
@@ -651,7 +651,7 @@ class WalletsApi(object):
|
|
|
651
651
|
:type name: str
|
|
652
652
|
:param token_address: Filter by token addresses.
|
|
653
653
|
:type token_address: str
|
|
654
|
-
:param standard: Filter by the token standard.
|
|
654
|
+
:param standard: Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.
|
|
655
655
|
:type standard: str
|
|
656
656
|
:param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter.
|
|
657
657
|
:type page_before: str
|
|
@@ -681,7 +681,7 @@ class WalletsApi(object):
|
|
|
681
681
|
:return: Returns the result object.
|
|
682
682
|
If the method is called asynchronously,
|
|
683
683
|
returns the request thread.
|
|
684
|
-
:rtype: tuple(
|
|
684
|
+
:rtype: tuple(Balances, status_code(int), headers(HTTPHeaderDict))
|
|
685
685
|
"""
|
|
686
686
|
|
|
687
687
|
_params = locals()
|
|
@@ -713,7 +713,7 @@ class WalletsApi(object):
|
|
|
713
713
|
if _key not in _all_params:
|
|
714
714
|
raise ApiTypeError(
|
|
715
715
|
"Got an unexpected keyword argument '%s'"
|
|
716
|
-
" to method
|
|
716
|
+
" to method list_wallet_balance" % _key
|
|
717
717
|
)
|
|
718
718
|
_params[_key] = _val
|
|
719
719
|
del _params['kwargs']
|
|
@@ -764,7 +764,7 @@ class WalletsApi(object):
|
|
|
764
764
|
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
765
765
|
|
|
766
766
|
_response_types_map = {
|
|
767
|
-
'200': "
|
|
767
|
+
'200': "Balances",
|
|
768
768
|
}
|
|
769
769
|
|
|
770
770
|
return self.api_client.call_api(
|
|
@@ -786,7 +786,7 @@ class WalletsApi(object):
|
|
|
786
786
|
|
|
787
787
|
@auto_fill
|
|
788
788
|
@validate_arguments
|
|
789
|
-
def list_wallet_nfts(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) ->
|
|
789
|
+
def list_wallet_nfts(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> Nfts: # noqa: E501
|
|
790
790
|
"""Get NFTs for a wallet # noqa: E501
|
|
791
791
|
|
|
792
792
|
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier. # noqa: E501
|
|
@@ -804,7 +804,7 @@ class WalletsApi(object):
|
|
|
804
804
|
:type name: str
|
|
805
805
|
:param token_address: Filter by token addresses.
|
|
806
806
|
:type token_address: str
|
|
807
|
-
:param standard: Filter by the token standard.
|
|
807
|
+
:param standard: Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.
|
|
808
808
|
:type standard: str
|
|
809
809
|
:param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter.
|
|
810
810
|
:type page_before: str
|
|
@@ -821,7 +821,7 @@ class WalletsApi(object):
|
|
|
821
821
|
:return: Returns the result object.
|
|
822
822
|
If the method is called asynchronously,
|
|
823
823
|
returns the request thread.
|
|
824
|
-
:rtype:
|
|
824
|
+
:rtype: Nfts
|
|
825
825
|
"""
|
|
826
826
|
kwargs['_return_http_data_only'] = True
|
|
827
827
|
if '_preload_content' in kwargs:
|
|
@@ -830,7 +830,7 @@ class WalletsApi(object):
|
|
|
830
830
|
|
|
831
831
|
@auto_fill
|
|
832
832
|
@validate_arguments
|
|
833
|
-
def list_wallet_nfts_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
833
|
+
def list_wallet_nfts_with_http_info(self, id : Annotated[StrictStr, Field(..., description="Wallet ID")], include_all : Annotated[Optional[StrictBool], Field(description="Return all recourses with monitored and non-monitored tokens.")] = None, name : Annotated[Optional[StrictStr], Field(description="Filter by token name.")] = None, token_address : Annotated[Optional[StrictStr], Field(description="Filter by token addresses.")] = None, standard : Annotated[Optional[StrictStr], Field(description="Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.")] = None, page_before : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter. ")] = None, page_after : Annotated[Optional[StrictStr], Field(description="A collection ID value used for pagination. It marks the exclusive begin of a page. When provided, the collection resource will return the next n items after the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageBefore. ")] = None, page_size : Annotated[Optional[conint(strict=True, le=50, ge=1)], Field(description="Limits the number of items to be returned. Some collections have a strict upper bound that will disregard this value. In case the specified value is higher than the allowed limit, the collection limit will be used. If avoided, the collection will determine the page size itself. ")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
834
834
|
"""Get NFTs for a wallet # noqa: E501
|
|
835
835
|
|
|
836
836
|
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier. # noqa: E501
|
|
@@ -848,7 +848,7 @@ class WalletsApi(object):
|
|
|
848
848
|
:type name: str
|
|
849
849
|
:param token_address: Filter by token addresses.
|
|
850
850
|
:type token_address: str
|
|
851
|
-
:param standard: Filter by the token standard.
|
|
851
|
+
:param standard: Filter by the token standard. ERC20/ERC721/ERC1155 are the standards for EVM chains, Fungible/FungibleAsset/NonFungible/NonFungibleEdition/ProgrammableNonFungible/ProgrammableNonFungibleEdition are the standards for the Solana chain.
|
|
852
852
|
:type standard: str
|
|
853
853
|
:param page_before: A collection ID value used for pagination. It marks the exclusive end of a page. When provided, the collection resource will return the next n items before the id, with n being specified by pageSize. The items will be returned in the natural order of the collection. The resource will return the first page if neither pageAfter nor pageBefore are specified. SHOULD NOT be used in conjunction with pageAfter.
|
|
854
854
|
:type page_before: str
|
|
@@ -878,7 +878,7 @@ class WalletsApi(object):
|
|
|
878
878
|
:return: Returns the result object.
|
|
879
879
|
If the method is called asynchronously,
|
|
880
880
|
returns the request thread.
|
|
881
|
-
:rtype: tuple(
|
|
881
|
+
:rtype: tuple(Nfts, status_code(int), headers(HTTPHeaderDict))
|
|
882
882
|
"""
|
|
883
883
|
|
|
884
884
|
_params = locals()
|
|
@@ -961,7 +961,7 @@ class WalletsApi(object):
|
|
|
961
961
|
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
962
962
|
|
|
963
963
|
_response_types_map = {
|
|
964
|
-
'200': "
|
|
964
|
+
'200': "Nfts",
|
|
965
965
|
}
|
|
966
966
|
|
|
967
967
|
return self.api_client.call_api(
|
|
@@ -983,7 +983,7 @@ class WalletsApi(object):
|
|
|
983
983
|
|
|
984
984
|
@auto_fill
|
|
985
985
|
@validate_arguments
|
|
986
|
-
def update_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier (UUID v4) of the resource.")], update_wallet_request : Annotated[UpdateWalletRequest, Field(..., description="Schema for the request payload to update an existing wallet.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) ->
|
|
986
|
+
def update_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier (UUID v4) of the resource.")], update_wallet_request : Annotated[UpdateWalletRequest, Field(..., description="Schema for the request payload to update an existing wallet.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> WalletResponse: # noqa: E501
|
|
987
987
|
"""Update a wallet # noqa: E501
|
|
988
988
|
|
|
989
989
|
Updates info metadata of a wallet. # noqa: E501
|
|
@@ -1008,7 +1008,7 @@ class WalletsApi(object):
|
|
|
1008
1008
|
:return: Returns the result object.
|
|
1009
1009
|
If the method is called asynchronously,
|
|
1010
1010
|
returns the request thread.
|
|
1011
|
-
:rtype:
|
|
1011
|
+
:rtype: WalletResponse
|
|
1012
1012
|
"""
|
|
1013
1013
|
kwargs['_return_http_data_only'] = True
|
|
1014
1014
|
if '_preload_content' in kwargs:
|
|
@@ -1055,7 +1055,7 @@ class WalletsApi(object):
|
|
|
1055
1055
|
:return: Returns the result object.
|
|
1056
1056
|
If the method is called asynchronously,
|
|
1057
1057
|
returns the request thread.
|
|
1058
|
-
:rtype: tuple(
|
|
1058
|
+
:rtype: tuple(WalletResponse, status_code(int), headers(HTTPHeaderDict))
|
|
1059
1059
|
"""
|
|
1060
1060
|
|
|
1061
1061
|
_params = locals()
|
|
@@ -1125,7 +1125,7 @@ class WalletsApi(object):
|
|
|
1125
1125
|
_auth_settings = ['BearerAuth'] # noqa: E501
|
|
1126
1126
|
|
|
1127
1127
|
_response_types_map = {
|
|
1128
|
-
'200': "
|
|
1128
|
+
'200': "WalletResponse",
|
|
1129
1129
|
'400': "BadRequestResponse",
|
|
1130
1130
|
'401': "NotAuthorizedResponse",
|
|
1131
1131
|
'404': "NotFoundResponse",
|
|
@@ -77,7 +77,7 @@ class ApiClient(object):
|
|
|
77
77
|
self.default_headers[header_name] = header_value
|
|
78
78
|
self.cookie = cookie
|
|
79
79
|
# Set default User-Agent.
|
|
80
|
-
self.user_agent = (user_agent + ' / ' if user_agent else '') + 'CircleWeb3PythonSDK / DeveloperControlledWallets / 1.
|
|
80
|
+
self.user_agent = (user_agent + ' / ' if user_agent else '') + 'CircleWeb3PythonSDK / DeveloperControlledWallets / 1.2.1'
|
|
81
81
|
self.client_side_validation = configuration.client_side_validation
|
|
82
82
|
|
|
83
83
|
def __enter__(self):
|
|
@@ -383,7 +383,7 @@ class Configuration(object):
|
|
|
383
383
|
"OS: {env}\n"\
|
|
384
384
|
"Python Version: {pyversion}\n"\
|
|
385
385
|
"Version of the API: 1.0\n"\
|
|
386
|
-
"SDK Package Version: 1.
|
|
386
|
+
"SDK Package Version: 1.2.1".\
|
|
387
387
|
format(env=sys.platform, pyversion=sys.version)
|
|
388
388
|
|
|
389
389
|
def get_host_settings(self):
|
|
@@ -11,24 +11,24 @@
|
|
|
11
11
|
|
|
12
12
|
# import models into model package
|
|
13
13
|
from circle.web3.developer_controlled_wallets.models.abi_parameters_inner import AbiParametersInner
|
|
14
|
+
from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer import AccelerateTransactionForDeveloper
|
|
15
|
+
from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_data import AccelerateTransactionForDeveloperData
|
|
14
16
|
from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_request import AccelerateTransactionForDeveloperRequest
|
|
15
|
-
from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_response import AccelerateTransactionForDeveloperResponse
|
|
16
17
|
from circle.web3.developer_controlled_wallets.models.account_type import AccountType
|
|
17
18
|
from circle.web3.developer_controlled_wallets.models.bad_request_response import BadRequestResponse
|
|
18
19
|
from circle.web3.developer_controlled_wallets.models.balance import Balance
|
|
20
|
+
from circle.web3.developer_controlled_wallets.models.balances import Balances
|
|
21
|
+
from circle.web3.developer_controlled_wallets.models.balances_data import BalancesData
|
|
22
|
+
from circle.web3.developer_controlled_wallets.models.base_screening_decision import BaseScreeningDecision
|
|
19
23
|
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
24
|
+
from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer import CancelTransactionForDeveloper
|
|
20
25
|
from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer_request import CancelTransactionForDeveloperRequest
|
|
21
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
26
|
+
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer import CreateContractExecutionTransactionForDeveloper
|
|
27
|
+
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_data import CreateContractExecutionTransactionForDeveloperData
|
|
22
28
|
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_request import CreateContractExecutionTransactionForDeveloperRequest
|
|
23
|
-
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_response import CreateContractExecutionTransactionForDeveloperResponse
|
|
24
|
-
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_accelerate200_response import CreateDeveloperTransactionAccelerate200Response
|
|
25
|
-
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_cancel200_response import CreateDeveloperTransactionCancel200Response
|
|
26
|
-
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_contract_execution200_response import CreateDeveloperTransactionContractExecution200Response
|
|
27
|
-
from circle.web3.developer_controlled_wallets.models.create_developer_transaction_transfer200_response import CreateDeveloperTransactionTransfer200Response
|
|
28
|
-
from circle.web3.developer_controlled_wallets.models.create_transfer_estimate_fee200_response import CreateTransferEstimateFee200Response
|
|
29
29
|
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_request import CreateTransferTransactionForDeveloperRequest
|
|
30
30
|
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response import CreateTransferTransactionForDeveloperResponse
|
|
31
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
31
|
+
from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response_data import CreateTransferTransactionForDeveloperResponseData
|
|
32
32
|
from circle.web3.developer_controlled_wallets.models.create_wallet_request import CreateWalletRequest
|
|
33
33
|
from circle.web3.developer_controlled_wallets.models.create_wallet_set_request import CreateWalletSetRequest
|
|
34
34
|
from circle.web3.developer_controlled_wallets.models.custody_type import CustodyType
|
|
@@ -38,48 +38,55 @@ from circle.web3.developer_controlled_wallets.models.end_user_wallet_set import
|
|
|
38
38
|
from circle.web3.developer_controlled_wallets.models.error import Error
|
|
39
39
|
from circle.web3.developer_controlled_wallets.models.estimate_contract_execution_transaction_fee_request import EstimateContractExecutionTransactionFeeRequest
|
|
40
40
|
from circle.web3.developer_controlled_wallets.models.estimate_contract_execution_transaction_fee_request_blockchain import EstimateContractExecutionTransactionFeeRequestBlockchain
|
|
41
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
41
|
+
from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee import EstimateTransactionFee
|
|
42
|
+
from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee_data import EstimateTransactionFeeData
|
|
42
43
|
from circle.web3.developer_controlled_wallets.models.estimate_transfer_transaction_fee_request import EstimateTransferTransactionFeeRequest
|
|
43
|
-
from circle.web3.developer_controlled_wallets.models.estimated_transaction_fee import EstimatedTransactionFee
|
|
44
44
|
from circle.web3.developer_controlled_wallets.models.fee_level import FeeLevel
|
|
45
|
-
from circle.web3.developer_controlled_wallets.models.get_balances_response import GetBalancesResponse
|
|
46
|
-
from circle.web3.developer_controlled_wallets.models.get_nfts_response import GetNftsResponse
|
|
47
|
-
from circle.web3.developer_controlled_wallets.models.get_token_by_id_response import GetTokenByIDResponse
|
|
48
|
-
from circle.web3.developer_controlled_wallets.models.get_token_id200_response import GetTokenId200Response
|
|
49
|
-
from circle.web3.developer_controlled_wallets.models.get_transaction200_response import GetTransaction200Response
|
|
50
|
-
from circle.web3.developer_controlled_wallets.models.get_transaction_by_id_response import GetTransactionByIDResponse
|
|
51
|
-
from circle.web3.developer_controlled_wallets.models.get_transactions_response import GetTransactionsResponse
|
|
52
|
-
from circle.web3.developer_controlled_wallets.models.list_transactions200_response import ListTransactions200Response
|
|
53
|
-
from circle.web3.developer_controlled_wallets.models.list_wallet_ballance200_response import ListWalletBallance200Response
|
|
54
|
-
from circle.web3.developer_controlled_wallets.models.list_wallet_nfts200_response import ListWalletNfts200Response
|
|
55
45
|
from circle.web3.developer_controlled_wallets.models.nft import Nft
|
|
46
|
+
from circle.web3.developer_controlled_wallets.models.nfts import Nfts
|
|
47
|
+
from circle.web3.developer_controlled_wallets.models.nfts_data import NftsData
|
|
56
48
|
from circle.web3.developer_controlled_wallets.models.not_authorized_response import NotAuthorizedResponse
|
|
57
49
|
from circle.web3.developer_controlled_wallets.models.not_found_response import NotFoundResponse
|
|
58
50
|
from circle.web3.developer_controlled_wallets.models.operation import Operation
|
|
51
|
+
from circle.web3.developer_controlled_wallets.models.risk_action import RiskAction
|
|
52
|
+
from circle.web3.developer_controlled_wallets.models.risk_category import RiskCategory
|
|
53
|
+
from circle.web3.developer_controlled_wallets.models.risk_score import RiskScore
|
|
54
|
+
from circle.web3.developer_controlled_wallets.models.risk_signal import RiskSignal
|
|
55
|
+
from circle.web3.developer_controlled_wallets.models.risk_type import RiskType
|
|
59
56
|
from circle.web3.developer_controlled_wallets.models.sca_wallet import SCAWallet
|
|
60
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
61
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
62
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
63
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
64
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
65
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
57
|
+
from circle.web3.developer_controlled_wallets.models.sign_message_request import SignMessageRequest
|
|
58
|
+
from circle.web3.developer_controlled_wallets.models.sign_transaction_request import SignTransactionRequest
|
|
59
|
+
from circle.web3.developer_controlled_wallets.models.sign_transaction_response import SignTransactionResponse
|
|
60
|
+
from circle.web3.developer_controlled_wallets.models.sign_transaction_response_data import SignTransactionResponseData
|
|
61
|
+
from circle.web3.developer_controlled_wallets.models.sign_typed_data_request import SignTypedDataRequest
|
|
62
|
+
from circle.web3.developer_controlled_wallets.models.signature_response import SignatureResponse
|
|
63
|
+
from circle.web3.developer_controlled_wallets.models.signature_response_data import SignatureResponseData
|
|
64
|
+
from circle.web3.developer_controlled_wallets.models.token import Token
|
|
66
65
|
from circle.web3.developer_controlled_wallets.models.token_blockchain import TokenBlockchain
|
|
67
66
|
from circle.web3.developer_controlled_wallets.models.token_response import TokenResponse
|
|
67
|
+
from circle.web3.developer_controlled_wallets.models.token_response_data import TokenResponseData
|
|
68
68
|
from circle.web3.developer_controlled_wallets.models.token_standard import TokenStandard
|
|
69
69
|
from circle.web3.developer_controlled_wallets.models.transaction import Transaction
|
|
70
|
+
from circle.web3.developer_controlled_wallets.models.transaction_fee import TransactionFee
|
|
71
|
+
from circle.web3.developer_controlled_wallets.models.transaction_response import TransactionResponse
|
|
72
|
+
from circle.web3.developer_controlled_wallets.models.transaction_response_data import TransactionResponseData
|
|
73
|
+
from circle.web3.developer_controlled_wallets.models.transaction_screening_decision import TransactionScreeningDecision
|
|
70
74
|
from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
|
|
71
75
|
from circle.web3.developer_controlled_wallets.models.transaction_type import TransactionType
|
|
76
|
+
from circle.web3.developer_controlled_wallets.models.transactions import Transactions
|
|
77
|
+
from circle.web3.developer_controlled_wallets.models.transactions_data import TransactionsData
|
|
72
78
|
from circle.web3.developer_controlled_wallets.models.update_wallet_request import UpdateWalletRequest
|
|
73
79
|
from circle.web3.developer_controlled_wallets.models.update_wallet_set_request import UpdateWalletSetRequest
|
|
80
|
+
from circle.web3.developer_controlled_wallets.models.validate_address import ValidateAddress
|
|
81
|
+
from circle.web3.developer_controlled_wallets.models.validate_address_data import ValidateAddressData
|
|
74
82
|
from circle.web3.developer_controlled_wallets.models.validate_address_request import ValidateAddressRequest
|
|
75
|
-
from circle.web3.developer_controlled_wallets.models.validate_address_response import ValidateAddressResponse
|
|
76
83
|
from circle.web3.developer_controlled_wallets.models.wallet import Wallet
|
|
77
|
-
from circle.web3.developer_controlled_wallets.models.wallet2 import Wallet2
|
|
78
|
-
from circle.web3.developer_controlled_wallets.models.wallet2_data import Wallet2Data
|
|
79
84
|
from circle.web3.developer_controlled_wallets.models.wallet_metadata import WalletMetadata
|
|
85
|
+
from circle.web3.developer_controlled_wallets.models.wallet_response import WalletResponse
|
|
86
|
+
from circle.web3.developer_controlled_wallets.models.wallet_response_data import WalletResponseData
|
|
80
87
|
from circle.web3.developer_controlled_wallets.models.wallet_set import WalletSet
|
|
81
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
82
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
88
|
+
from circle.web3.developer_controlled_wallets.models.wallet_set_response import WalletSetResponse
|
|
89
|
+
from circle.web3.developer_controlled_wallets.models.wallet_set_response_data import WalletSetResponseData
|
|
83
90
|
from circle.web3.developer_controlled_wallets.models.wallet_sets import WalletSets
|
|
84
91
|
from circle.web3.developer_controlled_wallets.models.wallet_sets_data import WalletSetsData
|
|
85
92
|
from circle.web3.developer_controlled_wallets.models.wallet_sets_data_wallet_sets_inner import WalletSetsDataWalletSetsInner
|
|
@@ -16,13 +16,13 @@ import json
|
|
|
16
16
|
|
|
17
17
|
from typing import Optional
|
|
18
18
|
from pydantic import BaseModel
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_data import AccelerateTransactionForDeveloperData
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class AccelerateTransactionForDeveloper(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
AccelerateTransactionForDeveloper
|
|
24
24
|
"""
|
|
25
|
-
data: Optional[
|
|
25
|
+
data: Optional[AccelerateTransactionForDeveloperData] = None
|
|
26
26
|
__properties = ["data"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class CreateDeveloperTransactionCancel200Response(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> AccelerateTransactionForDeveloper:
|
|
52
|
+
"""Create an instance of AccelerateTransactionForDeveloper from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class CreateDeveloperTransactionCancel200Response(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> AccelerateTransactionForDeveloper:
|
|
68
|
+
"""Create an instance of AccelerateTransactionForDeveloper from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return AccelerateTransactionForDeveloper.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class CreateDeveloperTransactionCancel200Response(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"data":
|
|
82
|
+
_obj = AccelerateTransactionForDeveloper.parse_obj({
|
|
83
|
+
"data": AccelerateTransactionForDeveloperData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
@@ -17,9 +17,9 @@ import json
|
|
|
17
17
|
from typing import Optional
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class AccelerateTransactionForDeveloperData(BaseModel):
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
AccelerateTransactionForDeveloperData
|
|
23
23
|
"""
|
|
24
24
|
id: Optional[StrictStr] = Field(None, description="System-generated unique identifier of the resource.")
|
|
25
25
|
__properties = ["id"]
|
|
@@ -47,8 +47,8 @@ class AccelerateTransactionForDeveloperResponse(BaseModel):
|
|
|
47
47
|
return json.dumps(self.to_dict())
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) ->
|
|
51
|
-
"""Create an instance of
|
|
50
|
+
def from_json(cls, json_str: str) -> AccelerateTransactionForDeveloperData:
|
|
51
|
+
"""Create an instance of AccelerateTransactionForDeveloperData from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self):
|
|
@@ -60,13 +60,13 @@ class AccelerateTransactionForDeveloperResponse(BaseModel):
|
|
|
60
60
|
return _dict
|
|
61
61
|
|
|
62
62
|
@classmethod
|
|
63
|
-
def from_dict(cls, obj: dict) ->
|
|
64
|
-
"""Create an instance of
|
|
63
|
+
def from_dict(cls, obj: dict) -> AccelerateTransactionForDeveloperData:
|
|
64
|
+
"""Create an instance of AccelerateTransactionForDeveloperData from a dict"""
|
|
65
65
|
if obj is None:
|
|
66
66
|
return None
|
|
67
67
|
|
|
68
68
|
if not isinstance(obj, dict):
|
|
69
|
-
return
|
|
69
|
+
return AccelerateTransactionForDeveloperData.parse_obj(obj)
|
|
70
70
|
|
|
71
71
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
72
72
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -75,7 +75,7 @@ class AccelerateTransactionForDeveloperResponse(BaseModel):
|
|
|
75
75
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
76
76
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
77
77
|
|
|
78
|
-
_obj =
|
|
78
|
+
_obj = AccelerateTransactionForDeveloperData.parse_obj({
|
|
79
79
|
"id": obj.get("id")
|
|
80
80
|
})
|
|
81
81
|
return _obj
|
|
@@ -16,14 +16,14 @@ import json
|
|
|
16
16
|
from datetime import datetime
|
|
17
17
|
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.token import Token
|
|
20
20
|
|
|
21
21
|
class Balance(BaseModel):
|
|
22
22
|
"""
|
|
23
23
|
Balance
|
|
24
24
|
"""
|
|
25
25
|
amount: StrictStr = Field(..., description="List of token balances for each token on the wallet(s).")
|
|
26
|
-
token:
|
|
26
|
+
token: Token = Field(...)
|
|
27
27
|
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
28
28
|
__properties = ["amount", "token", "updateDate"]
|
|
29
29
|
|
|
@@ -83,7 +83,7 @@ class Balance(BaseModel):
|
|
|
83
83
|
|
|
84
84
|
_obj = Balance.parse_obj({
|
|
85
85
|
"amount": obj.get("amount"),
|
|
86
|
-
"token":
|
|
86
|
+
"token": Token.from_dict(obj.get("token")) if obj.get("token") is not None else None,
|
|
87
87
|
"update_date": obj.get("updateDate")
|
|
88
88
|
})
|
|
89
89
|
return _obj
|
|
@@ -16,13 +16,13 @@ import json
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
from pydantic import BaseModel, Field
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.balances_data import BalancesData
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class Balances(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
Balances
|
|
24
24
|
"""
|
|
25
|
-
data:
|
|
25
|
+
data: BalancesData = Field(...)
|
|
26
26
|
__properties = ["data"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class WalletSet2(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> Balances:
|
|
52
|
+
"""Create an instance of Balances from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class WalletSet2(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> Balances:
|
|
68
|
+
"""Create an instance of Balances from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return Balances.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class WalletSet2(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"data":
|
|
82
|
+
_obj = Balances.parse_obj({
|
|
83
|
+
"data": BalancesData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|