Skip to content

Commit

Permalink
Generated SDK #7984
Browse files Browse the repository at this point in the history
  • Loading branch information
fireblocks_dx_team committed Jun 27, 2024
1 parent 5a65645 commit bd3ff9b
Show file tree
Hide file tree
Showing 45 changed files with 469 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,7 @@ fireblocks/rest.py
fireblocks/threaded_api_client.py
fireblocks/unknown_model.py
fireblocks/user_agent_util.py
fireblocks/validation_utils.py
git_push.sh
pyproject.toml
requirements.txt
Expand All @@ -981,6 +982,7 @@ test/fireblocks/test_client_configuration.py
test/fireblocks/test_threaded_api_client.py
test/fireblocks/test_unknown_model.py
test/fireblocks/test_user_agent_util.py
test/fireblocks/test_validation_utils.py
test/test_abi_function.py
test/test_account.py
test/test_account_type.py
Expand Down
2 changes: 1 addition & 1 deletion fireblocks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
""" # noqa: E501


__version__ = "1.0.4"
__version__ = "0.0.0"

# import apis into sdk package
from fireblocks.api.api_user_api import ApiUserApi
Expand Down
3 changes: 3 additions & 0 deletions fireblocks/api/api_user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class ApiUserApi:
Expand Down Expand Up @@ -90,6 +91,7 @@ def create_api_user(
:return: Returns the result object.
""" # noqa: E501


_param = self._create_api_user_serialize(
idempotency_key=idempotency_key,
create_api_user=create_api_user,
Expand Down Expand Up @@ -232,6 +234,7 @@ def get_api_users(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_api_users_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down
2 changes: 2 additions & 0 deletions fireblocks/api/assets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class AssetsApi:
Expand Down Expand Up @@ -90,6 +91,7 @@ def create_assets_bulk(
:return: Returns the result object.
""" # noqa: E501


_param = self._create_assets_bulk_serialize(
create_assets_bulk_request=create_assets_bulk_request,
idempotency_key=idempotency_key,
Expand Down
3 changes: 3 additions & 0 deletions fireblocks/api/audit_logs_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class AuditLogsApi:
Expand Down Expand Up @@ -90,6 +91,7 @@ def get_audit_logs(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_audit_logs_serialize(
time_period=time_period,
cursor=cursor,
Expand Down Expand Up @@ -222,6 +224,7 @@ def get_audits(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_audits_serialize(
time_period=time_period,
_request_auth=_request_auth,
Expand Down
3 changes: 3 additions & 0 deletions fireblocks/api/blockchains_assets_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class BlockchainsAssetsApi:
Expand Down Expand Up @@ -85,6 +86,7 @@ def get_supported_assets(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_supported_assets_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down Expand Up @@ -208,6 +210,7 @@ def register_new_asset(
:return: Returns the result object.
""" # noqa: E501


_param = self._register_new_asset_serialize(
idempotency_key=idempotency_key,
register_new_asset_request=register_new_asset_request,
Expand Down
8 changes: 8 additions & 0 deletions fireblocks/api/compliance_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class ComplianceApi:
Expand Down Expand Up @@ -86,6 +87,7 @@ def get_aml_post_screening_policy(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_aml_post_screening_policy_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down Expand Up @@ -202,6 +204,7 @@ def get_aml_screening_policy(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_aml_screening_policy_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down Expand Up @@ -318,6 +321,7 @@ def get_post_screening_policy(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_post_screening_policy_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down Expand Up @@ -434,6 +438,7 @@ def get_screening_policy(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_screening_policy_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down Expand Up @@ -553,6 +558,7 @@ def update_aml_screening_configuration(
:return: Returns the result object.
""" # noqa: E501


_param = self._update_aml_screening_configuration_serialize(
idempotency_key=idempotency_key,
_request_auth=_request_auth,
Expand Down Expand Up @@ -676,6 +682,7 @@ def update_screening_configuration(
:return: Returns the result object.
""" # noqa: E501


_param = self._update_screening_configuration_serialize(
idempotency_key=idempotency_key,
_request_auth=_request_auth,
Expand Down Expand Up @@ -799,6 +806,7 @@ def update_travel_rule_config(
:return: Returns the result object.
""" # noqa: E501


_param = self._update_travel_rule_config_serialize(
idempotency_key=idempotency_key,
_request_auth=_request_auth,
Expand Down
3 changes: 3 additions & 0 deletions fireblocks/api/compliance_screening_configuration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class ComplianceScreeningConfigurationApi:
Expand Down Expand Up @@ -80,6 +81,7 @@ def get_aml_screening_configuration(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_aml_screening_configuration_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down Expand Up @@ -196,6 +198,7 @@ def get_screening_configuration(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_screening_configuration_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down
3 changes: 3 additions & 0 deletions fireblocks/api/console_user_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class ConsoleUserApi:
Expand Down Expand Up @@ -90,6 +91,7 @@ def create_console_user(
:return: Returns the result object.
""" # noqa: E501


_param = self._create_console_user_serialize(
idempotency_key=idempotency_key,
create_console_user=create_console_user,
Expand Down Expand Up @@ -232,6 +234,7 @@ def get_console_users(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_console_users_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
Expand Down
10 changes: 10 additions & 0 deletions fireblocks/api/contract_interactions_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class ContractInteractionsApi:
Expand Down Expand Up @@ -96,6 +97,9 @@ def get_deployed_contract_abi(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="get_deployed_contract_abi", param_name="contract_address", param_value=contract_address)
validate_not_empty_string(function_name="get_deployed_contract_abi", param_name="asset_id", param_value=asset_id)

_param = self._get_deployed_contract_abi_serialize(
contract_address=contract_address,
asset_id=asset_id,
Expand Down Expand Up @@ -237,6 +241,9 @@ def read_call_function(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="read_call_function", param_name="contract_address", param_value=contract_address)
validate_not_empty_string(function_name="read_call_function", param_name="asset_id", param_value=asset_id)

_param = self._read_call_function_serialize(
contract_address=contract_address,
asset_id=asset_id,
Expand Down Expand Up @@ -395,6 +402,9 @@ def write_call_function(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="write_call_function", param_name="contract_address", param_value=contract_address)
validate_not_empty_string(function_name="write_call_function", param_name="asset_id", param_value=asset_id)

_param = self._write_call_function_serialize(
contract_address=contract_address,
asset_id=asset_id,
Expand Down
14 changes: 14 additions & 0 deletions fireblocks/api/contract_templates_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from fireblocks.api_client import ApiClient, RequestSerialized
from fireblocks.api_response import ApiResponse
from fireblocks.rest import RESTResponseType
from fireblocks.validation_utils import validate_not_empty_string


class ContractTemplatesApi:
Expand Down Expand Up @@ -91,6 +92,8 @@ def delete_contract_template_by_id(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="delete_contract_template_by_id", param_name="contract_template_id", param_value=contract_template_id)

_param = self._delete_contract_template_by_id_serialize(
contract_template_id=contract_template_id,
_request_auth=_request_auth,
Expand Down Expand Up @@ -222,6 +225,8 @@ def deploy_contract(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="deploy_contract", param_name="contract_template_id", param_value=contract_template_id)

_param = self._deploy_contract_serialize(
contract_template_id=contract_template_id,
contract_deploy_request=contract_deploy_request,
Expand Down Expand Up @@ -371,6 +376,8 @@ def get_constructor_by_contract_template_id(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="get_constructor_by_contract_template_id", param_name="contract_template_id", param_value=contract_template_id)

_param = self._get_constructor_by_contract_template_id_serialize(
contract_template_id=contract_template_id,
with_docs=with_docs,
Expand Down Expand Up @@ -502,6 +509,8 @@ def get_contract_template_by_id(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="get_contract_template_by_id", param_name="contract_template_id", param_value=contract_template_id)

_param = self._get_contract_template_by_id_serialize(
contract_template_id=contract_template_id,
_request_auth=_request_auth,
Expand Down Expand Up @@ -642,6 +651,7 @@ def get_contract_templates(
:return: Returns the result object.
""" # noqa: E501


_param = self._get_contract_templates_serialize(
limit=limit,
offset=offset,
Expand Down Expand Up @@ -801,6 +811,9 @@ def get_function_abi_by_contract_template_id(
:return: Returns the result object.
""" # noqa: E501

validate_not_empty_string(function_name="get_function_abi_by_contract_template_id", param_name="contract_template_id", param_value=contract_template_id)
validate_not_empty_string(function_name="get_function_abi_by_contract_template_id", param_name="function_signature", param_value=function_signature)

_param = self._get_function_abi_by_contract_template_id_serialize(
contract_template_id=contract_template_id,
function_signature=function_signature,
Expand Down Expand Up @@ -935,6 +948,7 @@ def upload_contract_template(
:return: Returns the result object.
""" # noqa: E501


_param = self._upload_contract_template_serialize(
contract_upload_request=contract_upload_request,
idempotency_key=idempotency_key,
Expand Down
Loading

0 comments on commit bd3ff9b

Please sign in to comment.