circle-developer-controlled-wallets 0.1.0b1__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/__init__.py +0 -0
- circle/web3/__init__.py +0 -0
- circle/web3/developer_controlled_wallets/__init__.py +108 -0
- circle/web3/developer_controlled_wallets/api/__init__.py +9 -0
- circle/web3/developer_controlled_wallets/api/signing_api.py +356 -0
- circle/web3/developer_controlled_wallets/api/token_lookup_api.py +198 -0
- circle/web3/developer_controlled_wallets/api/transactions_api.py +1527 -0
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +691 -0
- circle/web3/developer_controlled_wallets/api/wallets_api.py +1118 -0
- circle/web3/developer_controlled_wallets/api_client.py +789 -0
- circle/web3/developer_controlled_wallets/api_response.py +25 -0
- circle/web3/developer_controlled_wallets/configuration.py +455 -0
- circle/web3/developer_controlled_wallets/exceptions.py +162 -0
- circle/web3/developer_controlled_wallets/models/__init__.py +87 -0
- circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +168 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +85 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/account_type.py +36 -0
- circle/web3/developer_controlled_wallets/models/balance.py +91 -0
- circle/web3/developer_controlled_wallets/models/blockchain.py +40 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +85 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_response.py +86 -0
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +118 -0
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_response.py +86 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_accelerate200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_cancel200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_contract_execution200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_transaction_transfer200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_request.py +105 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_request.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_estimate_fee200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +112 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +86 -0
- circle/web3/developer_controlled_wallets/models/create_validate_address200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/create_wallet_set200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/custody_type.py +36 -0
- circle/web3/developer_controlled_wallets/models/error.py +85 -0
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +106 -0
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_response.py +103 -0
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +97 -0
- circle/web3/developer_controlled_wallets/models/estimated_transaction_fee.py +91 -0
- circle/web3/developer_controlled_wallets/models/ext_get_all_wallets_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/ext_get_wallet_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/ext_update_wallet_metadata_request.py +85 -0
- circle/web3/developer_controlled_wallets/models/ext_wallet_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/ext_wallet_response_wallet.py +111 -0
- circle/web3/developer_controlled_wallets/models/fee_level.py +37 -0
- circle/web3/developer_controlled_wallets/models/get_balances_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/get_nfts_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/get_token_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_token_id200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_transaction200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_transaction_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_transactions_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/get_wallet200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_wallet_set200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_wallet_set_by_id_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/get_wallet_sets_response.py +91 -0
- circle/web3/developer_controlled_wallets/models/list_transactions200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallet_ballance200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallet_nfts200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallet_sets200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/list_wallets200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/nft.py +95 -0
- circle/web3/developer_controlled_wallets/models/operation.py +37 -0
- circle/web3/developer_controlled_wallets/models/sign_developer_message200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/sign_developer_typed_data200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/sign_message_for_developer_request.py +91 -0
- circle/web3/developer_controlled_wallets/models/sign_message_for_developer_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_request.py +89 -0
- circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/token_response.py +103 -0
- circle/web3/developer_controlled_wallets/models/token_standard.py +37 -0
- circle/web3/developer_controlled_wallets/models/transaction.py +159 -0
- circle/web3/developer_controlled_wallets/models/transaction_state.py +43 -0
- circle/web3/developer_controlled_wallets/models/transaction_type.py +36 -0
- circle/web3/developer_controlled_wallets/models/update_wallet200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_set200_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_request.py +83 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +86 -0
- circle/web3/developer_controlled_wallets/models/validate_address_response.py +83 -0
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +85 -0
- circle/web3/developer_controlled_wallets/models/wallet_response.py +111 -0
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +94 -0
- circle/web3/developer_controlled_wallets/models/wallet_state.py +36 -0
- circle/web3/developer_controlled_wallets/py.typed +0 -0
- circle/web3/developer_controlled_wallets/rest.py +299 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/METADATA +112 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/RECORD +95 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/WHEEL +5 -0
- circle_developer_controlled_wallets-0.1.0b1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,111 @@
|
|
|
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
|
+
from typing import Optional
|
|
18
|
+
from pydantic import BaseModel, Field, StrictStr, constr
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.account_type import AccountType
|
|
20
|
+
from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
|
|
21
|
+
from circle.web3.developer_controlled_wallets.models.custody_type import CustodyType
|
|
22
|
+
from circle.web3.developer_controlled_wallets.models.wallet_state import WalletState
|
|
23
|
+
|
|
24
|
+
class ExtWalletResponseWallet(BaseModel):
|
|
25
|
+
"""
|
|
26
|
+
ExtWalletResponseWallet
|
|
27
|
+
"""
|
|
28
|
+
id: Optional[StrictStr] = Field(None, description="Unique system generated identifier of the resource.")
|
|
29
|
+
address: Optional[StrictStr] = Field(None, description="The blockchain address generated upon wallet creation.")
|
|
30
|
+
blockchain: Optional[Blockchain] = None
|
|
31
|
+
create_date: Optional[datetime] = Field(None, alias="createDate", description="Date and time the resource was created. ISO-8601 UTC date/time.")
|
|
32
|
+
custody_type: Optional[CustodyType] = Field(None, alias="custodyType")
|
|
33
|
+
account_type: Optional[AccountType] = Field(None, alias="accountType")
|
|
34
|
+
name: Optional[StrictStr] = Field(None, description="Optional name or description associated with the wallet.")
|
|
35
|
+
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the wallet.")
|
|
36
|
+
state: Optional[WalletState] = None
|
|
37
|
+
update_date: Optional[datetime] = Field(None, alias="updateDate", description="Last update date of the resource. ISO-8601 UTC date/time.")
|
|
38
|
+
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: Optional[StrictStr] = Field(None, alias="walletSetId", description="Unique system generated identifier of the wallet's parent wallet set. under.")
|
|
40
|
+
sca_core: Optional[StrictStr] = Field(None, alias="scaCore", description="SCAs can have different versions that have different functionality. SCACore will display the version of the SCA being created. Please refer to developer docs for a list of the versions supported.")
|
|
41
|
+
__properties = ["id", "address", "blockchain", "createDate", "custodyType", "accountType", "name", "refId", "state", "updateDate", "userId", "walletSetId", "scaCore"]
|
|
42
|
+
|
|
43
|
+
def __init__(self, **kwargs):
|
|
44
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
45
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
46
|
+
|
|
47
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
48
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
49
|
+
super().__init__(**kwargs)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
class Config:
|
|
53
|
+
"""Pydantic configuration"""
|
|
54
|
+
allow_population_by_field_name = True
|
|
55
|
+
validate_assignment = True
|
|
56
|
+
|
|
57
|
+
def to_str(self) -> str:
|
|
58
|
+
"""Returns the string representation of the model using alias"""
|
|
59
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
60
|
+
|
|
61
|
+
def to_json(self) -> str:
|
|
62
|
+
"""Returns the JSON representation of the model using alias"""
|
|
63
|
+
return json.dumps(self.to_dict())
|
|
64
|
+
|
|
65
|
+
@classmethod
|
|
66
|
+
def from_json(cls, json_str: str) -> ExtWalletResponseWallet:
|
|
67
|
+
"""Create an instance of ExtWalletResponseWallet from a JSON string"""
|
|
68
|
+
return cls.from_dict(json.loads(json_str))
|
|
69
|
+
|
|
70
|
+
def to_dict(self):
|
|
71
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
72
|
+
_dict = self.dict(by_alias=True,
|
|
73
|
+
exclude={
|
|
74
|
+
},
|
|
75
|
+
exclude_none=True)
|
|
76
|
+
return _dict
|
|
77
|
+
|
|
78
|
+
@classmethod
|
|
79
|
+
def from_dict(cls, obj: dict) -> ExtWalletResponseWallet:
|
|
80
|
+
"""Create an instance of ExtWalletResponseWallet from a dict"""
|
|
81
|
+
if obj is None:
|
|
82
|
+
return None
|
|
83
|
+
|
|
84
|
+
if not isinstance(obj, dict):
|
|
85
|
+
return ExtWalletResponseWallet.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 = ExtWalletResponseWallet.parse_obj({
|
|
95
|
+
"id": obj.get("id"),
|
|
96
|
+
"address": obj.get("address"),
|
|
97
|
+
"blockchain": obj.get("blockchain"),
|
|
98
|
+
"create_date": obj.get("createDate"),
|
|
99
|
+
"custody_type": obj.get("custodyType"),
|
|
100
|
+
"account_type": obj.get("accountType"),
|
|
101
|
+
"name": obj.get("name"),
|
|
102
|
+
"ref_id": obj.get("refId"),
|
|
103
|
+
"state": obj.get("state"),
|
|
104
|
+
"update_date": obj.get("updateDate"),
|
|
105
|
+
"user_id": obj.get("userId"),
|
|
106
|
+
"wallet_set_id": obj.get("walletSetId"),
|
|
107
|
+
"sca_core": obj.get("scaCore")
|
|
108
|
+
})
|
|
109
|
+
return _obj
|
|
110
|
+
|
|
111
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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
|
+
import json
|
|
12
|
+
import pprint
|
|
13
|
+
import re # noqa: F401
|
|
14
|
+
from aenum import Enum, no_arg
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
class FeeLevel(str, Enum):
|
|
21
|
+
"""
|
|
22
|
+
A dynamic blockchain fee level setting (`LOW`, `MEDIUM`, or `HIGH`) that will be used to pay gas for the transaction. Calculated based on network traffic, supply of validators, and demand for transaction verification. Cannot be used with `gasLimit`, `gasPrice`, `priorityFee`, or `maxFee`. Estimates for each fee level can be obtained through the `POST /transactions/transfer/estimateFee` API.
|
|
23
|
+
"""
|
|
24
|
+
|
|
25
|
+
"""
|
|
26
|
+
allowed enum values
|
|
27
|
+
"""
|
|
28
|
+
LOW = 'LOW'
|
|
29
|
+
MEDIUM = 'MEDIUM'
|
|
30
|
+
HIGH = 'HIGH'
|
|
31
|
+
|
|
32
|
+
@classmethod
|
|
33
|
+
def from_json(cls, json_str: str) -> FeeLevel:
|
|
34
|
+
"""Create an instance of FeeLevel from a JSON string"""
|
|
35
|
+
return FeeLevel(json.loads(json_str))
|
|
36
|
+
|
|
37
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
|
|
17
|
+
from typing import List, Optional
|
|
18
|
+
from pydantic import BaseModel, Field, conlist
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.balance import Balance
|
|
20
|
+
|
|
21
|
+
class GetBalancesResponse(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
GetBalancesResponse
|
|
24
|
+
"""
|
|
25
|
+
token_balances: Optional[conlist(Balance)] = Field(None, alias="tokenBalances", description="List of token balances for each token on the wallet(s).")
|
|
26
|
+
__properties = ["tokenBalances"]
|
|
27
|
+
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
30
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
31
|
+
|
|
32
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
33
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
34
|
+
super().__init__(**kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
"""Pydantic configuration"""
|
|
39
|
+
allow_population_by_field_name = True
|
|
40
|
+
validate_assignment = True
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> GetBalancesResponse:
|
|
52
|
+
"""Create an instance of GetBalancesResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
57
|
+
_dict = self.dict(by_alias=True,
|
|
58
|
+
exclude={
|
|
59
|
+
},
|
|
60
|
+
exclude_none=True)
|
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of each item in token_balances (list)
|
|
62
|
+
_items = []
|
|
63
|
+
if self.token_balances:
|
|
64
|
+
for _item in self.token_balances:
|
|
65
|
+
if _item:
|
|
66
|
+
_items.append(_item.to_dict())
|
|
67
|
+
_dict['tokenBalances'] = _items
|
|
68
|
+
return _dict
|
|
69
|
+
|
|
70
|
+
@classmethod
|
|
71
|
+
def from_dict(cls, obj: dict) -> GetBalancesResponse:
|
|
72
|
+
"""Create an instance of GetBalancesResponse from a dict"""
|
|
73
|
+
if obj is None:
|
|
74
|
+
return None
|
|
75
|
+
|
|
76
|
+
if not isinstance(obj, dict):
|
|
77
|
+
return GetBalancesResponse.parse_obj(obj)
|
|
78
|
+
|
|
79
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
80
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
81
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
82
|
+
|
|
83
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
84
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
85
|
+
|
|
86
|
+
_obj = GetBalancesResponse.parse_obj({
|
|
87
|
+
"token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
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
|
+
|
|
17
|
+
from typing import List, Optional
|
|
18
|
+
from pydantic import BaseModel, conlist
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.nft import Nft
|
|
20
|
+
|
|
21
|
+
class GetNftsResponse(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
GetNftsResponse
|
|
24
|
+
"""
|
|
25
|
+
nfts: Optional[conlist(Nft)] = None
|
|
26
|
+
__properties = ["nfts"]
|
|
27
|
+
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
30
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
31
|
+
|
|
32
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
33
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
34
|
+
super().__init__(**kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
"""Pydantic configuration"""
|
|
39
|
+
allow_population_by_field_name = True
|
|
40
|
+
validate_assignment = True
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> GetNftsResponse:
|
|
52
|
+
"""Create an instance of GetNftsResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
57
|
+
_dict = self.dict(by_alias=True,
|
|
58
|
+
exclude={
|
|
59
|
+
},
|
|
60
|
+
exclude_none=True)
|
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of each item in nfts (list)
|
|
62
|
+
_items = []
|
|
63
|
+
if self.nfts:
|
|
64
|
+
for _item in self.nfts:
|
|
65
|
+
if _item:
|
|
66
|
+
_items.append(_item.to_dict())
|
|
67
|
+
_dict['nfts'] = _items
|
|
68
|
+
return _dict
|
|
69
|
+
|
|
70
|
+
@classmethod
|
|
71
|
+
def from_dict(cls, obj: dict) -> GetNftsResponse:
|
|
72
|
+
"""Create an instance of GetNftsResponse from a dict"""
|
|
73
|
+
if obj is None:
|
|
74
|
+
return None
|
|
75
|
+
|
|
76
|
+
if not isinstance(obj, dict):
|
|
77
|
+
return GetNftsResponse.parse_obj(obj)
|
|
78
|
+
|
|
79
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
80
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
81
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
82
|
+
|
|
83
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
84
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
85
|
+
|
|
86
|
+
_obj = GetNftsResponse.parse_obj({
|
|
87
|
+
"nfts": [Nft.from_dict(_item) for _item in obj.get("nfts")] if obj.get("nfts") is not None else None
|
|
88
|
+
})
|
|
89
|
+
return _obj
|
|
90
|
+
|
|
91
|
+
|
|
@@ -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
|
+
|
|
17
|
+
from typing import Optional
|
|
18
|
+
from pydantic import BaseModel
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.token_response import TokenResponse
|
|
20
|
+
|
|
21
|
+
class GetTokenByIDResponse(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
GetTokenByIDResponse
|
|
24
|
+
"""
|
|
25
|
+
token: Optional[TokenResponse] = None
|
|
26
|
+
__properties = ["token"]
|
|
27
|
+
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
30
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
31
|
+
|
|
32
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
33
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
34
|
+
super().__init__(**kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
"""Pydantic configuration"""
|
|
39
|
+
allow_population_by_field_name = True
|
|
40
|
+
validate_assignment = True
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> GetTokenByIDResponse:
|
|
52
|
+
"""Create an instance of GetTokenByIDResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
57
|
+
_dict = self.dict(by_alias=True,
|
|
58
|
+
exclude={
|
|
59
|
+
},
|
|
60
|
+
exclude_none=True)
|
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of token
|
|
62
|
+
if self.token:
|
|
63
|
+
_dict['token'] = self.token.to_dict()
|
|
64
|
+
return _dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls, obj: dict) -> GetTokenByIDResponse:
|
|
68
|
+
"""Create an instance of GetTokenByIDResponse from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return GetTokenByIDResponse.parse_obj(obj)
|
|
74
|
+
|
|
75
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
77
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
78
|
+
|
|
79
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
|
+
|
|
82
|
+
_obj = GetTokenByIDResponse.parse_obj({
|
|
83
|
+
"token": TokenResponse.from_dict(obj.get("token")) if obj.get("token") is not None else None
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -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
|
+
|
|
17
|
+
from typing import Optional
|
|
18
|
+
from pydantic import BaseModel
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.get_token_by_id_response import GetTokenByIDResponse
|
|
20
|
+
|
|
21
|
+
class GetTokenId200Response(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
GetTokenId200Response
|
|
24
|
+
"""
|
|
25
|
+
data: Optional[GetTokenByIDResponse] = None
|
|
26
|
+
__properties = ["data"]
|
|
27
|
+
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
30
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
31
|
+
|
|
32
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
33
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
34
|
+
super().__init__(**kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
"""Pydantic configuration"""
|
|
39
|
+
allow_population_by_field_name = True
|
|
40
|
+
validate_assignment = True
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> GetTokenId200Response:
|
|
52
|
+
"""Create an instance of GetTokenId200Response from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
57
|
+
_dict = self.dict(by_alias=True,
|
|
58
|
+
exclude={
|
|
59
|
+
},
|
|
60
|
+
exclude_none=True)
|
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of data
|
|
62
|
+
if self.data:
|
|
63
|
+
_dict['data'] = self.data.to_dict()
|
|
64
|
+
return _dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls, obj: dict) -> GetTokenId200Response:
|
|
68
|
+
"""Create an instance of GetTokenId200Response from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return GetTokenId200Response.parse_obj(obj)
|
|
74
|
+
|
|
75
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
77
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
78
|
+
|
|
79
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
|
+
|
|
82
|
+
_obj = GetTokenId200Response.parse_obj({
|
|
83
|
+
"data": GetTokenByIDResponse.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -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
|
+
|
|
17
|
+
from typing import Optional
|
|
18
|
+
from pydantic import BaseModel
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.get_transaction_by_id_response import GetTransactionByIDResponse
|
|
20
|
+
|
|
21
|
+
class GetTransaction200Response(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
GetTransaction200Response
|
|
24
|
+
"""
|
|
25
|
+
data: Optional[GetTransactionByIDResponse] = None
|
|
26
|
+
__properties = ["data"]
|
|
27
|
+
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
30
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
31
|
+
|
|
32
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
33
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
34
|
+
super().__init__(**kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
"""Pydantic configuration"""
|
|
39
|
+
allow_population_by_field_name = True
|
|
40
|
+
validate_assignment = True
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> GetTransaction200Response:
|
|
52
|
+
"""Create an instance of GetTransaction200Response from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
57
|
+
_dict = self.dict(by_alias=True,
|
|
58
|
+
exclude={
|
|
59
|
+
},
|
|
60
|
+
exclude_none=True)
|
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of data
|
|
62
|
+
if self.data:
|
|
63
|
+
_dict['data'] = self.data.to_dict()
|
|
64
|
+
return _dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls, obj: dict) -> GetTransaction200Response:
|
|
68
|
+
"""Create an instance of GetTransaction200Response from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return GetTransaction200Response.parse_obj(obj)
|
|
74
|
+
|
|
75
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
77
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
78
|
+
|
|
79
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
|
+
|
|
82
|
+
_obj = GetTransaction200Response.parse_obj({
|
|
83
|
+
"data": GetTransactionByIDResponse.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -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
|
+
|
|
17
|
+
from typing import Optional
|
|
18
|
+
from pydantic import BaseModel
|
|
19
|
+
from circle.web3.developer_controlled_wallets.models.transaction import Transaction
|
|
20
|
+
|
|
21
|
+
class GetTransactionByIDResponse(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
GetTransactionByIDResponse
|
|
24
|
+
"""
|
|
25
|
+
transaction: Optional[Transaction] = None
|
|
26
|
+
__properties = ["transaction"]
|
|
27
|
+
|
|
28
|
+
def __init__(self, **kwargs):
|
|
29
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
30
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
31
|
+
|
|
32
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
33
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
34
|
+
super().__init__(**kwargs)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class Config:
|
|
38
|
+
"""Pydantic configuration"""
|
|
39
|
+
allow_population_by_field_name = True
|
|
40
|
+
validate_assignment = True
|
|
41
|
+
|
|
42
|
+
def to_str(self) -> str:
|
|
43
|
+
"""Returns the string representation of the model using alias"""
|
|
44
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
45
|
+
|
|
46
|
+
def to_json(self) -> str:
|
|
47
|
+
"""Returns the JSON representation of the model using alias"""
|
|
48
|
+
return json.dumps(self.to_dict())
|
|
49
|
+
|
|
50
|
+
@classmethod
|
|
51
|
+
def from_json(cls, json_str: str) -> GetTransactionByIDResponse:
|
|
52
|
+
"""Create an instance of GetTransactionByIDResponse from a JSON string"""
|
|
53
|
+
return cls.from_dict(json.loads(json_str))
|
|
54
|
+
|
|
55
|
+
def to_dict(self):
|
|
56
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
57
|
+
_dict = self.dict(by_alias=True,
|
|
58
|
+
exclude={
|
|
59
|
+
},
|
|
60
|
+
exclude_none=True)
|
|
61
|
+
# override the default output from pydantic by calling `to_dict()` of transaction
|
|
62
|
+
if self.transaction:
|
|
63
|
+
_dict['transaction'] = self.transaction.to_dict()
|
|
64
|
+
return _dict
|
|
65
|
+
|
|
66
|
+
@classmethod
|
|
67
|
+
def from_dict(cls, obj: dict) -> GetTransactionByIDResponse:
|
|
68
|
+
"""Create an instance of GetTransactionByIDResponse from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return GetTransactionByIDResponse.parse_obj(obj)
|
|
74
|
+
|
|
75
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
76
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
77
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
78
|
+
|
|
79
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
80
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
81
|
+
|
|
82
|
+
_obj = GetTransactionByIDResponse.parse_obj({
|
|
83
|
+
"transaction": Transaction.from_dict(obj.get("transaction")) if obj.get("transaction") is not None else None
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|