circle-developer-controlled-wallets 7.0.0__py3-none-any.whl → 8.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 (89) hide show
  1. circle/web3/developer_controlled_wallets/__init__.py +3 -1
  2. circle/web3/developer_controlled_wallets/api/signing_api.py +6 -6
  3. circle/web3/developer_controlled_wallets/api/transactions_api.py +4 -4
  4. circle/web3/developer_controlled_wallets/api_client.py +1 -1
  5. circle/web3/developer_controlled_wallets/configuration.py +1 -1
  6. circle/web3/developer_controlled_wallets/models/__init__.py +2 -0
  7. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +1 -0
  8. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +1 -0
  9. circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +2 -1
  10. circle/web3/developer_controlled_wallets/models/bad_request_response.py +2 -1
  11. circle/web3/developer_controlled_wallets/models/balance.py +3 -2
  12. circle/web3/developer_controlled_wallets/models/balances.py +1 -0
  13. circle/web3/developer_controlled_wallets/models/balances_data.py +1 -0
  14. circle/web3/developer_controlled_wallets/models/base_screening_decision.py +3 -2
  15. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +1 -0
  16. circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +2 -1
  17. circle/web3/developer_controlled_wallets/models/contract_execution_blockchain.py +1 -1
  18. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +1 -0
  19. circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +23 -15
  20. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +26 -18
  21. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request_blockchain.py +130 -0
  22. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +1 -0
  23. circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +2 -1
  24. circle/web3/developer_controlled_wallets/models/create_wallet_request.py +7 -6
  25. circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +3 -2
  26. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +1 -0
  27. circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +11 -10
  28. circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +1 -0
  29. circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +4 -3
  30. circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +5 -4
  31. circle/web3/developer_controlled_wallets/models/eoa_wallet.py +13 -12
  32. circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +14 -13
  33. circle/web3/developer_controlled_wallets/models/error.py +2 -1
  34. circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -8
  35. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +1 -0
  36. circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +6 -5
  37. circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -8
  38. circle/web3/developer_controlled_wallets/models/nft.py +5 -4
  39. circle/web3/developer_controlled_wallets/models/nfts.py +1 -0
  40. circle/web3/developer_controlled_wallets/models/nfts_data.py +1 -0
  41. circle/web3/developer_controlled_wallets/models/not_authorized_response.py +2 -1
  42. circle/web3/developer_controlled_wallets/models/not_found_response.py +2 -1
  43. circle/web3/developer_controlled_wallets/models/risk_signal.py +5 -4
  44. circle/web3/developer_controlled_wallets/models/sca_wallet.py +14 -13
  45. circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +15 -14
  46. circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +3 -2
  47. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +1 -0
  48. circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +2 -1
  49. circle/web3/developer_controlled_wallets/models/sign_message_request.py +14 -6
  50. circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +14 -6
  51. circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +1 -0
  52. circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +3 -2
  53. circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +13 -5
  54. circle/web3/developer_controlled_wallets/models/signature_response.py +1 -0
  55. circle/web3/developer_controlled_wallets/models/signature_response_data.py +1 -0
  56. circle/web3/developer_controlled_wallets/models/token.py +10 -9
  57. circle/web3/developer_controlled_wallets/models/token_response.py +1 -0
  58. circle/web3/developer_controlled_wallets/models/token_response_data.py +1 -0
  59. circle/web3/developer_controlled_wallets/models/transaction.py +31 -30
  60. circle/web3/developer_controlled_wallets/models/transaction_fee.py +10 -7
  61. circle/web3/developer_controlled_wallets/models/transaction_response.py +1 -0
  62. circle/web3/developer_controlled_wallets/models/transaction_response_data.py +1 -0
  63. circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +4 -3
  64. circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -0
  65. circle/web3/developer_controlled_wallets/models/transactions.py +1 -0
  66. circle/web3/developer_controlled_wallets/models/transactions_data.py +1 -0
  67. circle/web3/developer_controlled_wallets/models/transfer_blockchain.py +52 -0
  68. circle/web3/developer_controlled_wallets/models/update_wallet_request.py +2 -1
  69. circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +1 -0
  70. circle/web3/developer_controlled_wallets/models/validate_address.py +1 -0
  71. circle/web3/developer_controlled_wallets/models/validate_address_data.py +1 -0
  72. circle/web3/developer_controlled_wallets/models/validate_address_request.py +2 -1
  73. circle/web3/developer_controlled_wallets/models/wallet.py +12 -11
  74. circle/web3/developer_controlled_wallets/models/wallet_metadata.py +2 -1
  75. circle/web3/developer_controlled_wallets/models/wallet_response.py +1 -0
  76. circle/web3/developer_controlled_wallets/models/wallet_response_data.py +1 -0
  77. circle/web3/developer_controlled_wallets/models/wallet_set.py +3 -2
  78. circle/web3/developer_controlled_wallets/models/wallet_set_response.py +1 -0
  79. circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +1 -0
  80. circle/web3/developer_controlled_wallets/models/wallet_sets.py +1 -0
  81. circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +1 -0
  82. circle/web3/developer_controlled_wallets/models/wallets.py +1 -0
  83. circle/web3/developer_controlled_wallets/models/wallets_data.py +1 -0
  84. circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +1 -0
  85. circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +1 -0
  86. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/METADATA +3 -3
  87. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/RECORD +89 -87
  88. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/WHEEL +0 -0
  89. {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/top_level.txt +0 -0
@@ -88,6 +88,7 @@ class CreateWalletUpgradeTransactionForDeveloper(BaseModel):
88
88
 
89
89
  _obj = CreateWalletUpgradeTransactionForDeveloper.parse_obj({
90
90
  "data": CreateTransferTransactionForDeveloperResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -37,7 +37,7 @@ class CreateWalletUpgradeTransactionForDeveloperRequest(BaseModel):
37
37
  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-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. ")
38
38
  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-reference/w3s/developer-controlled-wallets/create-transfer-estimate-fee) API. ")
39
39
  ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the transaction.")
40
- wallet_id: StrictStr = Field(..., alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
40
+ wallet_id: StrictStr = Field(..., alias="walletId", description="Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source. ")
41
41
  __properties = ["idempotencyKey", "newScaCore", "entitySecretCiphertext", "feeLevel", "gasLimit", "gasPrice", "maxFee", "priorityFee", "refId", "walletId"]
42
42
 
43
43
  def __init__(self, **kwargs):
@@ -95,15 +95,16 @@ class CreateWalletUpgradeTransactionForDeveloperRequest(BaseModel):
95
95
 
96
96
  _obj = CreateWalletUpgradeTransactionForDeveloperRequest.parse_obj({
97
97
  "idempotency_key": obj.get("idempotencyKey"),
98
- "new_sca_core": obj.get("newScaCore"),
99
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
100
- "fee_level": obj.get("feeLevel"),
101
- "gas_limit": obj.get("gasLimit"),
102
- "gas_price": obj.get("gasPrice"),
103
- "max_fee": obj.get("maxFee"),
104
- "priority_fee": obj.get("priorityFee"),
105
- "ref_id": obj.get("refId"),
106
- "wallet_id": obj.get("walletId")
98
+ "new_sca_core": obj.get("newScaCore"),
99
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
100
+ "fee_level": obj.get("feeLevel"),
101
+ "gas_limit": obj.get("gasLimit"),
102
+ "gas_price": obj.get("gasPrice"),
103
+ "max_fee": obj.get("maxFee"),
104
+ "priority_fee": obj.get("priorityFee"),
105
+ "ref_id": obj.get("refId"),
106
+ "wallet_id": obj.get("walletId")
107
+
107
108
  })
108
109
  return _obj
109
110
 
@@ -88,6 +88,7 @@ class DeriveWalletRequest(BaseModel):
88
88
 
89
89
  _obj = DeriveWalletRequest.parse_obj({
90
90
  "metadata": WalletMetadata.from_dict(obj.get("metadata")) if obj.get("metadata") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -94,9 +94,10 @@ class DeveloperWalletSet(BaseModel):
94
94
 
95
95
  _obj = DeveloperWalletSet.parse_obj({
96
96
  "id": obj.get("id"),
97
- "create_date": obj.get("createDate"),
98
- "update_date": obj.get("updateDate"),
99
- "custody_type": obj.get("custodyType")
97
+ "create_date": obj.get("createDate"),
98
+ "update_date": obj.get("updateDate"),
99
+ "custody_type": obj.get("custodyType")
100
+
100
101
  })
101
102
  return _obj
102
103
 
@@ -95,10 +95,11 @@ class EndUserWalletSet(BaseModel):
95
95
 
96
96
  _obj = EndUserWalletSet.parse_obj({
97
97
  "id": obj.get("id"),
98
- "create_date": obj.get("createDate"),
99
- "update_date": obj.get("updateDate"),
100
- "custody_type": obj.get("custodyType"),
101
- "user_id": obj.get("userId")
98
+ "create_date": obj.get("createDate"),
99
+ "update_date": obj.get("updateDate"),
100
+ "custody_type": obj.get("custodyType"),
101
+ "user_id": obj.get("userId")
102
+
102
103
  })
103
104
  return _obj
104
105
 
@@ -106,18 +106,19 @@ class EOAWallet(BaseModel):
106
106
 
107
107
  _obj = EOAWallet.parse_obj({
108
108
  "id": obj.get("id"),
109
- "address": obj.get("address"),
110
- "blockchain": obj.get("blockchain"),
111
- "create_date": obj.get("createDate"),
112
- "update_date": obj.get("updateDate"),
113
- "custody_type": obj.get("custodyType"),
114
- "name": obj.get("name"),
115
- "ref_id": obj.get("refId"),
116
- "state": obj.get("state"),
117
- "user_id": obj.get("userId"),
118
- "wallet_set_id": obj.get("walletSetId"),
119
- "initial_public_key": obj.get("initialPublicKey"),
120
- "account_type": obj.get("accountType")
109
+ "address": obj.get("address"),
110
+ "blockchain": obj.get("blockchain"),
111
+ "create_date": obj.get("createDate"),
112
+ "update_date": obj.get("updateDate"),
113
+ "custody_type": obj.get("custodyType"),
114
+ "name": obj.get("name"),
115
+ "ref_id": obj.get("refId"),
116
+ "state": obj.get("state"),
117
+ "user_id": obj.get("userId"),
118
+ "wallet_set_id": obj.get("walletSetId"),
119
+ "initial_public_key": obj.get("initialPublicKey"),
120
+ "account_type": obj.get("accountType")
121
+
121
122
  })
122
123
  return _obj
123
124
 
@@ -115,19 +115,20 @@ class EOAWalletWithBalances(BaseModel):
115
115
 
116
116
  _obj = EOAWalletWithBalances.parse_obj({
117
117
  "id": obj.get("id"),
118
- "address": obj.get("address"),
119
- "blockchain": obj.get("blockchain"),
120
- "create_date": obj.get("createDate"),
121
- "update_date": obj.get("updateDate"),
122
- "custody_type": obj.get("custodyType"),
123
- "name": obj.get("name"),
124
- "ref_id": obj.get("refId"),
125
- "state": obj.get("state"),
126
- "user_id": obj.get("userId"),
127
- "wallet_set_id": obj.get("walletSetId"),
128
- "initial_public_key": obj.get("initialPublicKey"),
129
- "account_type": obj.get("accountType"),
130
- "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
118
+ "address": obj.get("address"),
119
+ "blockchain": obj.get("blockchain"),
120
+ "create_date": obj.get("createDate"),
121
+ "update_date": obj.get("updateDate"),
122
+ "custody_type": obj.get("custodyType"),
123
+ "name": obj.get("name"),
124
+ "ref_id": obj.get("refId"),
125
+ "state": obj.get("state"),
126
+ "user_id": obj.get("userId"),
127
+ "wallet_set_id": obj.get("walletSetId"),
128
+ "initial_public_key": obj.get("initialPublicKey"),
129
+ "account_type": obj.get("accountType"),
130
+ "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
131
+
131
132
  })
132
133
  return _obj
133
134
 
@@ -85,7 +85,8 @@ class Error(BaseModel):
85
85
 
86
86
  _obj = Error.parse_obj({
87
87
  "code": obj.get("code"),
88
- "message": obj.get("message")
88
+ "message": obj.get("message")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -35,7 +35,7 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
35
35
  blockchain: Optional[ContractExecutionBlockchain] = None
36
36
  contract_address: StrictStr = Field(..., alias="contractAddress", description="The blockchain address of the contract to be executed.")
37
37
  source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="Source address of the transaction. Required along with `blockchain` if `walletId` is not provided. The `sourceAddress` and `walletId` fields are mutually exclusive. ")
38
- wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
38
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source. ")
39
39
  __properties = ["abiFunctionSignature", "abiParameters", "callData", "amount", "blockchain", "contractAddress", "sourceAddress", "walletId"]
40
40
 
41
41
  def __init__(self, **kwargs):
@@ -100,13 +100,14 @@ class EstimateContractExecutionTransactionFeeRequest(BaseModel):
100
100
 
101
101
  _obj = EstimateContractExecutionTransactionFeeRequest.parse_obj({
102
102
  "abi_function_signature": obj.get("abiFunctionSignature"),
103
- "abi_parameters": [AbiParametersInner.from_dict(_item) for _item in obj.get("abiParameters")] if obj.get("abiParameters") is not None else None,
104
- "call_data": obj.get("callData"),
105
- "amount": obj.get("amount"),
106
- "blockchain": obj.get("blockchain"),
107
- "contract_address": obj.get("contractAddress"),
108
- "source_address": obj.get("sourceAddress"),
109
- "wallet_id": obj.get("walletId")
103
+ "abi_parameters": [AbiParametersInner.from_dict(_item) for _item in obj.get("abiParameters")] if obj.get("abiParameters") is not None else None,
104
+ "call_data": obj.get("callData"),
105
+ "amount": obj.get("amount"),
106
+ "blockchain": obj.get("blockchain"),
107
+ "contract_address": obj.get("contractAddress"),
108
+ "source_address": obj.get("sourceAddress"),
109
+ "wallet_id": obj.get("walletId")
110
+
110
111
  })
111
112
  return _obj
112
113
 
@@ -88,6 +88,7 @@ class EstimateTransactionFee(BaseModel):
88
88
 
89
89
  _obj = EstimateTransactionFee.parse_obj({
90
90
  "data": EstimateTransactionFeeData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -99,11 +99,12 @@ class EstimateTransactionFeeData(BaseModel):
99
99
 
100
100
  _obj = EstimateTransactionFeeData.parse_obj({
101
101
  "high": TransactionFee.from_dict(obj.get("high")) if obj.get("high") is not None else None,
102
- "low": TransactionFee.from_dict(obj.get("low")) if obj.get("low") is not None else None,
103
- "medium": TransactionFee.from_dict(obj.get("medium")) if obj.get("medium") is not None else None,
104
- "call_gas_limit": obj.get("callGasLimit"),
105
- "verification_gas_limit": obj.get("verificationGasLimit"),
106
- "pre_verification_gas": obj.get("preVerificationGas")
102
+ "low": TransactionFee.from_dict(obj.get("low")) if obj.get("low") is not None else None,
103
+ "medium": TransactionFee.from_dict(obj.get("medium")) if obj.get("medium") is not None else None,
104
+ "call_gas_limit": obj.get("callGasLimit"),
105
+ "verification_gas_limit": obj.get("verificationGasLimit"),
106
+ "pre_verification_gas": obj.get("preVerificationGas")
107
+
107
108
  })
108
109
  return _obj
109
110
 
@@ -34,7 +34,7 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
34
34
  token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System generated identifier of the token. Excluded with `tokenAddress` and `tokenBlockchain`.")
35
35
  token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain address of the transferred token. Empty for native tokens. Excluded with `tokenId`.")
36
36
  blockchain: Optional[TokenBlockchain] = None
37
- wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. Required when `sourceAddress` and `blockchain` are not provided. Mutually exclusive with `sourceAddress` and `blockchain`. For contract deploys this wallet ID will be used as the source. ")
37
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="Unique system generated identifier of the wallet. For contract deploys this wallet ID will be used as the source. ")
38
38
  __properties = ["amounts", "destinationAddress", "nftTokenIds", "sourceAddress", "tokenId", "tokenAddress", "blockchain", "walletId"]
39
39
 
40
40
  def __init__(self, **kwargs):
@@ -92,13 +92,14 @@ class EstimateTransferTransactionFeeRequest(BaseModel):
92
92
 
93
93
  _obj = EstimateTransferTransactionFeeRequest.parse_obj({
94
94
  "amounts": obj.get("amounts"),
95
- "destination_address": obj.get("destinationAddress"),
96
- "nft_token_ids": obj.get("nftTokenIds"),
97
- "source_address": obj.get("sourceAddress"),
98
- "token_id": obj.get("tokenId"),
99
- "token_address": obj.get("tokenAddress"),
100
- "blockchain": obj.get("blockchain"),
101
- "wallet_id": obj.get("walletId")
95
+ "destination_address": obj.get("destinationAddress"),
96
+ "nft_token_ids": obj.get("nftTokenIds"),
97
+ "source_address": obj.get("sourceAddress"),
98
+ "token_id": obj.get("tokenId"),
99
+ "token_address": obj.get("tokenAddress"),
100
+ "blockchain": obj.get("blockchain"),
101
+ "wallet_id": obj.get("walletId")
102
+
102
103
  })
103
104
  return _obj
104
105
 
@@ -92,10 +92,11 @@ class Nft(BaseModel):
92
92
 
93
93
  _obj = Nft.parse_obj({
94
94
  "amount": obj.get("amount"),
95
- "metadata": obj.get("metadata"),
96
- "nft_token_id": obj.get("nftTokenId"),
97
- "token": Token.from_dict(obj.get("token")) if obj.get("token") is not None else None,
98
- "update_date": obj.get("updateDate")
95
+ "metadata": obj.get("metadata"),
96
+ "nft_token_id": obj.get("nftTokenId"),
97
+ "token": Token.from_dict(obj.get("token")) if obj.get("token") is not None else None,
98
+ "update_date": obj.get("updateDate")
99
+
99
100
  })
100
101
  return _obj
101
102
 
@@ -88,6 +88,7 @@ class Nfts(BaseModel):
88
88
 
89
89
  _obj = Nfts.parse_obj({
90
90
  "data": NftsData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -92,6 +92,7 @@ class NftsData(BaseModel):
92
92
 
93
93
  _obj = NftsData.parse_obj({
94
94
  "nfts": [Nft.from_dict(_item) for _item in obj.get("nfts")] if obj.get("nfts") is not None else None
95
+
95
96
  })
96
97
  return _obj
97
98
 
@@ -85,7 +85,8 @@ class NotAuthorizedResponse(BaseModel):
85
85
 
86
86
  _obj = NotAuthorizedResponse.parse_obj({
87
87
  "code": obj.get("code"),
88
- "message": obj.get("message")
88
+ "message": obj.get("message")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -85,7 +85,8 @@ class NotFoundResponse(BaseModel):
85
85
 
86
86
  _obj = NotFoundResponse.parse_obj({
87
87
  "code": obj.get("code"),
88
- "message": obj.get("message")
88
+ "message": obj.get("message")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -98,10 +98,11 @@ class RiskSignal(BaseModel):
98
98
 
99
99
  _obj = RiskSignal.parse_obj({
100
100
  "source": obj.get("source"),
101
- "source_value": obj.get("sourceValue"),
102
- "risk_score": obj.get("riskScore"),
103
- "risk_categories": obj.get("riskCategories"),
104
- "type": obj.get("type")
101
+ "source_value": obj.get("sourceValue"),
102
+ "risk_score": obj.get("riskScore"),
103
+ "risk_categories": obj.get("riskCategories"),
104
+ "type": obj.get("type")
105
+
105
106
  })
106
107
  return _obj
107
108
 
@@ -108,19 +108,20 @@ class SCAWallet(BaseModel):
108
108
 
109
109
  _obj = SCAWallet.parse_obj({
110
110
  "id": obj.get("id"),
111
- "address": obj.get("address"),
112
- "blockchain": obj.get("blockchain"),
113
- "create_date": obj.get("createDate"),
114
- "update_date": obj.get("updateDate"),
115
- "custody_type": obj.get("custodyType"),
116
- "name": obj.get("name"),
117
- "ref_id": obj.get("refId"),
118
- "state": obj.get("state"),
119
- "user_id": obj.get("userId"),
120
- "wallet_set_id": obj.get("walletSetId"),
121
- "initial_public_key": obj.get("initialPublicKey"),
122
- "account_type": obj.get("accountType"),
123
- "sca_core": obj.get("scaCore")
111
+ "address": obj.get("address"),
112
+ "blockchain": obj.get("blockchain"),
113
+ "create_date": obj.get("createDate"),
114
+ "update_date": obj.get("updateDate"),
115
+ "custody_type": obj.get("custodyType"),
116
+ "name": obj.get("name"),
117
+ "ref_id": obj.get("refId"),
118
+ "state": obj.get("state"),
119
+ "user_id": obj.get("userId"),
120
+ "wallet_set_id": obj.get("walletSetId"),
121
+ "initial_public_key": obj.get("initialPublicKey"),
122
+ "account_type": obj.get("accountType"),
123
+ "sca_core": obj.get("scaCore")
124
+
124
125
  })
125
126
  return _obj
126
127
 
@@ -117,20 +117,21 @@ class SCAWalletWithBalances(BaseModel):
117
117
 
118
118
  _obj = SCAWalletWithBalances.parse_obj({
119
119
  "id": obj.get("id"),
120
- "address": obj.get("address"),
121
- "blockchain": obj.get("blockchain"),
122
- "create_date": obj.get("createDate"),
123
- "update_date": obj.get("updateDate"),
124
- "custody_type": obj.get("custodyType"),
125
- "name": obj.get("name"),
126
- "ref_id": obj.get("refId"),
127
- "state": obj.get("state"),
128
- "user_id": obj.get("userId"),
129
- "wallet_set_id": obj.get("walletSetId"),
130
- "initial_public_key": obj.get("initialPublicKey"),
131
- "account_type": obj.get("accountType"),
132
- "sca_core": obj.get("scaCore"),
133
- "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
120
+ "address": obj.get("address"),
121
+ "blockchain": obj.get("blockchain"),
122
+ "create_date": obj.get("createDate"),
123
+ "update_date": obj.get("updateDate"),
124
+ "custody_type": obj.get("custodyType"),
125
+ "name": obj.get("name"),
126
+ "ref_id": obj.get("refId"),
127
+ "state": obj.get("state"),
128
+ "user_id": obj.get("userId"),
129
+ "wallet_set_id": obj.get("walletSetId"),
130
+ "initial_public_key": obj.get("initialPublicKey"),
131
+ "account_type": obj.get("accountType"),
132
+ "sca_core": obj.get("scaCore"),
133
+ "token_balances": [Balance.from_dict(_item) for _item in obj.get("tokenBalances")] if obj.get("tokenBalances") is not None else None
134
+
134
135
  })
135
136
  return _obj
136
137
 
@@ -86,8 +86,9 @@ class SignDelegateActionRequest(BaseModel):
86
86
 
87
87
  _obj = SignDelegateActionRequest.parse_obj({
88
88
  "wallet_id": obj.get("walletId"),
89
- "unsigned_delegate_action": obj.get("unsignedDelegateAction"),
90
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
89
+ "unsigned_delegate_action": obj.get("unsignedDelegateAction"),
90
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -88,6 +88,7 @@ class SignDelegateActionResponse(BaseModel):
88
88
 
89
89
  _obj = SignDelegateActionResponse.parse_obj({
90
90
  "data": SignDelegateActionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -85,7 +85,8 @@ class SignDelegateActionResponseData(BaseModel):
85
85
 
86
86
  _obj = SignDelegateActionResponseData.parse_obj({
87
87
  "signature": obj.get("signature"),
88
- "signed_delegate_action": obj.get("signedDelegateAction")
88
+ "signed_delegate_action": obj.get("signedDelegateAction")
89
+
89
90
  })
90
91
  return _obj
91
92
 
@@ -21,17 +21,20 @@ from pydantic.json import pydantic_encoder
21
21
 
22
22
  from typing import Optional, Union
23
23
  from pydantic import BaseModel, Field, StrictBool, StrictBytes, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
24
25
 
25
26
  class SignMessageRequest(BaseModel):
26
27
  """
27
28
  SignMessageRequest
28
29
  """
29
- wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
30
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
30
31
  encoded_by_hex: Optional[StrictBool] = Field(None, alias="encodedByHex", description="Indicator of whether the input message is encoded by hex. If TRUE, then the message should be a hex string. By default, it is False.")
31
32
  message: StrictStr = Field(..., description="The user friendly message that needs to be signed. If it is a hex string, encodedByHex needs to be TRUE. The hex string should start with “0x” and have even length.")
32
33
  memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
33
34
  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. ")
34
- __properties = ["walletId", "encodedByHex", "message", "memo", "entitySecretCiphertext"]
35
+ blockchain: Optional[Blockchain] = None
36
+ wallet_address: Optional[StrictStr] = Field(None, alias="walletAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
37
+ __properties = ["walletId", "encodedByHex", "message", "memo", "entitySecretCiphertext", "blockchain", "walletAddress"]
35
38
 
36
39
  def __init__(self, **kwargs):
37
40
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -68,6 +71,7 @@ class SignMessageRequest(BaseModel):
68
71
  exclude={
69
72
  },
70
73
  exclude_none=True)
74
+ # Handle anyOf models where allVars is empty - use vars instead
71
75
  return _dict
72
76
 
73
77
  @classmethod
@@ -87,11 +91,15 @@ class SignMessageRequest(BaseModel):
87
91
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
88
92
 
89
93
  _obj = SignMessageRequest.parse_obj({
94
+
90
95
  "wallet_id": obj.get("walletId"),
91
- "encoded_by_hex": obj.get("encodedByHex"),
92
- "message": obj.get("message"),
93
- "memo": obj.get("memo"),
94
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
96
+ "encoded_by_hex": obj.get("encodedByHex"),
97
+ "message": obj.get("message"),
98
+ "memo": obj.get("memo"),
99
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
100
+ "blockchain": obj.get("blockchain"),
101
+ "wallet_address": obj.get("walletAddress")
102
+
95
103
  })
96
104
  return _obj
97
105
 
@@ -21,17 +21,20 @@ from pydantic.json import pydantic_encoder
21
21
 
22
22
  from typing import Optional, Union
23
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
24
25
 
25
26
  class SignTransactionRequest(BaseModel):
26
27
  """
27
28
  SignTransactionRequest
28
29
  """
29
- wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
30
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
30
31
  raw_transaction: Optional[StrictStr] = Field(None, alias="rawTransaction", description="Raw transaction string that needs to be signed. Excluded with `transaction`. Required without `transaction`. Required to be base64 encoded for NEAR, Solana chains. Required to be hex encoded for EVM chains. ")
31
32
  transaction: Optional[StrictStr] = Field(None, description="Transaction object in JSON that needs to be signed. Excluded with `rawTransaction`. Required without `rawTransaction`. NOTE: This field is only supported by `EVM` chains. ")
32
33
  memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
33
34
  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. ")
34
- __properties = ["walletId", "rawTransaction", "transaction", "memo", "entitySecretCiphertext"]
35
+ blockchain: Optional[Blockchain] = None
36
+ wallet_address: Optional[StrictStr] = Field(None, alias="walletAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
37
+ __properties = ["walletId", "rawTransaction", "transaction", "memo", "entitySecretCiphertext", "blockchain", "walletAddress"]
35
38
 
36
39
  def __init__(self, **kwargs):
37
40
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -68,6 +71,7 @@ class SignTransactionRequest(BaseModel):
68
71
  exclude={
69
72
  },
70
73
  exclude_none=True)
74
+ # Handle anyOf models where allVars is empty - use vars instead
71
75
  return _dict
72
76
 
73
77
  @classmethod
@@ -87,11 +91,15 @@ class SignTransactionRequest(BaseModel):
87
91
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
88
92
 
89
93
  _obj = SignTransactionRequest.parse_obj({
94
+
90
95
  "wallet_id": obj.get("walletId"),
91
- "raw_transaction": obj.get("rawTransaction"),
92
- "transaction": obj.get("transaction"),
93
- "memo": obj.get("memo"),
94
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
96
+ "raw_transaction": obj.get("rawTransaction"),
97
+ "transaction": obj.get("transaction"),
98
+ "memo": obj.get("memo"),
99
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
100
+ "blockchain": obj.get("blockchain"),
101
+ "wallet_address": obj.get("walletAddress")
102
+
95
103
  })
96
104
  return _obj
97
105
 
@@ -88,6 +88,7 @@ class SignTransactionResponse(BaseModel):
88
88
 
89
89
  _obj = SignTransactionResponse.parse_obj({
90
90
  "data": SignTransactionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -86,8 +86,9 @@ class SignTransactionResponseData(BaseModel):
86
86
 
87
87
  _obj = SignTransactionResponseData.parse_obj({
88
88
  "signature": obj.get("signature"),
89
- "signed_transaction": obj.get("signedTransaction"),
90
- "tx_hash": obj.get("txHash")
89
+ "signed_transaction": obj.get("signedTransaction"),
90
+ "tx_hash": obj.get("txHash")
91
+
91
92
  })
92
93
  return _obj
93
94
 
@@ -21,16 +21,19 @@ from pydantic.json import pydantic_encoder
21
21
 
22
22
  from typing import Optional, Union
23
23
  from pydantic import BaseModel, Field, StrictBytes, StrictStr
24
+ from circle.web3.developer_controlled_wallets.models.blockchain import Blockchain
24
25
 
25
26
  class SignTypedDataRequest(BaseModel):
26
27
  """
27
28
  SignTypedDataRequest
28
29
  """
29
- wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
30
+ wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
30
31
  data: StrictStr = Field(..., description="A string represents the typed structured data in EIP-712")
31
32
  memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
32
33
  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
- __properties = ["walletId", "data", "memo", "entitySecretCiphertext"]
34
+ blockchain: Optional[Blockchain] = None
35
+ wallet_address: Optional[StrictStr] = Field(None, alias="walletAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
36
+ __properties = ["walletId", "data", "memo", "entitySecretCiphertext", "blockchain", "walletAddress"]
34
37
 
35
38
  def __init__(self, **kwargs):
36
39
  if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
@@ -67,6 +70,7 @@ class SignTypedDataRequest(BaseModel):
67
70
  exclude={
68
71
  },
69
72
  exclude_none=True)
73
+ # Handle anyOf models where allVars is empty - use vars instead
70
74
  return _dict
71
75
 
72
76
  @classmethod
@@ -86,10 +90,14 @@ class SignTypedDataRequest(BaseModel):
86
90
  obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
87
91
 
88
92
  _obj = SignTypedDataRequest.parse_obj({
93
+
89
94
  "wallet_id": obj.get("walletId"),
90
- "data": obj.get("data"),
91
- "memo": obj.get("memo"),
92
- "entity_secret_ciphertext": obj.get("entitySecretCiphertext")
95
+ "data": obj.get("data"),
96
+ "memo": obj.get("memo"),
97
+ "entity_secret_ciphertext": obj.get("entitySecretCiphertext"),
98
+ "blockchain": obj.get("blockchain"),
99
+ "wallet_address": obj.get("walletAddress")
100
+
93
101
  })
94
102
  return _obj
95
103