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.

Files changed (90) hide show
  1. circle/web3/developer_controlled_wallets/__init__.py +1 -1
  2. circle/web3/developer_controlled_wallets/api/signing_api.py +2 -2
  3. circle/web3/developer_controlled_wallets/api/wallets_api.py +12 -12
  4. circle/web3/developer_controlled_wallets/api_client.py +1 -1
  5. circle/web3/developer_controlled_wallets/configuration.py +1 -1
  6. circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +5 -5
  7. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +9 -2
  8. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +9 -2
  9. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +9 -2
  10. circle/web3/developer_controlled_wallets/models/account_type.py +1 -1
  11. circle/web3/developer_controlled_wallets/models/bad_request_response.py +9 -2
  12. circle/web3/developer_controlled_wallets/models/balance.py +9 -2
  13. circle/web3/developer_controlled_wallets/models/balances.py +9 -2
  14. circle/web3/developer_controlled_wallets/models/balances_data.py +9 -2
  15. circle/web3/developer_controlled_wallets/models/base_screening_decision.py +9 -2
  16. circle/web3/developer_controlled_wallets/models/blockchain.py +2 -0
  17. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +9 -2
  18. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +9 -2
  19. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +9 -2
  20. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +9 -2
  21. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +9 -2
  22. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +9 -2
  23. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +9 -2
  24. circle/web3/developer_controlled_wallets/models/create_wallet_request.py +9 -2
  25. circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +9 -2
  26. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +9 -2
  27. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +9 -2
  28. circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +9 -2
  29. circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +9 -2
  30. circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +9 -2
  31. circle/web3/developer_controlled_wallets/models/eoa_wallet.py +10 -3
  32. circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +10 -3
  33. circle/web3/developer_controlled_wallets/models/error.py +9 -2
  34. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -2
  35. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +9 -2
  36. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +9 -2
  37. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -2
  38. circle/web3/developer_controlled_wallets/models/evm_blockchain.py +2 -0
  39. circle/web3/developer_controlled_wallets/models/nft.py +9 -2
  40. circle/web3/developer_controlled_wallets/models/nfts.py +9 -2
  41. circle/web3/developer_controlled_wallets/models/nfts_data.py +9 -2
  42. circle/web3/developer_controlled_wallets/models/not_authorized_response.py +9 -2
  43. circle/web3/developer_controlled_wallets/models/not_found_response.py +9 -2
  44. circle/web3/developer_controlled_wallets/models/risk_signal.py +9 -2
  45. circle/web3/developer_controlled_wallets/models/sca_wallet.py +10 -3
  46. circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +10 -3
  47. circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +9 -2
  48. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +9 -2
  49. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +9 -2
  50. circle/web3/developer_controlled_wallets/models/sign_message_request.py +9 -2
  51. circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +9 -2
  52. circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +9 -2
  53. circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +9 -2
  54. circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +9 -2
  55. circle/web3/developer_controlled_wallets/models/signature_response.py +9 -2
  56. circle/web3/developer_controlled_wallets/models/signature_response_data.py +9 -2
  57. circle/web3/developer_controlled_wallets/models/token.py +9 -2
  58. circle/web3/developer_controlled_wallets/models/token_blockchain.py +2 -0
  59. circle/web3/developer_controlled_wallets/models/token_response.py +9 -2
  60. circle/web3/developer_controlled_wallets/models/token_response_data.py +9 -2
  61. circle/web3/developer_controlled_wallets/models/transaction.py +9 -2
  62. circle/web3/developer_controlled_wallets/models/transaction_fee.py +13 -4
  63. circle/web3/developer_controlled_wallets/models/transaction_response.py +9 -2
  64. circle/web3/developer_controlled_wallets/models/transaction_response_data.py +9 -2
  65. circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +9 -2
  66. circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -1
  67. circle/web3/developer_controlled_wallets/models/transactions.py +9 -2
  68. circle/web3/developer_controlled_wallets/models/transactions_data.py +9 -2
  69. circle/web3/developer_controlled_wallets/models/update_wallet_request.py +9 -2
  70. circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +9 -2
  71. circle/web3/developer_controlled_wallets/models/validate_address.py +9 -2
  72. circle/web3/developer_controlled_wallets/models/validate_address_data.py +9 -2
  73. circle/web3/developer_controlled_wallets/models/validate_address_request.py +9 -2
  74. circle/web3/developer_controlled_wallets/models/wallet.py +9 -2
  75. circle/web3/developer_controlled_wallets/models/wallet_metadata.py +9 -2
  76. circle/web3/developer_controlled_wallets/models/wallet_response.py +9 -2
  77. circle/web3/developer_controlled_wallets/models/wallet_response_data.py +9 -2
  78. circle/web3/developer_controlled_wallets/models/wallet_set.py +9 -2
  79. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +9 -2
  80. circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +9 -2
  81. circle/web3/developer_controlled_wallets/models/wallet_sets.py +9 -2
  82. circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +9 -2
  83. circle/web3/developer_controlled_wallets/models/wallets.py +9 -2
  84. circle/web3/developer_controlled_wallets/models/wallets_data.py +9 -2
  85. circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +9 -2
  86. circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +9 -2
  87. {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/METADATA +3 -4
  88. {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/RECORD +90 -90
  89. {circle_developer_controlled_wallets-6.2.0.dist-info → circle_developer_controlled_wallets-7.0.0.dist-info}/WHEEL +0 -0
  90. {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
- """Returns the JSON representation of the model using alias"""
49
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
56
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
49
- return json.dumps(self.to_dict())
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:
@@ -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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
58
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
57
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
58
- return json.dumps(self.to_dict())
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 doesn't support Smart Contract Account (SCA). ")
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
- """Returns the JSON representation of the model using alias"""
69
- return json.dumps(self.to_dict())
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 doesn't support Smart Contract Account (SCA). ")
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
- """Returns the JSON representation of the model using alias"""
71
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
56
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
53
- return json.dumps(self.to_dict())
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:
@@ -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
- """Returns the JSON representation of the model using alias"""
55
- return json.dumps(self.to_dict())
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:
@@ -39,6 +39,8 @@ class EvmBlockchain(str, Enum):
39
39
  BASE_MINUS_SEPOLIA = 'BASE-SEPOLIA'
40
40
  OP = 'OP'
41
41
  OP_MINUS_SEPOLIA = 'OP-SEPOLIA'
42
+ EVM = 'EVM'
43
+ EVM_MINUS_TESTNET = 'EVM-TESTNET'
42
44
 
43
45
  @classmethod
44
46
  def from_json(cls, json_str: str) -> EvmBlockchain:
@@ -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
- """Returns the JSON representation of the model using alias"""
52
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
48
- return json.dumps(self.to_dict())
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
- """Returns the JSON representation of the model using alias"""
61
- return json.dumps(self.to_dict())
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 doesn't support Smart Contract Account (SCA). ")
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
- """Returns the JSON representation of the model using alias"""
71
- return json.dumps(self.to_dict())
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: