circle-developer-controlled-wallets 7.0.0__py3-none-any.whl → 8.1.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 (94) hide show
  1. circle/web3/developer_controlled_wallets/__init__.py +6 -1
  2. circle/web3/developer_controlled_wallets/api/signing_api.py +6 -6
  3. circle/web3/developer_controlled_wallets/api/transactions_api.py +165 -4
  4. circle/web3/developer_controlled_wallets/api_client.py +1 -1
  5. circle/web3/developer_controlled_wallets/configuration.py +6 -2
  6. circle/web3/developer_controlled_wallets/models/__init__.py +5 -0
  7. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +1 -0
  8. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +1 -0
  9. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +2 -1
  10. circle/web3/developer_controlled_wallets/models/bad_request_response.py +2 -1
  11. circle/web3/developer_controlled_wallets/models/balance.py +3 -2
  12. circle/web3/developer_controlled_wallets/models/balances.py +1 -0
  13. circle/web3/developer_controlled_wallets/models/balances_data.py +1 -0
  14. circle/web3/developer_controlled_wallets/models/base_screening_decision.py +3 -2
  15. circle/web3/developer_controlled_wallets/models/blockchain.py +1 -0
  16. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +1 -0
  17. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +2 -1
  18. circle/web3/developer_controlled_wallets/models/contract_execution_blockchain.py +2 -1
  19. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +1 -0
  20. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +21 -15
  21. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +24 -18
  22. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request_blockchain.py +130 -0
  23. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +1 -0
  24. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +2 -1
  25. circle/web3/developer_controlled_wallets/models/create_wallet_request.py +7 -6
  26. circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +3 -2
  27. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +1 -0
  28. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +11 -10
  29. circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +1 -0
  30. circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +4 -3
  31. circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +5 -4
  32. circle/web3/developer_controlled_wallets/models/eoa_wallet.py +13 -12
  33. circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +14 -13
  34. circle/web3/developer_controlled_wallets/models/error.py +2 -1
  35. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -8
  36. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +1 -0
  37. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +6 -5
  38. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -8
  39. circle/web3/developer_controlled_wallets/models/get_lowest_nonce_transaction_response.py +95 -0
  40. circle/web3/developer_controlled_wallets/models/get_lowest_nonce_transaction_response_data.py +101 -0
  41. circle/web3/developer_controlled_wallets/models/lowest_nonce_transaction_fee_info.py +97 -0
  42. circle/web3/developer_controlled_wallets/models/nft.py +5 -4
  43. circle/web3/developer_controlled_wallets/models/nfts.py +1 -0
  44. circle/web3/developer_controlled_wallets/models/nfts_data.py +1 -0
  45. circle/web3/developer_controlled_wallets/models/not_authorized_response.py +2 -1
  46. circle/web3/developer_controlled_wallets/models/not_found_response.py +2 -1
  47. circle/web3/developer_controlled_wallets/models/risk_signal.py +5 -4
  48. circle/web3/developer_controlled_wallets/models/sca_wallet.py +14 -13
  49. circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +15 -14
  50. circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +3 -2
  51. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +1 -0
  52. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +2 -1
  53. circle/web3/developer_controlled_wallets/models/sign_message_request.py +12 -6
  54. circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +12 -6
  55. circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +1 -0
  56. circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +3 -2
  57. circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +11 -5
  58. circle/web3/developer_controlled_wallets/models/signature_response.py +1 -0
  59. circle/web3/developer_controlled_wallets/models/signature_response_data.py +1 -0
  60. circle/web3/developer_controlled_wallets/models/token.py +10 -9
  61. circle/web3/developer_controlled_wallets/models/token_blockchain.py +1 -0
  62. circle/web3/developer_controlled_wallets/models/token_response.py +1 -0
  63. circle/web3/developer_controlled_wallets/models/token_response_data.py +1 -0
  64. circle/web3/developer_controlled_wallets/models/transaction.py +31 -30
  65. circle/web3/developer_controlled_wallets/models/transaction_fee.py +10 -7
  66. circle/web3/developer_controlled_wallets/models/transaction_response.py +1 -0
  67. circle/web3/developer_controlled_wallets/models/transaction_response_data.py +1 -0
  68. circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +4 -3
  69. circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -0
  70. circle/web3/developer_controlled_wallets/models/transactions.py +1 -0
  71. circle/web3/developer_controlled_wallets/models/transactions_data.py +1 -0
  72. circle/web3/developer_controlled_wallets/models/transfer_blockchain.py +53 -0
  73. circle/web3/developer_controlled_wallets/models/update_wallet_request.py +2 -1
  74. circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +1 -0
  75. circle/web3/developer_controlled_wallets/models/validate_address.py +1 -0
  76. circle/web3/developer_controlled_wallets/models/validate_address_data.py +1 -0
  77. circle/web3/developer_controlled_wallets/models/validate_address_request.py +2 -1
  78. circle/web3/developer_controlled_wallets/models/wallet.py +12 -11
  79. circle/web3/developer_controlled_wallets/models/wallet_metadata.py +2 -1
  80. circle/web3/developer_controlled_wallets/models/wallet_response.py +1 -0
  81. circle/web3/developer_controlled_wallets/models/wallet_response_data.py +1 -0
  82. circle/web3/developer_controlled_wallets/models/wallet_set.py +3 -2
  83. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +1 -0
  84. circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +1 -0
  85. circle/web3/developer_controlled_wallets/models/wallet_sets.py +1 -0
  86. circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +1 -0
  87. circle/web3/developer_controlled_wallets/models/wallets.py +1 -0
  88. circle/web3/developer_controlled_wallets/models/wallets_data.py +1 -0
  89. circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +1 -0
  90. circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +1 -0
  91. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/METADATA +3 -3
  92. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/RECORD +94 -89
  93. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/WHEEL +0 -0
  94. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,101 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ The version of the OpenAPI document: 1.0
5
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
6
+
7
+ Do not edit the class manually.
8
+ """ # noqa: E501
9
+
10
+
11
+ from __future__ import annotations
12
+ import pprint
13
+ import re # noqa: F401
14
+ import json
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
+
21
+
22
+
23
+ from pydantic import BaseModel, Field
24
+ from circle.web3.developer_controlled_wallets.models.lowest_nonce_transaction_fee_info import LowestNonceTransactionFeeInfo
25
+ from circle.web3.developer_controlled_wallets.models.transaction import Transaction
26
+
27
+ class GetLowestNonceTransactionResponseData(BaseModel):
28
+ """
29
+ GetLowestNonceTransactionResponseData
30
+ """
31
+ transaction: Transaction = Field(...)
32
+ fee_info: LowestNonceTransactionFeeInfo = Field(..., alias="feeInfo")
33
+ __properties = ["transaction", "feeInfo"]
34
+
35
+ def __init__(self, **kwargs):
36
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
37
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
38
+
39
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
40
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
41
+ super().__init__(**kwargs)
42
+
43
+
44
+ class Config:
45
+ """Pydantic configuration"""
46
+ allow_population_by_field_name = True
47
+ validate_assignment = True
48
+
49
+ def to_str(self) -> str:
50
+ """Returns the string representation of the model using alias"""
51
+ return pprint.pformat(self.dict(by_alias=True))
52
+
53
+ def to_json(self) -> str:
54
+ """Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
55
+ # CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
56
+ # This differs from the default OpenAPI Generator template which doesn't handle these types properly
57
+ return json.dumps(self.to_dict(), default=pydantic_encoder)
58
+
59
+ @classmethod
60
+ def from_json(cls, json_str: str) -> GetLowestNonceTransactionResponseData:
61
+ """Create an instance of GetLowestNonceTransactionResponseData from a JSON string"""
62
+ return cls.from_dict(json.loads(json_str))
63
+
64
+ def to_dict(self):
65
+ """Returns the dictionary representation of the model using alias"""
66
+ _dict = self.dict(by_alias=True,
67
+ exclude={
68
+ },
69
+ exclude_none=True)
70
+ # override the default output from pydantic by calling `to_dict()` of transaction
71
+ if self.transaction:
72
+ _dict['transaction'] = self.transaction.to_dict()
73
+ # override the default output from pydantic by calling `to_dict()` of fee_info
74
+ if self.fee_info:
75
+ _dict['feeInfo'] = self.fee_info.to_dict()
76
+ return _dict
77
+
78
+ @classmethod
79
+ def from_dict(cls, obj: dict) -> GetLowestNonceTransactionResponseData:
80
+ """Create an instance of GetLowestNonceTransactionResponseData from a dict"""
81
+ if obj is None:
82
+ return None
83
+
84
+ if not isinstance(obj, dict):
85
+ return GetLowestNonceTransactionResponseData.parse_obj(obj)
86
+
87
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
88
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
89
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
90
+
91
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
92
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
93
+
94
+ _obj = GetLowestNonceTransactionResponseData.parse_obj({
95
+ "transaction": Transaction.from_dict(obj.get("transaction")) if obj.get("transaction") is not None else None,
96
+ "fee_info": LowestNonceTransactionFeeInfo.from_dict(obj.get("feeInfo")) if obj.get("feeInfo") is not None else None
97
+
98
+ })
99
+ return _obj
100
+
101
+
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ The version of the OpenAPI document: 1.0
5
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
6
+
7
+ Do not edit the class manually.
8
+ """ # noqa: E501
9
+
10
+
11
+ from __future__ import annotations
12
+ import pprint
13
+ import re # noqa: F401
14
+ import json
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
+
21
+
22
+
23
+ from pydantic import BaseModel, Field, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.transaction_fee import TransactionFee
25
+
26
+ class LowestNonceTransactionFeeInfo(BaseModel):
27
+ """
28
+ LowestNonceTransactionFeeInfo
29
+ """
30
+ new_high_estimated_fee: TransactionFee = Field(..., alias="newHighEstimatedFee")
31
+ fee_difference_amount: StrictStr = Field(..., alias="feeDifferenceAmount", description="Difference between new HIGH estimation and transaction's existing estimated fee, in native token amount unit, for example ETH")
32
+ __properties = ["newHighEstimatedFee", "feeDifferenceAmount"]
33
+
34
+ def __init__(self, **kwargs):
35
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
36
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
37
+
38
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
39
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
40
+ super().__init__(**kwargs)
41
+
42
+
43
+ class Config:
44
+ """Pydantic configuration"""
45
+ allow_population_by_field_name = True
46
+ validate_assignment = True
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.dict(by_alias=True))
51
+
52
+ def to_json(self) -> str:
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)
57
+
58
+ @classmethod
59
+ def from_json(cls, json_str: str) -> LowestNonceTransactionFeeInfo:
60
+ """Create an instance of LowestNonceTransactionFeeInfo from a JSON string"""
61
+ return cls.from_dict(json.loads(json_str))
62
+
63
+ def to_dict(self):
64
+ """Returns the dictionary representation of the model using alias"""
65
+ _dict = self.dict(by_alias=True,
66
+ exclude={
67
+ },
68
+ exclude_none=True)
69
+ # override the default output from pydantic by calling `to_dict()` of new_high_estimated_fee
70
+ if self.new_high_estimated_fee:
71
+ _dict['newHighEstimatedFee'] = self.new_high_estimated_fee.to_dict()
72
+ return _dict
73
+
74
+ @classmethod
75
+ def from_dict(cls, obj: dict) -> LowestNonceTransactionFeeInfo:
76
+ """Create an instance of LowestNonceTransactionFeeInfo from a dict"""
77
+ if obj is None:
78
+ return None
79
+
80
+ if not isinstance(obj, dict):
81
+ return LowestNonceTransactionFeeInfo.parse_obj(obj)
82
+
83
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
84
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
85
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
86
+
87
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
88
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
89
+
90
+ _obj = LowestNonceTransactionFeeInfo.parse_obj({
91
+ "new_high_estimated_fee": TransactionFee.from_dict(obj.get("newHighEstimatedFee")) if obj.get("newHighEstimatedFee") is not None else None,
92
+ "fee_difference_amount": obj.get("feeDifferenceAmount")
93
+
94
+ })
95
+ return _obj
96
+
97
+
@@ -92,10 +92,11 @@ class Nft(BaseModel):
92
92
 
93
93
  _obj = Nft.parse_obj({
94
94
  "amount": obj.get("amount"),
95
- "metadata": obj.get("metadata"),
96
- "nft_token_id": obj.get("nftTokenId"),
97
- "token": Token.from_dict(obj.get("token")) if obj.get("token") is not None else None,
98
- "update_date": obj.get("updateDate")
95
+ "metadata": obj.get("metadata"),
96
+ "nft_token_id": obj.get("nftTokenId"),
97
+ "token": Token.from_dict(obj.get("token")) if obj.get("token") is not None else None,
98
+ "update_date": obj.get("updateDate")
99
+
99
100
  })
100
101
  return _obj
101
102
 
@@ -88,6 +88,7 @@ class Nfts(BaseModel):
88
88
 
89
89
  _obj = Nfts.parse_obj({
90
90
  "data": NftsData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -92,6 +92,7 @@ class NftsData(BaseModel):
92
92
 
93
93
  _obj = NftsData.parse_obj({
94
94
  "nfts": [Nft.from_dict(_item) for _item in obj.get("nfts")] if obj.get("nfts") is not None else None
95
+
95
96
  })
96
97
  return _obj
97
98
 
@@ -85,7 +85,8 @@ class NotAuthorizedResponse(BaseModel):
85
85
 
86
86
  _obj = NotAuthorizedResponse.parse_obj({
87
87
  "code": obj.get("code"),
88
- "message": obj.get("message")
88
+ "message": obj.get("message")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -85,7 +85,8 @@ class NotFoundResponse(BaseModel):
85
85
 
86
86
  _obj = NotFoundResponse.parse_obj({
87
87
  "code": obj.get("code"),
88
- "message": obj.get("message")
88
+ "message": obj.get("message")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -98,10 +98,11 @@ class RiskSignal(BaseModel):
98
98
 
99
99
  _obj = RiskSignal.parse_obj({
100
100
  "source": obj.get("source"),
101
- "source_value": obj.get("sourceValue"),
102
- "risk_score": obj.get("riskScore"),
103
- "risk_categories": obj.get("riskCategories"),
104
- "type": obj.get("type")
101
+ "source_value": obj.get("sourceValue"),
102
+ "risk_score": obj.get("riskScore"),
103
+ "risk_categories": obj.get("riskCategories"),
104
+ "type": obj.get("type")
105
+
105
106
  })
106
107
  return _obj
107
108
 
@@ -108,19 +108,20 @@ class SCAWallet(BaseModel):
108
108
 
109
109
  _obj = SCAWallet.parse_obj({
110
110
  "id": obj.get("id"),
111
- "address": obj.get("address"),
112
- "blockchain": obj.get("blockchain"),
113
- "create_date": obj.get("createDate"),
114
- "update_date": obj.get("updateDate"),
115
- "custody_type": obj.get("custodyType"),
116
- "name": obj.get("name"),
117
- "ref_id": obj.get("refId"),
118
- "state": obj.get("state"),
119
- "user_id": obj.get("userId"),
120
- "wallet_set_id": obj.get("walletSetId"),
121
- "initial_public_key": obj.get("initialPublicKey"),
122
- "account_type": obj.get("accountType"),
123
- "sca_core": obj.get("scaCore")
111
+ "address": obj.get("address"),
112
+ "blockchain": obj.get("blockchain"),
113
+ "create_date": obj.get("createDate"),
114
+ "update_date": obj.get("updateDate"),
115
+ "custody_type": obj.get("custodyType"),
116
+ "name": obj.get("name"),
117
+ "ref_id": obj.get("refId"),
118
+ "state": obj.get("state"),
119
+ "user_id": obj.get("userId"),
120
+ "wallet_set_id": obj.get("walletSetId"),
121
+ "initial_public_key": obj.get("initialPublicKey"),
122
+ "account_type": obj.get("accountType"),
123
+ "sca_core": obj.get("scaCore")
124
+
124
125
  })
125
126
  return _obj
126
127
 
@@ -117,20 +117,21 @@ class SCAWalletWithBalances(BaseModel):
117
117
 
118
118
  _obj = SCAWalletWithBalances.parse_obj({
119
119
  "id": obj.get("id"),
120
- "address": obj.get("address"),
121
- "blockchain": obj.get("blockchain"),
122
- "create_date": obj.get("createDate"),
123
- "update_date": obj.get("updateDate"),
124
- "custody_type": obj.get("custodyType"),
125
- "name": obj.get("name"),
126
- "ref_id": obj.get("refId"),
127
- "state": obj.get("state"),
128
- "user_id": obj.get("userId"),
129
- "wallet_set_id": obj.get("walletSetId"),
130
- "initial_public_key": obj.get("initialPublicKey"),
131
- "account_type": obj.get("accountType"),
132
- "sca_core": obj.get("scaCore"),
133
- "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
120
+ "address": obj.get("address"),
121
+ "blockchain": obj.get("blockchain"),
122
+ "create_date": obj.get("createDate"),
123
+ "update_date": obj.get("updateDate"),
124
+ "custody_type": obj.get("custodyType"),
125
+ "name": obj.get("name"),
126
+ "ref_id": obj.get("refId"),
127
+ "state": obj.get("state"),
128
+ "user_id": obj.get("userId"),
129
+ "wallet_set_id": obj.get("walletSetId"),
130
+ "initial_public_key": obj.get("initialPublicKey"),
131
+ "account_type": obj.get("accountType"),
132
+ "sca_core": obj.get("scaCore"),
133
+ "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
134
+
134
135
  })
135
136
  return _obj
136
137
 
@@ -86,8 +86,9 @@ class SignDelegateActionRequest(BaseModel):
86
86
 
87
87
  _obj = SignDelegateActionRequest.parse_obj({
88
88
  "wallet_id": obj.get("walletId"),
89
- "unsigned_delegate_action": obj.get("unsignedDelegateAction"),
90
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
89
+ "unsigned_delegate_action": obj.get("unsignedDelegateAction"),
90
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -88,6 +88,7 @@ class SignDelegateActionResponse(BaseModel):
88
88
 
89
89
  _obj = SignDelegateActionResponse.parse_obj({
90
90
  "data": SignDelegateActionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -85,7 +85,8 @@ class SignDelegateActionResponseData(BaseModel):
85
85
 
86
86
  _obj = SignDelegateActionResponseData.parse_obj({
87
87
  "signature": obj.get("signature"),
88
- "signed_delegate_action": obj.get("signedDelegateAction")
88
+ "signed_delegate_action": obj.get("signedDelegateAction")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -21,17 +21,20 @@ from pydantic.json import pydantic_encoder
21
21
 
22
22
  from typing import Optional, Union
23
23
  from pydantic import BaseModel, Field, StrictBool, StrictBytes, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
24
25
 
25
26
  class SignMessageRequest(BaseModel):
26
27
  """
27
28
  SignMessageRequest
28
29
  """
29
- wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
30
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
30
31
  encoded_by_hex: Optional[StrictBool] = Field(None, alias="encodedByHex", description="Indicator of whether the input message is encoded by hex. If TRUE, then the message should be a hex string. By default, it is False.")
31
32
  message: StrictStr = Field(..., description="The user friendly message that needs to be signed. If it is a hex string, encodedByHex needs to be TRUE. The hex string should start with “0x” and have even length.")
32
33
  memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
33
34
  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. ")
34
- __properties = ["walletId", "encodedByHex", "message", "memo", "entitySecretCiphertext"]
35
+ blockchain: Optional[Blockchain] = None
36
+ wallet_address: Optional[StrictStr] = Field(None, alias="walletAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
37
+ __properties = ["walletId", "encodedByHex", "message", "memo", "entitySecretCiphertext", "blockchain", "walletAddress"]
35
38
 
36
39
  def __init__(self, **kwargs):
37
40
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -88,10 +91,13 @@ class SignMessageRequest(BaseModel):
88
91
 
89
92
  _obj = SignMessageRequest.parse_obj({
90
93
  "wallet_id": obj.get("walletId"),
91
- "encoded_by_hex": obj.get("encodedByHex"),
92
- "message": obj.get("message"),
93
- "memo": obj.get("memo"),
94
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
94
+ "encoded_by_hex": obj.get("encodedByHex"),
95
+ "message": obj.get("message"),
96
+ "memo": obj.get("memo"),
97
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
98
+ "blockchain": obj.get("blockchain"),
99
+ "wallet_address": obj.get("walletAddress")
100
+
95
101
  })
96
102
  return _obj
97
103
 
@@ -21,17 +21,20 @@ from pydantic.json import pydantic_encoder
21
21
 
22
22
  from typing import Optional, Union
23
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
24
25
 
25
26
  class SignTransactionRequest(BaseModel):
26
27
  """
27
28
  SignTransactionRequest
28
29
  """
29
- wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
30
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
30
31
  raw_transaction: Optional[StrictStr] = Field(None, alias="rawTransaction", description="Raw transaction string that needs to be signed. Excluded with `transaction`. Required without `transaction`. Required to be base64 encoded for NEAR, Solana chains. Required to be hex encoded for EVM chains. ")
31
32
  transaction: Optional[StrictStr] = Field(None, description="Transaction object in JSON that needs to be signed. Excluded with `rawTransaction`. Required without `rawTransaction`. NOTE: This field is only supported by `EVM` chains. ")
32
33
  memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
33
34
  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. ")
34
- __properties = ["walletId", "rawTransaction", "transaction", "memo", "entitySecretCiphertext"]
35
+ blockchain: Optional[Blockchain] = None
36
+ wallet_address: Optional[StrictStr] = Field(None, alias="walletAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
37
+ __properties = ["walletId", "rawTransaction", "transaction", "memo", "entitySecretCiphertext", "blockchain", "walletAddress"]
35
38
 
36
39
  def __init__(self, **kwargs):
37
40
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -88,10 +91,13 @@ class SignTransactionRequest(BaseModel):
88
91
 
89
92
  _obj = SignTransactionRequest.parse_obj({
90
93
  "wallet_id": obj.get("walletId"),
91
- "raw_transaction": obj.get("rawTransaction"),
92
- "transaction": obj.get("transaction"),
93
- "memo": obj.get("memo"),
94
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
94
+ "raw_transaction": obj.get("rawTransaction"),
95
+ "transaction": obj.get("transaction"),
96
+ "memo": obj.get("memo"),
97
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
98
+ "blockchain": obj.get("blockchain"),
99
+ "wallet_address": obj.get("walletAddress")
100
+
95
101
  })
96
102
  return _obj
97
103
 
@@ -88,6 +88,7 @@ class SignTransactionResponse(BaseModel):
88
88
 
89
89
  _obj = SignTransactionResponse.parse_obj({
90
90
  "data": SignTransactionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -86,8 +86,9 @@ class SignTransactionResponseData(BaseModel):
86
86
 
87
87
  _obj = SignTransactionResponseData.parse_obj({
88
88
  "signature": obj.get("signature"),
89
- "signed_transaction": obj.get("signedTransaction"),
90
- "tx_hash": obj.get("txHash")
89
+ "signed_transaction": obj.get("signedTransaction"),
90
+ "tx_hash": obj.get("txHash")
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -21,16 +21,19 @@ from pydantic.json import pydantic_encoder
21
21
 
22
22
  from typing import Optional, Union
23
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
24
25
 
25
26
  class SignTypedDataRequest(BaseModel):
26
27
  """
27
28
  SignTypedDataRequest
28
29
  """
29
- wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
30
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
30
31
  data: StrictStr = Field(..., description="A string represents the typed structured data in EIP-712")
31
32
  memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
32
33
  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. ")
33
- __properties = ["walletId", "data", "memo", "entitySecretCiphertext"]
34
+ blockchain: Optional[Blockchain] = None
35
+ wallet_address: Optional[StrictStr] = Field(None, alias="walletAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
36
+ __properties = ["walletId", "data", "memo", "entitySecretCiphertext", "blockchain", "walletAddress"]
34
37
 
35
38
  def __init__(self, **kwargs):
36
39
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -87,9 +90,12 @@ class SignTypedDataRequest(BaseModel):
87
90
 
88
91
  _obj = SignTypedDataRequest.parse_obj({
89
92
  "wallet_id": obj.get("walletId"),
90
- "data": obj.get("data"),
91
- "memo": obj.get("memo"),
92
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
93
+ "data": obj.get("data"),
94
+ "memo": obj.get("memo"),
95
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
96
+ "blockchain": obj.get("blockchain"),
97
+ "wallet_address": obj.get("walletAddress")
98
+
93
99
  })
94
100
  return _obj
95
101
 
@@ -88,6 +88,7 @@ class SignatureResponse(BaseModel):
88
88
 
89
89
  _obj = SignatureResponse.parse_obj({
90
90
  "data": SignatureResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -84,6 +84,7 @@ class SignatureResponseData(BaseModel):
84
84
 
85
85
  _obj = SignatureResponseData.parse_obj({
86
86
  "signature": obj.get("signature")
87
+
87
88
  })
88
89
  return _obj
89
90
 
@@ -95,15 +95,16 @@ class Token(BaseModel):
95
95
 
96
96
  _obj = Token.parse_obj({
97
97
  "id": obj.get("id"),
98
- "name": obj.get("name"),
99
- "standard": obj.get("standard"),
100
- "blockchain": obj.get("blockchain"),
101
- "decimals": obj.get("decimals"),
102
- "is_native": obj.get("isNative"),
103
- "symbol": obj.get("symbol"),
104
- "token_address": obj.get("tokenAddress"),
105
- "update_date": obj.get("updateDate"),
106
- "create_date": obj.get("createDate")
98
+ "name": obj.get("name"),
99
+ "standard": obj.get("standard"),
100
+ "blockchain": obj.get("blockchain"),
101
+ "decimals": obj.get("decimals"),
102
+ "is_native": obj.get("isNative"),
103
+ "symbol": obj.get("symbol"),
104
+ "token_address": obj.get("tokenAddress"),
105
+ "update_date": obj.get("updateDate"),
106
+ "create_date": obj.get("createDate")
107
+
107
108
  })
108
109
  return _obj
109
110
 
@@ -43,6 +43,7 @@ class TokenBlockchain(str, Enum):
43
43
  OP_MINUS_SEPOLIA = 'OP-SEPOLIA'
44
44
  APTOS = 'APTOS'
45
45
  APTOS_MINUS_TESTNET = 'APTOS-TESTNET'
46
+ ARC_MINUS_TESTNET = 'ARC-TESTNET'
46
47
 
47
48
  @classmethod
48
49
  def from_json(cls, json_str: str) -> TokenBlockchain:
@@ -88,6 +88,7 @@ class TokenResponse(BaseModel):
88
88
 
89
89
  _obj = TokenResponse.parse_obj({
90
90
  "data": TokenResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -88,6 +88,7 @@ class TokenResponseData(BaseModel):
88
88
 
89
89
  _obj = TokenResponseData.parse_obj({
90
90
  "token": Token.from_dict(obj.get("token")) if obj.get("token") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94