circle-developer-controlled-wallets 2.1.0__py3-none-any.whl → 4.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 +5 -3
- circle/web3/developer_controlled_wallets/api/signing_api.py +158 -2
- circle/web3/developer_controlled_wallets/api/token_lookup_api.py +7 -4
- circle/web3/developer_controlled_wallets/api/transactions_api.py +58 -31
- circle/web3/developer_controlled_wallets/api/wallet_sets_api.py +8 -8
- circle/web3/developer_controlled_wallets/api/wallets_api.py +29 -22
- 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 +4 -2
- circle/web3/developer_controlled_wallets/models/blockchain.py +5 -0
- circle/web3/developer_controlled_wallets/models/{estimate_contract_execution_transaction_fee_request_blockchain.py → contract_execution_blockchain.py} +5 -5
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer.py +3 -3
- circle/web3/developer_controlled_wallets/models/create_contract_execution_transaction_for_developer_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/create_transfer_transaction_for_developer_request.py +3 -3
- circle/web3/developer_controlled_wallets/models/create_wallet_set_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/eoa_wallet.py +5 -3
- circle/web3/developer_controlled_wallets/models/estimate_contract_execution_transaction_fee_request.py +4 -4
- circle/web3/developer_controlled_wallets/models/estimate_transfer_transaction_fee_request.py +3 -3
- circle/web3/developer_controlled_wallets/models/sca_wallet.py +5 -3
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_request.py +87 -0
- circle/web3/developer_controlled_wallets/models/sign_delegate_action_response.py +87 -0
- circle/web3/developer_controlled_wallets/models/{create_contract_execution_transaction_for_developer_data.py → sign_delegate_action_response_data.py} +13 -14
- circle/web3/developer_controlled_wallets/models/sign_transaction_request.py +4 -2
- circle/web3/developer_controlled_wallets/models/sign_transaction_response_data.py +7 -5
- circle/web3/developer_controlled_wallets/models/signature_response_data.py +1 -1
- circle/web3/developer_controlled_wallets/models/token.py +1 -1
- circle/web3/developer_controlled_wallets/models/token_blockchain.py +2 -1
- circle/web3/developer_controlled_wallets/models/transaction.py +4 -4
- circle/web3/developer_controlled_wallets/models/transaction_state.py +5 -5
- circle/web3/developer_controlled_wallets/models/update_wallet_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/update_wallet_set_request.py +2 -2
- circle/web3/developer_controlled_wallets/models/validate_address_request.py +1 -1
- circle/web3/developer_controlled_wallets/models/wallet.py +6 -4
- circle/web3/developer_controlled_wallets/models/wallet_metadata.py +1 -1
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/METADATA +7 -7
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/RECORD +38 -36
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/WHEEL +1 -1
- {circle_developer_controlled_wallets-2.1.0.dist-info → circle_developer_controlled_wallets-4.0.0.dist-info}/top_level.txt +0 -0
|
@@ -25,19 +25,20 @@ class SCAWallet(BaseModel):
|
|
|
25
25
|
SCAWallet
|
|
26
26
|
"""
|
|
27
27
|
id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
|
|
28
|
-
address: StrictStr = Field(..., description="Blockchain
|
|
28
|
+
address: StrictStr = Field(..., description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
29
29
|
blockchain: Blockchain = Field(...)
|
|
30
30
|
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
31
31
|
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
32
32
|
custody_type: CustodyType = Field(..., alias="custodyType")
|
|
33
|
-
name: Optional[StrictStr] = Field(None, description="
|
|
33
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
34
34
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
35
35
|
state: WalletState = Field(...)
|
|
36
36
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
37
37
|
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
38
|
+
initial_public_key: Optional[StrictStr] = Field(None, alias="initialPublicKey", description="For NEAR blockchains only, the originally assigned public key of a wallet at the time of its creation.")
|
|
38
39
|
account_type: StrictStr = Field(..., alias="accountType", description="An account can be a Smart Contract Account (SCA) or an Externally Owned Account (EOA). To learn more, see the [account types guide](https://developers.circle.com/w3s/docs/programmable-wallets-account-types). If an account type is not specified during the creation of a wallet, it defaults to `EOA` (Externally Owned Account). Note that Solana doesn't support Smart Contract Account (SCA). ")
|
|
39
40
|
sca_core: StrictStr = Field(..., alias="scaCore", description="SCAs can have different versions that have different functionality. SCACore will display the version of the SCA being created. Please refer to developer docs for a list of the versions supported.")
|
|
40
|
-
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "accountType", "scaCore"]
|
|
41
|
+
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "initialPublicKey", "accountType", "scaCore"]
|
|
41
42
|
|
|
42
43
|
def __init__(self, **kwargs):
|
|
43
44
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -109,6 +110,7 @@ class SCAWallet(BaseModel):
|
|
|
109
110
|
"state": obj.get("state"),
|
|
110
111
|
"user_id": obj.get("userId"),
|
|
111
112
|
"wallet_set_id": obj.get("walletSetId"),
|
|
113
|
+
"initial_public_key": obj.get("initialPublicKey"),
|
|
112
114
|
"account_type": obj.get("accountType"),
|
|
113
115
|
"sca_core": obj.get("scaCore")
|
|
114
116
|
})
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
The version of the OpenAPI document: 1.0
|
|
5
|
+
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
6
|
+
|
|
7
|
+
Do not edit the class manually.
|
|
8
|
+
""" # noqa: E501
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
import pprint
|
|
13
|
+
import re # noqa: F401
|
|
14
|
+
import json
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
from typing import Union
|
|
18
|
+
from pydantic import BaseModel, Field, StrictBytes, StrictStr
|
|
19
|
+
|
|
20
|
+
class SignDelegateActionRequest(BaseModel):
|
|
21
|
+
"""
|
|
22
|
+
SignDelegateActionRequest
|
|
23
|
+
"""
|
|
24
|
+
wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
|
|
25
|
+
unsigned_delegate_action: StrictStr = Field(..., alias="unsignedDelegateAction", description="Unsigned delegate action string that needs to be signed. Must be base64 encoded.")
|
|
26
|
+
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. ")
|
|
27
|
+
__properties = ["walletId", "unsignedDelegateAction", "entitySecretCiphertext"]
|
|
28
|
+
|
|
29
|
+
def __init__(self, **kwargs):
|
|
30
|
+
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
31
|
+
kwargs["idempotency_key"] = "#REFILL_PLACEHOLDER"
|
|
32
|
+
|
|
33
|
+
if "entitySecretCiphertext" in self.__properties and not kwargs.get("entity_secret_ciphertext"):
|
|
34
|
+
kwargs["entity_secret_ciphertext"] = "#REFILL_PLACEHOLDER"
|
|
35
|
+
super().__init__(**kwargs)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
class Config:
|
|
39
|
+
"""Pydantic configuration"""
|
|
40
|
+
allow_population_by_field_name = True
|
|
41
|
+
validate_assignment = True
|
|
42
|
+
|
|
43
|
+
def to_str(self) -> str:
|
|
44
|
+
"""Returns the string representation of the model using alias"""
|
|
45
|
+
return pprint.pformat(self.dict(by_alias=True))
|
|
46
|
+
|
|
47
|
+
def to_json(self) -> str:
|
|
48
|
+
"""Returns the JSON representation of the model using alias"""
|
|
49
|
+
return json.dumps(self.to_dict())
|
|
50
|
+
|
|
51
|
+
@classmethod
|
|
52
|
+
def from_json(cls, json_str: str) -> SignDelegateActionRequest:
|
|
53
|
+
"""Create an instance of SignDelegateActionRequest from a JSON string"""
|
|
54
|
+
return cls.from_dict(json.loads(json_str))
|
|
55
|
+
|
|
56
|
+
def to_dict(self):
|
|
57
|
+
"""Returns the dictionary representation of the model using alias"""
|
|
58
|
+
_dict = self.dict(by_alias=True,
|
|
59
|
+
exclude={
|
|
60
|
+
},
|
|
61
|
+
exclude_none=True)
|
|
62
|
+
return _dict
|
|
63
|
+
|
|
64
|
+
@classmethod
|
|
65
|
+
def from_dict(cls, obj: dict) -> SignDelegateActionRequest:
|
|
66
|
+
"""Create an instance of SignDelegateActionRequest from a dict"""
|
|
67
|
+
if obj is None:
|
|
68
|
+
return None
|
|
69
|
+
|
|
70
|
+
if not isinstance(obj, dict):
|
|
71
|
+
return SignDelegateActionRequest.parse_obj(obj)
|
|
72
|
+
|
|
73
|
+
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
74
|
+
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
75
|
+
obj["idempotencyKey"] = "#REFILL_PLACEHOLDER"
|
|
76
|
+
|
|
77
|
+
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
78
|
+
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
79
|
+
|
|
80
|
+
_obj = SignDelegateActionRequest.parse_obj({
|
|
81
|
+
"wallet_id": obj.get("walletId"),
|
|
82
|
+
"unsigned_delegate_action": obj.get("unsignedDelegateAction"),
|
|
83
|
+
"entity_secret_ciphertext": obj.get("entitySecretCiphertext")
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -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.sign_delegate_action_response_data import SignDelegateActionResponseData
|
|
20
|
+
|
|
21
|
+
class SignDelegateActionResponse(BaseModel):
|
|
22
|
+
"""
|
|
23
|
+
SignDelegateActionResponse
|
|
24
|
+
"""
|
|
25
|
+
data: SignDelegateActionResponseData = 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) -> SignDelegateActionResponse:
|
|
52
|
+
"""Create an instance of SignDelegateActionResponse 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) -> SignDelegateActionResponse:
|
|
68
|
+
"""Create an instance of SignDelegateActionResponse from a dict"""
|
|
69
|
+
if obj is None:
|
|
70
|
+
return None
|
|
71
|
+
|
|
72
|
+
if not isinstance(obj, dict):
|
|
73
|
+
return SignDelegateActionResponse.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 = SignDelegateActionResponse.parse_obj({
|
|
83
|
+
"data": SignDelegateActionResponseData.from_dict(obj.get("data")) if obj.get("data") is not None else None
|
|
84
|
+
})
|
|
85
|
+
return _obj
|
|
86
|
+
|
|
87
|
+
|
|
@@ -16,15 +16,14 @@ import json
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr
|
|
19
|
-
from circle.web3.developer_controlled_wallets.models.transaction_state import TransactionState
|
|
20
19
|
|
|
21
|
-
class
|
|
20
|
+
class SignDelegateActionResponseData(BaseModel):
|
|
22
21
|
"""
|
|
23
|
-
|
|
22
|
+
SignDelegateActionResponseData
|
|
24
23
|
"""
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
__properties = ["
|
|
24
|
+
signature: StrictStr = Field(..., description="Each chain encode signatures in a different way, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis) and the blockchain's document.")
|
|
25
|
+
signed_delegate_action: StrictStr = Field(..., alias="signedDelegateAction", description="Signed delegate action is a base64 encoded string for NEAR.")
|
|
26
|
+
__properties = ["signature", "signedDelegateAction"]
|
|
28
27
|
|
|
29
28
|
def __init__(self, **kwargs):
|
|
30
29
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -49,8 +48,8 @@ class CreateContractExecutionTransactionForDeveloperData(BaseModel):
|
|
|
49
48
|
return json.dumps(self.to_dict())
|
|
50
49
|
|
|
51
50
|
@classmethod
|
|
52
|
-
def from_json(cls, json_str: str) ->
|
|
53
|
-
"""Create an instance of
|
|
51
|
+
def from_json(cls, json_str: str) -> SignDelegateActionResponseData:
|
|
52
|
+
"""Create an instance of SignDelegateActionResponseData from a JSON string"""
|
|
54
53
|
return cls.from_dict(json.loads(json_str))
|
|
55
54
|
|
|
56
55
|
def to_dict(self):
|
|
@@ -62,13 +61,13 @@ class CreateContractExecutionTransactionForDeveloperData(BaseModel):
|
|
|
62
61
|
return _dict
|
|
63
62
|
|
|
64
63
|
@classmethod
|
|
65
|
-
def from_dict(cls, obj: dict) ->
|
|
66
|
-
"""Create an instance of
|
|
64
|
+
def from_dict(cls, obj: dict) -> SignDelegateActionResponseData:
|
|
65
|
+
"""Create an instance of SignDelegateActionResponseData from a dict"""
|
|
67
66
|
if obj is None:
|
|
68
67
|
return None
|
|
69
68
|
|
|
70
69
|
if not isinstance(obj, dict):
|
|
71
|
-
return
|
|
70
|
+
return SignDelegateActionResponseData.parse_obj(obj)
|
|
72
71
|
|
|
73
72
|
# fill idempotency_key and ciphertext with placeholder for auto_fill
|
|
74
73
|
if "idempotencyKey" in cls.__properties and not obj.get("idempotencyKey"):
|
|
@@ -77,9 +76,9 @@ class CreateContractExecutionTransactionForDeveloperData(BaseModel):
|
|
|
77
76
|
if "entitySecretCiphertext" in cls.__properties and not obj.get("entitySecretCiphertext"):
|
|
78
77
|
obj["entitySecretCiphertext"] = "#REFILL_PLACEHOLDER"
|
|
79
78
|
|
|
80
|
-
_obj =
|
|
81
|
-
"
|
|
82
|
-
"
|
|
79
|
+
_obj = SignDelegateActionResponseData.parse_obj({
|
|
80
|
+
"signature": obj.get("signature"),
|
|
81
|
+
"signed_delegate_action": obj.get("signedDelegateAction")
|
|
83
82
|
})
|
|
84
83
|
return _obj
|
|
85
84
|
|
|
@@ -22,10 +22,11 @@ class SignTransactionRequest(BaseModel):
|
|
|
22
22
|
SignTransactionRequest
|
|
23
23
|
"""
|
|
24
24
|
wallet_id: StrictStr = Field(..., alias="walletId", description="System-generated unique identifier of the resource.")
|
|
25
|
-
raw_transaction: StrictStr = Field(
|
|
25
|
+
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. ")
|
|
26
|
+
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. ")
|
|
26
27
|
memo: Optional[StrictStr] = Field(None, description="The human readable explanation for this sign action. Useful for presenting with extra information.")
|
|
27
28
|
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. ")
|
|
28
|
-
__properties = ["walletId", "rawTransaction", "memo", "entitySecretCiphertext"]
|
|
29
|
+
__properties = ["walletId", "rawTransaction", "transaction", "memo", "entitySecretCiphertext"]
|
|
29
30
|
|
|
30
31
|
def __init__(self, **kwargs):
|
|
31
32
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -81,6 +82,7 @@ class SignTransactionRequest(BaseModel):
|
|
|
81
82
|
_obj = SignTransactionRequest.parse_obj({
|
|
82
83
|
"wallet_id": obj.get("walletId"),
|
|
83
84
|
"raw_transaction": obj.get("rawTransaction"),
|
|
85
|
+
"transaction": obj.get("transaction"),
|
|
84
86
|
"memo": obj.get("memo"),
|
|
85
87
|
"entity_secret_ciphertext": obj.get("entitySecretCiphertext")
|
|
86
88
|
})
|
|
@@ -14,16 +14,17 @@ import re # noqa: F401
|
|
|
14
14
|
import json
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
from typing import Optional
|
|
18
18
|
from pydantic import BaseModel, Field, StrictStr
|
|
19
19
|
|
|
20
20
|
class SignTransactionResponseData(BaseModel):
|
|
21
21
|
"""
|
|
22
22
|
SignTransactionResponseData
|
|
23
23
|
"""
|
|
24
|
-
signature: StrictStr = Field(..., description="
|
|
25
|
-
signed_transaction: StrictStr = Field(..., alias="signedTransaction", description="Signed transaction
|
|
26
|
-
|
|
24
|
+
signature: StrictStr = Field(..., description="Each chain encode signatures in a different way, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis) and the blockchain's document.")
|
|
25
|
+
signed_transaction: StrictStr = Field(..., alias="signedTransaction", description="Signed transaction. Base64 encoded for NEAR and Solana chains. Hex encoded for EVM chains.")
|
|
26
|
+
tx_hash: Optional[StrictStr] = Field(None, alias="txHash", description="Blockchain generated identifier of the transaction.")
|
|
27
|
+
__properties = ["signature", "signedTransaction", "txHash"]
|
|
27
28
|
|
|
28
29
|
def __init__(self, **kwargs):
|
|
29
30
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -78,7 +79,8 @@ class SignTransactionResponseData(BaseModel):
|
|
|
78
79
|
|
|
79
80
|
_obj = SignTransactionResponseData.parse_obj({
|
|
80
81
|
"signature": obj.get("signature"),
|
|
81
|
-
"signed_transaction": obj.get("signedTransaction")
|
|
82
|
+
"signed_transaction": obj.get("signedTransaction"),
|
|
83
|
+
"tx_hash": obj.get("txHash")
|
|
82
84
|
})
|
|
83
85
|
return _obj
|
|
84
86
|
|
|
@@ -21,7 +21,7 @@ class SignatureResponseData(BaseModel):
|
|
|
21
21
|
"""
|
|
22
22
|
SignatureResponseData
|
|
23
23
|
"""
|
|
24
|
-
signature: StrictStr = Field(..., description="
|
|
24
|
+
signature: StrictStr = Field(..., description="Each chain encode signatures in a different way, please refer to [Signing APIs doc](https://learn.circle.com/w3s/signing-apis) and the blockchain's document.")
|
|
25
25
|
__properties = ["signature"]
|
|
26
26
|
|
|
27
27
|
def __init__(self, **kwargs):
|
|
@@ -30,7 +30,7 @@ class Token(BaseModel):
|
|
|
30
30
|
decimals: Optional[StrictInt] = Field(None, description="Number of decimal places shown in the token amount.")
|
|
31
31
|
is_native: StrictBool = Field(..., alias="isNative", description="Defines if the token is a native token of the specified blockchain. If TRUE, the token is a native token.")
|
|
32
32
|
symbol: Optional[StrictStr] = Field(None, description="Blockchain symbol of the specified token.")
|
|
33
|
-
token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain
|
|
33
|
+
token_address: Optional[StrictStr] = Field(None, alias="tokenAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
34
34
|
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
35
35
|
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
36
36
|
__properties = ["id", "name", "standard", "blockchain", "decimals", "isNative", "symbol", "tokenAddress", "updateDate", "createDate"]
|
|
@@ -19,7 +19,7 @@ from aenum import Enum, no_arg
|
|
|
19
19
|
|
|
20
20
|
class TokenBlockchain(str, Enum):
|
|
21
21
|
"""
|
|
22
|
-
Blockchain of the transferred token. Required if tokenId is not provided.
|
|
22
|
+
Blockchain of the transferred token. Required if `tokenId` is not provided. The `blockchain` and `tokenId` fields are mutually exclusive.
|
|
23
23
|
"""
|
|
24
24
|
|
|
25
25
|
"""
|
|
@@ -35,6 +35,7 @@ class TokenBlockchain(str, Enum):
|
|
|
35
35
|
SOL_MINUS_DEVNET = 'SOL-DEVNET'
|
|
36
36
|
ARB = 'ARB'
|
|
37
37
|
ARB_MINUS_SEPOLIA = 'ARB-SEPOLIA'
|
|
38
|
+
UNI_MINUS_SEPOLIA = 'UNI-SEPOLIA'
|
|
38
39
|
|
|
39
40
|
@classmethod
|
|
40
41
|
def from_json(cls, json_str: str) -> TokenBlockchain:
|
|
@@ -41,7 +41,7 @@ class Transaction(BaseModel):
|
|
|
41
41
|
contract_address: Optional[StrictStr] = Field(None, alias="contractAddress", description="The blockchain address of the contract to be executed.")
|
|
42
42
|
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
43
43
|
custody_type: Optional[CustodyType] = Field(None, alias="custodyType")
|
|
44
|
-
destination_address: Optional[StrictStr] = Field(None, alias="destinationAddress", description="
|
|
44
|
+
destination_address: Optional[StrictStr] = Field(None, alias="destinationAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
45
45
|
error_reason: Optional[StrictStr] = Field(None, alias="errorReason", description="Description of the error. Only present for transactions in `FAILED` state.")
|
|
46
46
|
error_details: Optional[StrictStr] = Field(None, alias="errorDetails", description="Additional detail associated with the corresponding transaction's error reason")
|
|
47
47
|
estimated_fee: Optional[TransactionFee] = Field(None, alias="estimatedFee")
|
|
@@ -52,14 +52,14 @@ class Transaction(BaseModel):
|
|
|
52
52
|
nfts: Optional[conlist(StrictStr)] = Field(None, description="List of Nfts, in JSON string format, associated with the transaction.")
|
|
53
53
|
operation: Optional[Operation] = None
|
|
54
54
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Optional reference or description used to identify the transaction.")
|
|
55
|
-
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="
|
|
55
|
+
source_address: Optional[StrictStr] = Field(None, alias="sourceAddress", description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
56
56
|
state: TransactionState = Field(...)
|
|
57
|
-
token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System
|
|
57
|
+
token_id: Optional[StrictStr] = Field(None, alias="tokenId", description="System-generated unique identifier of the resource.")
|
|
58
58
|
transaction_type: TransactionType = Field(..., alias="transactionType")
|
|
59
59
|
tx_hash: Optional[StrictStr] = Field(None, alias="txHash", description="Blockchain generated identifier of the transaction.")
|
|
60
60
|
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
61
61
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
62
|
-
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="
|
|
62
|
+
wallet_id: Optional[StrictStr] = Field(None, alias="walletId", description="System-generated unique identifier of the resource.")
|
|
63
63
|
transaction_screening_evaluation: Optional[TransactionScreeningDecision] = Field(None, alias="transactionScreeningEvaluation")
|
|
64
64
|
__properties = ["id", "abiFunctionSignature", "abiParameters", "amounts", "amountInUSD", "blockHash", "blockHeight", "blockchain", "contractAddress", "createDate", "custodyType", "destinationAddress", "errorReason", "errorDetails", "estimatedFee", "feeLevel", "firstConfirmDate", "networkFee", "networkFeeInUSD", "nfts", "operation", "refId", "sourceAddress", "state", "tokenId", "transactionType", "txHash", "updateDate", "userId", "walletId", "transactionScreeningEvaluation"]
|
|
65
65
|
|
|
@@ -25,15 +25,15 @@ class TransactionState(str, Enum):
|
|
|
25
25
|
"""
|
|
26
26
|
allowed enum values
|
|
27
27
|
"""
|
|
28
|
+
CANCELLED = 'CANCELLED'
|
|
29
|
+
CONFIRMED = 'CONFIRMED'
|
|
30
|
+
COMPLETE = 'COMPLETE'
|
|
31
|
+
DENIED = 'DENIED'
|
|
32
|
+
FAILED = 'FAILED'
|
|
28
33
|
INITIATED = 'INITIATED'
|
|
29
34
|
PENDING_RISK_SCREENING = 'PENDING_RISK_SCREENING'
|
|
30
|
-
DENIED = 'DENIED'
|
|
31
35
|
QUEUED = 'QUEUED'
|
|
32
36
|
SENT = 'SENT'
|
|
33
|
-
CONFIRMED = 'CONFIRMED'
|
|
34
|
-
COMPLETE = 'COMPLETE'
|
|
35
|
-
FAILED = 'FAILED'
|
|
36
|
-
CANCELLED = 'CANCELLED'
|
|
37
37
|
|
|
38
38
|
@classmethod
|
|
39
39
|
def from_json(cls, json_str: str) -> TransactionState:
|
|
@@ -21,7 +21,7 @@ class UpdateWalletRequest(BaseModel):
|
|
|
21
21
|
"""
|
|
22
22
|
UpdateWalletRequest
|
|
23
23
|
"""
|
|
24
|
-
name: Optional[StrictStr] = Field(None, description="
|
|
24
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
25
25
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
26
26
|
__properties = ["name", "refId"]
|
|
27
27
|
|
|
@@ -15,13 +15,13 @@ import json
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
from typing import Optional
|
|
18
|
-
from pydantic import BaseModel,
|
|
18
|
+
from pydantic import BaseModel, Field, StrictStr
|
|
19
19
|
|
|
20
20
|
class UpdateWalletSetRequest(BaseModel):
|
|
21
21
|
"""
|
|
22
22
|
UpdateWalletSetRequest
|
|
23
23
|
"""
|
|
24
|
-
name: Optional[
|
|
24
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
25
25
|
__properties = ["name"]
|
|
26
26
|
|
|
27
27
|
def __init__(self, **kwargs):
|
|
@@ -22,7 +22,7 @@ class ValidateAddressRequest(BaseModel):
|
|
|
22
22
|
"""
|
|
23
23
|
ValidateAddressRequest
|
|
24
24
|
"""
|
|
25
|
-
address: StrictStr = Field(..., description="
|
|
25
|
+
address: StrictStr = Field(..., description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
26
26
|
blockchain: Blockchain = Field(...)
|
|
27
27
|
__properties = ["address", "blockchain"]
|
|
28
28
|
|
|
@@ -25,17 +25,18 @@ class Wallet(BaseModel):
|
|
|
25
25
|
Wallet
|
|
26
26
|
"""
|
|
27
27
|
id: StrictStr = Field(..., description="System-generated unique identifier of the resource.")
|
|
28
|
-
address: StrictStr = Field(..., description="Blockchain
|
|
28
|
+
address: StrictStr = Field(..., description="Blockchain generated unique identifier, associated with wallet (account), smart contract or other blockchain objects. ")
|
|
29
29
|
blockchain: Blockchain = Field(...)
|
|
30
30
|
create_date: datetime = Field(..., alias="createDate", description="Date and time the resource was created, in ISO-8601 UTC format.")
|
|
31
31
|
update_date: datetime = Field(..., alias="updateDate", description="Date and time the resource was last updated, in ISO-8601 UTC format.")
|
|
32
32
|
custody_type: CustodyType = Field(..., alias="custodyType")
|
|
33
|
-
name: Optional[StrictStr] = Field(None, description="
|
|
33
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
34
34
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
35
35
|
state: WalletState = Field(...)
|
|
36
36
|
user_id: Optional[constr(strict=True, max_length=50, min_length=5)] = Field(None, alias="userId", description="Unique system generated identifier for the user.")
|
|
37
37
|
wallet_set_id: StrictStr = Field(..., alias="walletSetId", description="System-generated unique identifier of the resource.")
|
|
38
|
-
|
|
38
|
+
initial_public_key: Optional[StrictStr] = Field(None, alias="initialPublicKey", description="For NEAR blockchains only, the originally assigned public key of a wallet at the time of its creation.")
|
|
39
|
+
__properties = ["id", "address", "blockchain", "createDate", "updateDate", "custodyType", "name", "refId", "state", "userId", "walletSetId", "initialPublicKey"]
|
|
39
40
|
|
|
40
41
|
def __init__(self, **kwargs):
|
|
41
42
|
if "idempotencyKey" in self.__properties and not kwargs.get("idempotency_key"):
|
|
@@ -99,7 +100,8 @@ class Wallet(BaseModel):
|
|
|
99
100
|
"ref_id": obj.get("refId"),
|
|
100
101
|
"state": obj.get("state"),
|
|
101
102
|
"user_id": obj.get("userId"),
|
|
102
|
-
"wallet_set_id": obj.get("walletSetId")
|
|
103
|
+
"wallet_set_id": obj.get("walletSetId"),
|
|
104
|
+
"initial_public_key": obj.get("initialPublicKey")
|
|
103
105
|
})
|
|
104
106
|
return _obj
|
|
105
107
|
|
|
@@ -21,7 +21,7 @@ class WalletMetadata(BaseModel):
|
|
|
21
21
|
"""
|
|
22
22
|
WalletMetadata
|
|
23
23
|
"""
|
|
24
|
-
name: Optional[StrictStr] = Field(None, description="
|
|
24
|
+
name: Optional[StrictStr] = Field(None, description="Name or description associated with the wallet or walletSet.")
|
|
25
25
|
ref_id: Optional[StrictStr] = Field(None, alias="refId", description="Reference or description used to identify the object.")
|
|
26
26
|
__properties = ["name", "refId"]
|
|
27
27
|
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: circle-developer-controlled-wallets
|
|
3
|
-
Version:
|
|
3
|
+
Version: 4.0.0
|
|
4
4
|
Summary: Developer-Controlled Wallets
|
|
5
5
|
Home-page:
|
|
6
6
|
Author: OpenAPI Generator community
|
|
7
7
|
Author-email: team@openapitools.org
|
|
8
8
|
Keywords: OpenAPI,OpenAPI-Generator,Developer-Controlled Wallets
|
|
9
9
|
Description-Content-Type: text/markdown
|
|
10
|
-
Requires-Dist: urllib3
|
|
10
|
+
Requires-Dist: urllib3<2.1.0,>=1.25.3
|
|
11
11
|
Requires-Dist: python-dateutil
|
|
12
|
-
Requires-Dist: pydantic
|
|
12
|
+
Requires-Dist: pydantic<2,>=1.10.5
|
|
13
13
|
Requires-Dist: aenum
|
|
14
|
-
Requires-Dist: pycryptodome
|
|
15
|
-
Requires-Dist: circle-configurations
|
|
16
|
-
Requires-Dist: circle-web3-sdk-util
|
|
14
|
+
Requires-Dist: pycryptodome>=3.20.0
|
|
15
|
+
Requires-Dist: circle-configurations==4.0.0
|
|
16
|
+
Requires-Dist: circle-web3-sdk-util==4.0.0
|
|
17
17
|
|
|
18
18
|
# circle-developer-controlled-wallets
|
|
19
19
|
This SDK provides convenient access to Circle's Developer Controlled Wallets APIs for applications written in Python. For the API reference, see the [Circle Web3 API docs](https://developers.circle.com/api-reference/w3s/common/ping).
|
|
20
20
|
|
|
21
|
-
- Package version:
|
|
21
|
+
- Package version: 4.0.0
|
|
22
22
|
|
|
23
23
|
## Requirements.
|
|
24
24
|
|