circle-developer-controlled-wallets 6.2.0__py3-none-any.whl → 7.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 +1 -1
- circle/web3/developer_controlled_wallets/api/signing_api.py +2 -2
- circle/web3/developer_controlled_wallets/api/wallets_api.py +12 -12
- 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/abi_parameters_inner.py +5 -5
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +9 -2
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/account_type.py +1 -1
- circle/web3/developer_controlled_wallets/models/bad_request_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/balance.py +9 -2
- circle/web3/developer_controlled_wallets/models/balances.py +9 -2
- circle/web3/developer_controlled_wallets/models/balances_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/base_screening_decision.py +9 -2
- circle/web3/developer_controlled_wallets/models/blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +9 -2
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +9 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +9 -2
- circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +9 -2
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +10 -3
- circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +10 -3
- circle/web3/developer_controlled_wallets/models/error.py +9 -2
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +9 -2
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/evm_blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/nft.py +9 -2
- circle/web3/developer_controlled_wallets/models/nfts.py +9 -2
- circle/web3/developer_controlled_wallets/models/nfts_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/not_authorized_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/not_found_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/risk_signal.py +9 -2
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +10 -3
- circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +10 -3
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_message_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/signature_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/token.py +9 -2
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/token_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/transaction.py +9 -2
- circle/web3/developer_controlled_wallets/models/transaction_fee.py +13 -4
- circle/web3/developer_controlled_wallets/models/transaction_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/transaction_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +9 -2
- circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -1
- circle/web3/developer_controlled_wallets/models/transactions.py +9 -2
- circle/web3/developer_controlled_wallets/models/transactions_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/validate_address.py +9 -2
- circle/web3/developer_controlled_wallets/models/validate_address_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_set.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_sets.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallets.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallets_data.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +9 -2
- circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +9 -2
- {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/METADATA +3 -4
- {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/RECORD +90 -90
- {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/WHEEL +0 -0
- {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/top_level.txt +0 -0
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr
|
|
@@ -45,8 +50,10 @@ class CreateTransferTransactionForDeveloperResponseData(BaseModel):
|
|
|
45
50
|
return pprint.pformat(self.dict(by_alias=True))
|
|
46
51
|
|
|
47
52
|
def to_json(self) -> str:
|
|
48
|
-
"""
|
|
49
|
-
|
|
53
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
54
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
55
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
56
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
50
57
|
|
|
51
58
|
@classmethod
|
|
52
59
|
def from_json(cls, json_str: str) -> CreateTransferTransactionForDeveloperResponseData:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List, Optional, Union
|
|
18
23
|
from pydantic import BaseModel, Field, StrictBytes, StrictStr, conint, conlist
|
|
@@ -52,8 +57,10 @@ class CreateWalletRequest(BaseModel):
|
|
|
52
57
|
return pprint.pformat(self.dict(by_alias=True))
|
|
53
58
|
|
|
54
59
|
def to_json(self) -> str:
|
|
55
|
-
"""
|
|
56
|
-
|
|
60
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
61
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
62
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
63
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
57
64
|
|
|
58
65
|
@classmethod
|
|
59
66
|
def from_json(cls, json_str: str) -> CreateWalletRequest:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import Optional, Union
|
|
18
23
|
from pydantic import BaseModel, Field, StrictBytes, StrictStr
|
|
@@ -45,8 +50,10 @@ class CreateWalletSetRequest(BaseModel):
|
|
|
45
50
|
return pprint.pformat(self.dict(by_alias=True))
|
|
46
51
|
|
|
47
52
|
def to_json(self) -> str:
|
|
48
|
-
"""
|
|
49
|
-
|
|
53
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
54
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
55
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
56
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
50
57
|
|
|
51
58
|
@classmethod
|
|
52
59
|
def from_json(cls, json_str: str) -> CreateWalletSetRequest:
|
circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py
CHANGED
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field
|
|
@@ -44,8 +49,10 @@ class CreateWalletUpgradeTransactionForDeveloper(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> CreateWalletUpgradeTransactionForDeveloper:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import Optional, Union
|
|
18
23
|
from pydantic import BaseModel, Field, StrictBytes, StrictStr
|
|
@@ -54,8 +59,10 @@ class CreateWalletUpgradeTransactionForDeveloperRequest(BaseModel):
|
|
|
54
59
|
return pprint.pformat(self.dict(by_alias=True))
|
|
55
60
|
|
|
56
61
|
def to_json(self) -> str:
|
|
57
|
-
"""
|
|
58
|
-
|
|
62
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
63
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
64
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
65
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
59
66
|
|
|
60
67
|
@classmethod
|
|
61
68
|
def from_json(cls, json_str: str) -> CreateWalletUpgradeTransactionForDeveloperRequest:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel
|
|
@@ -44,8 +49,10 @@ class DeriveWalletRequest(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> DeriveWalletRequest:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
from datetime import datetime
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, validator
|
|
@@ -53,8 +58,10 @@ class DeveloperWalletSet(BaseModel):
|
|
|
53
58
|
return pprint.pformat(self.dict(by_alias=True))
|
|
54
59
|
|
|
55
60
|
def to_json(self) -> str:
|
|
56
|
-
"""
|
|
57
|
-
|
|
61
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
62
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
63
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
64
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
58
65
|
|
|
59
66
|
@classmethod
|
|
60
67
|
def from_json(cls, json_str: str) -> DeveloperWalletSet:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
from datetime import datetime
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, constr, validator
|
|
@@ -54,8 +59,10 @@ class EndUserWalletSet(BaseModel):
|
|
|
54
59
|
return pprint.pformat(self.dict(by_alias=True))
|
|
55
60
|
|
|
56
61
|
def to_json(self) -> str:
|
|
57
|
-
"""
|
|
58
|
-
|
|
62
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
63
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
64
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
65
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
59
66
|
|
|
60
67
|
@classmethod
|
|
61
68
|
def from_json(cls, json_str: str) -> EndUserWalletSet:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
from datetime import datetime
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, constr, validator
|
|
@@ -36,7 +41,7 @@ class EOAWallet(BaseModel):
|
|
|
36
41
|
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
42
|
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
38
43
|
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.")
|
|
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
|
|
44
|
+
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 and Aptos don't support Smart Contract Account (SCA). ")
|
|
40
45
|
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "initialPublicKey", "accountType"]
|
|
41
46
|
|
|
42
47
|
def __init__(self, **kwargs):
|
|
@@ -65,8 +70,10 @@ class EOAWallet(BaseModel):
|
|
|
65
70
|
return pprint.pformat(self.dict(by_alias=True))
|
|
66
71
|
|
|
67
72
|
def to_json(self) -> str:
|
|
68
|
-
"""
|
|
69
|
-
|
|
73
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
74
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
75
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
76
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
70
77
|
|
|
71
78
|
@classmethod
|
|
72
79
|
def from_json(cls, json_str: str) -> EOAWallet:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
from datetime import datetime
|
|
17
22
|
from typing import List, Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, conlist, constr, validator
|
|
@@ -37,7 +42,7 @@ class EOAWalletWithBalances(BaseModel):
|
|
|
37
42
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
38
43
|
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
39
44
|
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.")
|
|
40
|
-
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
|
|
45
|
+
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 and Aptos don't support Smart Contract Account (SCA). ")
|
|
41
46
|
token_balances: conlist(Balance) = Field(..., alias="tokenBalances", description="Lists native token balances and, if specified, USDC/EURC balances for the wallets.")
|
|
42
47
|
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "initialPublicKey", "accountType", "tokenBalances"]
|
|
43
48
|
|
|
@@ -67,8 +72,10 @@ class EOAWalletWithBalances(BaseModel):
|
|
|
67
72
|
return pprint.pformat(self.dict(by_alias=True))
|
|
68
73
|
|
|
69
74
|
def to_json(self) -> str:
|
|
70
|
-
"""
|
|
71
|
-
|
|
75
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
76
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
77
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
78
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
72
79
|
|
|
73
80
|
@classmethod
|
|
74
81
|
def from_json(cls, json_str: str) -> EOAWalletWithBalances:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
|
@@ -44,8 +49,10 @@ class Error(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> Error:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List, Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
@@ -52,8 +57,10 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
|
|
|
52
57
|
return pprint.pformat(self.dict(by_alias=True))
|
|
53
58
|
|
|
54
59
|
def to_json(self) -> str:
|
|
55
|
-
"""
|
|
56
|
-
|
|
60
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
61
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
62
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
63
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
57
64
|
|
|
58
65
|
@classmethod
|
|
59
66
|
def from_json(cls, json_str: str) -> EstimateContractExecutionTransactionFeeRequest:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field
|
|
@@ -44,8 +49,10 @@ class EstimateTransactionFee(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> EstimateTransactionFee:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr
|
|
@@ -49,8 +54,10 @@ class EstimateTransactionFeeData(BaseModel):
|
|
|
49
54
|
return pprint.pformat(self.dict(by_alias=True))
|
|
50
55
|
|
|
51
56
|
def to_json(self) -> str:
|
|
52
|
-
"""
|
|
53
|
-
|
|
57
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
58
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
59
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
60
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
54
61
|
|
|
55
62
|
@classmethod
|
|
56
63
|
def from_json(cls, json_str: str) -> EstimateTransactionFeeData:
|
circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py
CHANGED
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List, Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
@@ -51,8 +56,10 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
|
|
|
51
56
|
return pprint.pformat(self.dict(by_alias=True))
|
|
52
57
|
|
|
53
58
|
def to_json(self) -> str:
|
|
54
|
-
"""
|
|
55
|
-
|
|
59
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
60
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
61
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
62
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
56
63
|
|
|
57
64
|
@classmethod
|
|
58
65
|
def from_json(cls, json_str: str) -> EstimateTransferTransactionFeeRequest:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
from datetime import datetime
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr
|
|
@@ -48,8 +53,10 @@ class Nft(BaseModel):
|
|
|
48
53
|
return pprint.pformat(self.dict(by_alias=True))
|
|
49
54
|
|
|
50
55
|
def to_json(self) -> str:
|
|
51
|
-
"""
|
|
52
|
-
|
|
56
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
57
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
58
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
59
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
53
60
|
|
|
54
61
|
@classmethod
|
|
55
62
|
def from_json(cls, json_str: str) -> Nft:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field
|
|
@@ -44,8 +49,10 @@ class Nfts(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> Nfts:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List, Optional
|
|
18
23
|
from pydantic import BaseModel, conlist
|
|
@@ -44,8 +49,10 @@ class NftsData(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> NftsData:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
|
@@ -44,8 +49,10 @@ class NotAuthorizedResponse(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> NotAuthorizedResponse:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
|
@@ -44,8 +49,10 @@ class NotFoundResponse(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> NotFoundResponse:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, conlist, validator
|
|
@@ -57,8 +62,10 @@ class RiskSignal(BaseModel):
|
|
|
57
62
|
return pprint.pformat(self.dict(by_alias=True))
|
|
58
63
|
|
|
59
64
|
def to_json(self) -> str:
|
|
60
|
-
"""
|
|
61
|
-
|
|
65
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
66
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
67
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
68
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
62
69
|
|
|
63
70
|
@classmethod
|
|
64
71
|
def from_json(cls, json_str: str) -> RiskSignal:
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
from datetime import datetime
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, constr, validator
|
|
@@ -37,7 +42,7 @@ class SCAWallet(BaseModel):
|
|
|
37
42
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
38
43
|
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
39
44
|
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.")
|
|
40
|
-
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
|
|
45
|
+
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 and Aptos don't support Smart Contract Account (SCA). ")
|
|
41
46
|
sca_core: ScaCore = Field(..., alias="scaCore")
|
|
42
47
|
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "initialPublicKey", "accountType", "scaCore"]
|
|
43
48
|
|
|
@@ -67,8 +72,10 @@ class SCAWallet(BaseModel):
|
|
|
67
72
|
return pprint.pformat(self.dict(by_alias=True))
|
|
68
73
|
|
|
69
74
|
def to_json(self) -> str:
|
|
70
|
-
"""
|
|
71
|
-
|
|
75
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
76
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
77
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
78
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
72
79
|
|
|
73
80
|
@classmethod
|
|
74
81
|
def from_json(cls, json_str: str) -> SCAWallet:
|