circle-developer-controlled-wallets 1.0__py3-none-any.whl → 1.1.1__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 +26 -24
- circle/web3/developer_controlled_wallets/api/signing_api.py +2 -2
- circle/web3/developer_controlled_wallets/api/token_lookup_api.py +1 -1
- circle/web3/developer_controlled_wallets/api/transactions_api.py +25 -23
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +118 -80
- circle/web3/developer_controlled_wallets/api/wallets_api.py +240 -209
- circle/web3/developer_controlled_wallets/api_client.py +1 -1
- circle/web3/developer_controlled_wallets/configuration.py +3 -3
- circle/web3/developer_controlled_wallets/models/__init__.py +25 -23
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_response.py +1 -1
- circle/web3/developer_controlled_wallets/models/account_type.py +1 -1
- circle/web3/developer_controlled_wallets/models/bad_request_response.py +85 -0
- circle/web3/developer_controlled_wallets/models/balance.py +1 -1
- circle/web3/developer_controlled_wallets/models/blockchain.py +3 -1
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_response.py +1 -1
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +4 -4
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +6 -5
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +1 -1
- circle/web3/developer_controlled_wallets/models/{create_developer_wallet_request.py → create_wallet_request.py} +9 -9
- circle/web3/developer_controlled_wallets/models/{create_developer_wallet_set_request.py → create_wallet_set_request.py} +11 -11
- circle/web3/developer_controlled_wallets/models/custody_type.py +1 -1
- circle/web3/developer_controlled_wallets/models/{update_wallet_set_metadata_response.py → developer_wallet_set.py} +26 -17
- circle/web3/developer_controlled_wallets/models/{wallet_set_response.py → end_user_wallet_set.py} +24 -20
- circle/web3/developer_controlled_wallets/models/{ext_wallet_response_wallet.py → eoa_wallet.py} +29 -25
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +2 -2
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request_blockchain.py +40 -0
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/nft.py +1 -1
- circle/web3/developer_controlled_wallets/models/not_authorized_response.py +85 -0
- circle/web3/developer_controlled_wallets/models/not_found_response.py +85 -0
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +117 -0
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +42 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +3 -3
- circle/web3/developer_controlled_wallets/models/transaction.py +3 -3
- circle/web3/developer_controlled_wallets/models/{ext_update_wallet_metadata_request.py → update_wallet_request.py} +9 -9
- circle/web3/developer_controlled_wallets/models/{update_wallet_set_metadata_request.py → update_wallet_set_request.py} +8 -8
- circle/web3/developer_controlled_wallets/models/{wallet_response.py → wallet.py} +17 -22
- circle/web3/developer_controlled_wallets/models/{update_wallet200_response.py → wallet2.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{ext_wallet_response.py → wallet2_data.py} +13 -13
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +1 -1
- circle/web3/developer_controlled_wallets/models/wallet_set.py +87 -0
- circle/web3/developer_controlled_wallets/models/{get_wallet200_response.py → wallet_set2.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{get_wallet_set_by_id_response.py → wallet_set2_data.py} +12 -12
- circle/web3/developer_controlled_wallets/models/{list_wallets200_response.py → wallet_sets.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{get_wallet_sets_response.py → wallet_sets_data.py} +12 -12
- circle/web3/developer_controlled_wallets/models/wallet_sets_data_wallet_sets_inner.py +140 -0
- circle/web3/developer_controlled_wallets/models/wallet_state.py +1 -1
- circle/web3/developer_controlled_wallets/models/{get_wallet_set200_response.py → wallets.py} +13 -13
- circle/web3/developer_controlled_wallets/models/{ext_get_all_wallets_response.py → wallets_data.py} +13 -13
- circle/web3/developer_controlled_wallets/models/wallets_data_wallets_inner.py +140 -0
- {circle_developer_controlled_wallets-1.0.dist-info → circle_developer_controlled_wallets-1.1.1.dist-info}/METADATA +4 -4
- {circle_developer_controlled_wallets-1.0.dist-info → circle_developer_controlled_wallets-1.1.1.dist-info}/RECORD +54 -52
- circle/web3/developer_controlled_wallets/models/create_developer_wallet200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_response.py +0 -91
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/create_wallet_set200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/ext_get_wallet_by_id_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/list_wallet_sets200_response.py +0 -87
- circle/web3/developer_controlled_wallets/models/update_wallet_set200_response.py +0 -87
- {circle_developer_controlled_wallets-1.0.dist-info → circle_developer_controlled_wallets-1.1.1.dist-info}/WHEEL +0 -0
- {circle_developer_controlled_wallets-1.0.dist-info → circle_developer_controlled_wallets-1.1.1.dist-info}/top_level.txt +0 -0
|
@@ -29,7 +29,7 @@ class Transaction(BaseModel):
|
|
|
29
29
|
"""
|
|
30
30
|
Transaction
|
|
31
31
|
"""
|
|
32
|
-
id: StrictStr = Field(..., description="
|
|
32
|
+
id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
|
|
33
33
|
abi_function_signature: Optional[StrictStr] = Field(None, alias="abiFunctionSignature", description="The contract ABI function signature or `callData` field is required for interacting with the smart contract. The ABI function signature cannot be used simultaneously with `callData`. e.g. burn(uint256)")
|
|
34
34
|
abi_parameters: Optional[conlist(AbiParametersInner)] = Field(None, alias="abiParameters", description="The contract ABI function signature parameters for executing the contract interaction. Supported parameter types include string, integer, boolean, and array. These parameters should be used exclusively with the abiFunctionSignature and cannot be used with `callData`.")
|
|
35
35
|
amounts: Optional[conlist(StrictStr, min_items=1)] = Field(None, description="Transfer amounts in decimal number format, at least one element is required for transfer. For ERC721 token transfer, the amounts field is required to be [\"1\"] (array with \"1\" as the only element).")
|
|
@@ -38,7 +38,7 @@ class Transaction(BaseModel):
|
|
|
38
38
|
block_height: Optional[StrictInt] = Field(None, alias="blockHeight", description="Block height of the transaction, representing the number of blockchain confirmations.")
|
|
39
39
|
blockchain: Blockchain = Field(...)
|
|
40
40
|
contract_address: Optional[StrictStr] = Field(None, alias="contractAddress", description="The blockchain address of the contract to be executed.")
|
|
41
|
-
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created
|
|
41
|
+
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
42
42
|
custody_type: Optional[CustodyType] = Field(None, alias="custodyType")
|
|
43
43
|
destination_address: Optional[StrictStr] = Field(None, alias="destinationAddress", description="The destination blockchain address for the transaction.")
|
|
44
44
|
error_reason: Optional[StrictStr] = Field(None, alias="errorReason", description="Description of the error. Only present for transactions in `FAILED` state.")
|
|
@@ -56,7 +56,7 @@ class Transaction(BaseModel):
|
|
|
56
56
|
token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
|
|
57
57
|
transaction_type: TransactionType = Field(..., alias="transactionType")
|
|
58
58
|
tx_hash: Optional[StrictStr] = Field(None, alias="txHash", description="Blockchain generated identifier of the transaction.")
|
|
59
|
-
update_date: datetime = Field(..., alias="updateDate", description="
|
|
59
|
+
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
60
60
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
61
61
|
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. Required when source Address and blockchain is not provided. Mutually exclusive. For contract deploys this wallet ID will be used as the source.")
|
|
62
62
|
__properties = ["id", "abiFunctionSignature", "abiParameters", "amounts", "amountInUSD", "blockHash", "blockHeight", "blockchain", "contractAddress", "createDate", "custodyType", "destinationAddress", "errorReason", "errorDetails", "estimatedFee", "feeLevel", "firstConfirmDate", "networkFee", "networkFeeInUSD", "nfts", "operation", "refId", "sourceAddress", "state", "tokenId", "transactionType", "txHash", "updateDate", "userId", "walletId"]
|
|
@@ -17,12 +17,12 @@ import json
|
|
|
17
17
|
from typing import Optional
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class UpdateWalletRequest(BaseModel):
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
UpdateWalletRequest
|
|
23
23
|
"""
|
|
24
24
|
name: Optional[StrictStr] = Field(None, description="Optional name or description associated with the wallet.")
|
|
25
|
-
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="
|
|
25
|
+
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
26
26
|
__properties = ["name", "refId"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class ExtUpdateWalletMetadataRequest(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> UpdateWalletRequest:
|
|
52
|
+
"""Create an instance of UpdateWalletRequest from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -61,13 +61,13 @@ class ExtUpdateWalletMetadataRequest(BaseModel):
|
|
|
61
61
|
return _dict
|
|
62
62
|
|
|
63
63
|
@classmethod
|
|
64
|
-
def from_dict(cls, obj: dict) ->
|
|
65
|
-
"""Create an instance of
|
|
64
|
+
def from_dict(cls, obj: dict) -> UpdateWalletRequest:
|
|
65
|
+
"""Create an instance of UpdateWalletRequest from a dict"""
|
|
66
66
|
if obj is None:
|
|
67
67
|
return None
|
|
68
68
|
|
|
69
69
|
if not isinstance(obj, dict):
|
|
70
|
-
return
|
|
70
|
+
return UpdateWalletRequest.parse_obj(obj)
|
|
71
71
|
|
|
72
72
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
73
73
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -76,7 +76,7 @@ class ExtUpdateWalletMetadataRequest(BaseModel):
|
|
|
76
76
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
77
77
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
78
78
|
|
|
79
|
-
_obj =
|
|
79
|
+
_obj = UpdateWalletRequest.parse_obj({
|
|
80
80
|
"name": obj.get("name"),
|
|
81
81
|
"ref_id": obj.get("refId")
|
|
82
82
|
})
|
|
@@ -17,9 +17,9 @@ import json
|
|
|
17
17
|
from typing import Optional
|
|
18
18
|
from pydantic import BaseModel, constr
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class UpdateWalletSetRequest(BaseModel):
|
|
21
21
|
"""
|
|
22
|
-
|
|
22
|
+
UpdateWalletSetRequest
|
|
23
23
|
"""
|
|
24
24
|
name: Optional[constr(strict=True, min_length=1)] = None
|
|
25
25
|
__properties = ["name"]
|
|
@@ -47,8 +47,8 @@ class UpdateWalletSetMetadataRequest(BaseModel):
|
|
|
47
47
|
return json.dumps(self.to_dict())
|
|
48
48
|
|
|
49
49
|
@classmethod
|
|
50
|
-
def from_json(cls, json_str: str) ->
|
|
51
|
-
"""Create an instance of
|
|
50
|
+
def from_json(cls, json_str: str) -> UpdateWalletSetRequest:
|
|
51
|
+
"""Create an instance of UpdateWalletSetRequest from a JSON string"""
|
|
52
52
|
return cls.from_dict(json.loads(json_str))
|
|
53
53
|
|
|
54
54
|
def to_dict(self):
|
|
@@ -60,13 +60,13 @@ class UpdateWalletSetMetadataRequest(BaseModel):
|
|
|
60
60
|
return _dict
|
|
61
61
|
|
|
62
62
|
@classmethod
|
|
63
|
-
def from_dict(cls, obj: dict) ->
|
|
64
|
-
"""Create an instance of
|
|
63
|
+
def from_dict(cls, obj: dict) -> UpdateWalletSetRequest:
|
|
64
|
+
"""Create an instance of UpdateWalletSetRequest from a dict"""
|
|
65
65
|
if obj is None:
|
|
66
66
|
return None
|
|
67
67
|
|
|
68
68
|
if not isinstance(obj, dict):
|
|
69
|
-
return
|
|
69
|
+
return UpdateWalletSetRequest.parse_obj(obj)
|
|
70
70
|
|
|
71
71
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
72
72
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -75,7 +75,7 @@ class UpdateWalletSetMetadataRequest(BaseModel):
|
|
|
75
75
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
76
76
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
77
77
|
|
|
78
|
-
_obj =
|
|
78
|
+
_obj = UpdateWalletSetRequest.parse_obj({
|
|
79
79
|
"name": obj.get("name")
|
|
80
80
|
})
|
|
81
81
|
return _obj
|
|
@@ -16,29 +16,26 @@ import json
|
|
|
16
16
|
from datetime import datetime
|
|
17
17
|
from typing import Optional
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr, constr
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.account_type import AccountType
|
|
20
19
|
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
21
20
|
from circle.web3.developer_controlled_wallets.models.custody_type import CustodyType
|
|
22
21
|
from circle.web3.developer_controlled_wallets.models.wallet_state import WalletState
|
|
23
22
|
|
|
24
|
-
class
|
|
23
|
+
class Wallet(BaseModel):
|
|
25
24
|
"""
|
|
26
|
-
|
|
25
|
+
Wallet
|
|
27
26
|
"""
|
|
28
|
-
id: StrictStr = Field(..., description="
|
|
29
|
-
address: StrictStr = Field(..., description="
|
|
27
|
+
id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
|
|
28
|
+
address: StrictStr = Field(..., description="Blockchain address of the wallet.")
|
|
30
29
|
blockchain: Blockchain = Field(...)
|
|
31
|
-
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created
|
|
30
|
+
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
31
|
+
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
32
32
|
custody_type: CustodyType = Field(..., alias="custodyType")
|
|
33
|
-
account_type: AccountType = Field(..., alias="accountType")
|
|
34
33
|
name: Optional[StrictStr] = Field(None, description="Optional name or description associated with the wallet.")
|
|
35
|
-
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="
|
|
34
|
+
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
36
35
|
state: WalletState = Field(...)
|
|
37
|
-
update_date: datetime = Field(..., alias="updateDate", description="Last update date of the resource. ISO-8601 UTC date/time.")
|
|
38
36
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
39
|
-
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="
|
|
40
|
-
|
|
41
|
-
__properties = ["id", "address", "blockchain", "createDate", "custodyType", "accountType", "name", "refId", "state", "updateDate", "userId", "walletSetId", "scaCore"]
|
|
37
|
+
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
38
|
+
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId"]
|
|
42
39
|
|
|
43
40
|
def __init__(self, **kwargs):
|
|
44
41
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -63,8 +60,8 @@ class WalletResponse(BaseModel):
|
|
|
63
60
|
return json.dumps(self.to_dict())
|
|
64
61
|
|
|
65
62
|
@classmethod
|
|
66
|
-
def from_json(cls, json_str: str) ->
|
|
67
|
-
"""Create an instance of
|
|
63
|
+
def from_json(cls, json_str: str) -> Wallet:
|
|
64
|
+
"""Create an instance of Wallet from a JSON string"""
|
|
68
65
|
return cls.from_dict(json.loads(json_str))
|
|
69
66
|
|
|
70
67
|
def to_dict(self):
|
|
@@ -76,13 +73,13 @@ class WalletResponse(BaseModel):
|
|
|
76
73
|
return _dict
|
|
77
74
|
|
|
78
75
|
@classmethod
|
|
79
|
-
def from_dict(cls, obj: dict) ->
|
|
80
|
-
"""Create an instance of
|
|
76
|
+
def from_dict(cls, obj: dict) -> Wallet:
|
|
77
|
+
"""Create an instance of Wallet from a dict"""
|
|
81
78
|
if obj is None:
|
|
82
79
|
return None
|
|
83
80
|
|
|
84
81
|
if not isinstance(obj, dict):
|
|
85
|
-
return
|
|
82
|
+
return Wallet.parse_obj(obj)
|
|
86
83
|
|
|
87
84
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
88
85
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -91,20 +88,18 @@ class WalletResponse(BaseModel):
|
|
|
91
88
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
92
89
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
93
90
|
|
|
94
|
-
_obj =
|
|
91
|
+
_obj = Wallet.parse_obj({
|
|
95
92
|
"id": obj.get("id"),
|
|
96
93
|
"address": obj.get("address"),
|
|
97
94
|
"blockchain": obj.get("blockchain"),
|
|
98
95
|
"create_date": obj.get("createDate"),
|
|
96
|
+
"update_date": obj.get("updateDate"),
|
|
99
97
|
"custody_type": obj.get("custodyType"),
|
|
100
|
-
"account_type": obj.get("accountType"),
|
|
101
98
|
"name": obj.get("name"),
|
|
102
99
|
"ref_id": obj.get("refId"),
|
|
103
100
|
"state": obj.get("state"),
|
|
104
|
-
"update_date": obj.get("updateDate"),
|
|
105
101
|
"user_id": obj.get("userId"),
|
|
106
|
-
"wallet_set_id": obj.get("walletSetId")
|
|
107
|
-
"sca_core": obj.get("scaCore")
|
|
102
|
+
"wallet_set_id": obj.get("walletSetId")
|
|
108
103
|
})
|
|
109
104
|
return _obj
|
|
110
105
|
|
|
@@ -14,15 +14,15 @@ import re # noqa: F401
|
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
from typing import Optional
|
|
18
|
-
from pydantic import BaseModel
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.ext_wallet_response import ExtWalletResponse
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
from pydantic import BaseModel, Field
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.wallet2_data import Wallet2Data
|
|
20
|
+
|
|
21
|
+
class Wallet2(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
Wallet2
|
|
24
24
|
"""
|
|
25
|
-
data:
|
|
25
|
+
data: Wallet2Data = Field(...)
|
|
26
26
|
__properties = ["data"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class UpdateWallet200Response(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> Wallet2:
|
|
52
|
+
"""Create an instance of Wallet2 from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class UpdateWallet200Response(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> Wallet2:
|
|
68
|
+
"""Create an instance of Wallet2 from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return Wallet2.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class UpdateWallet200Response(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"data":
|
|
82
|
+
_obj = Wallet2.parse_obj({
|
|
83
|
+
"data": Wallet2Data.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
@@ -14,15 +14,15 @@ import re # noqa: F401
|
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
from typing import Optional
|
|
18
|
-
from pydantic import BaseModel
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.ext_wallet_response_wallet import ExtWalletResponseWallet
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
from pydantic import BaseModel, Field
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.wallets_data_wallets_inner import WalletsDataWalletsInner
|
|
20
|
+
|
|
21
|
+
class Wallet2Data(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
Wallet2Data
|
|
24
24
|
"""
|
|
25
|
-
wallet:
|
|
25
|
+
wallet: WalletsDataWalletsInner = Field(...)
|
|
26
26
|
__properties = ["wallet"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class ExtWalletResponse(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> Wallet2Data:
|
|
52
|
+
"""Create an instance of Wallet2Data from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class ExtWalletResponse(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> Wallet2Data:
|
|
68
|
+
"""Create an instance of Wallet2Data from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return Wallet2Data.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class ExtWalletResponse(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"wallet":
|
|
82
|
+
_obj = Wallet2Data.parse_obj({
|
|
83
|
+
"wallet": WalletsDataWalletsInner.from_dict(obj.get("wallet")) if obj.get("wallet") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
@@ -22,7 +22,7 @@ class WalletMetadata(BaseModel):
|
|
|
22
22
|
WalletMetadata
|
|
23
23
|
"""
|
|
24
24
|
name: Optional[StrictStr] = Field(None, description="Optional name or description associated with the wallet.")
|
|
25
|
-
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="
|
|
25
|
+
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
26
26
|
__properties = ["name", "refId"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -0,0 +1,87 @@
|
|
|
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
|
+
from datetime import datetime
|
|
17
|
+
|
|
18
|
+
from pydantic import BaseModel, Field, StrictStr
|
|
19
|
+
|
|
20
|
+
class WalletSet(BaseModel):
|
|
21
|
+
"""
|
|
22
|
+
WalletSet
|
|
23
|
+
"""
|
|
24
|
+
id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
|
|
25
|
+
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
26
|
+
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
27
|
+
__properties = ["id", "createDate", "updateDate"]
|
|
28
|
+
|
|
29
|
+
def __init__(self, **kwargs):
|
|
30
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
31
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
32
|
+
|
|
33
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
34
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
35
|
+
super().__init__(**kwargs)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
"""Pydantic configuration"""
|
|
40
|
+
allow_population_by_field_name = True
|
|
41
|
+
validate_assignment = True
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> WalletSet:
|
|
53
|
+
"""Create an instance of WalletSet from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self):
|
|
57
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
58
|
+
_dict = self.dict(by_alias=True,
|
|
59
|
+
exclude={
|
|
60
|
+
},
|
|
61
|
+
exclude_none=True)
|
|
62
|
+
return _dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls, obj: dict) -> WalletSet:
|
|
66
|
+
"""Create an instance of WalletSet from a dict"""
|
|
67
|
+
if obj is None:
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
if not isinstance(obj, dict):
|
|
71
|
+
return WalletSet.parse_obj(obj)
|
|
72
|
+
|
|
73
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
74
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
75
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
76
|
+
|
|
77
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
78
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
79
|
+
|
|
80
|
+
_obj = WalletSet.parse_obj({
|
|
81
|
+
"id": obj.get("id"),
|
|
82
|
+
"create_date": obj.get("createDate"),
|
|
83
|
+
"update_date": obj.get("updateDate")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
circle/web3/developer_controlled_wallets/models/{get_wallet200_response.py → wallet_set2.py}
RENAMED
|
@@ -14,15 +14,15 @@ import re # noqa: F401
|
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
from typing import Optional
|
|
18
|
-
from pydantic import BaseModel
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.ext_get_wallet_by_id_response import ExtGetWalletByIDResponse
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
from pydantic import BaseModel, Field
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.wallet_set2_data import WalletSet2Data
|
|
20
|
+
|
|
21
|
+
class WalletSet2(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
WalletSet2
|
|
24
24
|
"""
|
|
25
|
-
data:
|
|
25
|
+
data: WalletSet2Data = Field(...)
|
|
26
26
|
__properties = ["data"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class GetWallet200Response(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> WalletSet2:
|
|
52
|
+
"""Create an instance of WalletSet2 from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class GetWallet200Response(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> WalletSet2:
|
|
68
|
+
"""Create an instance of WalletSet2 from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return WalletSet2.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class GetWallet200Response(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"data":
|
|
82
|
+
_obj = WalletSet2.parse_obj({
|
|
83
|
+
"data": WalletSet2Data.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|
|
@@ -14,15 +14,15 @@ import re # noqa: F401
|
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
from pydantic import BaseModel, Field
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.wallet_sets_data_wallet_sets_inner import WalletSetsDataWalletSetsInner
|
|
20
20
|
|
|
21
|
-
class
|
|
21
|
+
class WalletSet2Data(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
WalletSet2Data
|
|
24
24
|
"""
|
|
25
|
-
wallet_set:
|
|
25
|
+
wallet_set: WalletSetsDataWalletSetsInner = Field(..., alias="walletSet")
|
|
26
26
|
__properties = ["walletSet"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class GetWalletSetByIDResponse(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> WalletSet2Data:
|
|
52
|
+
"""Create an instance of WalletSet2Data from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class GetWalletSetByIDResponse(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> WalletSet2Data:
|
|
68
|
+
"""Create an instance of WalletSet2Data from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return WalletSet2Data.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class GetWalletSetByIDResponse(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"wallet_set":
|
|
82
|
+
_obj = WalletSet2Data.parse_obj({
|
|
83
|
+
"wallet_set": WalletSetsDataWalletSetsInner.from_dict(obj.get("walletSet")) if obj.get("walletSet") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|
circle/web3/developer_controlled_wallets/models/{list_wallets200_response.py → wallet_sets.py}
RENAMED
|
@@ -14,15 +14,15 @@ import re # noqa: F401
|
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
from typing import Optional
|
|
18
|
-
from pydantic import BaseModel
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.ext_get_all_wallets_response import ExtGetAllWalletsResponse
|
|
20
17
|
|
|
21
|
-
|
|
18
|
+
from pydantic import BaseModel, Field
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.wallet_sets_data import WalletSetsData
|
|
20
|
+
|
|
21
|
+
class WalletSets(BaseModel):
|
|
22
22
|
"""
|
|
23
|
-
|
|
23
|
+
WalletSets
|
|
24
24
|
"""
|
|
25
|
-
data:
|
|
25
|
+
data: WalletSetsData = Field(...)
|
|
26
26
|
__properties = ["data"]
|
|
27
27
|
|
|
28
28
|
def __init__(self, **kwargs):
|
|
@@ -48,8 +48,8 @@ class ListWallets200Response(BaseModel):
|
|
|
48
48
|
return json.dumps(self.to_dict())
|
|
49
49
|
|
|
50
50
|
@classmethod
|
|
51
|
-
def from_json(cls, json_str: str) ->
|
|
52
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> WalletSets:
|
|
52
|
+
"""Create an instance of WalletSets from a JSON string"""
|
|
53
53
|
return cls.from_dict(json.loads(json_str))
|
|
54
54
|
|
|
55
55
|
def to_dict(self):
|
|
@@ -64,13 +64,13 @@ class ListWallets200Response(BaseModel):
|
|
|
64
64
|
return _dict
|
|
65
65
|
|
|
66
66
|
@classmethod
|
|
67
|
-
def from_dict(cls, obj: dict) ->
|
|
68
|
-
"""Create an instance of
|
|
67
|
+
def from_dict(cls, obj: dict) -> WalletSets:
|
|
68
|
+
"""Create an instance of WalletSets from a dict"""
|
|
69
69
|
if obj is None:
|
|
70
70
|
return None
|
|
71
71
|
|
|
72
72
|
if not isinstance(obj, dict):
|
|
73
|
-
return
|
|
73
|
+
return WalletSets.parse_obj(obj)
|
|
74
74
|
|
|
75
75
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
76
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -79,8 +79,8 @@ class ListWallets200Response(BaseModel):
|
|
|
79
79
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
80
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
81
|
|
|
82
|
-
_obj =
|
|
83
|
-
"data":
|
|
82
|
+
_obj = WalletSets.parse_obj({
|
|
83
|
+
"data": WalletSetsData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
84
|
})
|
|
85
85
|
return _obj
|
|
86
86
|
|