circle-developer-controlled-wallets 2.1.0__py3-none-any.whl → 4.0.0__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 +5 -3
- circle/web3/developer_controlled_wallets/api/signing_api.py +158 -2
- circle/web3/developer_controlled_wallets/api/token_lookup_api.py +7 -4
- circle/web3/developer_controlled_wallets/api/transactions_api.py +58 -31
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +8 -8
- circle/web3/developer_controlled_wallets/api/wallets_api.py +29 -22
- 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 +4 -2
- circle/web3/developer_controlled_wallets/models/blockchain.py +5 -0
- circle/web3/developer_controlled_wallets/models/{estimate_contract_execution_transaction_fee_request_blockchain.py → contract_execution_blockchain.py} +5 -5
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +3 -3
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +3 -3
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +5 -3
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +4 -4
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +3 -3
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +5 -3
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +87 -0
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/{create_contract_execution_transaction_for_developer_data.py → sign_delegate_action_response_data.py} +13 -14
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +4 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +7 -5
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +1 -1
- circle/web3/developer_controlled_wallets/models/token.py +1 -1
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +2 -1
- circle/web3/developer_controlled_wallets/models/transaction.py +4 -4
- circle/web3/developer_controlled_wallets/models/transaction_state.py +5 -5
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +2 -2
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/wallet.py +6 -4
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +1 -1
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/METADATA +7 -7
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/RECORD +38 -36
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/WHEEL +1 -1
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/top_level.txt +0 -0
|
@@ -224,7 +224,7 @@ class WalletSetsApi(object):
|
|
|
224
224
|
|
|
225
225
|
@auto_fill
|
|
226
226
|
@validate_arguments
|
|
227
|
-
def get_wallet_set(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
227
|
+
def get_wallet_set(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier 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) -> WalletSetResponse: # noqa: E501
|
|
228
228
|
"""Get a wallet set # noqa: E501
|
|
229
229
|
|
|
230
230
|
Retrieve an existing wallet set. # noqa: E501
|
|
@@ -234,7 +234,7 @@ class WalletSetsApi(object):
|
|
|
234
234
|
>>> thread = api.get_wallet_set(id, x_request_id, async_req=True)
|
|
235
235
|
>>> result = thread.get()
|
|
236
236
|
|
|
237
|
-
:param id: The universally unique identifier
|
|
237
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
238
238
|
:type id: str
|
|
239
239
|
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
240
240
|
:type x_request_id: str
|
|
@@ -256,7 +256,7 @@ class WalletSetsApi(object):
|
|
|
256
256
|
|
|
257
257
|
@auto_fill
|
|
258
258
|
@validate_arguments
|
|
259
|
-
def get_wallet_set_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
259
|
+
def get_wallet_set_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier 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) -> ApiResponse: # noqa: E501
|
|
260
260
|
"""Get a wallet set # noqa: E501
|
|
261
261
|
|
|
262
262
|
Retrieve an existing wallet set. # noqa: E501
|
|
@@ -266,7 +266,7 @@ class WalletSetsApi(object):
|
|
|
266
266
|
>>> thread = api.get_wallet_set_with_http_info(id, x_request_id, async_req=True)
|
|
267
267
|
>>> result = thread.get()
|
|
268
268
|
|
|
269
|
-
:param id: The universally unique identifier
|
|
269
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
270
270
|
:type id: str
|
|
271
271
|
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
272
272
|
:type x_request_id: str
|
|
@@ -563,7 +563,7 @@ class WalletSetsApi(object):
|
|
|
563
563
|
|
|
564
564
|
@auto_fill
|
|
565
565
|
@validate_arguments
|
|
566
|
-
def update_wallet_set(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
566
|
+
def update_wallet_set(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], update_wallet_set_request : Annotated[UpdateWalletSetRequest, Field(..., description="Schema for the request payload to update an existing wallet set.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> WalletSetResponse: # noqa: E501
|
|
567
567
|
"""Update a wallet set # noqa: E501
|
|
568
568
|
|
|
569
569
|
Update the name of the wallet set # noqa: E501
|
|
@@ -573,7 +573,7 @@ class WalletSetsApi(object):
|
|
|
573
573
|
>>> thread = api.update_wallet_set(id, update_wallet_set_request, x_request_id, async_req=True)
|
|
574
574
|
>>> result = thread.get()
|
|
575
575
|
|
|
576
|
-
:param id: The universally unique identifier
|
|
576
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
577
577
|
:type id: str
|
|
578
578
|
:param update_wallet_set_request: Schema for the request payload to update an existing wallet set. (required)
|
|
579
579
|
:type update_wallet_set_request: UpdateWalletSetRequest
|
|
@@ -597,7 +597,7 @@ class WalletSetsApi(object):
|
|
|
597
597
|
|
|
598
598
|
@auto_fill
|
|
599
599
|
@validate_arguments
|
|
600
|
-
def update_wallet_set_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
600
|
+
def update_wallet_set_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier of the resource.")], update_wallet_set_request : Annotated[UpdateWalletSetRequest, Field(..., description="Schema for the request payload to update an existing wallet set.")], x_request_id : Annotated[Optional[StrictStr], Field(description="Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.")] = None, **kwargs) -> ApiResponse: # noqa: E501
|
|
601
601
|
"""Update a wallet set # noqa: E501
|
|
602
602
|
|
|
603
603
|
Update the name of the wallet set # noqa: E501
|
|
@@ -607,7 +607,7 @@ class WalletSetsApi(object):
|
|
|
607
607
|
>>> thread = api.update_wallet_set_with_http_info(id, update_wallet_set_request, x_request_id, async_req=True)
|
|
608
608
|
>>> result = thread.get()
|
|
609
609
|
|
|
610
|
-
:param id: The universally unique identifier
|
|
610
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
611
611
|
:type id: str
|
|
612
612
|
:param update_wallet_set_request: Schema for the request payload to update an existing wallet set. (required)
|
|
613
613
|
:type update_wallet_set_request: UpdateWalletSetRequest
|
|
@@ -26,6 +26,7 @@ from circle.web3.developer_controlled_wallets.models.balances import Balances
|
|
|
26
26
|
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
27
27
|
from circle.web3.developer_controlled_wallets.models.create_wallet_request import CreateWalletRequest
|
|
28
28
|
from circle.web3.developer_controlled_wallets.models.nfts import Nfts
|
|
29
|
+
from circle.web3.developer_controlled_wallets.models.token_standard import TokenStandard
|
|
29
30
|
from circle.web3.developer_controlled_wallets.models.update_wallet_request import UpdateWalletRequest
|
|
30
31
|
from circle.web3.developer_controlled_wallets.models.wallet_response import WalletResponse
|
|
31
32
|
from circle.web3.developer_controlled_wallets.models.wallets import Wallets
|
|
@@ -203,8 +204,10 @@ class WalletsApi(object):
|
|
|
203
204
|
|
|
204
205
|
_response_types_map = {
|
|
205
206
|
'200': "Wallets",
|
|
207
|
+
'201': "Wallets",
|
|
206
208
|
'400': "BadRequestResponse",
|
|
207
209
|
'401': "NotAuthorizedResponse",
|
|
210
|
+
'404': "NotFoundResponse",
|
|
208
211
|
}
|
|
209
212
|
|
|
210
213
|
return self.api_client.call_api(
|
|
@@ -226,7 +229,7 @@ class WalletsApi(object):
|
|
|
226
229
|
|
|
227
230
|
@auto_fill
|
|
228
231
|
@validate_arguments
|
|
229
|
-
def get_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
232
|
+
def get_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier 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
233
|
"""Retrieve a wallet # noqa: E501
|
|
231
234
|
|
|
232
235
|
Retrieve an existing wallet # noqa: E501
|
|
@@ -236,7 +239,7 @@ class WalletsApi(object):
|
|
|
236
239
|
>>> thread = api.get_wallet(id, x_request_id, async_req=True)
|
|
237
240
|
>>> result = thread.get()
|
|
238
241
|
|
|
239
|
-
:param id: The universally unique identifier
|
|
242
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
240
243
|
:type id: str
|
|
241
244
|
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
242
245
|
:type x_request_id: str
|
|
@@ -258,7 +261,7 @@ class WalletsApi(object):
|
|
|
258
261
|
|
|
259
262
|
@auto_fill
|
|
260
263
|
@validate_arguments
|
|
261
|
-
def get_wallet_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
264
|
+
def get_wallet_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier 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) -> ApiResponse: # noqa: E501
|
|
262
265
|
"""Retrieve a wallet # noqa: E501
|
|
263
266
|
|
|
264
267
|
Retrieve an existing wallet # noqa: E501
|
|
@@ -268,7 +271,7 @@ class WalletsApi(object):
|
|
|
268
271
|
>>> thread = api.get_wallet_with_http_info(id, x_request_id, async_req=True)
|
|
269
272
|
>>> result = thread.get()
|
|
270
273
|
|
|
271
|
-
:param id: The universally unique identifier
|
|
274
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
272
275
|
:type id: str
|
|
273
276
|
:param x_request_id: Developer-provided parameter used to identify this request. Useful when communicating with Circle Support.
|
|
274
277
|
:type x_request_id: str
|
|
@@ -589,7 +592,7 @@ class WalletsApi(object):
|
|
|
589
592
|
|
|
590
593
|
@auto_fill
|
|
591
594
|
@validate_arguments
|
|
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
|
|
595
|
+
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 address.")] = None, standard : Annotated[Optional[TokenStandard], 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
596
|
"""Get token balance for a wallet # noqa: E501
|
|
594
597
|
|
|
595
598
|
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
|
|
@@ -605,10 +608,10 @@ class WalletsApi(object):
|
|
|
605
608
|
:type include_all: bool
|
|
606
609
|
:param name: Filter by token name.
|
|
607
610
|
:type name: str
|
|
608
|
-
:param token_address: Filter by token
|
|
611
|
+
:param token_address: Filter by token address.
|
|
609
612
|
:type token_address: str
|
|
610
613
|
: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
|
-
:type standard:
|
|
614
|
+
:type standard: TokenStandard
|
|
612
615
|
: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
616
|
:type page_before: str
|
|
614
617
|
:param page_after: 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.
|
|
@@ -633,7 +636,7 @@ class WalletsApi(object):
|
|
|
633
636
|
|
|
634
637
|
@auto_fill
|
|
635
638
|
@validate_arguments
|
|
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
|
|
639
|
+
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 address.")] = None, standard : Annotated[Optional[TokenStandard], 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
640
|
"""Get token balance for a wallet # noqa: E501
|
|
638
641
|
|
|
639
642
|
Fetches the digital asset balance for a single developer-controlled wallet using its unique identifier. # noqa: E501
|
|
@@ -649,10 +652,10 @@ class WalletsApi(object):
|
|
|
649
652
|
:type include_all: bool
|
|
650
653
|
:param name: Filter by token name.
|
|
651
654
|
:type name: str
|
|
652
|
-
:param token_address: Filter by token
|
|
655
|
+
:param token_address: Filter by token address.
|
|
653
656
|
:type token_address: str
|
|
654
657
|
: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
|
-
:type standard:
|
|
658
|
+
:type standard: TokenStandard
|
|
656
659
|
: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
660
|
:type page_before: str
|
|
658
661
|
:param page_after: 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.
|
|
@@ -738,7 +741,7 @@ class WalletsApi(object):
|
|
|
738
741
|
_query_params.append(('tokenAddress', _params['token_address']))
|
|
739
742
|
|
|
740
743
|
if _params.get('standard') is not None: # noqa: E501
|
|
741
|
-
_query_params.append(('standard', _params['standard']))
|
|
744
|
+
_query_params.append(('standard', _params['standard'].value))
|
|
742
745
|
|
|
743
746
|
if _params.get('page_before') is not None: # noqa: E501
|
|
744
747
|
_query_params.append(('pageBefore', _params['page_before']))
|
|
@@ -765,6 +768,8 @@ class WalletsApi(object):
|
|
|
765
768
|
|
|
766
769
|
_response_types_map = {
|
|
767
770
|
'200': "Balances",
|
|
771
|
+
'400': "Error",
|
|
772
|
+
'404': "NotFoundResponse",
|
|
768
773
|
}
|
|
769
774
|
|
|
770
775
|
return self.api_client.call_api(
|
|
@@ -786,7 +791,7 @@ class WalletsApi(object):
|
|
|
786
791
|
|
|
787
792
|
@auto_fill
|
|
788
793
|
@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
|
|
794
|
+
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 address.")] = None, standard : Annotated[Optional[TokenStandard], 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
795
|
"""Get NFTs for a wallet # noqa: E501
|
|
791
796
|
|
|
792
797
|
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier. # noqa: E501
|
|
@@ -802,10 +807,10 @@ class WalletsApi(object):
|
|
|
802
807
|
:type include_all: bool
|
|
803
808
|
:param name: Filter by token name.
|
|
804
809
|
:type name: str
|
|
805
|
-
:param token_address: Filter by token
|
|
810
|
+
:param token_address: Filter by token address.
|
|
806
811
|
:type token_address: str
|
|
807
812
|
: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
|
-
:type standard:
|
|
813
|
+
:type standard: TokenStandard
|
|
809
814
|
: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
815
|
:type page_before: str
|
|
811
816
|
:param page_after: 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.
|
|
@@ -830,7 +835,7 @@ class WalletsApi(object):
|
|
|
830
835
|
|
|
831
836
|
@auto_fill
|
|
832
837
|
@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
|
|
838
|
+
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 address.")] = None, standard : Annotated[Optional[TokenStandard], 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
839
|
"""Get NFTs for a wallet # noqa: E501
|
|
835
840
|
|
|
836
841
|
Fetches the info for all NFTs stored in a single developer-controlled wallet, using the wallets unique identifier. # noqa: E501
|
|
@@ -846,10 +851,10 @@ class WalletsApi(object):
|
|
|
846
851
|
:type include_all: bool
|
|
847
852
|
:param name: Filter by token name.
|
|
848
853
|
:type name: str
|
|
849
|
-
:param token_address: Filter by token
|
|
854
|
+
:param token_address: Filter by token address.
|
|
850
855
|
:type token_address: str
|
|
851
856
|
: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
|
-
:type standard:
|
|
857
|
+
:type standard: TokenStandard
|
|
853
858
|
: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
859
|
:type page_before: str
|
|
855
860
|
:param page_after: 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.
|
|
@@ -935,7 +940,7 @@ class WalletsApi(object):
|
|
|
935
940
|
_query_params.append(('tokenAddress', _params['token_address']))
|
|
936
941
|
|
|
937
942
|
if _params.get('standard') is not None: # noqa: E501
|
|
938
|
-
_query_params.append(('standard', _params['standard']))
|
|
943
|
+
_query_params.append(('standard', _params['standard'].value))
|
|
939
944
|
|
|
940
945
|
if _params.get('page_before') is not None: # noqa: E501
|
|
941
946
|
_query_params.append(('pageBefore', _params['page_before']))
|
|
@@ -962,6 +967,8 @@ class WalletsApi(object):
|
|
|
962
967
|
|
|
963
968
|
_response_types_map = {
|
|
964
969
|
'200': "Nfts",
|
|
970
|
+
'400': "Error",
|
|
971
|
+
'404': "NotFoundResponse",
|
|
965
972
|
}
|
|
966
973
|
|
|
967
974
|
return self.api_client.call_api(
|
|
@@ -983,7 +990,7 @@ class WalletsApi(object):
|
|
|
983
990
|
|
|
984
991
|
@auto_fill
|
|
985
992
|
@validate_arguments
|
|
986
|
-
def update_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
993
|
+
def update_wallet(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier 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
994
|
"""Update a wallet # noqa: E501
|
|
988
995
|
|
|
989
996
|
Updates info metadata of a wallet. # noqa: E501
|
|
@@ -993,7 +1000,7 @@ class WalletsApi(object):
|
|
|
993
1000
|
>>> thread = api.update_wallet(id, update_wallet_request, x_request_id, async_req=True)
|
|
994
1001
|
>>> result = thread.get()
|
|
995
1002
|
|
|
996
|
-
:param id: The universally unique identifier
|
|
1003
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
997
1004
|
:type id: str
|
|
998
1005
|
:param update_wallet_request: Schema for the request payload to update an existing wallet. (required)
|
|
999
1006
|
:type update_wallet_request: UpdateWalletRequest
|
|
@@ -1017,7 +1024,7 @@ class WalletsApi(object):
|
|
|
1017
1024
|
|
|
1018
1025
|
@auto_fill
|
|
1019
1026
|
@validate_arguments
|
|
1020
|
-
def update_wallet_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier
|
|
1027
|
+
def update_wallet_with_http_info(self, id : Annotated[StrictStr, Field(..., description="The universally unique identifier 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) -> ApiResponse: # noqa: E501
|
|
1021
1028
|
"""Update a wallet # noqa: E501
|
|
1022
1029
|
|
|
1023
1030
|
Updates info metadata of a wallet. # noqa: E501
|
|
@@ -1027,7 +1034,7 @@ class WalletsApi(object):
|
|
|
1027
1034
|
>>> thread = api.update_wallet_with_http_info(id, update_wallet_request, x_request_id, async_req=True)
|
|
1028
1035
|
>>> result = thread.get()
|
|
1029
1036
|
|
|
1030
|
-
:param id: The universally unique identifier
|
|
1037
|
+
:param id: The universally unique identifier of the resource. (required)
|
|
1031
1038
|
:type id: str
|
|
1032
1039
|
:param update_wallet_request: Schema for the request payload to update an existing wallet. (required)
|
|
1033
1040
|
:type update_wallet_request: UpdateWalletRequest
|
|
@@ -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 /
|
|
80
|
+
self.user_agent = (user_agent + ' / ' if user_agent else '') + 'CircleWeb3PythonSDK / DeveloperControlledWallets / 4.0.0'
|
|
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:
|
|
386
|
+
"SDK Package Version: 4.0.0".\
|
|
387
387
|
format(env=sys.platform, pyversion=sys.version)
|
|
388
388
|
|
|
389
389
|
def get_host_settings(self):
|
|
@@ -23,8 +23,8 @@ from circle.web3.developer_controlled_wallets.models.base_screening_decision imp
|
|
|
23
23
|
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
24
24
|
from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer import CancelTransactionForDeveloper
|
|
25
25
|
from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer_request import CancelTransactionForDeveloperRequest
|
|
26
|
+
from circle.web3.developer_controlled_wallets.models.contract_execution_blockchain import ContractExecutionBlockchain
|
|
26
27
|
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
|
|
28
28
|
from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_request import CreateContractExecutionTransactionForDeveloperRequest
|
|
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
|
|
@@ -37,7 +37,6 @@ from circle.web3.developer_controlled_wallets.models.eoa_wallet import EOAWallet
|
|
|
37
37
|
from circle.web3.developer_controlled_wallets.models.end_user_wallet_set import EndUserWalletSet
|
|
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
|
-
from circle.web3.developer_controlled_wallets.models.estimate_contract_execution_transaction_fee_request_blockchain import EstimateContractExecutionTransactionFeeRequestBlockchain
|
|
41
40
|
from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee import EstimateTransactionFee
|
|
42
41
|
from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee_data import EstimateTransactionFeeData
|
|
43
42
|
from circle.web3.developer_controlled_wallets.models.estimate_transfer_transaction_fee_request import EstimateTransferTransactionFeeRequest
|
|
@@ -54,6 +53,9 @@ from circle.web3.developer_controlled_wallets.models.risk_score import RiskScore
|
|
|
54
53
|
from circle.web3.developer_controlled_wallets.models.risk_signal import RiskSignal
|
|
55
54
|
from circle.web3.developer_controlled_wallets.models.risk_type import RiskType
|
|
56
55
|
from circle.web3.developer_controlled_wallets.models.sca_wallet import SCAWallet
|
|
56
|
+
from circle.web3.developer_controlled_wallets.models.sign_delegate_action_request import SignDelegateActionRequest
|
|
57
|
+
from circle.web3.developer_controlled_wallets.models.sign_delegate_action_response import SignDelegateActionResponse
|
|
58
|
+
from circle.web3.developer_controlled_wallets.models.sign_delegate_action_response_data import SignDelegateActionResponseData
|
|
57
59
|
from circle.web3.developer_controlled_wallets.models.sign_message_request import SignMessageRequest
|
|
58
60
|
from circle.web3.developer_controlled_wallets.models.sign_transaction_request import SignTransactionRequest
|
|
59
61
|
from circle.web3.developer_controlled_wallets.models.sign_transaction_response import SignTransactionResponse
|
|
@@ -35,6 +35,11 @@ class Blockchain(str, Enum):
|
|
|
35
35
|
SOL_MINUS_DEVNET = 'SOL-DEVNET'
|
|
36
36
|
ARB = 'ARB'
|
|
37
37
|
ARB_MINUS_SEPOLIA = 'ARB-SEPOLIA'
|
|
38
|
+
NEAR = 'NEAR'
|
|
39
|
+
NEAR_MINUS_TESTNET = 'NEAR-TESTNET'
|
|
40
|
+
EVM = 'EVM'
|
|
41
|
+
EVM_MINUS_TESTNET = 'EVM-TESTNET'
|
|
42
|
+
UNI_MINUS_SEPOLIA = 'UNI-SEPOLIA'
|
|
38
43
|
|
|
39
44
|
@classmethod
|
|
40
45
|
def from_json(cls, json_str: str) -> Blockchain:
|
|
@@ -17,9 +17,9 @@ from aenum import Enum, no_arg
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class ContractExecutionBlockchain(str, Enum):
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
Blockchain associated with the transaction. Required along with `sourceAddress` if you don't provide `walletId`. The `blockchain` and `walletId` fields are mutually exclusive.
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
"""
|
|
@@ -35,8 +35,8 @@ class EstimateContractExecutionTransactionFeeRequestBlockchain(str, Enum):
|
|
|
35
35
|
ARB_MINUS_SEPOLIA = 'ARB-SEPOLIA'
|
|
36
36
|
|
|
37
37
|
@classmethod
|
|
38
|
-
def from_json(cls, json_str: str) ->
|
|
39
|
-
"""Create an instance of
|
|
40
|
-
return
|
|
38
|
+
def from_json(cls, json_str: str) -> ContractExecutionBlockchain:
|
|
39
|
+
"""Create an instance of ContractExecutionBlockchain from a JSON string"""
|
|
40
|
+
return ContractExecutionBlockchain(json.loads(json_str))
|
|
41
41
|
|
|
42
42
|
|
|
@@ -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.create_transfer_transaction_for_developer_response_data import CreateTransferTransactionForDeveloperResponseData
|
|
20
20
|
|
|
21
21
|
class CreateContractExecutionTransactionForDeveloper(BaseModel):
|
|
22
22
|
"""
|
|
23
23
|
CreateContractExecutionTransactionForDeveloper
|
|
24
24
|
"""
|
|
25
|
-
data:
|
|
25
|
+
data: CreateTransferTransactionForDeveloperResponseData = Field(...)
|
|
26
26
|
__properties = ["data"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -80,7 +80,7 @@ class CreateContractExecutionTransactionForDeveloper(BaseModel):
|
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
82
|
_obj = CreateContractExecutionTransactionForDeveloper.parse_obj({
|
|
83
|
-
"data":
|
|
83
|
+
"data": CreateTransferTransactionForDeveloperResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
@@ -36,7 +36,7 @@ class CreateContractExecutionTransactionForDeveloperRequest(BaseModel):
|
|
|
36
36
|
max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the maximum price per unit of gas (see `gasLimit`), in gwei. Requires `priorityFee`, and `gasLimit` to be present. Cannot be used with `feeLevel` or `gasPrice`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
|
|
37
37
|
priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
|
|
38
38
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the transaction.")
|
|
39
|
-
wallet_id: StrictStr = Field(..., alias="walletId", description="Unique system generated identifier of the wallet. Required when
|
|
39
|
+
wallet_id: StrictStr = Field(..., alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
|
|
40
40
|
__properties = ["idempotencyKey", "abiFunctionSignature", "abiParameters", "callData", "amount", "contractAddress", "entitySecretCiphertext", "feeLevel", "gasLimit", "gasPrice", "maxFee", "priorityFee", "refId", "walletId"]
|
|
41
41
|
|
|
42
42
|
def __init__(self, **kwargs):
|
circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py
CHANGED
|
@@ -25,19 +25,19 @@ class CreateTransferTransactionForDeveloperRequest(BaseModel):
|
|
|
25
25
|
"""
|
|
26
26
|
idempotency_key: StrictStr = Field(..., alias="idempotencyKey", description="Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to [uuidgenerator.net](https://www.uuidgenerator.net). If the same key is reused, it will be treated as the same request and the original response will be returned.")
|
|
27
27
|
amounts: Optional[conlist(StrictStr, min_items=1)] = Field(None, description="Transfer amounts in decimal number format, at least one element is required for transfer. For ERC721 token transfer, the amounts field is required to be [\"1\"] (array with \"1\" as the only element).")
|
|
28
|
-
destination_address: StrictStr = Field(..., alias="destinationAddress", description="
|
|
28
|
+
destination_address: StrictStr = Field(..., alias="destinationAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
29
29
|
entity_secret_ciphertext: Union[StrictBytes, StrictStr] = Field(..., alias="entitySecretCiphertext", description="A base64 string expression of the entity secret ciphertext. The entity secret should be encrypted by the entity public key. Circle mandates that the entity secret ciphertext is unique for each API request. ")
|
|
30
30
|
fee_level: Optional[FeeLevel] = Field(None, alias="feeLevel")
|
|
31
31
|
gas_limit: Optional[StrictStr] = Field(None, alias="gasLimit", description="The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the `POST /transactions/transfer/estimateFee` API. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` is required to be greater or equal to `feeLevel` estimation and will override the estimation's gasLimit. ")
|
|
32
32
|
gas_price: Optional[StrictStr] = Field(None, alias="gasPrice", description="For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
|
|
33
33
|
max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the maximum price per unit of gas (see `gasLimit`), in gwei. Requires `priorityFee`, and `gasLimit` to be present. Cannot be used with `feeLevel` or `gasPrice`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
|
|
34
34
|
priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
|
|
35
|
-
nft_token_ids: Optional[conlist(StrictStr)] = Field(None, alias="nftTokenIds", description="
|
|
35
|
+
nft_token_ids: Optional[conlist(StrictStr)] = Field(None, alias="nftTokenIds", description="List of NFT token IDs corresponding with the NFTs to transfer. Batch transfers are supported only for ERC-1155 tokens. The length of NFT token IDs must match the length of amounts.")
|
|
36
36
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the transaction.")
|
|
37
37
|
token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
|
|
38
38
|
token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain address of the transferred token. Empty for native tokens. Excluded with `tokenId`.")
|
|
39
39
|
blockchain: Optional[TokenBlockchain] = None
|
|
40
|
-
wallet_id: StrictStr = Field(..., alias="walletId", description="Unique system generated identifier of the wallet. Required when
|
|
40
|
+
wallet_id: StrictStr = Field(..., alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
|
|
41
41
|
__properties = ["idempotencyKey", "amounts", "destinationAddress", "entitySecretCiphertext", "feeLevel", "gasLimit", "gasPrice", "maxFee", "priorityFee", "nftTokenIds", "refId", "tokenId", "tokenAddress", "blockchain", "walletId"]
|
|
42
42
|
|
|
43
43
|
def __init__(self, **kwargs):
|
|
@@ -23,7 +23,7 @@ class CreateWalletSetRequest(BaseModel):
|
|
|
23
23
|
"""
|
|
24
24
|
entity_secret_ciphertext: Union[StrictBytes, StrictStr] = Field(..., alias="entitySecretCiphertext", description="A base64 string expression of the entity secret ciphertext. The entity secret should be encrypted by the entity public key. Circle mandates that the entity secret ciphertext is unique for each API request. ")
|
|
25
25
|
idempotency_key: StrictStr = Field(..., alias="idempotencyKey", description="Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to [uuidgenerator.net](https://www.uuidgenerator.net). If the same key is reused, it will be treated as the same request and the original response will be returned.")
|
|
26
|
-
name: Optional[StrictStr] = None
|
|
26
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
27
27
|
__properties = ["entitySecretCiphertext", "idempotencyKey", "name"]
|
|
28
28
|
|
|
29
29
|
def __init__(self, **kwargs):
|
|
@@ -25,18 +25,19 @@ class EOAWallet(BaseModel):
|
|
|
25
25
|
EOAWallet
|
|
26
26
|
"""
|
|
27
27
|
id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
|
|
28
|
-
address: StrictStr = Field(..., description="Blockchain
|
|
28
|
+
address: StrictStr = Field(..., description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
29
29
|
blockchain: Blockchain = Field(...)
|
|
30
30
|
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
31
31
|
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
32
32
|
custody_type: CustodyType = Field(..., alias="custodyType")
|
|
33
|
-
name: Optional[StrictStr] = Field(None, description="
|
|
33
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
34
34
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
35
35
|
state: WalletState = Field(...)
|
|
36
36
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
37
37
|
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
38
|
+
initial_public_key: Optional[StrictStr] = Field(None, alias="initialPublicKey", description="For NEAR blockchains only, the originally assigned public key of a wallet at the time of its creation.")
|
|
38
39
|
account_type: StrictStr = Field(..., alias="accountType", description="An account can be a Smart Contract Account (SCA) or an Externally Owned Account (EOA). To learn more, see the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). If an account type is not specified during the creation of a wallet, it defaults to `EOA` (Externally Owned Account). Note that Solana doesn't support Smart Contract Account (SCA). ")
|
|
39
|
-
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "accountType"]
|
|
40
|
+
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "initialPublicKey", "accountType"]
|
|
40
41
|
|
|
41
42
|
def __init__(self, **kwargs):
|
|
42
43
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -108,6 +109,7 @@ class EOAWallet(BaseModel):
|
|
|
108
109
|
"state": obj.get("state"),
|
|
109
110
|
"user_id": obj.get("userId"),
|
|
110
111
|
"wallet_set_id": obj.get("walletSetId"),
|
|
112
|
+
"initial_public_key": obj.get("initialPublicKey"),
|
|
111
113
|
"account_type": obj.get("accountType")
|
|
112
114
|
})
|
|
113
115
|
return _obj
|
|
@@ -17,7 +17,7 @@ import json
|
|
|
17
17
|
from typing import List, Optional
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
19
19
|
from circle.web3.developer_controlled_wallets.models.abi_parameters_inner import AbiParametersInner
|
|
20
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
20
|
+
from circle.web3.developer_controlled_wallets.models.contract_execution_blockchain import ContractExecutionBlockchain
|
|
21
21
|
|
|
22
22
|
class EstimateContractExecutionTransactionFeeRequest(BaseModel):
|
|
23
23
|
"""
|
|
@@ -27,10 +27,10 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
|
|
|
27
27
|
abi_parameters: Optional[conlist(AbiParametersInner)] = Field(None, alias="abiParameters", description="The contract ABI function signature parameters for executing the contract interaction. Supported parameter types include string, integer, boolean, and array. These parameters should be used exclusively with the abiFunctionSignature and cannot be used with `callData`.")
|
|
28
28
|
call_data: Optional[StrictStr] = Field(None, alias="callData", description="The raw transaction data, must be an even-length hexadecimal string with the `0x` prefix, to be executed. It is important to note that the usage of `callData` is mutually exclusive with the `abiFunctionSignature` and `abiParameters`. Therefore, `callData` cannot be utilized simultaneously with either `abiFunctionSignature` or `abiParameters`.")
|
|
29
29
|
amount: Optional[StrictStr] = Field(None, description="The amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.")
|
|
30
|
-
blockchain: Optional[
|
|
30
|
+
blockchain: Optional[ContractExecutionBlockchain] = None
|
|
31
31
|
contract_address: StrictStr = Field(..., alias="contractAddress", description="The blockchain address of the contract to be executed.")
|
|
32
|
-
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="
|
|
33
|
-
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="
|
|
32
|
+
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="Source address of the transaction. Required along with `blockchain` if `walletId` is not provided. The `sourceAddress` and `walletId` fields are mutually exclusive. ")
|
|
33
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
|
|
34
34
|
__properties = ["abiFunctionSignature", "abiParameters", "callData", "amount", "blockchain", "contractAddress", "sourceAddress", "walletId"]
|
|
35
35
|
|
|
36
36
|
def __init__(self, **kwargs):
|
circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py
CHANGED
|
@@ -23,13 +23,13 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
|
|
|
23
23
|
EstimateTransferTransactionFeeRequest
|
|
24
24
|
"""
|
|
25
25
|
amounts: conlist(StrictStr, min_items=1) = Field(..., description="Transfer amounts in decimal number format, at least one element is required for transfer. For ERC721 token transfer, the amounts field is required to be [\"1\"] (array with \"1\" as the only element).")
|
|
26
|
-
destination_address: StrictStr = Field(..., alias="destinationAddress", description="
|
|
26
|
+
destination_address: StrictStr = Field(..., alias="destinationAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
27
27
|
nft_token_ids: Optional[conlist(StrictStr)] = Field(None, alias="nftTokenIds", description="List of NFT token IDs corresponding with the NFTs to transfer. Batch transfers are supported only for ERC-1155 tokens. The length of NFT token IDs must match the length of amounts.")
|
|
28
|
-
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="
|
|
28
|
+
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="Source address of the transaction. Required along with `blockchain` if `walletId` is not provided. The `sourceAddress` and `walletId` fields are mutually exclusive. ")
|
|
29
29
|
token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
|
|
30
30
|
token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain address of the transferred token. Empty for native tokens. Excluded with `tokenId`.")
|
|
31
31
|
blockchain: Optional[TokenBlockchain] = None
|
|
32
|
-
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. Required when
|
|
32
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
|
|
33
33
|
__properties = ["amounts", "destinationAddress", "nftTokenIds", "sourceAddress", "tokenId", "tokenAddress", "blockchain", "walletId"]
|
|
34
34
|
|
|
35
35
|
def __init__(self, **kwargs):
|