Skip to content

Commit

Permalink
feat: Support Register/List/Update Smart Contract (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
jianlunz-cb authored Dec 18, 2024
1 parent df98abb commit 2ee0c2c
Show file tree
Hide file tree
Showing 32 changed files with 996 additions and 352 deletions.
4 changes: 2 additions & 2 deletions cdp/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,12 @@
from cdp.client.exceptions import ApiException

# import models into sdk package
from cdp.client.models.abi import ABI
from cdp.client.models.address import Address
from cdp.client.models.address_balance_list import AddressBalanceList
from cdp.client.models.address_historical_balance_list import AddressHistoricalBalanceList
from cdp.client.models.address_list import AddressList
from cdp.client.models.address_reputation import AddressReputation
from cdp.client.models.address_reputation_metadata import AddressReputationMetadata
from cdp.client.models.address_risk import AddressRisk
from cdp.client.models.address_transaction_list import AddressTransactionList
from cdp.client.models.asset import Asset
from cdp.client.models.balance import Balance
Expand Down Expand Up @@ -116,6 +114,7 @@
from cdp.client.models.payload_signature import PayloadSignature
from cdp.client.models.payload_signature_list import PayloadSignatureList
from cdp.client.models.read_contract_request import ReadContractRequest
from cdp.client.models.register_smart_contract_request import RegisterSmartContractRequest
from cdp.client.models.seed_creation_event import SeedCreationEvent
from cdp.client.models.seed_creation_event_result import SeedCreationEventResult
from cdp.client.models.server_signer import ServerSigner
Expand Down Expand Up @@ -150,6 +149,7 @@
from cdp.client.models.transaction_type import TransactionType
from cdp.client.models.transfer import Transfer
from cdp.client.models.transfer_list import TransferList
from cdp.client.models.update_smart_contract_request import UpdateSmartContractRequest
from cdp.client.models.update_webhook_request import UpdateWebhookRequest
from cdp.client.models.user import User
from cdp.client.models.validator import Validator
Expand Down
15 changes: 15 additions & 0 deletions cdp/client/api/addresses_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ def _create_address_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -618,6 +619,7 @@ def _create_payload_signature_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -893,6 +895,8 @@ def _get_address_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1183,6 +1187,8 @@ def _get_address_balance_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1473,6 +1479,8 @@ def _get_payload_signature_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1765,6 +1773,8 @@ def _list_address_balances_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -2059,6 +2069,8 @@ def _list_addresses_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -2368,6 +2380,8 @@ def _list_payload_signatures_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -2663,6 +2677,7 @@ def _request_faucet_funds_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down
2 changes: 2 additions & 0 deletions cdp/client/api/assets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,8 @@ def _get_asset_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
2 changes: 2 additions & 0 deletions cdp/client/api/balance_history_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ def _list_address_historical_balance_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
2 changes: 2 additions & 0 deletions cdp/client/api/contract_events_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,8 @@ def _list_contract_events_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
6 changes: 6 additions & 0 deletions cdp/client/api/contract_invocations_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ def _broadcast_contract_invocation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -643,6 +644,7 @@ def _create_contract_invocation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -933,6 +935,8 @@ def _get_contract_invocation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1242,6 +1246,8 @@ def _list_contract_invocations_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
8 changes: 8 additions & 0 deletions cdp/client/api/external_addresses_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,8 @@ def _get_external_address_balance_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -601,6 +603,8 @@ def _get_faucet_transaction_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -893,6 +897,8 @@ def _list_external_address_balances_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1202,6 +1208,8 @@ def _request_external_faucet_funds_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
6 changes: 6 additions & 0 deletions cdp/client/api/fund_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,6 +326,7 @@ def _create_fund_operation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -629,6 +630,7 @@ def _create_fund_quote_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -919,6 +921,8 @@ def _get_fund_operation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -1228,6 +1232,8 @@ def _list_fund_operations_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
4 changes: 4 additions & 0 deletions cdp/client/api/mpc_wallet_stake_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ def _broadcast_staking_operation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -641,6 +642,7 @@ def _create_staking_operation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey'
]

return self.api_client.param_serialize(
Expand Down Expand Up @@ -931,6 +933,8 @@ def _get_staking_operation_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
2 changes: 2 additions & 0 deletions cdp/client/api/networks_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ def _get_network_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
2 changes: 2 additions & 0 deletions cdp/client/api/onchain_identity_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ def _resolve_identity_by_address_serialize(

# authentication setting
_auth_settings: List[str] = [
'apiKey',
'session'
]

return self.api_client.param_serialize(
Expand Down
Loading

0 comments on commit 2ee0c2c

Please sign in to comment.