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.
- circle/web3/developer_controlled_wallets/__init__.py +6 -1
- circle/web3/developer_controlled_wallets/api/signing_api.py +6 -6
- circle/web3/developer_controlled_wallets/api/transactions_api.py +165 -4
- circle/web3/developer_controlled_wallets/api_client.py +1 -1
- circle/web3/developer_controlled_wallets/configuration.py +6 -2
- circle/web3/developer_controlled_wallets/models/__init__.py +5 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/bad_request_response.py +2 -1
- circle/web3/developer_controlled_wallets/models/balance.py +3 -2
- circle/web3/developer_controlled_wallets/models/balances.py +1 -0
- circle/web3/developer_controlled_wallets/models/balances_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/base_screening_decision.py +3 -2
- circle/web3/developer_controlled_wallets/models/blockchain.py +1 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/contract_execution_blockchain.py +2 -1
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +21 -15
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +24 -18
- 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 +1 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +2 -1
- circle/web3/developer_controlled_wallets/models/create_wallet_request.py +7 -6
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +3 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +11 -10
- circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +1 -0
- circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +4 -3
- circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +5 -4
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +13 -12
- circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +14 -13
- circle/web3/developer_controlled_wallets/models/error.py +2 -1
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -8
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +1 -0
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +6 -5
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -8
- circle/web3/developer_controlled_wallets/models/get_lowest_nonce_transaction_response.py +95 -0
- circle/web3/developer_controlled_wallets/models/get_lowest_nonce_transaction_response_data.py +101 -0
- circle/web3/developer_controlled_wallets/models/lowest_nonce_transaction_fee_info.py +97 -0
- circle/web3/developer_controlled_wallets/models/nft.py +5 -4
- circle/web3/developer_controlled_wallets/models/nfts.py +1 -0
- circle/web3/developer_controlled_wallets/models/nfts_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/not_authorized_response.py +2 -1
- circle/web3/developer_controlled_wallets/models/not_found_response.py +2 -1
- circle/web3/developer_controlled_wallets/models/risk_signal.py +5 -4
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +14 -13
- circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +15 -14
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +3 -2
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +2 -1
- circle/web3/developer_controlled_wallets/models/sign_message_request.py +12 -6
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +12 -6
- circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +3 -2
- circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +11 -5
- circle/web3/developer_controlled_wallets/models/signature_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/token.py +10 -9
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +1 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/token_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/transaction.py +31 -30
- circle/web3/developer_controlled_wallets/models/transaction_fee.py +10 -7
- circle/web3/developer_controlled_wallets/models/transaction_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/transaction_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +4 -3
- circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -0
- circle/web3/developer_controlled_wallets/models/transactions.py +1 -0
- circle/web3/developer_controlled_wallets/models/transactions_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/transfer_blockchain.py +53 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +1 -0
- circle/web3/developer_controlled_wallets/models/validate_address.py +1 -0
- circle/web3/developer_controlled_wallets/models/validate_address_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/wallet.py +12 -11
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +2 -1
- circle/web3/developer_controlled_wallets/models/wallet_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_set.py +3 -2
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_sets.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +1 -0
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/METADATA +3 -3
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/RECORD +94 -89
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.1.0.dist-info}/WHEEL +0 -0
- {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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
|
|
@@ -98,10 +98,11 @@ class RiskSignal(BaseModel):
|
|
|
98
98
|
|
|
99
99
|
_obj = RiskSignal.parse_obj({
|
|
100
100
|
"source": obj.get("source"),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
90
|
-
|
|
89
|
+
"unsigned_delegate_action": obj.get("unsignedDelegateAction"),
|
|
90
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext")
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
|
@@ -86,8 +86,9 @@ class SignTransactionResponseData(BaseModel):
|
|
|
86
86
|
|
|
87
87
|
_obj = SignTransactionResponseData.parse_obj({
|
|
88
88
|
"signature": obj.get("signature"),
|
|
89
|
-
|
|
90
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|
|
@@ -95,15 +95,16 @@ class Token(BaseModel):
|
|
|
95
95
|
|
|
96
96
|
_obj = Token.parse_obj({
|
|
97
97
|
"id": obj.get("id"),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
|