circle-developer-controlled-wallets 6.3.0__py3-none-any.whl → 8.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 +3 -1
- circle/web3/developer_controlled_wallets/api/signing_api.py +6 -6
- circle/web3/developer_controlled_wallets/api/transactions_api.py +4 -4
- circle/web3/developer_controlled_wallets/api/wallets_api.py +4 -4
- circle/web3/developer_controlled_wallets/api_client.py +1 -1
- circle/web3/developer_controlled_wallets/configuration.py +1 -1
- circle/web3/developer_controlled_wallets/models/__init__.py +2 -0
- circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +5 -5
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/bad_request_response.py +11 -3
- circle/web3/developer_controlled_wallets/models/balance.py +12 -4
- circle/web3/developer_controlled_wallets/models/balances.py +10 -2
- circle/web3/developer_controlled_wallets/models/balances_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/base_screening_decision.py +12 -4
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/contract_execution_blockchain.py +1 -1
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +32 -17
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +35 -20
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request_blockchain.py +130 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +11 -3
- circle/web3/developer_controlled_wallets/models/create_wallet_request.py +16 -8
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +12 -4
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +10 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +20 -12
- circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +10 -2
- circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +13 -5
- circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +14 -6
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +22 -14
- circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +23 -15
- circle/web3/developer_controlled_wallets/models/error.py +11 -3
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +18 -10
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +10 -2
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +15 -7
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +18 -10
- circle/web3/developer_controlled_wallets/models/evm_blockchain.py +2 -0
- circle/web3/developer_controlled_wallets/models/nft.py +14 -6
- circle/web3/developer_controlled_wallets/models/nfts.py +10 -2
- circle/web3/developer_controlled_wallets/models/nfts_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/not_authorized_response.py +11 -3
- circle/web3/developer_controlled_wallets/models/not_found_response.py +11 -3
- circle/web3/developer_controlled_wallets/models/risk_signal.py +14 -6
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +23 -15
- circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +24 -16
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +12 -4
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +11 -3
- circle/web3/developer_controlled_wallets/models/sign_message_request.py +23 -8
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +23 -8
- circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +12 -4
- circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +22 -7
- circle/web3/developer_controlled_wallets/models/signature_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/token.py +19 -11
- circle/web3/developer_controlled_wallets/models/token_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/token_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/transaction.py +40 -32
- circle/web3/developer_controlled_wallets/models/transaction_fee.py +20 -8
- circle/web3/developer_controlled_wallets/models/transaction_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/transaction_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +13 -5
- circle/web3/developer_controlled_wallets/models/transaction_state.py +2 -1
- circle/web3/developer_controlled_wallets/models/transactions.py +10 -2
- circle/web3/developer_controlled_wallets/models/transactions_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/transfer_blockchain.py +52 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +10 -2
- circle/web3/developer_controlled_wallets/models/validate_address.py +10 -2
- circle/web3/developer_controlled_wallets/models/validate_address_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +11 -3
- circle/web3/developer_controlled_wallets/models/wallet.py +21 -13
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +11 -3
- circle/web3/developer_controlled_wallets/models/wallet_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_set.py +12 -4
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_sets.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets_data.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +10 -2
- circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +10 -2
- {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/METADATA +3 -4
- {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/RECORD +92 -90
- {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/WHEEL +0 -0
- {circle_developer_controlled_wallets-6.3.0.dist-info → circle_developer_controlled_wallets-8.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
|
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:
|
|
@@ -91,10 +98,11 @@ class RiskSignal(BaseModel):
|
|
|
91
98
|
|
|
92
99
|
_obj = RiskSignal.parse_obj({
|
|
93
100
|
"source": obj.get("source"),
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
101
|
+
"source_value": obj.get("sourceValue"),
|
|
102
|
+
"risk_score": obj.get("riskScore"),
|
|
103
|
+
"risk_categories": obj.get("riskCategories"),
|
|
104
|
+
"type": obj.get("type")
|
|
105
|
+
|
|
98
106
|
})
|
|
99
107
|
return _obj
|
|
100
108
|
|
|
@@ -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
|
|
@@ -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:
|
|
@@ -101,19 +108,20 @@ class SCAWallet(BaseModel):
|
|
|
101
108
|
|
|
102
109
|
_obj = SCAWallet.parse_obj({
|
|
103
110
|
"id": obj.get("id"),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
+
|
|
117
125
|
})
|
|
118
126
|
return _obj
|
|
119
127
|
|
|
@@ -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
|
|
@@ -69,8 +74,10 @@ class SCAWalletWithBalances(BaseModel):
|
|
|
69
74
|
return pprint.pformat(self.dict(by_alias=True))
|
|
70
75
|
|
|
71
76
|
def to_json(self) -> str:
|
|
72
|
-
"""
|
|
73
|
-
|
|
77
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
78
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
79
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
80
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
74
81
|
|
|
75
82
|
@classmethod
|
|
76
83
|
def from_json(cls, json_str: str) -> SCAWalletWithBalances:
|
|
@@ -110,20 +117,21 @@ class SCAWalletWithBalances(BaseModel):
|
|
|
110
117
|
|
|
111
118
|
_obj = SCAWalletWithBalances.parse_obj({
|
|
112
119
|
"id": obj.get("id"),
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
+
|
|
127
135
|
})
|
|
128
136
|
return _obj
|
|
129
137
|
|
|
@@ -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 Union
|
|
18
23
|
from pydantic import BaseModel, Field, StrictBytes, StrictStr
|
|
@@ -45,8 +50,10 @@ class SignDelegateActionRequest(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) -> SignDelegateActionRequest:
|
|
@@ -79,8 +86,9 @@ class SignDelegateActionRequest(BaseModel):
|
|
|
79
86
|
|
|
80
87
|
_obj = SignDelegateActionRequest.parse_obj({
|
|
81
88
|
"wallet_id": obj.get("walletId"),
|
|
82
|
-
|
|
83
|
-
|
|
89
|
+
"unsigned_delegate_action": obj.get("unsignedDelegateAction"),
|
|
90
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext")
|
|
91
|
+
|
|
84
92
|
})
|
|
85
93
|
return _obj
|
|
86
94
|
|
|
@@ -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 SignDelegateActionResponse(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) -> SignDelegateActionResponse:
|
|
@@ -81,6 +88,7 @@ class SignDelegateActionResponse(BaseModel):
|
|
|
81
88
|
|
|
82
89
|
_obj = SignDelegateActionResponse.parse_obj({
|
|
83
90
|
"data": SignDelegateActionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
91
|
+
|
|
84
92
|
})
|
|
85
93
|
return _obj
|
|
86
94
|
|
|
@@ -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
|
|
@@ -44,8 +49,10 @@ class SignDelegateActionResponseData(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) -> SignDelegateActionResponseData:
|
|
@@ -78,7 +85,8 @@ class SignDelegateActionResponseData(BaseModel):
|
|
|
78
85
|
|
|
79
86
|
_obj = SignDelegateActionResponseData.parse_obj({
|
|
80
87
|
"signature": obj.get("signature"),
|
|
81
|
-
|
|
88
|
+
"signed_delegate_action": obj.get("signedDelegateAction")
|
|
89
|
+
|
|
82
90
|
})
|
|
83
91
|
return _obj
|
|
84
92
|
|
|
@@ -13,20 +13,28 @@ 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, StrictBool, StrictBytes, StrictStr
|
|
24
|
+
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
19
25
|
|
|
20
26
|
class SignMessageRequest(BaseModel):
|
|
21
27
|
"""
|
|
22
28
|
SignMessageRequest
|
|
23
29
|
"""
|
|
24
|
-
wallet_id: StrictStr = Field(
|
|
30
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
|
|
25
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.")
|
|
26
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.")
|
|
27
33
|
memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
|
|
28
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. ")
|
|
29
|
-
|
|
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"]
|
|
30
38
|
|
|
31
39
|
def __init__(self, **kwargs):
|
|
32
40
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -47,8 +55,10 @@ class SignMessageRequest(BaseModel):
|
|
|
47
55
|
return pprint.pformat(self.dict(by_alias=True))
|
|
48
56
|
|
|
49
57
|
def to_json(self) -> str:
|
|
50
|
-
"""
|
|
51
|
-
|
|
58
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
59
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
60
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
61
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
52
62
|
|
|
53
63
|
@classmethod
|
|
54
64
|
def from_json(cls, json_str: str) -> SignMessageRequest:
|
|
@@ -61,6 +71,7 @@ class SignMessageRequest(BaseModel):
|
|
|
61
71
|
exclude={
|
|
62
72
|
},
|
|
63
73
|
exclude_none=True)
|
|
74
|
+
# Handle anyOf models where allVars is empty - use vars instead
|
|
64
75
|
return _dict
|
|
65
76
|
|
|
66
77
|
@classmethod
|
|
@@ -80,11 +91,15 @@ class SignMessageRequest(BaseModel):
|
|
|
80
91
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
92
|
|
|
82
93
|
_obj = SignMessageRequest.parse_obj({
|
|
94
|
+
|
|
83
95
|
"wallet_id": obj.get("walletId"),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
96
|
+
"encoded_by_hex": obj.get("encodedByHex"),
|
|
97
|
+
"message": obj.get("message"),
|
|
98
|
+
"memo": obj.get("memo"),
|
|
99
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
|
|
100
|
+
"blockchain": obj.get("blockchain"),
|
|
101
|
+
"wallet_address": obj.get("walletAddress")
|
|
102
|
+
|
|
88
103
|
})
|
|
89
104
|
return _obj
|
|
90
105
|
|
|
@@ -13,20 +13,28 @@ 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
|
|
24
|
+
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
19
25
|
|
|
20
26
|
class SignTransactionRequest(BaseModel):
|
|
21
27
|
"""
|
|
22
28
|
SignTransactionRequest
|
|
23
29
|
"""
|
|
24
|
-
wallet_id: StrictStr = Field(
|
|
30
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
|
|
25
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. ")
|
|
26
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. ")
|
|
27
33
|
memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
|
|
28
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. ")
|
|
29
|
-
|
|
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"]
|
|
30
38
|
|
|
31
39
|
def __init__(self, **kwargs):
|
|
32
40
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -47,8 +55,10 @@ class SignTransactionRequest(BaseModel):
|
|
|
47
55
|
return pprint.pformat(self.dict(by_alias=True))
|
|
48
56
|
|
|
49
57
|
def to_json(self) -> str:
|
|
50
|
-
"""
|
|
51
|
-
|
|
58
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
59
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
60
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
61
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
52
62
|
|
|
53
63
|
@classmethod
|
|
54
64
|
def from_json(cls, json_str: str) -> SignTransactionRequest:
|
|
@@ -61,6 +71,7 @@ class SignTransactionRequest(BaseModel):
|
|
|
61
71
|
exclude={
|
|
62
72
|
},
|
|
63
73
|
exclude_none=True)
|
|
74
|
+
# Handle anyOf models where allVars is empty - use vars instead
|
|
64
75
|
return _dict
|
|
65
76
|
|
|
66
77
|
@classmethod
|
|
@@ -80,11 +91,15 @@ class SignTransactionRequest(BaseModel):
|
|
|
80
91
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
92
|
|
|
82
93
|
_obj = SignTransactionRequest.parse_obj({
|
|
94
|
+
|
|
83
95
|
"wallet_id": obj.get("walletId"),
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
96
|
+
"raw_transaction": obj.get("rawTransaction"),
|
|
97
|
+
"transaction": obj.get("transaction"),
|
|
98
|
+
"memo": obj.get("memo"),
|
|
99
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
|
|
100
|
+
"blockchain": obj.get("blockchain"),
|
|
101
|
+
"wallet_address": obj.get("walletAddress")
|
|
102
|
+
|
|
88
103
|
})
|
|
89
104
|
return _obj
|
|
90
105
|
|
|
@@ -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 SignTransactionResponse(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) -> SignTransactionResponse:
|
|
@@ -81,6 +88,7 @@ class SignTransactionResponse(BaseModel):
|
|
|
81
88
|
|
|
82
89
|
_obj = SignTransactionResponse.parse_obj({
|
|
83
90
|
"data": SignTransactionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
91
|
+
|
|
84
92
|
})
|
|
85
93
|
return _obj
|
|
86
94
|
|
|
@@ -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
|
|
@@ -45,8 +50,10 @@ class SignTransactionResponseData(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) -> SignTransactionResponseData:
|
|
@@ -79,8 +86,9 @@ class SignTransactionResponseData(BaseModel):
|
|
|
79
86
|
|
|
80
87
|
_obj = SignTransactionResponseData.parse_obj({
|
|
81
88
|
"signature": obj.get("signature"),
|
|
82
|
-
|
|
83
|
-
|
|
89
|
+
"signed_transaction": obj.get("signedTransaction"),
|
|
90
|
+
"tx_hash": obj.get("txHash")
|
|
91
|
+
|
|
84
92
|
})
|
|
85
93
|
return _obj
|
|
86
94
|
|
|
@@ -13,19 +13,27 @@ 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
|
|
24
|
+
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
19
25
|
|
|
20
26
|
class SignTypedDataRequest(BaseModel):
|
|
21
27
|
"""
|
|
22
28
|
SignTypedDataRequest
|
|
23
29
|
"""
|
|
24
|
-
wallet_id: StrictStr = Field(
|
|
30
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
|
|
25
31
|
data: StrictStr = Field(..., description="A string represents the typed structured data in EIP-712")
|
|
26
32
|
memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
|
|
27
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. ")
|
|
28
|
-
|
|
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"]
|
|
29
37
|
|
|
30
38
|
def __init__(self, **kwargs):
|
|
31
39
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -46,8 +54,10 @@ class SignTypedDataRequest(BaseModel):
|
|
|
46
54
|
return pprint.pformat(self.dict(by_alias=True))
|
|
47
55
|
|
|
48
56
|
def to_json(self) -> str:
|
|
49
|
-
"""
|
|
50
|
-
|
|
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)
|
|
51
61
|
|
|
52
62
|
@classmethod
|
|
53
63
|
def from_json(cls, json_str: str) -> SignTypedDataRequest:
|
|
@@ -60,6 +70,7 @@ class SignTypedDataRequest(BaseModel):
|
|
|
60
70
|
exclude={
|
|
61
71
|
},
|
|
62
72
|
exclude_none=True)
|
|
73
|
+
# Handle anyOf models where allVars is empty - use vars instead
|
|
63
74
|
return _dict
|
|
64
75
|
|
|
65
76
|
@classmethod
|
|
@@ -79,10 +90,14 @@ class SignTypedDataRequest(BaseModel):
|
|
|
79
90
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
80
91
|
|
|
81
92
|
_obj = SignTypedDataRequest.parse_obj({
|
|
93
|
+
|
|
82
94
|
"wallet_id": obj.get("walletId"),
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
95
|
+
"data": obj.get("data"),
|
|
96
|
+
"memo": obj.get("memo"),
|
|
97
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
|
|
98
|
+
"blockchain": obj.get("blockchain"),
|
|
99
|
+
"wallet_address": obj.get("walletAddress")
|
|
100
|
+
|
|
86
101
|
})
|
|
87
102
|
return _obj
|
|
88
103
|
|
|
@@ -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 SignatureResponse(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) -> SignatureResponse:
|
|
@@ -81,6 +88,7 @@ class SignatureResponse(BaseModel):
|
|
|
81
88
|
|
|
82
89
|
_obj = SignatureResponse.parse_obj({
|
|
83
90
|
"data": SignatureResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
91
|
+
|
|
84
92
|
})
|
|
85
93
|
return _obj
|
|
86
94
|
|
|
@@ -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
|
|
@@ -43,8 +48,10 @@ class SignatureResponseData(BaseModel):
|
|
|
43
48
|
return pprint.pformat(self.dict(by_alias=True))
|
|
44
49
|
|
|
45
50
|
def to_json(self) -> str:
|
|
46
|
-
"""
|
|
47
|
-
|
|
51
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
52
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
53
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
54
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
48
55
|
|
|
49
56
|
@classmethod
|
|
50
57
|
def from_json(cls, json_str: str) -> SignatureResponseData:
|
|
@@ -77,6 +84,7 @@ class SignatureResponseData(BaseModel):
|
|
|
77
84
|
|
|
78
85
|
_obj = SignatureResponseData.parse_obj({
|
|
79
86
|
"signature": obj.get("signature")
|
|
87
|
+
|
|
80
88
|
})
|
|
81
89
|
return _obj
|
|
82
90
|
|