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.

Files changed (95) hide show
  1. circle/__init__.py +0 -0
  2. circle/web3/__init__.py +0 -0
  3. circle/web3/developer_controlled_wallets/__init__.py +108 -0
  4. circle/web3/developer_controlled_wallets/api/__init__.py +9 -0
  5. circle/web3/developer_controlled_wallets/api/signing_api.py +356 -0
  6. circle/web3/developer_controlled_wallets/api/token_lookup_api.py +198 -0
  7. circle/web3/developer_controlled_wallets/api/transactions_api.py +1527 -0
  8. circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +691 -0
  9. circle/web3/developer_controlled_wallets/api/wallets_api.py +1118 -0
  10. circle/web3/developer_controlled_wallets/api_client.py +789 -0
  11. circle/web3/developer_controlled_wallets/api_response.py +25 -0
  12. circle/web3/developer_controlled_wallets/configuration.py +455 -0
  13. circle/web3/developer_controlled_wallets/exceptions.py +162 -0
  14. circle/web3/developer_controlled_wallets/models/__init__.py +87 -0
  15. circle/web3/developer_controlled_wallets/models/abi_parameters_inner.py +168 -0
  16. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +85 -0
  17. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_response.py +83 -0
  18. circle/web3/developer_controlled_wallets/models/account_type.py +36 -0
  19. circle/web3/developer_controlled_wallets/models/balance.py +91 -0
  20. circle/web3/developer_controlled_wallets/models/blockchain.py +40 -0
  21. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +85 -0
  22. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_response.py +86 -0
  23. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +118 -0
  24. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_response.py +86 -0
  25. circle/web3/developer_controlled_wallets/models/create_developer_transaction_accelerate200_response.py +87 -0
  26. circle/web3/developer_controlled_wallets/models/create_developer_transaction_cancel200_response.py +87 -0
  27. circle/web3/developer_controlled_wallets/models/create_developer_transaction_contract_execution200_response.py +87 -0
  28. circle/web3/developer_controlled_wallets/models/create_developer_transaction_transfer200_response.py +87 -0
  29. circle/web3/developer_controlled_wallets/models/create_developer_wallet200_response.py +87 -0
  30. circle/web3/developer_controlled_wallets/models/create_developer_wallet_request.py +105 -0
  31. circle/web3/developer_controlled_wallets/models/create_developer_wallet_response.py +91 -0
  32. circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_request.py +87 -0
  33. circle/web3/developer_controlled_wallets/models/create_developer_wallet_set_response.py +87 -0
  34. circle/web3/developer_controlled_wallets/models/create_transfer_estimate_fee200_response.py +87 -0
  35. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +112 -0
  36. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +86 -0
  37. circle/web3/developer_controlled_wallets/models/create_validate_address200_response.py +87 -0
  38. circle/web3/developer_controlled_wallets/models/create_wallet_set200_response.py +87 -0
  39. circle/web3/developer_controlled_wallets/models/custody_type.py +36 -0
  40. circle/web3/developer_controlled_wallets/models/error.py +85 -0
  41. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +106 -0
  42. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_response.py +103 -0
  43. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +97 -0
  44. circle/web3/developer_controlled_wallets/models/estimated_transaction_fee.py +91 -0
  45. circle/web3/developer_controlled_wallets/models/ext_get_all_wallets_response.py +91 -0
  46. circle/web3/developer_controlled_wallets/models/ext_get_wallet_by_id_response.py +87 -0
  47. circle/web3/developer_controlled_wallets/models/ext_update_wallet_metadata_request.py +85 -0
  48. circle/web3/developer_controlled_wallets/models/ext_wallet_response.py +87 -0
  49. circle/web3/developer_controlled_wallets/models/ext_wallet_response_wallet.py +111 -0
  50. circle/web3/developer_controlled_wallets/models/fee_level.py +37 -0
  51. circle/web3/developer_controlled_wallets/models/get_balances_response.py +91 -0
  52. circle/web3/developer_controlled_wallets/models/get_nfts_response.py +91 -0
  53. circle/web3/developer_controlled_wallets/models/get_token_by_id_response.py +87 -0
  54. circle/web3/developer_controlled_wallets/models/get_token_id200_response.py +87 -0
  55. circle/web3/developer_controlled_wallets/models/get_transaction200_response.py +87 -0
  56. circle/web3/developer_controlled_wallets/models/get_transaction_by_id_response.py +87 -0
  57. circle/web3/developer_controlled_wallets/models/get_transactions_response.py +91 -0
  58. circle/web3/developer_controlled_wallets/models/get_wallet200_response.py +87 -0
  59. circle/web3/developer_controlled_wallets/models/get_wallet_set200_response.py +87 -0
  60. circle/web3/developer_controlled_wallets/models/get_wallet_set_by_id_response.py +87 -0
  61. circle/web3/developer_controlled_wallets/models/get_wallet_sets_response.py +91 -0
  62. circle/web3/developer_controlled_wallets/models/list_transactions200_response.py +87 -0
  63. circle/web3/developer_controlled_wallets/models/list_wallet_ballance200_response.py +87 -0
  64. circle/web3/developer_controlled_wallets/models/list_wallet_nfts200_response.py +87 -0
  65. circle/web3/developer_controlled_wallets/models/list_wallet_sets200_response.py +87 -0
  66. circle/web3/developer_controlled_wallets/models/list_wallets200_response.py +87 -0
  67. circle/web3/developer_controlled_wallets/models/nft.py +95 -0
  68. circle/web3/developer_controlled_wallets/models/operation.py +37 -0
  69. circle/web3/developer_controlled_wallets/models/sign_developer_message200_response.py +87 -0
  70. circle/web3/developer_controlled_wallets/models/sign_developer_typed_data200_response.py +87 -0
  71. circle/web3/developer_controlled_wallets/models/sign_message_for_developer_request.py +91 -0
  72. circle/web3/developer_controlled_wallets/models/sign_message_for_developer_response.py +83 -0
  73. circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_request.py +89 -0
  74. circle/web3/developer_controlled_wallets/models/sign_typed_data_for_developer_response.py +83 -0
  75. circle/web3/developer_controlled_wallets/models/token_response.py +103 -0
  76. circle/web3/developer_controlled_wallets/models/token_standard.py +37 -0
  77. circle/web3/developer_controlled_wallets/models/transaction.py +159 -0
  78. circle/web3/developer_controlled_wallets/models/transaction_state.py +43 -0
  79. circle/web3/developer_controlled_wallets/models/transaction_type.py +36 -0
  80. circle/web3/developer_controlled_wallets/models/update_wallet200_response.py +87 -0
  81. circle/web3/developer_controlled_wallets/models/update_wallet_set200_response.py +87 -0
  82. circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_request.py +83 -0
  83. circle/web3/developer_controlled_wallets/models/update_wallet_set_metadata_response.py +87 -0
  84. circle/web3/developer_controlled_wallets/models/validate_address_request.py +86 -0
  85. circle/web3/developer_controlled_wallets/models/validate_address_response.py +83 -0
  86. circle/web3/developer_controlled_wallets/models/wallet_metadata.py +85 -0
  87. circle/web3/developer_controlled_wallets/models/wallet_response.py +111 -0
  88. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +94 -0
  89. circle/web3/developer_controlled_wallets/models/wallet_state.py +36 -0
  90. circle/web3/developer_controlled_wallets/py.typed +0 -0
  91. circle/web3/developer_controlled_wallets/rest.py +299 -0
  92. circle_developer_controlled_wallets-0.1.0b1.dist-info/METADATA +112 -0
  93. circle_developer_controlled_wallets-0.1.0b1.dist-info/RECORD +95 -0
  94. circle_developer_controlled_wallets-0.1.0b1.dist-info/WHEEL +5 -0
  95. circle_developer_controlled_wallets-0.1.0b1.dist-info/top_level.txt +1 -0
@@ -0,0 +1,87 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+ """
5
+ The version of the OpenAPI document: 1.0
6
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
7
+
8
+ Do not edit the class manually.
9
+ """ # noqa: E501
10
+
11
+
12
+ # import models into model package
13
+ from circle.web3.developer_controlled_wallets.models.abi_parameters_inner import AbiParametersInner
14
+ from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_request import AccelerateTransactionForDeveloperRequest
15
+ from circle.web3.developer_controlled_wallets.models.accelerate_transaction_for_developer_response import AccelerateTransactionForDeveloperResponse
16
+ from circle.web3.developer_controlled_wallets.models.account_type import AccountType
17
+ from circle.web3.developer_controlled_wallets.models.balance import Balance
18
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
19
+ from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer_request import CancelTransactionForDeveloperRequest
20
+ from circle.web3.developer_controlled_wallets.models.cancel_transaction_for_developer_response import CancelTransactionForDeveloperResponse
21
+ from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_request import CreateContractExecutionTransactionForDeveloperRequest
22
+ from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_response import CreateContractExecutionTransactionForDeveloperResponse
23
+ from circle.web3.developer_controlled_wallets.models.create_developer_transaction_accelerate200_response import CreateDeveloperTransactionAccelerate200Response
24
+ from circle.web3.developer_controlled_wallets.models.create_developer_transaction_cancel200_response import CreateDeveloperTransactionCancel200Response
25
+ from circle.web3.developer_controlled_wallets.models.create_developer_transaction_contract_execution200_response import CreateDeveloperTransactionContractExecution200Response
26
+ from circle.web3.developer_controlled_wallets.models.create_developer_transaction_transfer200_response import CreateDeveloperTransactionTransfer200Response
27
+ from circle.web3.developer_controlled_wallets.models.create_developer_wallet200_response import CreateDeveloperWallet200Response
28
+ from circle.web3.developer_controlled_wallets.models.create_developer_wallet_request import CreateDeveloperWalletRequest
29
+ from circle.web3.developer_controlled_wallets.models.create_developer_wallet_response import CreateDeveloperWalletResponse
30
+ from circle.web3.developer_controlled_wallets.models.create_developer_wallet_set_request import CreateDeveloperWalletSetRequest
31
+ from circle.web3.developer_controlled_wallets.models.create_developer_wallet_set_response import CreateDeveloperWalletSetResponse
32
+ from circle.web3.developer_controlled_wallets.models.create_transfer_estimate_fee200_response import CreateTransferEstimateFee200Response
33
+ from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_request import CreateTransferTransactionForDeveloperRequest
34
+ from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response import CreateTransferTransactionForDeveloperResponse
35
+ from circle.web3.developer_controlled_wallets.models.create_validate_address200_response import CreateValidateAddress200Response
36
+ from circle.web3.developer_controlled_wallets.models.create_wallet_set200_response import CreateWalletSet200Response
37
+ from circle.web3.developer_controlled_wallets.models.custody_type import CustodyType
38
+ from circle.web3.developer_controlled_wallets.models.error import Error
39
+ from circle.web3.developer_controlled_wallets.models.estimate_contract_execution_transaction_fee_request import EstimateContractExecutionTransactionFeeRequest
40
+ from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee_response import EstimateTransactionFeeResponse
41
+ from circle.web3.developer_controlled_wallets.models.estimate_transfer_transaction_fee_request import EstimateTransferTransactionFeeRequest
42
+ from circle.web3.developer_controlled_wallets.models.estimated_transaction_fee import EstimatedTransactionFee
43
+ from circle.web3.developer_controlled_wallets.models.ext_get_all_wallets_response import ExtGetAllWalletsResponse
44
+ from circle.web3.developer_controlled_wallets.models.ext_get_wallet_by_id_response import ExtGetWalletByIDResponse
45
+ from circle.web3.developer_controlled_wallets.models.ext_update_wallet_metadata_request import ExtUpdateWalletMetadataRequest
46
+ from circle.web3.developer_controlled_wallets.models.ext_wallet_response import ExtWalletResponse
47
+ from circle.web3.developer_controlled_wallets.models.ext_wallet_response_wallet import ExtWalletResponseWallet
48
+ from circle.web3.developer_controlled_wallets.models.fee_level import FeeLevel
49
+ from circle.web3.developer_controlled_wallets.models.get_balances_response import GetBalancesResponse
50
+ from circle.web3.developer_controlled_wallets.models.get_nfts_response import GetNftsResponse
51
+ from circle.web3.developer_controlled_wallets.models.get_token_by_id_response import GetTokenByIDResponse
52
+ from circle.web3.developer_controlled_wallets.models.get_token_id200_response import GetTokenId200Response
53
+ from circle.web3.developer_controlled_wallets.models.get_transaction200_response import GetTransaction200Response
54
+ from circle.web3.developer_controlled_wallets.models.get_transaction_by_id_response import GetTransactionByIDResponse
55
+ from circle.web3.developer_controlled_wallets.models.get_transactions_response import GetTransactionsResponse
56
+ from circle.web3.developer_controlled_wallets.models.get_wallet200_response import GetWallet200Response
57
+ from circle.web3.developer_controlled_wallets.models.get_wallet_set200_response import GetWalletSet200Response
58
+ from circle.web3.developer_controlled_wallets.models.get_wallet_set_by_id_response import GetWalletSetByIDResponse
59
+ from circle.web3.developer_controlled_wallets.models.get_wallet_sets_response import GetWalletSetsResponse
60
+ from circle.web3.developer_controlled_wallets.models.list_transactions200_response import ListTransactions200Response
61
+ from circle.web3.developer_controlled_wallets.models.list_wallet_ballance200_response import ListWalletBallance200Response
62
+ from circle.web3.developer_controlled_wallets.models.list_wallet_nfts200_response import ListWalletNfts200Response
63
+ from circle.web3.developer_controlled_wallets.models.list_wallet_sets200_response import ListWalletSets200Response
64
+ from circle.web3.developer_controlled_wallets.models.list_wallets200_response import ListWallets200Response
65
+ from circle.web3.developer_controlled_wallets.models.nft import Nft
66
+ from circle.web3.developer_controlled_wallets.models.operation import Operation
67
+ from circle.web3.developer_controlled_wallets.models.sign_developer_message200_response import SignDeveloperMessage200Response
68
+ from circle.web3.developer_controlled_wallets.models.sign_developer_typed_data200_response import SignDeveloperTypedData200Response
69
+ from circle.web3.developer_controlled_wallets.models.sign_message_for_developer_request import SignMessageForDeveloperRequest
70
+ from circle.web3.developer_controlled_wallets.models.sign_message_for_developer_response import SignMessageForDeveloperResponse
71
+ from circle.web3.developer_controlled_wallets.models.sign_typed_data_for_developer_request import SignTypedDataForDeveloperRequest
72
+ from circle.web3.developer_controlled_wallets.models.sign_typed_data_for_developer_response import SignTypedDataForDeveloperResponse
73
+ from circle.web3.developer_controlled_wallets.models.token_response import TokenResponse
74
+ from circle.web3.developer_controlled_wallets.models.token_standard import TokenStandard
75
+ from circle.web3.developer_controlled_wallets.models.transaction import Transaction
76
+ from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
77
+ from circle.web3.developer_controlled_wallets.models.transaction_type import TransactionType
78
+ from circle.web3.developer_controlled_wallets.models.update_wallet200_response import UpdateWallet200Response
79
+ from circle.web3.developer_controlled_wallets.models.update_wallet_set200_response import UpdateWalletSet200Response
80
+ from circle.web3.developer_controlled_wallets.models.update_wallet_set_metadata_request import UpdateWalletSetMetadataRequest
81
+ from circle.web3.developer_controlled_wallets.models.update_wallet_set_metadata_response import UpdateWalletSetMetadataResponse
82
+ from circle.web3.developer_controlled_wallets.models.validate_address_request import ValidateAddressRequest
83
+ from circle.web3.developer_controlled_wallets.models.validate_address_response import ValidateAddressResponse
84
+ from circle.web3.developer_controlled_wallets.models.wallet_metadata import WalletMetadata
85
+ from circle.web3.developer_controlled_wallets.models.wallet_response import WalletResponse
86
+ from circle.web3.developer_controlled_wallets.models.wallet_set_response import WalletSetResponse
87
+ from circle.web3.developer_controlled_wallets.models.wallet_state import WalletState
@@ -0,0 +1,168 @@
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
+ from inspect import getfullargspec
13
+ import json
14
+ import pprint
15
+ import re # noqa: F401
16
+
17
+ from typing import Any, List, Optional
18
+ from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, ValidationError, conlist, validator
19
+ from typing import Union, Any, List, TYPE_CHECKING
20
+ from pydantic import StrictStr, Field
21
+
22
+ ABIPARAMETERSINNER_ANY_OF_SCHEMAS = ["List[object]", "bool", "int", "str"]
23
+
24
+ class AbiParametersInner(BaseModel):
25
+ """
26
+ AbiParametersInner
27
+ """
28
+
29
+ # data type: str
30
+ anyof_schema_1_validator: Optional[StrictStr] = None
31
+ # data type: int
32
+ anyof_schema_2_validator: Optional[StrictInt] = None
33
+ # data type: bool
34
+ anyof_schema_3_validator: Optional[StrictBool] = None
35
+ # data type: List[object]
36
+ anyof_schema_4_validator: Optional[conlist(Any)] = None
37
+ if TYPE_CHECKING:
38
+ actual_instance: Union[List[object], bool, int, str]
39
+ else:
40
+ actual_instance: Any
41
+ any_of_schemas: List[str] = Field(ABIPARAMETERSINNER_ANY_OF_SCHEMAS, const=True)
42
+
43
+ class Config:
44
+ validate_assignment = True
45
+
46
+ def __init__(self, *args, **kwargs):
47
+ if args:
48
+ if len(args) > 1:
49
+ raise ValueError("If a position argument is used, only 1 is allowed to set `actual_instance`")
50
+ if kwargs:
51
+ raise ValueError("If a position argument is used, keyword arguments cannot be used.")
52
+ super().__init__(actual_instance=args[0])
53
+ else:
54
+ super().__init__(**kwargs)
55
+
56
+ @validator('actual_instance')
57
+ def actual_instance_must_validate_anyof(cls, v):
58
+ instance = AbiParametersInner.construct()
59
+ error_messages = []
60
+ # validate data type: str
61
+ try:
62
+ instance.anyof_schema_1_validator = v
63
+ return v
64
+ except (ValidationError, ValueError) as e:
65
+ error_messages.append(str(e))
66
+ # validate data type: int
67
+ try:
68
+ instance.anyof_schema_2_validator = v
69
+ return v
70
+ except (ValidationError, ValueError) as e:
71
+ error_messages.append(str(e))
72
+ # validate data type: bool
73
+ try:
74
+ instance.anyof_schema_3_validator = v
75
+ return v
76
+ except (ValidationError, ValueError) as e:
77
+ error_messages.append(str(e))
78
+ # validate data type: List[object]
79
+ try:
80
+ instance.anyof_schema_4_validator = v
81
+ return v
82
+ except (ValidationError, ValueError) as e:
83
+ error_messages.append(str(e))
84
+ if error_messages:
85
+ # no match
86
+ raise ValueError("No match found when setting the actual_instance in AbiParametersInner with anyOf schemas: List[object], bool, int, str. Details: " + ", ".join(error_messages))
87
+ else:
88
+ return v
89
+
90
+ @classmethod
91
+ def from_dict(cls, obj: dict) -> AbiParametersInner:
92
+ return cls.from_json(json.dumps(obj))
93
+
94
+ @classmethod
95
+ def from_json(cls, json_str: str) -> AbiParametersInner:
96
+ """Returns the object represented by the json string"""
97
+ instance = AbiParametersInner.construct()
98
+ error_messages = []
99
+ # deserialize data into str
100
+ try:
101
+ # validation
102
+ instance.anyof_schema_1_validator = json.loads(json_str)
103
+ # assign value to actual_instance
104
+ instance.actual_instance = instance.anyof_schema_1_validator
105
+ return instance
106
+ except (ValidationError, ValueError) as e:
107
+ error_messages.append(str(e))
108
+ # deserialize data into int
109
+ try:
110
+ # validation
111
+ instance.anyof_schema_2_validator = json.loads(json_str)
112
+ # assign value to actual_instance
113
+ instance.actual_instance = instance.anyof_schema_2_validator
114
+ return instance
115
+ except (ValidationError, ValueError) as e:
116
+ error_messages.append(str(e))
117
+ # deserialize data into bool
118
+ try:
119
+ # validation
120
+ instance.anyof_schema_3_validator = json.loads(json_str)
121
+ # assign value to actual_instance
122
+ instance.actual_instance = instance.anyof_schema_3_validator
123
+ return instance
124
+ except (ValidationError, ValueError) as e:
125
+ error_messages.append(str(e))
126
+ # deserialize data into List[object]
127
+ try:
128
+ # validation
129
+ instance.anyof_schema_4_validator = json.loads(json_str)
130
+ # assign value to actual_instance
131
+ instance.actual_instance = instance.anyof_schema_4_validator
132
+ return instance
133
+ except (ValidationError, ValueError) as e:
134
+ error_messages.append(str(e))
135
+
136
+ if error_messages:
137
+ # no match
138
+ raise ValueError("No match found when deserializing the JSON string into AbiParametersInner with anyOf schemas: List[object], bool, int, str. Details: " + ", ".join(error_messages))
139
+ else:
140
+ return instance
141
+
142
+ def to_json(self) -> str:
143
+ """Returns the JSON representation of the actual instance"""
144
+ if self.actual_instance is None:
145
+ return "null"
146
+
147
+ to_json = getattr(self.actual_instance, "to_json", None)
148
+ if callable(to_json):
149
+ return self.actual_instance.to_json()
150
+ else:
151
+ return json.dumps(self.actual_instance)
152
+
153
+ def to_dict(self) -> dict:
154
+ """Returns the dict representation of the actual instance"""
155
+ if self.actual_instance is None:
156
+ return "null"
157
+
158
+ to_json = getattr(self.actual_instance, "to_json", None)
159
+ if callable(to_json):
160
+ return self.actual_instance.to_dict()
161
+ else:
162
+ return json.dumps(self.actual_instance)
163
+
164
+ def to_str(self) -> str:
165
+ """Returns the string representation of the actual instance"""
166
+ return pprint.pformat(self.dict())
167
+
168
+
@@ -0,0 +1,85 @@
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 Union
18
+ from pydantic import BaseModel, Field, StrictBytes, StrictStr
19
+
20
+ class AccelerateTransactionForDeveloperRequest(BaseModel):
21
+ """
22
+ AccelerateTransactionForDeveloperRequest
23
+ """
24
+ idempotency_key: StrictStr = Field(..., alias="idempotencyKey", description="Universally unique identifier (UUID v4) idempotency key. This key is utilized to ensure exactly-once execution of mutating requests. To create a UUIDv4 go to [uuidgenerator.net](https://www.uuidgenerator.net). If the same key is reused, it will be treated as the same request and the original response will be returned.")
25
+ entity_secret_ciphertext: Union[StrictBytes, StrictStr] = Field(..., alias="entitySecretCiphertext", description="A base64 string expression of the entity secret ciphertext. The entity secret should be encrypted by the entity public key. Circle mandates that the entity secret ciphertext is unique for each API request. ")
26
+ __properties = ["idempotencyKey", "entitySecretCiphertext"]
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) -> AccelerateTransactionForDeveloperRequest:
52
+ """Create an instance of AccelerateTransactionForDeveloperRequest 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
+ return _dict
62
+
63
+ @classmethod
64
+ def from_dict(cls, obj: dict) -> AccelerateTransactionForDeveloperRequest:
65
+ """Create an instance of AccelerateTransactionForDeveloperRequest from a dict"""
66
+ if obj is None:
67
+ return None
68
+
69
+ if not isinstance(obj, dict):
70
+ return AccelerateTransactionForDeveloperRequest.parse_obj(obj)
71
+
72
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
73
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
74
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
75
+
76
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
77
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
78
+
79
+ _obj = AccelerateTransactionForDeveloperRequest.parse_obj({
80
+ "idempotency_key": obj.get("idempotencyKey"),
81
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
82
+ })
83
+ return _obj
84
+
85
+
@@ -0,0 +1,83 @@
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, Field, StrictStr
19
+
20
+ class AccelerateTransactionForDeveloperResponse(BaseModel):
21
+ """
22
+ AccelerateTransactionForDeveloperResponse
23
+ """
24
+ id: Optional[StrictStr] = Field(None, description="Unique system generated identifier of the resource.")
25
+ __properties = ["id"]
26
+
27
+ def __init__(self, **kwargs):
28
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
29
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
30
+
31
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
32
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
33
+ super().__init__(**kwargs)
34
+
35
+
36
+ class Config:
37
+ """Pydantic configuration"""
38
+ allow_population_by_field_name = True
39
+ validate_assignment = True
40
+
41
+ def to_str(self) -> str:
42
+ """Returns the string representation of the model using alias"""
43
+ return pprint.pformat(self.dict(by_alias=True))
44
+
45
+ def to_json(self) -> str:
46
+ """Returns the JSON representation of the model using alias"""
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> AccelerateTransactionForDeveloperResponse:
51
+ """Create an instance of AccelerateTransactionForDeveloperResponse from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self):
55
+ """Returns the dictionary representation of the model using alias"""
56
+ _dict = self.dict(by_alias=True,
57
+ exclude={
58
+ },
59
+ exclude_none=True)
60
+ return _dict
61
+
62
+ @classmethod
63
+ def from_dict(cls, obj: dict) -> AccelerateTransactionForDeveloperResponse:
64
+ """Create an instance of AccelerateTransactionForDeveloperResponse from a dict"""
65
+ if obj is None:
66
+ return None
67
+
68
+ if not isinstance(obj, dict):
69
+ return AccelerateTransactionForDeveloperResponse.parse_obj(obj)
70
+
71
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
72
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
73
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
74
+
75
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
76
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
77
+
78
+ _obj = AccelerateTransactionForDeveloperResponse.parse_obj({
79
+ "id": obj.get("id")
80
+ })
81
+ return _obj
82
+
83
+
@@ -0,0 +1,36 @@
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 AccountType(str, Enum):
21
+ """
22
+ An Account can be a Smart Contract Account (SCA) or an Externally Owned Account (EOA). To learn more about account types and the differences between the two, see the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). If an account type is not specified during the creation of a wallet, it will default to `EOA` (Externally Owned Account).
23
+ """
24
+
25
+ """
26
+ allowed enum values
27
+ """
28
+ SCA = 'SCA'
29
+ EOA = 'EOA'
30
+
31
+ @classmethod
32
+ def from_json(cls, json_str: str) -> AccountType:
33
+ """Create an instance of AccountType from a JSON string"""
34
+ return AccountType(json.loads(json_str))
35
+
36
+
@@ -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
+ from datetime import datetime
17
+
18
+ from pydantic import BaseModel, Field, StrictStr
19
+ from circle.web3.developer_controlled_wallets.models.token_response import TokenResponse
20
+
21
+ class Balance(BaseModel):
22
+ """
23
+ Balance
24
+ """
25
+ amount: StrictStr = Field(..., description="List of token balances for each token on the wallet(s).")
26
+ token: TokenResponse = Field(...)
27
+ update_date: datetime = Field(..., alias="updateDate", description="Last update date of the resource. ISO-8601 UTC date/time.")
28
+ __properties = ["amount", "token", "updateDate"]
29
+
30
+ def __init__(self, **kwargs):
31
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
32
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
33
+
34
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
35
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
36
+ super().__init__(**kwargs)
37
+
38
+
39
+ class Config:
40
+ """Pydantic configuration"""
41
+ allow_population_by_field_name = True
42
+ validate_assignment = True
43
+
44
+ def to_str(self) -> str:
45
+ """Returns the string representation of the model using alias"""
46
+ return pprint.pformat(self.dict(by_alias=True))
47
+
48
+ def to_json(self) -> str:
49
+ """Returns the JSON representation of the model using alias"""
50
+ return json.dumps(self.to_dict())
51
+
52
+ @classmethod
53
+ def from_json(cls, json_str: str) -> Balance:
54
+ """Create an instance of Balance from a JSON string"""
55
+ return cls.from_dict(json.loads(json_str))
56
+
57
+ def to_dict(self):
58
+ """Returns the dictionary representation of the model using alias"""
59
+ _dict = self.dict(by_alias=True,
60
+ exclude={
61
+ },
62
+ exclude_none=True)
63
+ # override the default output from pydantic by calling `to_dict()` of token
64
+ if self.token:
65
+ _dict['token'] = self.token.to_dict()
66
+ return _dict
67
+
68
+ @classmethod
69
+ def from_dict(cls, obj: dict) -> Balance:
70
+ """Create an instance of Balance from a dict"""
71
+ if obj is None:
72
+ return None
73
+
74
+ if not isinstance(obj, dict):
75
+ return Balance.parse_obj(obj)
76
+
77
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
78
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
79
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
80
+
81
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
82
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
83
+
84
+ _obj = Balance.parse_obj({
85
+ "amount": obj.get("amount"),
86
+ "token": TokenResponse.from_dict(obj.get("token")) if obj.get("token") is not None else None,
87
+ "update_date": obj.get("updateDate")
88
+ })
89
+ return _obj
90
+
91
+
@@ -0,0 +1,40 @@
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 Blockchain(str, Enum):
21
+ """
22
+ The blockchain network the resource will be created on or is currently on.
23
+ """
24
+
25
+ """
26
+ allowed enum values
27
+ """
28
+ ETH = 'ETH'
29
+ ETH_MINUS_SEPOLIA = 'ETH-SEPOLIA'
30
+ AVAX = 'AVAX'
31
+ AVAX_MINUS_FUJI = 'AVAX-FUJI'
32
+ MATIC = 'MATIC'
33
+ MATIC_MINUS_AMOY = 'MATIC-AMOY'
34
+
35
+ @classmethod
36
+ def from_json(cls, json_str: str) -> Blockchain:
37
+ """Create an instance of Blockchain from a JSON string"""
38
+ return Blockchain(json.loads(json_str))
39
+
40
+