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.
- circle/web3/developer_controlled_wallets/__init__.py +3 -1
- circle/web3/developer_controlled_wallets/api/signing_api.py +6 -6
- circle/web3/developer_controlled_wallets/api/transactions_api.py +4 -4
- circle/web3/developer_controlled_wallets/api_client.py +1 -1
- circle/web3/developer_controlled_wallets/configuration.py +1 -1
- circle/web3/developer_controlled_wallets/models/__init__.py +2 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/accelerate_transaction_for_developer_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/bad_request_response.py +2 -1
- circle/web3/developer_controlled_wallets/models/balance.py +3 -2
- circle/web3/developer_controlled_wallets/models/balances.py +1 -0
- circle/web3/developer_controlled_wallets/models/balances_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/base_screening_decision.py +3 -2
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/cancel_transaction_for_developer_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/contract_execution_blockchain.py +1 -1
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +23 -15
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +26 -18
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request_blockchain.py +130 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_response_data.py +2 -1
- circle/web3/developer_controlled_wallets/models/create_wallet_request.py +7 -6
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +3 -2
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py +1 -0
- circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer_request.py +11 -10
- circle/web3/developer_controlled_wallets/models/derive_wallet_request.py +1 -0
- circle/web3/developer_controlled_wallets/models/developer_wallet_set.py +4 -3
- circle/web3/developer_controlled_wallets/models/end_user_wallet_set.py +5 -4
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +13 -12
- circle/web3/developer_controlled_wallets/models/eoa_wallet_with_balances.py +14 -13
- circle/web3/developer_controlled_wallets/models/error.py +2 -1
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +9 -8
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee.py +1 -0
- circle/web3/developer_controlled_wallets/models/estimate_transaction_fee_data.py +6 -5
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +9 -8
- circle/web3/developer_controlled_wallets/models/nft.py +5 -4
- circle/web3/developer_controlled_wallets/models/nfts.py +1 -0
- circle/web3/developer_controlled_wallets/models/nfts_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/not_authorized_response.py +2 -1
- circle/web3/developer_controlled_wallets/models/not_found_response.py +2 -1
- circle/web3/developer_controlled_wallets/models/risk_signal.py +5 -4
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +14 -13
- circle/web3/developer_controlled_wallets/models/sca_wallet_with_balances.py +15 -14
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +3 -2
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response_data.py +2 -1
- circle/web3/developer_controlled_wallets/models/sign_message_request.py +14 -6
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +14 -6
- circle/web3/developer_controlled_wallets/models/sign_transaction_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +3 -2
- circle/web3/developer_controlled_wallets/models/sign_typed_data_request.py +13 -5
- circle/web3/developer_controlled_wallets/models/signature_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/token.py +10 -9
- circle/web3/developer_controlled_wallets/models/token_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/token_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/transaction.py +31 -30
- circle/web3/developer_controlled_wallets/models/transaction_fee.py +10 -7
- circle/web3/developer_controlled_wallets/models/transaction_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/transaction_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/transaction_screening_decision.py +4 -3
- circle/web3/developer_controlled_wallets/models/transaction_state.py +1 -0
- circle/web3/developer_controlled_wallets/models/transactions.py +1 -0
- circle/web3/developer_controlled_wallets/models/transactions_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/transfer_blockchain.py +52 -0
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +1 -0
- circle/web3/developer_controlled_wallets/models/validate_address.py +1 -0
- circle/web3/developer_controlled_wallets/models/validate_address_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +2 -1
- circle/web3/developer_controlled_wallets/models/wallet.py +12 -11
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +2 -1
- circle/web3/developer_controlled_wallets/models/wallet_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_set.py +3 -2
- circle/web3/developer_controlled_wallets/models/wallet_set_response.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_set_response_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_sets.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallet_sets_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets_data.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets_with_balances.py +1 -0
- circle/web3/developer_controlled_wallets/models/wallets_with_balances_data.py +1 -0
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/METADATA +3 -3
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/RECORD +89 -87
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/WHEEL +0 -0
- {circle_developer_controlled_wallets-7.0.0.dist-info → circle_developer_controlled_wallets-8.0.0.dist-info}/top_level.txt +0 -0
circle/web3/developer_controlled_wallets/models/create_wallet_upgrade_transaction_for_developer.py
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
|
|
@@ -94,9 +94,10 @@ class DeveloperWalletSet(BaseModel):
|
|
|
94
94
|
|
|
95
95
|
_obj = DeveloperWalletSet.parse_obj({
|
|
96
96
|
"id": obj.get("id"),
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
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
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
|
|
@@ -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.
|
|
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
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
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
|
|
|
@@ -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
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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
|
|
circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py
CHANGED
|
@@ -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.
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
|
|
@@ -98,10 +98,11 @@ class RiskSignal(BaseModel):
|
|
|
98
98
|
|
|
99
99
|
_obj = RiskSignal.parse_obj({
|
|
100
100
|
"source": obj.get("source"),
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
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
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
90
|
-
|
|
89
|
+
"unsigned_delegate_action": obj.get("unsignedDelegateAction"),
|
|
90
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext")
|
|
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
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
|
@@ -86,8 +86,9 @@ class SignTransactionResponseData(BaseModel):
|
|
|
86
86
|
|
|
87
87
|
_obj = SignTransactionResponseData.parse_obj({
|
|
88
88
|
"signature": obj.get("signature"),
|
|
89
|
-
|
|
90
|
-
|
|
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(
|
|
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
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
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
|
|