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,103 @@
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
+ from circle.web3.developer_controlled_wallets.models.estimated_transaction_fee import EstimatedTransactionFee
20
+
21
+ class EstimateTransactionFeeResponse(BaseModel):
22
+ """
23
+ EstimateTransactionFeeResponse
24
+ """
25
+ high: Optional[EstimatedTransactionFee] = None
26
+ low: Optional[EstimatedTransactionFee] = None
27
+ medium: Optional[EstimatedTransactionFee] = None
28
+ call_gas_limit: Optional[StrictStr] = Field(None, alias="callGasLimit", description="One of ERC-4337 gas fields. The amount of gas to allocate for the main execution call. Only in smart contract account estimation response.")
29
+ verification_gas_limit: Optional[StrictStr] = Field(None, alias="verificationGasLimit", description="One of ERC-4337 gas fields. The amount of gas to allocate for the verification step. Only in smart contract account estimation response.")
30
+ pre_verification_gas: Optional[StrictStr] = Field(None, alias="preVerificationGas", description="One of ERC-4337 gas fields. The amount of gas to pay to compensate the bundler for pre-verification execution and call data. Only in smart contract account estimation response.")
31
+ __properties = ["high", "low", "medium", "callGasLimit", "verificationGasLimit", "preVerificationGas"]
32
+
33
+ def __init__(self, **kwargs):
34
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
35
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
36
+
37
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
38
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
39
+ super().__init__(**kwargs)
40
+
41
+
42
+ class Config:
43
+ """Pydantic configuration"""
44
+ allow_population_by_field_name = True
45
+ validate_assignment = True
46
+
47
+ def to_str(self) -> str:
48
+ """Returns the string representation of the model using alias"""
49
+ return pprint.pformat(self.dict(by_alias=True))
50
+
51
+ def to_json(self) -> str:
52
+ """Returns the JSON representation of the model using alias"""
53
+ return json.dumps(self.to_dict())
54
+
55
+ @classmethod
56
+ def from_json(cls, json_str: str) -> EstimateTransactionFeeResponse:
57
+ """Create an instance of EstimateTransactionFeeResponse from a JSON string"""
58
+ return cls.from_dict(json.loads(json_str))
59
+
60
+ def to_dict(self):
61
+ """Returns the dictionary representation of the model using alias"""
62
+ _dict = self.dict(by_alias=True,
63
+ exclude={
64
+ },
65
+ exclude_none=True)
66
+ # override the default output from pydantic by calling `to_dict()` of high
67
+ if self.high:
68
+ _dict['high'] = self.high.to_dict()
69
+ # override the default output from pydantic by calling `to_dict()` of low
70
+ if self.low:
71
+ _dict['low'] = self.low.to_dict()
72
+ # override the default output from pydantic by calling `to_dict()` of medium
73
+ if self.medium:
74
+ _dict['medium'] = self.medium.to_dict()
75
+ return _dict
76
+
77
+ @classmethod
78
+ def from_dict(cls, obj: dict) -> EstimateTransactionFeeResponse:
79
+ """Create an instance of EstimateTransactionFeeResponse from a dict"""
80
+ if obj is None:
81
+ return None
82
+
83
+ if not isinstance(obj, dict):
84
+ return EstimateTransactionFeeResponse.parse_obj(obj)
85
+
86
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
87
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
88
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
89
+
90
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
91
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
92
+
93
+ _obj = EstimateTransactionFeeResponse.parse_obj({
94
+ "high": EstimatedTransactionFee.from_dict(obj.get("high")) if obj.get("high") is not None else None,
95
+ "low": EstimatedTransactionFee.from_dict(obj.get("low")) if obj.get("low") is not None else None,
96
+ "medium": EstimatedTransactionFee.from_dict(obj.get("medium")) if obj.get("medium") is not None else None,
97
+ "call_gas_limit": obj.get("callGasLimit"),
98
+ "verification_gas_limit": obj.get("verificationGasLimit"),
99
+ "pre_verification_gas": obj.get("preVerificationGas")
100
+ })
101
+ return _obj
102
+
103
+
@@ -0,0 +1,97 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ The version of the OpenAPI document: 1.0
5
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
6
+
7
+ Do not edit the class manually.
8
+ """ # noqa: E501
9
+
10
+
11
+ from __future__ import annotations
12
+ import pprint
13
+ import re # noqa: F401
14
+ import json
15
+
16
+
17
+ from typing import List, Optional
18
+ from pydantic import BaseModel, Field, StrictStr, conlist
19
+
20
+ class EstimateTransferTransactionFeeRequest(BaseModel):
21
+ """
22
+ EstimateTransferTransactionFeeRequest
23
+ """
24
+ amounts: conlist(StrictStr, min_items=1) = Field(..., 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).")
25
+ destination_address: StrictStr = Field(..., alias="destinationAddress", description="The destination blockchain address for the transaction.")
26
+ nft_token_ids: Optional[conlist(StrictStr)] = Field(None, alias="nftTokenIds", description="List of NFT token IDs corresponding with the NFTs to transfer. Batch transfers are supported only for ERC-1155 tokens. The length of NFT token IDs must match the length of amounts.")
27
+ source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="The source blockchain address of the transaction. Required if you don't provide `walletId`. The `sourceAddress` and `walletId` fields are mutually exclusive.")
28
+ token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
29
+ token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain address of the transferred token. Empty for native tokens. Excluded with `tokenId`.")
30
+ blockchain: Optional[StrictStr] = Field(None, description="Blockchain of the transferred token. Required if tokenId is not provided. Excluded with `tokenId`.")
31
+ 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.")
32
+ __properties = ["amounts", "destinationAddress", "nftTokenIds", "sourceAddress", "tokenId", "tokenAddress", "blockchain", "walletId"]
33
+
34
+ def __init__(self, **kwargs):
35
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
36
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
37
+
38
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
39
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
40
+ super().__init__(**kwargs)
41
+
42
+
43
+ class Config:
44
+ """Pydantic configuration"""
45
+ allow_population_by_field_name = True
46
+ validate_assignment = True
47
+
48
+ def to_str(self) -> str:
49
+ """Returns the string representation of the model using alias"""
50
+ return pprint.pformat(self.dict(by_alias=True))
51
+
52
+ def to_json(self) -> str:
53
+ """Returns the JSON representation of the model using alias"""
54
+ return json.dumps(self.to_dict())
55
+
56
+ @classmethod
57
+ def from_json(cls, json_str: str) -> EstimateTransferTransactionFeeRequest:
58
+ """Create an instance of EstimateTransferTransactionFeeRequest from a JSON string"""
59
+ return cls.from_dict(json.loads(json_str))
60
+
61
+ def to_dict(self):
62
+ """Returns the dictionary representation of the model using alias"""
63
+ _dict = self.dict(by_alias=True,
64
+ exclude={
65
+ },
66
+ exclude_none=True)
67
+ return _dict
68
+
69
+ @classmethod
70
+ def from_dict(cls, obj: dict) -> EstimateTransferTransactionFeeRequest:
71
+ """Create an instance of EstimateTransferTransactionFeeRequest from a dict"""
72
+ if obj is None:
73
+ return None
74
+
75
+ if not isinstance(obj, dict):
76
+ return EstimateTransferTransactionFeeRequest.parse_obj(obj)
77
+
78
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
79
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
80
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
81
+
82
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
83
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
84
+
85
+ _obj = EstimateTransferTransactionFeeRequest.parse_obj({
86
+ "amounts": obj.get("amounts"),
87
+ "destination_address": obj.get("destinationAddress"),
88
+ "nft_token_ids": obj.get("nftTokenIds"),
89
+ "source_address": obj.get("sourceAddress"),
90
+ "token_id": obj.get("tokenId"),
91
+ "token_address": obj.get("tokenAddress"),
92
+ "blockchain": obj.get("blockchain"),
93
+ "wallet_id": obj.get("walletId")
94
+ })
95
+ return _obj
96
+
97
+
@@ -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 Optional
18
+ from pydantic import BaseModel, Field, StrictStr
19
+
20
+ class EstimatedTransactionFee(BaseModel):
21
+ """
22
+ EstimatedTransactionFee
23
+ """
24
+ gas_limit: Optional[StrictStr] = Field(None, alias="gasLimit", description="The estimated units of gas to use for the transaction. ")
25
+ gas_price: Optional[StrictStr] = Field(None, alias="gasPrice", description="For blockchains without EIP-1559 support, the estimated maximum gas price, in gwei. ")
26
+ max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the estimated maximum price per unit of gas (see `gasLimit`), in gwei. ")
27
+ priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the estimated “tip”, in gwei, to add to the base fee as an incentive for validators. ")
28
+ base_fee: Optional[StrictStr] = Field(None, alias="baseFee", description="For blockchains with EIP-1559 support, the estimated base fee represents the minimum fee required for a transaction to be included in a block on the blockchain. It is measured in gwei and compensates for the computational resources validators consume to process the transaction. The base fee is supplemented by a separate \"tip\" called the priority fee, which acts as an extra incentive for validators to prioritize the transaction. The priority fee is added to the base fee to calculate the final transaction fee. ")
29
+ __properties = ["gasLimit", "gasPrice", "maxFee", "priorityFee", "baseFee"]
30
+
31
+ def __init__(self, **kwargs):
32
+ if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
33
+ kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
34
+
35
+ if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
36
+ kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
37
+ super().__init__(**kwargs)
38
+
39
+
40
+ class Config:
41
+ """Pydantic configuration"""
42
+ allow_population_by_field_name = True
43
+ validate_assignment = True
44
+
45
+ def to_str(self) -> str:
46
+ """Returns the string representation of the model using alias"""
47
+ return pprint.pformat(self.dict(by_alias=True))
48
+
49
+ def to_json(self) -> str:
50
+ """Returns the JSON representation of the model using alias"""
51
+ return json.dumps(self.to_dict())
52
+
53
+ @classmethod
54
+ def from_json(cls, json_str: str) -> EstimatedTransactionFee:
55
+ """Create an instance of EstimatedTransactionFee from a JSON string"""
56
+ return cls.from_dict(json.loads(json_str))
57
+
58
+ def to_dict(self):
59
+ """Returns the dictionary representation of the model using alias"""
60
+ _dict = self.dict(by_alias=True,
61
+ exclude={
62
+ },
63
+ exclude_none=True)
64
+ return _dict
65
+
66
+ @classmethod
67
+ def from_dict(cls, obj: dict) -> EstimatedTransactionFee:
68
+ """Create an instance of EstimatedTransactionFee from a dict"""
69
+ if obj is None:
70
+ return None
71
+
72
+ if not isinstance(obj, dict):
73
+ return EstimatedTransactionFee.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 = EstimatedTransactionFee.parse_obj({
83
+ "gas_limit": obj.get("gasLimit"),
84
+ "gas_price": obj.get("gasPrice"),
85
+ "max_fee": obj.get("maxFee"),
86
+ "priority_fee": obj.get("priorityFee"),
87
+ "base_fee": obj.get("baseFee")
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.wallet_response import WalletResponse
20
+
21
+ class ExtGetAllWalletsResponse(BaseModel):
22
+ """
23
+ ExtGetAllWalletsResponse
24
+ """
25
+ wallets: Optional[conlist(WalletResponse)] = None
26
+ __properties = ["wallets"]
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) -> ExtGetAllWalletsResponse:
52
+ """Create an instance of ExtGetAllWalletsResponse 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 wallets (list)
62
+ _items = []
63
+ if self.wallets:
64
+ for _item in self.wallets:
65
+ if _item:
66
+ _items.append(_item.to_dict())
67
+ _dict['wallets'] = _items
68
+ return _dict
69
+
70
+ @classmethod
71
+ def from_dict(cls, obj: dict) -> ExtGetAllWalletsResponse:
72
+ """Create an instance of ExtGetAllWalletsResponse from a dict"""
73
+ if obj is None:
74
+ return None
75
+
76
+ if not isinstance(obj, dict):
77
+ return ExtGetAllWalletsResponse.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 = ExtGetAllWalletsResponse.parse_obj({
87
+ "wallets": [WalletResponse.from_dict(_item) for _item in obj.get("wallets")] if obj.get("wallets") 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.wallet_response import WalletResponse
20
+
21
+ class ExtGetWalletByIDResponse(BaseModel):
22
+ """
23
+ ExtGetWalletByIDResponse
24
+ """
25
+ wallet: Optional[WalletResponse] = None
26
+ __properties = ["wallet"]
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) -> ExtGetWalletByIDResponse:
52
+ """Create an instance of ExtGetWalletByIDResponse 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 wallet
62
+ if self.wallet:
63
+ _dict['wallet'] = self.wallet.to_dict()
64
+ return _dict
65
+
66
+ @classmethod
67
+ def from_dict(cls, obj: dict) -> ExtGetWalletByIDResponse:
68
+ """Create an instance of ExtGetWalletByIDResponse from a dict"""
69
+ if obj is None:
70
+ return None
71
+
72
+ if not isinstance(obj, dict):
73
+ return ExtGetWalletByIDResponse.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 = ExtGetWalletByIDResponse.parse_obj({
83
+ "wallet": WalletResponse.from_dict(obj.get("wallet")) if obj.get("wallet") is not None else None
84
+ })
85
+ return _obj
86
+
87
+
@@ -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 Optional
18
+ from pydantic import BaseModel, Field, StrictStr
19
+
20
+ class ExtUpdateWalletMetadataRequest(BaseModel):
21
+ """
22
+ ExtUpdateWalletMetadataRequest
23
+ """
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="Optional reference or description used to identify the wallet.")
26
+ __properties = ["name", "refId"]
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) -> ExtUpdateWalletMetadataRequest:
52
+ """Create an instance of ExtUpdateWalletMetadataRequest 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) -> ExtUpdateWalletMetadataRequest:
65
+ """Create an instance of ExtUpdateWalletMetadataRequest from a dict"""
66
+ if obj is None:
67
+ return None
68
+
69
+ if not isinstance(obj, dict):
70
+ return ExtUpdateWalletMetadataRequest.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 = ExtUpdateWalletMetadataRequest.parse_obj({
80
+ "name": obj.get("name"),
81
+ "ref_id": obj.get("refId")
82
+ })
83
+ return _obj
84
+
85
+
@@ -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.ext_wallet_response_wallet import ExtWalletResponseWallet
20
+
21
+ class ExtWalletResponse(BaseModel):
22
+ """
23
+ ExtWalletResponse
24
+ """
25
+ wallet: Optional[ExtWalletResponseWallet] = None
26
+ __properties = ["wallet"]
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) -> ExtWalletResponse:
52
+ """Create an instance of ExtWalletResponse 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 wallet
62
+ if self.wallet:
63
+ _dict['wallet'] = self.wallet.to_dict()
64
+ return _dict
65
+
66
+ @classmethod
67
+ def from_dict(cls, obj: dict) -> ExtWalletResponse:
68
+ """Create an instance of ExtWalletResponse from a dict"""
69
+ if obj is None:
70
+ return None
71
+
72
+ if not isinstance(obj, dict):
73
+ return ExtWalletResponse.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 = ExtWalletResponse.parse_obj({
83
+ "wallet": ExtWalletResponseWallet.from_dict(obj.get("wallet")) if obj.get("wallet") is not None else None
84
+ })
85
+ return _obj
86
+
87
+