circle-developer-controlled-wallets 1.1.1__py3-none-any.whl → 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of circle-developer-controlled-wallets might be problematic. Click here for more details.

Files changed (74) hide show
  1. circle/web3/developer_controlled_wallets/__init__.py +40 -33
  2. circle/web3/developer_controlled_wallets/api/signing_api.py +193 -38
  3. circle/web3/developer_controlled_wallets/api/token_lookup_api.py +8 -8
  4. circle/web3/developer_controlled_wallets/api/transactions_api.py +47 -47
  5. circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +14 -14
  6. circle/web3/developer_controlled_wallets/api/wallets_api.py +30 -30
  7. circle/web3/developer_controlled_wallets/api_client.py +1 -1
  8. circle/web3/developer_controlled_wallets/configuration.py +1 -1
  9. circle/web3/developer_controlled_wallets/models/__init__.py +39 -32
  10. circle/web3/developer_controlled_wallets/models/{create_developer_transaction_cancel200_response.py → accelerate_transaction_for_developer.py} +11 -11
  11. circle/web3/developer_controlled_wallets/models/{accelerate_transaction_for_developer_response.py → accelerate_transaction_for_developer_data.py} +8 -8
  12. circle/web3/developer_controlled_wallets/models/balance.py +3 -3
  13. circle/web3/developer_controlled_wallets/models/{wallet_set2.py → balances.py} +11 -11
  14. circle/web3/developer_controlled_wallets/models/{get_balances_response.py → balances_data.py} +8 -8
  15. circle/web3/developer_controlled_wallets/models/base_screening_decision.py +88 -0
  16. circle/web3/developer_controlled_wallets/models/blockchain.py +2 -0
  17. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +87 -0
  18. circle/web3/developer_controlled_wallets/models/{create_developer_transaction_contract_execution200_response.py → create_contract_execution_transaction_for_developer.py} +13 -13
  19. circle/web3/developer_controlled_wallets/models/{create_contract_execution_transaction_for_developer_response.py → create_contract_execution_transaction_for_developer_data.py} +8 -8
  20. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +4 -4
  21. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +4 -4
  22. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +9 -8
  23. circle/web3/developer_controlled_wallets/models/{cancel_transaction_for_developer_response.py → create_transfer_transaction_for_developer_response_data.py} +8 -8
  24. circle/web3/developer_controlled_wallets/models/error.py +3 -3
  25. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +2 -2
  26. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request_blockchain.py +2 -0
  27. circle/web3/developer_controlled_wallets/models/{get_transaction200_response.py → estimate_transaction_fee.py} +13 -13
  28. circle/web3/developer_controlled_wallets/models/{estimate_transaction_fee_response.py → estimate_transaction_fee_data.py} +15 -15
  29. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +1 -1
  30. circle/web3/developer_controlled_wallets/models/fee_level.py +1 -1
  31. circle/web3/developer_controlled_wallets/models/nft.py +5 -5
  32. circle/web3/developer_controlled_wallets/models/{wallet2.py → nfts.py} +11 -11
  33. circle/web3/developer_controlled_wallets/models/{get_nfts_response.py → nfts_data.py} +8 -8
  34. circle/web3/developer_controlled_wallets/models/risk_action.py +38 -0
  35. circle/web3/developer_controlled_wallets/models/risk_category.py +48 -0
  36. circle/web3/developer_controlled_wallets/models/risk_score.py +40 -0
  37. circle/web3/developer_controlled_wallets/models/risk_signal.py +101 -0
  38. circle/web3/developer_controlled_wallets/models/risk_type.py +37 -0
  39. circle/web3/developer_controlled_wallets/models/{sign_message_for_developer_request.py → sign_message_request.py} +9 -9
  40. circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +89 -0
  41. circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +87 -0
  42. circle/web3/developer_controlled_wallets/models/{sign_typed_data_for_developer_response.py → sign_transaction_response_data.py} +13 -11
  43. circle/web3/developer_controlled_wallets/models/{sign_typed_data_for_developer_request.py → sign_typed_data_request.py} +9 -9
  44. circle/web3/developer_controlled_wallets/models/{list_wallet_nfts200_response.py → signature_response.py} +13 -13
  45. circle/web3/developer_controlled_wallets/models/{sign_message_for_developer_response.py → signature_response_data.py} +8 -8
  46. circle/web3/developer_controlled_wallets/models/token.py +103 -0
  47. circle/web3/developer_controlled_wallets/models/token_blockchain.py +2 -0
  48. circle/web3/developer_controlled_wallets/models/token_response.py +9 -25
  49. circle/web3/developer_controlled_wallets/models/{get_token_by_id_response.py → token_response_data.py} +11 -11
  50. circle/web3/developer_controlled_wallets/models/token_standard.py +6 -0
  51. circle/web3/developer_controlled_wallets/models/transaction.py +12 -6
  52. circle/web3/developer_controlled_wallets/models/{estimated_transaction_fee.py → transaction_fee.py} +16 -14
  53. circle/web3/developer_controlled_wallets/models/{list_transactions200_response.py → transaction_response.py} +13 -13
  54. circle/web3/developer_controlled_wallets/models/{get_transaction_by_id_response.py → transaction_response_data.py} +8 -8
  55. circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +98 -0
  56. circle/web3/developer_controlled_wallets/models/{get_token_id200_response.py → transactions.py} +11 -11
  57. circle/web3/developer_controlled_wallets/models/{get_transactions_response.py → transactions_data.py} +8 -8
  58. circle/web3/developer_controlled_wallets/models/{list_wallet_ballance200_response.py → validate_address.py} +13 -13
  59. circle/web3/developer_controlled_wallets/models/{validate_address_response.py → validate_address_data.py} +8 -8
  60. circle/web3/developer_controlled_wallets/models/wallet_response.py +87 -0
  61. circle/web3/developer_controlled_wallets/models/{wallet2_data.py → wallet_response_data.py} +8 -8
  62. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +87 -0
  63. circle/web3/developer_controlled_wallets/models/{wallet_set2_data.py → wallet_set_response_data.py} +8 -8
  64. {circle_developer_controlled_wallets-1.1.1.dist-info → circle_developer_controlled_wallets-2.0.0.dist-info}/METADATA +42 -25
  65. circle_developer_controlled_wallets-2.0.0.dist-info/RECORD +104 -0
  66. {circle_developer_controlled_wallets-1.1.1.dist-info → circle_developer_controlled_wallets-2.0.0.dist-info}/WHEEL +1 -1
  67. circle/web3/developer_controlled_wallets/models/create_developer_transaction_accelerate200_response.py +0 -87
  68. circle/web3/developer_controlled_wallets/models/create_developer_transaction_transfer200_response.py +0 -87
  69. circle/web3/developer_controlled_wallets/models/create_transfer_estimate_fee200_response.py +0 -87
  70. circle/web3/developer_controlled_wallets/models/create_validate_address200_response.py +0 -87
  71. circle/web3/developer_controlled_wallets/models/sign_developer_message200_response.py +0 -87
  72. circle/web3/developer_controlled_wallets/models/sign_developer_typed_data200_response.py +0 -87
  73. circle_developer_controlled_wallets-1.1.1.dist-info/RECORD +0 -97
  74. {circle_developer_controlled_wallets-1.1.1.dist-info → circle_developer_controlled_wallets-2.0.0.dist-info}/top_level.txt +0 -0
@@ -18,9 +18,9 @@ from typing import List, Optional
18
18
  from pydantic import BaseModel, Field, conlist
19
19
  from circle.web3.developer_controlled_wallets.models.balance import Balance
20
20
 
21
- class GetBalancesResponse(BaseModel):
21
+ class BalancesData(BaseModel):
22
22
  """
23
- GetBalancesResponse
23
+ BalancesData
24
24
  """
25
25
  token_balances: Optional[conlist(Balance)] = Field(None, alias="tokenBalances", description="List of token balances for each token on the wallet(s).")
26
26
  __properties = ["tokenBalances"]
@@ -48,8 +48,8 @@ class GetBalancesResponse(BaseModel):
48
48
  return json.dumps(self.to_dict())
49
49
 
50
50
  @classmethod
51
- def from_json(cls, json_str: str) -> GetBalancesResponse:
52
- """Create an instance of GetBalancesResponse from a JSON string"""
51
+ def from_json(cls, json_str: str) -> BalancesData:
52
+ """Create an instance of BalancesData from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self):
@@ -68,13 +68,13 @@ class GetBalancesResponse(BaseModel):
68
68
  return _dict
69
69
 
70
70
  @classmethod
71
- def from_dict(cls, obj: dict) -> GetBalancesResponse:
72
- """Create an instance of GetBalancesResponse from a dict"""
71
+ def from_dict(cls, obj: dict) -> BalancesData:
72
+ """Create an instance of BalancesData from a dict"""
73
73
  if obj is None:
74
74
  return None
75
75
 
76
76
  if not isinstance(obj, dict):
77
- return GetBalancesResponse.parse_obj(obj)
77
+ return BalancesData.parse_obj(obj)
78
78
 
79
79
  # fill idempotency_key and ciphertext with placeholder for auto_fill
80
80
  if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
@@ -83,7 +83,7 @@ class GetBalancesResponse(BaseModel):
83
83
  if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
84
84
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
85
85
 
86
- _obj = GetBalancesResponse.parse_obj({
86
+ _obj = BalancesData.parse_obj({
87
87
  "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
88
88
  })
89
89
  return _obj
@@ -0,0 +1,88 @@
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 List, Optional
18
+ from pydantic import BaseModel, Field, StrictStr, conlist
19
+ from circle.web3.developer_controlled_wallets.models.risk_action import RiskAction
20
+
21
+ class BaseScreeningDecision(BaseModel):
22
+ """
23
+ Screening decision detail about matched rule, actions to take, and all related risk signals.
24
+ """
25
+ rule_name: Optional[StrictStr] = Field(None, alias="ruleName", description="Name of the matched rule found in screening.")
26
+ actions: Optional[conlist(RiskAction)] = Field(None, description="Actions to take for the decision.")
27
+ screening_date: datetime = Field(..., alias="screeningDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
28
+ __properties = ["ruleName", "actions", "screeningDate"]
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) -> BaseScreeningDecision:
54
+ """Create an instance of BaseScreeningDecision 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
+ return _dict
64
+
65
+ @classmethod
66
+ def from_dict(cls, obj: dict) -> BaseScreeningDecision:
67
+ """Create an instance of BaseScreeningDecision from a dict"""
68
+ if obj is None:
69
+ return None
70
+
71
+ if not isinstance(obj, dict):
72
+ return BaseScreeningDecision.parse_obj(obj)
73
+
74
+ # fill idempotency_key and ciphertext with placeholder for auto_fill
75
+ if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
76
+ obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
77
+
78
+ if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
79
+ obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
80
+
81
+ _obj = BaseScreeningDecision.parse_obj({
82
+ "rule_name": obj.get("ruleName"),
83
+ "actions": obj.get("actions"),
84
+ "screening_date": obj.get("screeningDate")
85
+ })
86
+ return _obj
87
+
88
+
@@ -33,6 +33,8 @@ class Blockchain(str, Enum):
33
33
  MATIC_MINUS_AMOY = 'MATIC-AMOY'
34
34
  SOL = 'SOL'
35
35
  SOL_MINUS_DEVNET = 'SOL-DEVNET'
36
+ ARB = 'ARB'
37
+ ARB_MINUS_SEPOLIA = 'ARB-SEPOLIA'
36
38
 
37
39
  @classmethod
38
40
  def from_json(cls, json_str: str) -> Blockchain:
@@ -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
+
18
+ from pydantic import BaseModel, Field
19
+ from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response_data import CreateTransferTransactionForDeveloperResponseData
20
+
21
+ class CancelTransactionForDeveloper(BaseModel):
22
+ """
23
+ CancelTransactionForDeveloper
24
+ """
25
+ data: CreateTransferTransactionForDeveloperResponseData = Field(...)
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) -> CancelTransactionForDeveloper:
52
+ """Create an instance of CancelTransactionForDeveloper 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) -> CancelTransactionForDeveloper:
68
+ """Create an instance of CancelTransactionForDeveloper from a dict"""
69
+ if obj is None:
70
+ return None
71
+
72
+ if not isinstance(obj, dict):
73
+ return CancelTransactionForDeveloper.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 = CancelTransactionForDeveloper.parse_obj({
83
+ "data": CreateTransferTransactionForDeveloperResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
84
+ })
85
+ return _obj
86
+
87
+
@@ -14,15 +14,15 @@ import re # noqa: F401
14
14
  import json
15
15
 
16
16
 
17
- from typing import Optional
18
- from pydantic import BaseModel
19
- from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_response import CreateContractExecutionTransactionForDeveloperResponse
20
17
 
21
- class CreateDeveloperTransactionContractExecution200Response(BaseModel):
18
+ from pydantic import BaseModel, Field
19
+ from circle.web3.developer_controlled_wallets.models.create_contract_execution_transaction_for_developer_data import CreateContractExecutionTransactionForDeveloperData
20
+
21
+ class CreateContractExecutionTransactionForDeveloper(BaseModel):
22
22
  """
23
- CreateDeveloperTransactionContractExecution200Response
23
+ CreateContractExecutionTransactionForDeveloper
24
24
  """
25
- data: Optional[CreateContractExecutionTransactionForDeveloperResponse] = None
25
+ data: CreateContractExecutionTransactionForDeveloperData = Field(...)
26
26
  __properties = ["data"]
27
27
 
28
28
  def __init__(self, **kwargs):
@@ -48,8 +48,8 @@ class CreateDeveloperTransactionContractExecution200Response(BaseModel):
48
48
  return json.dumps(self.to_dict())
49
49
 
50
50
  @classmethod
51
- def from_json(cls, json_str: str) -> CreateDeveloperTransactionContractExecution200Response:
52
- """Create an instance of CreateDeveloperTransactionContractExecution200Response from a JSON string"""
51
+ def from_json(cls, json_str: str) -> CreateContractExecutionTransactionForDeveloper:
52
+ """Create an instance of CreateContractExecutionTransactionForDeveloper from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self):
@@ -64,13 +64,13 @@ class CreateDeveloperTransactionContractExecution200Response(BaseModel):
64
64
  return _dict
65
65
 
66
66
  @classmethod
67
- def from_dict(cls, obj: dict) -> CreateDeveloperTransactionContractExecution200Response:
68
- """Create an instance of CreateDeveloperTransactionContractExecution200Response from a dict"""
67
+ def from_dict(cls, obj: dict) -> CreateContractExecutionTransactionForDeveloper:
68
+ """Create an instance of CreateContractExecutionTransactionForDeveloper from a dict"""
69
69
  if obj is None:
70
70
  return None
71
71
 
72
72
  if not isinstance(obj, dict):
73
- return CreateDeveloperTransactionContractExecution200Response.parse_obj(obj)
73
+ return CreateContractExecutionTransactionForDeveloper.parse_obj(obj)
74
74
 
75
75
  # fill idempotency_key and ciphertext with placeholder for auto_fill
76
76
  if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
@@ -79,8 +79,8 @@ class CreateDeveloperTransactionContractExecution200Response(BaseModel):
79
79
  if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
80
80
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
81
81
 
82
- _obj = CreateDeveloperTransactionContractExecution200Response.parse_obj({
83
- "data": CreateContractExecutionTransactionForDeveloperResponse.from_dict(obj.get("data")) if obj.get("data") is not None else None
82
+ _obj = CreateContractExecutionTransactionForDeveloper.parse_obj({
83
+ "data": CreateContractExecutionTransactionForDeveloperData.from_dict(obj.get("data")) if obj.get("data") is not None else None
84
84
  })
85
85
  return _obj
86
86
 
@@ -18,9 +18,9 @@ import json
18
18
  from pydantic import BaseModel, Field, StrictStr
19
19
  from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
20
20
 
21
- class CreateContractExecutionTransactionForDeveloperResponse(BaseModel):
21
+ class CreateContractExecutionTransactionForDeveloperData(BaseModel):
22
22
  """
23
- CreateContractExecutionTransactionForDeveloperResponse
23
+ CreateContractExecutionTransactionForDeveloperData
24
24
  """
25
25
  id: StrictStr = Field(..., description="Unique system generated identifier of the transaction.")
26
26
  state: TransactionState = Field(...)
@@ -49,8 +49,8 @@ class CreateContractExecutionTransactionForDeveloperResponse(BaseModel):
49
49
  return json.dumps(self.to_dict())
50
50
 
51
51
  @classmethod
52
- def from_json(cls, json_str: str) -> CreateContractExecutionTransactionForDeveloperResponse:
53
- """Create an instance of CreateContractExecutionTransactionForDeveloperResponse from a JSON string"""
52
+ def from_json(cls, json_str: str) -> CreateContractExecutionTransactionForDeveloperData:
53
+ """Create an instance of CreateContractExecutionTransactionForDeveloperData from a JSON string"""
54
54
  return cls.from_dict(json.loads(json_str))
55
55
 
56
56
  def to_dict(self):
@@ -62,13 +62,13 @@ class CreateContractExecutionTransactionForDeveloperResponse(BaseModel):
62
62
  return _dict
63
63
 
64
64
  @classmethod
65
- def from_dict(cls, obj: dict) -> CreateContractExecutionTransactionForDeveloperResponse:
66
- """Create an instance of CreateContractExecutionTransactionForDeveloperResponse from a dict"""
65
+ def from_dict(cls, obj: dict) -> CreateContractExecutionTransactionForDeveloperData:
66
+ """Create an instance of CreateContractExecutionTransactionForDeveloperData from a dict"""
67
67
  if obj is None:
68
68
  return None
69
69
 
70
70
  if not isinstance(obj, dict):
71
- return CreateContractExecutionTransactionForDeveloperResponse.parse_obj(obj)
71
+ return CreateContractExecutionTransactionForDeveloperData.parse_obj(obj)
72
72
 
73
73
  # fill idempotency_key and ciphertext with placeholder for auto_fill
74
74
  if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
@@ -77,7 +77,7 @@ class CreateContractExecutionTransactionForDeveloperResponse(BaseModel):
77
77
  if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
78
78
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
79
79
 
80
- _obj = CreateContractExecutionTransactionForDeveloperResponse.parse_obj({
80
+ _obj = CreateContractExecutionTransactionForDeveloperData.parse_obj({
81
81
  "id": obj.get("id"),
82
82
  "state": obj.get("state")
83
83
  })
@@ -31,10 +31,10 @@ class CreateContractExecutionTransactionForDeveloperRequest(BaseModel):
31
31
  contract_address: StrictStr = Field(..., alias="contractAddress", description="The blockchain address of the contract to be executed.")
32
32
  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. ")
33
33
  fee_level: Optional[FeeLevel] = Field(None, alias="feeLevel")
34
- gas_limit: Optional[StrictStr] = Field(None, alias="gasLimit", description="The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Note that this field is optional for Solana, which defaults to a gas limit of 200,000 micro-lamport. Estimates for this limit can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
35
- gas_price: Optional[StrictStr] = Field(None, alias="gasPrice", description="For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Note that `gasPrice` is not supported for Solana. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
36
- max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the maximum price per unit of gas (see `gasLimit`), in gwei. Requires `priorityFee` and `gasLimit` to be present. Cannot be used with `feeLevel` or `gasPrice`. Note that `maxFee` is not supported for Solana. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
37
- priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. For Solana, the gas fee mechanism is similar to EIP-1559, where you can specify the `priority fee` to incentivize miners to include your transaction in a block. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
34
+ gas_limit: Optional[StrictStr] = Field(None, alias="gasLimit", description="The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the `POST /transactions/transfer/estimateFee` API. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` is required to be greater or equal to `feeLevel` estimation and will override the estimation's gasLimit. ")
35
+ gas_price: Optional[StrictStr] = Field(None, alias="gasPrice", description="For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
36
+ max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the maximum price per unit of gas (see `gasLimit`), in gwei. Requires `priorityFee`, and `gasLimit` to be present. Cannot be used with `feeLevel` or `gasPrice`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
37
+ priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
38
38
  ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the transaction.")
39
39
  wallet_id: StrictStr = Field(..., 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.")
40
40
  __properties = ["idempotencyKey", "abiFunctionSignature", "abiParameters", "callData", "amount", "contractAddress", "entitySecretCiphertext", "feeLevel", "gasLimit", "gasPrice", "maxFee", "priorityFee", "refId", "walletId"]
@@ -28,10 +28,10 @@ class CreateTransferTransactionForDeveloperRequest(BaseModel):
28
28
  destination_address: StrictStr = Field(..., alias="destinationAddress", description="The destination blockchain address for the transaction.")
29
29
  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. ")
30
30
  fee_level: Optional[FeeLevel] = Field(None, alias="feeLevel")
31
- gas_limit: Optional[StrictStr] = Field(None, alias="gasLimit", description="The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Note that this field is optional for Solana, which defaults to a gas limit of 200,000 micro-lamport. Estimates for this limit can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
32
- gas_price: Optional[StrictStr] = Field(None, alias="gasPrice", description="For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Note that `gasPrice` is not supported for Solana. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
33
- max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the maximum price per unit of gas (see `gasLimit`), in gwei. Requires `priorityFee` and `gasLimit` to be present. Cannot be used with `feeLevel` or `gasPrice`. Note that `maxFee` is not supported for Solana. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
34
- priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. For Solana, the gas fee mechanism is similar to EIP-1559, where you can specify the `priority fee` to incentivize miners to include your transaction in a block. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
31
+ gas_limit: Optional[StrictStr] = Field(None, alias="gasLimit", description="The maximum units of gas to use for the transaction. Required if `feeLevel` is not provided. Estimates for this limit can be obtained through the `POST /transactions/transfer/estimateFee` API. GasLimit override (only supported for EOA wallets): Using `gasLimit` together with `feeLevel`, the provided `gasLimit` is required to be greater or equal to `feeLevel` estimation and will override the estimation's gasLimit. ")
32
+ gas_price: Optional[StrictStr] = Field(None, alias="gasPrice", description="For blockchains without EIP-1559 support, the maximum price of gas, in gwei, to use per each unit of gas (see `gasLimit`). Requires `gasLimit`. Cannot be used with `feeLevel`, `priorityFee`, or `maxFee`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
33
+ max_fee: Optional[StrictStr] = Field(None, alias="maxFee", description="For blockchains with EIP-1559 support, the maximum price per unit of gas (see `gasLimit`), in gwei. Requires `priorityFee`, and `gasLimit` to be present. Cannot be used with `feeLevel` or `gasPrice`. Estimates for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
34
+ priority_fee: Optional[StrictStr] = Field(None, alias="priorityFee", description="For blockchains with EIP-1559 support, the “tip”, in gwei, to add to the base fee as an incentive for validators. Please note that the `maxFee` and `gasLimit` parameters are required alongside the `priorityFee`. The `feeLevel` and `gasPrice` parameters cannot be used with the `priorityFee`. Estimations for this fee can be obtained through the `POST /transactions/transfer/estimateFee` API. ")
35
35
  nft_token_ids: Optional[conlist(StrictStr)] = Field(None, alias="nftTokenIds", description="NftTokenIDs specify the nft ID list to be transferred/batchTransferred for NFT withdrawal. Note. Only erc1155 supports safeBatchTransferFrom.")
36
36
  ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the transaction.")
37
37
  token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
@@ -14,17 +14,16 @@ import re # noqa: F401
14
14
  import json
15
15
 
16
16
 
17
-
18
- from pydantic import BaseModel, Field, StrictStr
19
- from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
17
+ from typing import Optional
18
+ from pydantic import BaseModel
19
+ from circle.web3.developer_controlled_wallets.models.create_transfer_transaction_for_developer_response_data import CreateTransferTransactionForDeveloperResponseData
20
20
 
21
21
  class CreateTransferTransactionForDeveloperResponse(BaseModel):
22
22
  """
23
23
  CreateTransferTransactionForDeveloperResponse
24
24
  """
25
- id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
26
- state: TransactionState = Field(...)
27
- __properties = ["id", "state"]
25
+ data: Optional[CreateTransferTransactionForDeveloperResponseData] = None
26
+ __properties = ["data"]
28
27
 
29
28
  def __init__(self, **kwargs):
30
29
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -59,6 +58,9 @@ class CreateTransferTransactionForDeveloperResponse(BaseModel):
59
58
  exclude={
60
59
  },
61
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()
62
64
  return _dict
63
65
 
64
66
  @classmethod
@@ -78,8 +80,7 @@ class CreateTransferTransactionForDeveloperResponse(BaseModel):
78
80
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
79
81
 
80
82
  _obj = CreateTransferTransactionForDeveloperResponse.parse_obj({
81
- "id": obj.get("id"),
82
- "state": obj.get("state")
83
+ "data": CreateTransferTransactionForDeveloperResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
83
84
  })
84
85
  return _obj
85
86
 
@@ -18,9 +18,9 @@ import json
18
18
  from pydantic import BaseModel, Field, StrictStr
19
19
  from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
20
20
 
21
- class CancelTransactionForDeveloperResponse(BaseModel):
21
+ class CreateTransferTransactionForDeveloperResponseData(BaseModel):
22
22
  """
23
- CancelTransactionForDeveloperResponse
23
+ CreateTransferTransactionForDeveloperResponseData
24
24
  """
25
25
  id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
26
26
  state: TransactionState = Field(...)
@@ -49,8 +49,8 @@ class CancelTransactionForDeveloperResponse(BaseModel):
49
49
  return json.dumps(self.to_dict())
50
50
 
51
51
  @classmethod
52
- def from_json(cls, json_str: str) -> CancelTransactionForDeveloperResponse:
53
- """Create an instance of CancelTransactionForDeveloperResponse from a JSON string"""
52
+ def from_json(cls, json_str: str) -> CreateTransferTransactionForDeveloperResponseData:
53
+ """Create an instance of CreateTransferTransactionForDeveloperResponseData from a JSON string"""
54
54
  return cls.from_dict(json.loads(json_str))
55
55
 
56
56
  def to_dict(self):
@@ -62,13 +62,13 @@ class CancelTransactionForDeveloperResponse(BaseModel):
62
62
  return _dict
63
63
 
64
64
  @classmethod
65
- def from_dict(cls, obj: dict) -> CancelTransactionForDeveloperResponse:
66
- """Create an instance of CancelTransactionForDeveloperResponse from a dict"""
65
+ def from_dict(cls, obj: dict) -> CreateTransferTransactionForDeveloperResponseData:
66
+ """Create an instance of CreateTransferTransactionForDeveloperResponseData from a dict"""
67
67
  if obj is None:
68
68
  return None
69
69
 
70
70
  if not isinstance(obj, dict):
71
- return CancelTransactionForDeveloperResponse.parse_obj(obj)
71
+ return CreateTransferTransactionForDeveloperResponseData.parse_obj(obj)
72
72
 
73
73
  # fill idempotency_key and ciphertext with placeholder for auto_fill
74
74
  if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
@@ -77,7 +77,7 @@ class CancelTransactionForDeveloperResponse(BaseModel):
77
77
  if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
78
78
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
79
79
 
80
- _obj = CancelTransactionForDeveloperResponse.parse_obj({
80
+ _obj = CreateTransferTransactionForDeveloperResponseData.parse_obj({
81
81
  "id": obj.get("id"),
82
82
  "state": obj.get("state")
83
83
  })
@@ -14,15 +14,15 @@ import re # noqa: F401
14
14
  import json
15
15
 
16
16
 
17
- from typing import Optional
17
+
18
18
  from pydantic import BaseModel, Field, StrictInt, StrictStr
19
19
 
20
20
  class Error(BaseModel):
21
21
  """
22
22
  Error
23
23
  """
24
- code: Optional[StrictInt] = Field(None, description="Code is the error code")
25
- message: Optional[StrictStr] = Field(None, description="Message is the error message")
24
+ code: StrictInt = Field(..., description="Code that corresponds to the error.")
25
+ message: StrictStr = Field(..., description="Message that describes the error.")
26
26
  __properties = ["code", "message"]
27
27
 
28
28
  def __init__(self, **kwargs):
@@ -29,8 +29,8 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
29
29
  amount: Optional[StrictStr] = Field(None, description="The amount of native token that will be sent to the contract abi execution. Optional field for payable api only, if not provided, no native token will be sent.")
30
30
  blockchain: Optional[EstimateContractExecutionTransactionFeeRequestBlockchain] = None
31
31
  contract_address: StrictStr = Field(..., alias="contractAddress", description="The blockchain address of the contract to be executed.")
32
- 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.")
33
- 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
+ source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="The source address of the transaction.")
33
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
34
34
  __properties = ["abiFunctionSignature", "abiParameters", "callData", "amount", "blockchain", "contractAddress", "sourceAddress", "walletId"]
35
35
 
36
36
  def __init__(self, **kwargs):
@@ -31,6 +31,8 @@ class EstimateContractExecutionTransactionFeeRequestBlockchain(str, Enum):
31
31
  AVAX_MINUS_FUJI = 'AVAX-FUJI'
32
32
  MATIC = 'MATIC'
33
33
  MATIC_MINUS_AMOY = 'MATIC-AMOY'
34
+ ARB = 'ARB'
35
+ ARB_MINUS_SEPOLIA = 'ARB-SEPOLIA'
34
36
 
35
37
  @classmethod
36
38
  def from_json(cls, json_str: str) -> EstimateContractExecutionTransactionFeeRequestBlockchain:
@@ -14,15 +14,15 @@ import re # noqa: F401
14
14
  import json
15
15
 
16
16
 
17
- from typing import Optional
18
- from pydantic import BaseModel
19
- from circle.web3.developer_controlled_wallets.models.get_transaction_by_id_response import GetTransactionByIDResponse
20
17
 
21
- class GetTransaction200Response(BaseModel):
18
+ from pydantic import BaseModel, Field
19
+ from circle.web3.developer_controlled_wallets.models.estimate_transaction_fee_data import EstimateTransactionFeeData
20
+
21
+ class EstimateTransactionFee(BaseModel):
22
22
  """
23
- GetTransaction200Response
23
+ EstimateTransactionFee
24
24
  """
25
- data: Optional[GetTransactionByIDResponse] = None
25
+ data: EstimateTransactionFeeData = Field(...)
26
26
  __properties = ["data"]
27
27
 
28
28
  def __init__(self, **kwargs):
@@ -48,8 +48,8 @@ class GetTransaction200Response(BaseModel):
48
48
  return json.dumps(self.to_dict())
49
49
 
50
50
  @classmethod
51
- def from_json(cls, json_str: str) -> GetTransaction200Response:
52
- """Create an instance of GetTransaction200Response from a JSON string"""
51
+ def from_json(cls, json_str: str) -> EstimateTransactionFee:
52
+ """Create an instance of EstimateTransactionFee from a JSON string"""
53
53
  return cls.from_dict(json.loads(json_str))
54
54
 
55
55
  def to_dict(self):
@@ -64,13 +64,13 @@ class GetTransaction200Response(BaseModel):
64
64
  return _dict
65
65
 
66
66
  @classmethod
67
- def from_dict(cls, obj: dict) -> GetTransaction200Response:
68
- """Create an instance of GetTransaction200Response from a dict"""
67
+ def from_dict(cls, obj: dict) -> EstimateTransactionFee:
68
+ """Create an instance of EstimateTransactionFee from a dict"""
69
69
  if obj is None:
70
70
  return None
71
71
 
72
72
  if not isinstance(obj, dict):
73
- return GetTransaction200Response.parse_obj(obj)
73
+ return EstimateTransactionFee.parse_obj(obj)
74
74
 
75
75
  # fill idempotency_key and ciphertext with placeholder for auto_fill
76
76
  if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
@@ -79,8 +79,8 @@ class GetTransaction200Response(BaseModel):
79
79
  if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
80
80
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
81
81
 
82
- _obj = GetTransaction200Response.parse_obj({
83
- "data": GetTransactionByIDResponse.from_dict(obj.get("data")) if obj.get("data") is not None else None
82
+ _obj = EstimateTransactionFee.parse_obj({
83
+ "data": EstimateTransactionFeeData.from_dict(obj.get("data")) if obj.get("data") is not None else None
84
84
  })
85
85
  return _obj
86
86