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
|
from datetime import datetime
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, validator
|
|
@@ -53,8 +58,10 @@ class DeveloperWalletSet(BaseModel):
|
|
|
53
58
|
return pprint.pformat(self.dict(by_alias=True))
|
|
54
59
|
|
|
55
60
|
def to_json(self) -> str:
|
|
56
|
-
"""
|
|
57
|
-
|
|
61
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
62
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
63
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
64
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
58
65
|
|
|
59
66
|
@classmethod
|
|
60
67
|
def from_json(cls, json_str: str) -> DeveloperWalletSet:
|
|
@@ -87,9 +94,10 @@ class DeveloperWalletSet(BaseModel):
|
|
|
87
94
|
|
|
88
95
|
_obj = DeveloperWalletSet.parse_obj({
|
|
89
96
|
"id": obj.get("id"),
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
97
|
+
"create_date": obj.get("createDate"),
|
|
98
|
+
"update_date": obj.get("updateDate"),
|
|
99
|
+
"custody_type": obj.get("custodyType")
|
|
100
|
+
|
|
93
101
|
})
|
|
94
102
|
return _obj
|
|
95
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
|
from datetime import datetime
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, constr, validator
|
|
@@ -54,8 +59,10 @@ class EndUserWalletSet(BaseModel):
|
|
|
54
59
|
return pprint.pformat(self.dict(by_alias=True))
|
|
55
60
|
|
|
56
61
|
def to_json(self) -> str:
|
|
57
|
-
"""
|
|
58
|
-
|
|
62
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
63
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
64
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
65
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
59
66
|
|
|
60
67
|
@classmethod
|
|
61
68
|
def from_json(cls, json_str: str) -> EndUserWalletSet:
|
|
@@ -88,10 +95,11 @@ class EndUserWalletSet(BaseModel):
|
|
|
88
95
|
|
|
89
96
|
_obj = EndUserWalletSet.parse_obj({
|
|
90
97
|
"id": obj.get("id"),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
98
|
+
"create_date": obj.get("createDate"),
|
|
99
|
+
"update_date": obj.get("updateDate"),
|
|
100
|
+
"custody_type": obj.get("custodyType"),
|
|
101
|
+
"user_id": obj.get("userId")
|
|
102
|
+
|
|
95
103
|
})
|
|
96
104
|
return _obj
|
|
97
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
|
from datetime import datetime
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, constr, validator
|
|
@@ -65,8 +70,10 @@ class EOAWallet(BaseModel):
|
|
|
65
70
|
return pprint.pformat(self.dict(by_alias=True))
|
|
66
71
|
|
|
67
72
|
def to_json(self) -> str:
|
|
68
|
-
"""
|
|
69
|
-
|
|
73
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
74
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
75
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
76
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
70
77
|
|
|
71
78
|
@classmethod
|
|
72
79
|
def from_json(cls, json_str: str) -> EOAWallet:
|
|
@@ -99,18 +106,19 @@ class EOAWallet(BaseModel):
|
|
|
99
106
|
|
|
100
107
|
_obj = EOAWallet.parse_obj({
|
|
101
108
|
"id": obj.get("id"),
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
109
|
+
"address": obj.get("address"),
|
|
110
|
+
"blockchain": obj.get("blockchain"),
|
|
111
|
+
"create_date": obj.get("createDate"),
|
|
112
|
+
"update_date": obj.get("updateDate"),
|
|
113
|
+
"custody_type": obj.get("custodyType"),
|
|
114
|
+
"name": obj.get("name"),
|
|
115
|
+
"ref_id": obj.get("refId"),
|
|
116
|
+
"state": obj.get("state"),
|
|
117
|
+
"user_id": obj.get("userId"),
|
|
118
|
+
"wallet_set_id": obj.get("walletSetId"),
|
|
119
|
+
"initial_public_key": obj.get("initialPublicKey"),
|
|
120
|
+
"account_type": obj.get("accountType")
|
|
121
|
+
|
|
114
122
|
})
|
|
115
123
|
return _obj
|
|
116
124
|
|
|
@@ -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
|
|
@@ -67,8 +72,10 @@ class EOAWalletWithBalances(BaseModel):
|
|
|
67
72
|
return pprint.pformat(self.dict(by_alias=True))
|
|
68
73
|
|
|
69
74
|
def to_json(self) -> str:
|
|
70
|
-
"""
|
|
71
|
-
|
|
75
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
76
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
77
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
78
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
72
79
|
|
|
73
80
|
@classmethod
|
|
74
81
|
def from_json(cls, json_str: str) -> EOAWalletWithBalances:
|
|
@@ -108,19 +115,20 @@ class EOAWalletWithBalances(BaseModel):
|
|
|
108
115
|
|
|
109
116
|
_obj = EOAWalletWithBalances.parse_obj({
|
|
110
117
|
"id": obj.get("id"),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
118
|
+
"address": obj.get("address"),
|
|
119
|
+
"blockchain": obj.get("blockchain"),
|
|
120
|
+
"create_date": obj.get("createDate"),
|
|
121
|
+
"update_date": obj.get("updateDate"),
|
|
122
|
+
"custody_type": obj.get("custodyType"),
|
|
123
|
+
"name": obj.get("name"),
|
|
124
|
+
"ref_id": obj.get("refId"),
|
|
125
|
+
"state": obj.get("state"),
|
|
126
|
+
"user_id": obj.get("userId"),
|
|
127
|
+
"wallet_set_id": obj.get("walletSetId"),
|
|
128
|
+
"initial_public_key": obj.get("initialPublicKey"),
|
|
129
|
+
"account_type": obj.get("accountType"),
|
|
130
|
+
"token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
|
|
131
|
+
|
|
124
132
|
})
|
|
125
133
|
return _obj
|
|
126
134
|
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
|
@@ -44,8 +49,10 @@ class Error(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> Error:
|
|
@@ -78,7 +85,8 @@ class Error(BaseModel):
|
|
|
78
85
|
|
|
79
86
|
_obj = Error.parse_obj({
|
|
80
87
|
"code": obj.get("code"),
|
|
81
|
-
|
|
88
|
+
"message": obj.get("message")
|
|
89
|
+
|
|
82
90
|
})
|
|
83
91
|
return _obj
|
|
84
92
|
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List, Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
@@ -30,7 +35,7 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
|
|
|
30
35
|
blockchain: Optional[ContractExecutionBlockchain] = None
|
|
31
36
|
contract_address: StrictStr = Field(..., alias="contractAddress", description="The blockchain address of the contract to be executed.")
|
|
32
37
|
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="Source address of the transaction. Required along with `blockchain` if `walletId` is not provided. The `sourceAddress` and `walletId` fields are mutually exclusive. ")
|
|
33
|
-
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet.
|
|
38
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source. ")
|
|
34
39
|
__properties = ["abiFunctionSignature", "abiParameters", "callData", "amount", "blockchain", "contractAddress", "sourceAddress", "walletId"]
|
|
35
40
|
|
|
36
41
|
def __init__(self, **kwargs):
|
|
@@ -52,8 +57,10 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
|
|
|
52
57
|
return pprint.pformat(self.dict(by_alias=True))
|
|
53
58
|
|
|
54
59
|
def to_json(self) -> str:
|
|
55
|
-
"""
|
|
56
|
-
|
|
60
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
61
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
62
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
63
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
57
64
|
|
|
58
65
|
@classmethod
|
|
59
66
|
def from_json(cls, json_str: str) -> EstimateContractExecutionTransactionFeeRequest:
|
|
@@ -93,13 +100,14 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
|
|
|
93
100
|
|
|
94
101
|
_obj = EstimateContractExecutionTransactionFeeRequest.parse_obj({
|
|
95
102
|
"abi_function_signature": obj.get("abiFunctionSignature"),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
+
"abi_parameters": [AbiParametersInner.from_dict(_item) for _item in obj.get("abiParameters")] if obj.get("abiParameters") is not None else None,
|
|
104
|
+
"call_data": obj.get("callData"),
|
|
105
|
+
"amount": obj.get("amount"),
|
|
106
|
+
"blockchain": obj.get("blockchain"),
|
|
107
|
+
"contract_address": obj.get("contractAddress"),
|
|
108
|
+
"source_address": obj.get("sourceAddress"),
|
|
109
|
+
"wallet_id": obj.get("walletId")
|
|
110
|
+
|
|
103
111
|
})
|
|
104
112
|
return _obj
|
|
105
113
|
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field
|
|
@@ -44,8 +49,10 @@ class EstimateTransactionFee(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> EstimateTransactionFee:
|
|
@@ -81,6 +88,7 @@ class EstimateTransactionFee(BaseModel):
|
|
|
81
88
|
|
|
82
89
|
_obj = EstimateTransactionFee.parse_obj({
|
|
83
90
|
"data": EstimateTransactionFeeData.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
|
|
@@ -49,8 +54,10 @@ class EstimateTransactionFeeData(BaseModel):
|
|
|
49
54
|
return pprint.pformat(self.dict(by_alias=True))
|
|
50
55
|
|
|
51
56
|
def to_json(self) -> str:
|
|
52
|
-
"""
|
|
53
|
-
|
|
57
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
58
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
59
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
60
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
54
61
|
|
|
55
62
|
@classmethod
|
|
56
63
|
def from_json(cls, json_str: str) -> EstimateTransactionFeeData:
|
|
@@ -92,11 +99,12 @@ class EstimateTransactionFeeData(BaseModel):
|
|
|
92
99
|
|
|
93
100
|
_obj = EstimateTransactionFeeData.parse_obj({
|
|
94
101
|
"high": TransactionFee.from_dict(obj.get("high")) if obj.get("high") is not None else None,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
"low": TransactionFee.from_dict(obj.get("low")) if obj.get("low") is not None else None,
|
|
103
|
+
"medium": TransactionFee.from_dict(obj.get("medium")) if obj.get("medium") is not None else None,
|
|
104
|
+
"call_gas_limit": obj.get("callGasLimit"),
|
|
105
|
+
"verification_gas_limit": obj.get("verificationGasLimit"),
|
|
106
|
+
"pre_verification_gas": obj.get("preVerificationGas")
|
|
107
|
+
|
|
100
108
|
})
|
|
101
109
|
return _obj
|
|
102
110
|
|
circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py
CHANGED
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
from typing import List, Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr, conlist
|
|
@@ -29,7 +34,7 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
|
|
|
29
34
|
token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
|
|
30
35
|
token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain address of the transferred token. Empty for native tokens. Excluded with `tokenId`.")
|
|
31
36
|
blockchain: Optional[TokenBlockchain] = None
|
|
32
|
-
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet.
|
|
37
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source. ")
|
|
33
38
|
__properties = ["amounts", "destinationAddress", "nftTokenIds", "sourceAddress", "tokenId", "tokenAddress", "blockchain", "walletId"]
|
|
34
39
|
|
|
35
40
|
def __init__(self, **kwargs):
|
|
@@ -51,8 +56,10 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
|
|
|
51
56
|
return pprint.pformat(self.dict(by_alias=True))
|
|
52
57
|
|
|
53
58
|
def to_json(self) -> str:
|
|
54
|
-
"""
|
|
55
|
-
|
|
59
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
60
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
61
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
62
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
56
63
|
|
|
57
64
|
@classmethod
|
|
58
65
|
def from_json(cls, json_str: str) -> EstimateTransferTransactionFeeRequest:
|
|
@@ -85,13 +92,14 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
|
|
|
85
92
|
|
|
86
93
|
_obj = EstimateTransferTransactionFeeRequest.parse_obj({
|
|
87
94
|
"amounts": obj.get("amounts"),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
"destination_address": obj.get("destinationAddress"),
|
|
96
|
+
"nft_token_ids": obj.get("nftTokenIds"),
|
|
97
|
+
"source_address": obj.get("sourceAddress"),
|
|
98
|
+
"token_id": obj.get("tokenId"),
|
|
99
|
+
"token_address": obj.get("tokenAddress"),
|
|
100
|
+
"blockchain": obj.get("blockchain"),
|
|
101
|
+
"wallet_id": obj.get("walletId")
|
|
102
|
+
|
|
95
103
|
})
|
|
96
104
|
return _obj
|
|
97
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
|
from datetime import datetime
|
|
17
22
|
from typing import Optional
|
|
18
23
|
from pydantic import BaseModel, Field, StrictStr
|
|
@@ -48,8 +53,10 @@ class Nft(BaseModel):
|
|
|
48
53
|
return pprint.pformat(self.dict(by_alias=True))
|
|
49
54
|
|
|
50
55
|
def to_json(self) -> str:
|
|
51
|
-
"""
|
|
52
|
-
|
|
56
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
57
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
58
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
59
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
53
60
|
|
|
54
61
|
@classmethod
|
|
55
62
|
def from_json(cls, json_str: str) -> Nft:
|
|
@@ -85,10 +92,11 @@ class Nft(BaseModel):
|
|
|
85
92
|
|
|
86
93
|
_obj = Nft.parse_obj({
|
|
87
94
|
"amount": obj.get("amount"),
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
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
|
+
|
|
92
100
|
})
|
|
93
101
|
return _obj
|
|
94
102
|
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field
|
|
@@ -44,8 +49,10 @@ class Nfts(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> Nfts:
|
|
@@ -81,6 +88,7 @@ class Nfts(BaseModel):
|
|
|
81
88
|
|
|
82
89
|
_obj = Nfts.parse_obj({
|
|
83
90
|
"data": NftsData.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 List, Optional
|
|
18
23
|
from pydantic import BaseModel, conlist
|
|
@@ -44,8 +49,10 @@ class NftsData(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> NftsData:
|
|
@@ -85,6 +92,7 @@ class NftsData(BaseModel):
|
|
|
85
92
|
|
|
86
93
|
_obj = NftsData.parse_obj({
|
|
87
94
|
"nfts": [Nft.from_dict(_item) for _item in obj.get("nfts")] if obj.get("nfts") is not None else None
|
|
95
|
+
|
|
88
96
|
})
|
|
89
97
|
return _obj
|
|
90
98
|
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
|
@@ -44,8 +49,10 @@ class NotAuthorizedResponse(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> NotAuthorizedResponse:
|
|
@@ -78,7 +85,8 @@ class NotAuthorizedResponse(BaseModel):
|
|
|
78
85
|
|
|
79
86
|
_obj = NotAuthorizedResponse.parse_obj({
|
|
80
87
|
"code": obj.get("code"),
|
|
81
|
-
|
|
88
|
+
"message": obj.get("message")
|
|
89
|
+
|
|
82
90
|
})
|
|
83
91
|
return _obj
|
|
84
92
|
|
|
@@ -13,6 +13,11 @@ import pprint
|
|
|
13
13
|
import re # noqa: F401
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
|
+
# CUSTOMIZED: Added pydantic_encoder import (not in default OpenAPI Generator template)
|
|
17
|
+
# pydantic_encoder is needed to address serialization issues with datetime and other non-primitive fields,
|
|
18
|
+
# which are not handled by the default JSON encoder.
|
|
19
|
+
from pydantic.json import pydantic_encoder
|
|
20
|
+
|
|
16
21
|
|
|
17
22
|
|
|
18
23
|
from pydantic import BaseModel, Field, StrictInt, StrictStr
|
|
@@ -44,8 +49,10 @@ class NotFoundResponse(BaseModel):
|
|
|
44
49
|
return pprint.pformat(self.dict(by_alias=True))
|
|
45
50
|
|
|
46
51
|
def to_json(self) -> str:
|
|
47
|
-
"""
|
|
48
|
-
|
|
52
|
+
"""Return JSON string of the model (handles datetime/UUID/Decimal/Enum, etc.)"""
|
|
53
|
+
# CUSTOMIZED: Added default=pydantic_encoder to handle complex types (datetime, UUID, Enum, etc.)
|
|
54
|
+
# This differs from the default OpenAPI Generator template which doesn't handle these types properly
|
|
55
|
+
return json.dumps(self.to_dict(), default=pydantic_encoder)
|
|
49
56
|
|
|
50
57
|
@classmethod
|
|
51
58
|
def from_json(cls, json_str: str) -> NotFoundResponse:
|
|
@@ -78,7 +85,8 @@ class NotFoundResponse(BaseModel):
|
|
|
78
85
|
|
|
79
86
|
_obj = NotFoundResponse.parse_obj({
|
|
80
87
|
"code": obj.get("code"),
|
|
81
|
-
|
|
88
|
+
"message": obj.get("message")
|
|
89
|
+
|
|
82
90
|
})
|
|
83
91
|
return _obj
|
|
84
92
|
|