diff --git a/README.md b/README.md index 002ac1d..75bd601 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ In order to use this SDK, please head over to the [Kinetic Pyrhon SDK](https://d ## Version -This SDK is built to work with `@kinetic/api@v1.0.0-rc.8`. Using it with other versions may lead to issues. +This SDK is built to work with `@kinetic/api@v1.0.0-rc.9`. Using it with other versions may lead to issues. ## Contributing diff --git a/pyproject.toml b/pyproject.toml index 9c6aa9c..0571083 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "kinetic-sdk" -version = "1.0.0-rc.8" +version = "1.0.0-rc.9" description = "" authors = ["Kin Foundation "] license = "MIT" diff --git a/src/kinetic_sdk/generated/.openapi-generator/FILES b/src/kinetic_sdk/generated/.openapi-generator/FILES index 06eded9..b0b9c02 100644 --- a/src/kinetic_sdk/generated/.openapi-generator/FILES +++ b/src/kinetic_sdk/generated/.openapi-generator/FILES @@ -25,6 +25,9 @@ client/model/balance_response.py client/model/balance_token.py client/model/cluster_type.py client/model/commitment.py +client/model/compiled_inner_instruction.py +client/model/compiled_instruction.py +client/model/confirmation_status.py client/model/confirmed_signature_info.py client/model/confirmed_transaction_meta.py client/model/create_account_request.py @@ -36,6 +39,8 @@ client/model/minimum_rent_exemption_balance_response.py client/model/request_airdrop_request.py client/model/request_airdrop_response.py client/model/signature_status.py +client/model/token_amount.py +client/model/token_balance.py client/model/transaction.py client/model/transaction_data.py client/model/transaction_error.py diff --git a/src/kinetic_sdk/generated/README.md b/src/kinetic_sdk/generated/README.md index e253aa3..1cfbffe 100644 --- a/src/kinetic_sdk/generated/README.md +++ b/src/kinetic_sdk/generated/README.md @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.0.0-rc.8 +- API version: 1.0.0-rc.9 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen @@ -118,6 +118,9 @@ Class | Method | HTTP request | Description - [BalanceToken](docs/BalanceToken.md) - [ClusterType](docs/ClusterType.md) - [Commitment](docs/Commitment.md) + - [CompiledInnerInstruction](docs/CompiledInnerInstruction.md) + - [CompiledInstruction](docs/CompiledInstruction.md) + - [ConfirmationStatus](docs/ConfirmationStatus.md) - [ConfirmedSignatureInfo](docs/ConfirmedSignatureInfo.md) - [ConfirmedTransactionMeta](docs/ConfirmedTransactionMeta.md) - [CreateAccountRequest](docs/CreateAccountRequest.md) @@ -129,6 +132,8 @@ Class | Method | HTTP request | Description - [RequestAirdropRequest](docs/RequestAirdropRequest.md) - [RequestAirdropResponse](docs/RequestAirdropResponse.md) - [SignatureStatus](docs/SignatureStatus.md) + - [TokenAmount](docs/TokenAmount.md) + - [TokenBalance](docs/TokenBalance.md) - [Transaction](docs/Transaction.md) - [TransactionData](docs/TransactionData.md) - [TransactionError](docs/TransactionError.md) diff --git a/src/kinetic_sdk/generated/client/__init__.py b/src/kinetic_sdk/generated/client/__init__.py index 9771de5..bf27d71 100644 --- a/src/kinetic_sdk/generated/client/__init__.py +++ b/src/kinetic_sdk/generated/client/__init__.py @@ -5,7 +5,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/api/account_api.py b/src/kinetic_sdk/generated/client/api/account_api.py index f27c172..d53d349 100644 --- a/src/kinetic_sdk/generated/client/api/account_api.py +++ b/src/kinetic_sdk/generated/client/api/account_api.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/api/airdrop_api.py b/src/kinetic_sdk/generated/client/api/airdrop_api.py index 28e86ed..027e06e 100644 --- a/src/kinetic_sdk/generated/client/api/airdrop_api.py +++ b/src/kinetic_sdk/generated/client/api/airdrop_api.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/api/app_api.py b/src/kinetic_sdk/generated/client/api/app_api.py index 7900956..9ad3140 100644 --- a/src/kinetic_sdk/generated/client/api/app_api.py +++ b/src/kinetic_sdk/generated/client/api/app_api.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/api/transaction_api.py b/src/kinetic_sdk/generated/client/api/transaction_api.py index 2f8c938..98f5de1 100644 --- a/src/kinetic_sdk/generated/client/api/transaction_api.py +++ b/src/kinetic_sdk/generated/client/api/transaction_api.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/api_client.py b/src/kinetic_sdk/generated/client/api_client.py index 49fca83..03a86d1 100644 --- a/src/kinetic_sdk/generated/client/api_client.py +++ b/src/kinetic_sdk/generated/client/api_client.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/configuration.py b/src/kinetic_sdk/generated/client/configuration.py index c806fa4..28f9145 100644 --- a/src/kinetic_sdk/generated/client/configuration.py +++ b/src/kinetic_sdk/generated/client/configuration.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -379,7 +379,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0-rc.8\n"\ + "Version of the API: 1.0.0-rc.9\n"\ "SDK Package Version: 1.0.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/src/kinetic_sdk/generated/client/exceptions.py b/src/kinetic_sdk/generated/client/exceptions.py index b016840..8044db4 100644 --- a/src/kinetic_sdk/generated/client/exceptions.py +++ b/src/kinetic_sdk/generated/client/exceptions.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_config.py b/src/kinetic_sdk/generated/client/model/app_config.py index b8a4e0e..3d49948 100644 --- a/src/kinetic_sdk/generated/client/model/app_config.py +++ b/src/kinetic_sdk/generated/client/model/app_config.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_config_api.py b/src/kinetic_sdk/generated/client/model/app_config_api.py index 5e7bc86..6f853a9 100644 --- a/src/kinetic_sdk/generated/client/model/app_config_api.py +++ b/src/kinetic_sdk/generated/client/model/app_config_api.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_config_app.py b/src/kinetic_sdk/generated/client/model/app_config_app.py index 7e4142e..ae601a4 100644 --- a/src/kinetic_sdk/generated/client/model/app_config_app.py +++ b/src/kinetic_sdk/generated/client/model/app_config_app.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_config_cluster.py b/src/kinetic_sdk/generated/client/model/app_config_cluster.py index d98684e..81dc92f 100644 --- a/src/kinetic_sdk/generated/client/model/app_config_cluster.py +++ b/src/kinetic_sdk/generated/client/model/app_config_cluster.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_config_environment.py b/src/kinetic_sdk/generated/client/model/app_config_environment.py index ecdec83..898b457 100644 --- a/src/kinetic_sdk/generated/client/model/app_config_environment.py +++ b/src/kinetic_sdk/generated/client/model/app_config_environment.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_config_mint.py b/src/kinetic_sdk/generated/client/model/app_config_mint.py index 958f202..c54f7b5 100644 --- a/src/kinetic_sdk/generated/client/model/app_config_mint.py +++ b/src/kinetic_sdk/generated/client/model/app_config_mint.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/app_health.py b/src/kinetic_sdk/generated/client/model/app_health.py index 6aa6981..3afcfd7 100644 --- a/src/kinetic_sdk/generated/client/model/app_health.py +++ b/src/kinetic_sdk/generated/client/model/app_health.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/balance_response.py b/src/kinetic_sdk/generated/client/model/balance_response.py index 425a7be..078dd9e 100644 --- a/src/kinetic_sdk/generated/client/model/balance_response.py +++ b/src/kinetic_sdk/generated/client/model/balance_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/balance_token.py b/src/kinetic_sdk/generated/client/model/balance_token.py index 73048f9..a7bc3fe 100644 --- a/src/kinetic_sdk/generated/client/model/balance_token.py +++ b/src/kinetic_sdk/generated/client/model/balance_token.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/cluster_type.py b/src/kinetic_sdk/generated/client/model/cluster_type.py index 761d967..59fc0bf 100644 --- a/src/kinetic_sdk/generated/client/model/cluster_type.py +++ b/src/kinetic_sdk/generated/client/model/cluster_type.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/commitment.py b/src/kinetic_sdk/generated/client/model/commitment.py index c6db911..f1defc6 100644 --- a/src/kinetic_sdk/generated/client/model/commitment.py +++ b/src/kinetic_sdk/generated/client/model/commitment.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/compiled_inner_instruction.py b/src/kinetic_sdk/generated/client/model/compiled_inner_instruction.py new file mode 100644 index 0000000..41af7ca --- /dev/null +++ b/src/kinetic_sdk/generated/client/model/compiled_inner_instruction.py @@ -0,0 +1,281 @@ +""" + @kin-kinetic/api + + The OpenAPI definition of the Kinetic API # noqa: E501 + + The version of the OpenAPI document: 1.0.0-rc.9 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from kinetic_sdk.generated.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from kinetic_sdk.generated.client.exceptions import ApiAttributeError + + +def lazy_import(): + from kinetic_sdk.generated.client.model.compiled_instruction import CompiledInstruction + globals()['CompiledInstruction'] = CompiledInstruction + + +class CompiledInnerInstruction(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'index': (int,), # noqa: E501 + 'instructions': ([CompiledInstruction],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'index': 'index', # noqa: E501 + 'instructions': 'instructions', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, index, instructions, *args, **kwargs): # noqa: E501 + """CompiledInnerInstruction - a model defined in OpenAPI + + Args: + index (int): + instructions ([CompiledInstruction]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.index = index + self.instructions = instructions + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, index, instructions, *args, **kwargs): # noqa: E501 + """CompiledInnerInstruction - a model defined in OpenAPI + + Args: + index (int): + instructions ([CompiledInstruction]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.index = index + self.instructions = instructions + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/kinetic_sdk/generated/client/model/compiled_instruction.py b/src/kinetic_sdk/generated/client/model/compiled_instruction.py new file mode 100644 index 0000000..84ff3fa --- /dev/null +++ b/src/kinetic_sdk/generated/client/model/compiled_instruction.py @@ -0,0 +1,281 @@ +""" + @kin-kinetic/api + + The OpenAPI definition of the Kinetic API # noqa: E501 + + The version of the OpenAPI document: 1.0.0-rc.9 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from kinetic_sdk.generated.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from kinetic_sdk.generated.client.exceptions import ApiAttributeError + + + +class CompiledInstruction(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'program_id_index': (int,), # noqa: E501 + 'accounts': ([int],), # noqa: E501 + 'data': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'program_id_index': 'programIdIndex', # noqa: E501 + 'accounts': 'accounts', # noqa: E501 + 'data': 'data', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, program_id_index, accounts, data, *args, **kwargs): # noqa: E501 + """CompiledInstruction - a model defined in OpenAPI + + Args: + program_id_index (int): + accounts ([int]): + data (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.program_id_index = program_id_index + self.accounts = accounts + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, program_id_index, accounts, data, *args, **kwargs): # noqa: E501 + """CompiledInstruction - a model defined in OpenAPI + + Args: + program_id_index (int): + accounts ([int]): + data (str): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.program_id_index = program_id_index + self.accounts = accounts + self.data = data + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/kinetic_sdk/generated/client/model/confirmation_status.py b/src/kinetic_sdk/generated/client/model/confirmation_status.py new file mode 100644 index 0000000..ace1adf --- /dev/null +++ b/src/kinetic_sdk/generated/client/model/confirmation_status.py @@ -0,0 +1,291 @@ +""" + @kin-kinetic/api + + The OpenAPI definition of the Kinetic API # noqa: E501 + + The version of the OpenAPI document: 1.0.0-rc.9 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from kinetic_sdk.generated.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from kinetic_sdk.generated.client.exceptions import ApiAttributeError + + + +class ConfirmationStatus(ModelSimple): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('value',): { + 'PROCESSED': "processed", + 'CONFIRMED': "confirmed", + 'FINALIZED': "finalized", + }, + } + + validations = { + } + + additional_properties_type = None + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'value': (str,), + } + + @cached_property + def discriminator(): + return None + + + attribute_map = {} + + read_only_vars = set() + + _composed_schemas = None + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): + """ConfirmationStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["processed", "confirmed", "finalized", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["processed", "confirmed", "finalized", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): + """ConfirmationStatus - a model defined in OpenAPI + + Note that value can be passed either in args or in kwargs, but not in both. + + Args: + args[0] (str):, must be one of ["processed", "confirmed", "finalized", ] # noqa: E501 + + Keyword Args: + value (str):, must be one of ["processed", "confirmed", "finalized", ] # noqa: E501 + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + # required up here when default value is not given + _path_to_item = kwargs.pop('_path_to_item', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if 'value' in kwargs: + value = kwargs.pop('value') + elif args: + args = list(args) + value = args.pop(0) + else: + raise ApiTypeError( + "value is required, but not passed in args or kwargs and doesn't have default", + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.value = value + if kwargs: + raise ApiTypeError( + "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( + kwargs, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + return self diff --git a/src/kinetic_sdk/generated/client/model/confirmed_signature_info.py b/src/kinetic_sdk/generated/client/model/confirmed_signature_info.py index ad0bab7..6e2bee9 100644 --- a/src/kinetic_sdk/generated/client/model/confirmed_signature_info.py +++ b/src/kinetic_sdk/generated/client/model/confirmed_signature_info.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -82,10 +82,10 @@ def openapi_types(): """ return { 'signature': (str,), # noqa: E501 - 'slot': (float, none_type,), # noqa: E501 + 'slot': (int, none_type,), # noqa: E501 'err': (str, none_type,), # noqa: E501 'memo': (str, none_type,), # noqa: E501 - 'block_time': (float, none_type,), # noqa: E501 + 'block_time': (int, none_type,), # noqa: E501 } @cached_property @@ -145,10 +145,10 @@ def _from_openapi_data(cls, signature, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - slot (float, none_type): [optional] # noqa: E501 + slot (int, none_type): [optional] # noqa: E501 err (str, none_type): [optional] # noqa: E501 memo (str, none_type): [optional] # noqa: E501 - block_time (float, none_type): [optional] # noqa: E501 + block_time (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -238,10 +238,10 @@ def __init__(self, signature, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - slot (float, none_type): [optional] # noqa: E501 + slot (int, none_type): [optional] # noqa: E501 err (str, none_type): [optional] # noqa: E501 memo (str, none_type): [optional] # noqa: E501 - block_time (float, none_type): [optional] # noqa: E501 + block_time (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/kinetic_sdk/generated/client/model/confirmed_transaction_meta.py b/src/kinetic_sdk/generated/client/model/confirmed_transaction_meta.py index e60db06..f0c55f4 100644 --- a/src/kinetic_sdk/generated/client/model/confirmed_transaction_meta.py +++ b/src/kinetic_sdk/generated/client/model/confirmed_transaction_meta.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -29,6 +29,12 @@ from kinetic_sdk.generated.client.exceptions import ApiAttributeError +def lazy_import(): + from kinetic_sdk.generated.client.model.compiled_inner_instruction import CompiledInnerInstruction + from kinetic_sdk.generated.client.model.token_balance import TokenBalance + globals()['CompiledInnerInstruction'] = CompiledInnerInstruction + globals()['TokenBalance'] = TokenBalance + class ConfirmedTransactionMeta(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -66,6 +72,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,14 +87,15 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'post_balances': ([int],), # noqa: E501 - 'fee': (float, none_type,), # noqa: E501 - 'inner_instructions': ([str], none_type,), # noqa: E501 + 'fee': (int, none_type,), # noqa: E501 + 'inner_instructions': ([CompiledInnerInstruction], none_type,), # noqa: E501 'pre_balances': ([int], none_type,), # noqa: E501 'log_messages': ([str], none_type,), # noqa: E501 - 'pre_token_balances': ([str], none_type,), # noqa: E501 - 'post_token_balances': ([str], none_type,), # noqa: E501 + 'pre_token_balances': ([TokenBalance], none_type,), # noqa: E501 + 'post_token_balances': ([TokenBalance], none_type,), # noqa: E501 'err': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 } @@ -151,12 +159,12 @@ def _from_openapi_data(cls, post_balances, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - fee (float, none_type): [optional] # noqa: E501 - inner_instructions ([str], none_type): [optional] # noqa: E501 + fee (int, none_type): [optional] # noqa: E501 + inner_instructions ([CompiledInnerInstruction], none_type): [optional] # noqa: E501 pre_balances ([int], none_type): [optional] # noqa: E501 log_messages ([str], none_type): [optional] # noqa: E501 - pre_token_balances ([str], none_type): [optional] # noqa: E501 - post_token_balances ([str], none_type): [optional] # noqa: E501 + pre_token_balances ([TokenBalance], none_type): [optional] # noqa: E501 + post_token_balances ([TokenBalance], none_type): [optional] # noqa: E501 err ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 """ @@ -247,12 +255,12 @@ def __init__(self, post_balances, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - fee (float, none_type): [optional] # noqa: E501 - inner_instructions ([str], none_type): [optional] # noqa: E501 + fee (int, none_type): [optional] # noqa: E501 + inner_instructions ([CompiledInnerInstruction], none_type): [optional] # noqa: E501 pre_balances ([int], none_type): [optional] # noqa: E501 log_messages ([str], none_type): [optional] # noqa: E501 - pre_token_balances ([str], none_type): [optional] # noqa: E501 - post_token_balances ([str], none_type): [optional] # noqa: E501 + pre_token_balances ([TokenBalance], none_type): [optional] # noqa: E501 + post_token_balances ([TokenBalance], none_type): [optional] # noqa: E501 err ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 """ diff --git a/src/kinetic_sdk/generated/client/model/create_account_request.py b/src/kinetic_sdk/generated/client/model/create_account_request.py index ab0a939..71ddba7 100644 --- a/src/kinetic_sdk/generated/client/model/create_account_request.py +++ b/src/kinetic_sdk/generated/client/model/create_account_request.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/get_transaction_response.py b/src/kinetic_sdk/generated/client/model/get_transaction_response.py index 9f5c0c7..2bf9dc8 100644 --- a/src/kinetic_sdk/generated/client/model/get_transaction_response.py +++ b/src/kinetic_sdk/generated/client/model/get_transaction_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/history_response.py b/src/kinetic_sdk/generated/client/model/history_response.py index f1ab1e0..f7c4956 100644 --- a/src/kinetic_sdk/generated/client/model/history_response.py +++ b/src/kinetic_sdk/generated/client/model/history_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/latest_blockhash_response.py b/src/kinetic_sdk/generated/client/model/latest_blockhash_response.py index 5a5c45c..0f39ab0 100644 --- a/src/kinetic_sdk/generated/client/model/latest_blockhash_response.py +++ b/src/kinetic_sdk/generated/client/model/latest_blockhash_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/make_transfer_request.py b/src/kinetic_sdk/generated/client/model/make_transfer_request.py index 08e21a5..1711ed3 100644 --- a/src/kinetic_sdk/generated/client/model/make_transfer_request.py +++ b/src/kinetic_sdk/generated/client/model/make_transfer_request.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/minimum_rent_exemption_balance_response.py b/src/kinetic_sdk/generated/client/model/minimum_rent_exemption_balance_response.py index d3a92b7..bf44e90 100644 --- a/src/kinetic_sdk/generated/client/model/minimum_rent_exemption_balance_response.py +++ b/src/kinetic_sdk/generated/client/model/minimum_rent_exemption_balance_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -81,7 +81,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'lamports': (float,), # noqa: E501 + 'lamports': (int,), # noqa: E501 } @cached_property @@ -104,7 +104,7 @@ def _from_openapi_data(cls, lamports, *args, **kwargs): # noqa: E501 """MinimumRentExemptionBalanceResponse - a model defined in OpenAPI Args: - lamports (float): + lamports (int): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -193,7 +193,7 @@ def __init__(self, lamports, *args, **kwargs): # noqa: E501 """MinimumRentExemptionBalanceResponse - a model defined in OpenAPI Args: - lamports (float): + lamports (int): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/src/kinetic_sdk/generated/client/model/request_airdrop_request.py b/src/kinetic_sdk/generated/client/model/request_airdrop_request.py index b6be389..6ed3ad7 100644 --- a/src/kinetic_sdk/generated/client/model/request_airdrop_request.py +++ b/src/kinetic_sdk/generated/client/model/request_airdrop_request.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/request_airdrop_response.py b/src/kinetic_sdk/generated/client/model/request_airdrop_response.py index 51f3410..6b91e30 100644 --- a/src/kinetic_sdk/generated/client/model/request_airdrop_response.py +++ b/src/kinetic_sdk/generated/client/model/request_airdrop_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/signature_status.py b/src/kinetic_sdk/generated/client/model/signature_status.py index 1aa4b5e..00c718b 100644 --- a/src/kinetic_sdk/generated/client/model/signature_status.py +++ b/src/kinetic_sdk/generated/client/model/signature_status.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -29,6 +29,10 @@ from kinetic_sdk.generated.client.exceptions import ApiAttributeError +def lazy_import(): + from kinetic_sdk.generated.client.model.confirmation_status import ConfirmationStatus + globals()['ConfirmationStatus'] = ConfirmationStatus + class SignatureStatus(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -55,12 +59,6 @@ class SignatureStatus(ModelNormal): """ allowed_values = { - ('confirmation_status',): { - 'None': None, - 'PROCESSED': "processed", - 'CONFIRMED': "confirmed", - 'FINALIZED': "finalized", - }, } validations = { @@ -72,6 +70,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -86,11 +85,12 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'slot': (float, none_type,), # noqa: E501 - 'confirmations': (float, none_type,), # noqa: E501 + 'slot': (int, none_type,), # noqa: E501 + 'confirmations': (int, none_type,), # noqa: E501 'err': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 - 'confirmation_status': (str, none_type,), # noqa: E501 + 'confirmation_status': (ConfirmationStatus,), # noqa: E501 } @cached_property @@ -146,10 +146,10 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - slot (float, none_type): [optional] # noqa: E501 - confirmations (float, none_type): [optional] # noqa: E501 + slot (int, none_type): [optional] # noqa: E501 + confirmations (int, none_type): [optional] # noqa: E501 err ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 - confirmation_status (str, none_type): [optional] # noqa: E501 + confirmation_status (ConfirmationStatus): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -235,10 +235,10 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - slot (float, none_type): [optional] # noqa: E501 - confirmations (float, none_type): [optional] # noqa: E501 + slot (int, none_type): [optional] # noqa: E501 + confirmations (int, none_type): [optional] # noqa: E501 err ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 - confirmation_status (str, none_type): [optional] # noqa: E501 + confirmation_status (ConfirmationStatus): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/kinetic_sdk/generated/client/model/token_amount.py b/src/kinetic_sdk/generated/client/model/token_amount.py new file mode 100644 index 0000000..513a525 --- /dev/null +++ b/src/kinetic_sdk/generated/client/model/token_amount.py @@ -0,0 +1,283 @@ +""" + @kin-kinetic/api + + The OpenAPI definition of the Kinetic API # noqa: E501 + + The version of the OpenAPI document: 1.0.0-rc.9 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from kinetic_sdk.generated.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from kinetic_sdk.generated.client.exceptions import ApiAttributeError + + + +class TokenAmount(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'amount': (str,), # noqa: E501 + 'decimals': (int,), # noqa: E501 + 'ui_amount': (int, none_type,), # noqa: E501 + 'ui_amount_string': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'amount': 'amount', # noqa: E501 + 'decimals': 'decimals', # noqa: E501 + 'ui_amount': 'uiAmount', # noqa: E501 + 'ui_amount_string': 'uiAmountString', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, amount, decimals, *args, **kwargs): # noqa: E501 + """TokenAmount - a model defined in OpenAPI + + Args: + amount (str): + decimals (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + ui_amount (int, none_type): [optional] # noqa: E501 + ui_amount_string (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.amount = amount + self.decimals = decimals + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, amount, decimals, *args, **kwargs): # noqa: E501 + """TokenAmount - a model defined in OpenAPI + + Args: + amount (str): + decimals (int): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + ui_amount (int, none_type): [optional] # noqa: E501 + ui_amount_string (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.amount = amount + self.decimals = decimals + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/kinetic_sdk/generated/client/model/token_balance.py b/src/kinetic_sdk/generated/client/model/token_balance.py new file mode 100644 index 0000000..1ac0f0c --- /dev/null +++ b/src/kinetic_sdk/generated/client/model/token_balance.py @@ -0,0 +1,291 @@ +""" + @kin-kinetic/api + + The OpenAPI definition of the Kinetic API # noqa: E501 + + The version of the OpenAPI document: 1.0.0-rc.9 + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from kinetic_sdk.generated.client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from kinetic_sdk.generated.client.exceptions import ApiAttributeError + + +def lazy_import(): + from kinetic_sdk.generated.client.model.token_amount import TokenAmount + globals()['TokenAmount'] = TokenAmount + + +class TokenBalance(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'account_index': (int,), # noqa: E501 + 'mint': (str,), # noqa: E501 + 'ui_token_amount': (TokenAmount,), # noqa: E501 + 'owner': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'account_index': 'accountIndex', # noqa: E501 + 'mint': 'mint', # noqa: E501 + 'ui_token_amount': 'uiTokenAmount', # noqa: E501 + 'owner': 'owner', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, account_index, mint, ui_token_amount, *args, **kwargs): # noqa: E501 + """TokenBalance - a model defined in OpenAPI + + Args: + account_index (int): + mint (str): + ui_token_amount (TokenAmount): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + owner (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_index = account_index + self.mint = mint + self.ui_token_amount = ui_token_amount + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, account_index, mint, ui_token_amount, *args, **kwargs): # noqa: E501 + """TokenBalance - a model defined in OpenAPI + + Args: + account_index (int): + mint (str): + ui_token_amount (TokenAmount): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + owner (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.account_index = account_index + self.mint = mint + self.ui_token_amount = ui_token_amount + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/src/kinetic_sdk/generated/client/model/transaction.py b/src/kinetic_sdk/generated/client/model/transaction.py index 6f7b744..59d9305 100644 --- a/src/kinetic_sdk/generated/client/model/transaction.py +++ b/src/kinetic_sdk/generated/client/model/transaction.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -93,34 +93,34 @@ def openapi_types(): 'created_at': (datetime, none_type,), # noqa: E501 'updated_at': (datetime, none_type,), # noqa: E501 'amount': (str, none_type,), # noqa: E501 - 'decimals': (float, none_type,), # noqa: E501 + 'decimals': (int, none_type,), # noqa: E501 'destination': (str, none_type,), # noqa: E501 'errors': ([TransactionError], none_type,), # noqa: E501 'explorer_url': (str, none_type,), # noqa: E501 'fee_payer': (str, none_type,), # noqa: E501 'ip': (str, none_type,), # noqa: E501 'mint': (str, none_type,), # noqa: E501 - 'processing_duration': (float, none_type,), # noqa: E501 + 'processing_duration': (int, none_type,), # noqa: E501 'reference_id': (str, none_type,), # noqa: E501 'reference_type': (str, none_type,), # noqa: E501 'signature': (str, none_type,), # noqa: E501 'solana_committed': (datetime, none_type,), # noqa: E501 - 'solana_committed_duration': (float, none_type,), # noqa: E501 + 'solana_committed_duration': (int, none_type,), # noqa: E501 'solana_finalized': (datetime, none_type,), # noqa: E501 - 'solana_finalized_duration': (float, none_type,), # noqa: E501 + 'solana_finalized_duration': (int, none_type,), # noqa: E501 'solana_start': (datetime, none_type,), # noqa: E501 'solana_transaction': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'source': (str, none_type,), # noqa: E501 'status': (TransactionStatus,), # noqa: E501 - 'total_duration': (float, none_type,), # noqa: E501 + 'total_duration': (int, none_type,), # noqa: E501 'tx': (str, none_type,), # noqa: E501 'ua': (str, none_type,), # noqa: E501 'webhook_event_start': (datetime, none_type,), # noqa: E501 'webhook_event_end': (datetime, none_type,), # noqa: E501 - 'webhook_event_duration': (float, none_type,), # noqa: E501 + 'webhook_event_duration': (int, none_type,), # noqa: E501 'webhook_verify_start': (datetime, none_type,), # noqa: E501 'webhook_verify_end': (datetime, none_type,), # noqa: E501 - 'webhook_verify_duration': (float, none_type,), # noqa: E501 + 'webhook_verify_duration': (int, none_type,), # noqa: E501 } @cached_property @@ -208,34 +208,34 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 created_at (datetime, none_type): [optional] # noqa: E501 updated_at (datetime, none_type): [optional] # noqa: E501 amount (str, none_type): [optional] # noqa: E501 - decimals (float, none_type): [optional] # noqa: E501 + decimals (int, none_type): [optional] # noqa: E501 destination (str, none_type): [optional] # noqa: E501 errors ([TransactionError], none_type): [optional] # noqa: E501 explorer_url (str, none_type): [optional] # noqa: E501 fee_payer (str, none_type): [optional] # noqa: E501 ip (str, none_type): [optional] # noqa: E501 mint (str, none_type): [optional] # noqa: E501 - processing_duration (float, none_type): [optional] # noqa: E501 + processing_duration (int, none_type): [optional] # noqa: E501 reference_id (str, none_type): [optional] # noqa: E501 reference_type (str, none_type): [optional] # noqa: E501 signature (str, none_type): [optional] # noqa: E501 solana_committed (datetime, none_type): [optional] # noqa: E501 - solana_committed_duration (float, none_type): [optional] # noqa: E501 + solana_committed_duration (int, none_type): [optional] # noqa: E501 solana_finalized (datetime, none_type): [optional] # noqa: E501 - solana_finalized_duration (float, none_type): [optional] # noqa: E501 + solana_finalized_duration (int, none_type): [optional] # noqa: E501 solana_start (datetime, none_type): [optional] # noqa: E501 solana_transaction ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 source (str, none_type): [optional] # noqa: E501 status (TransactionStatus): [optional] # noqa: E501 - total_duration (float, none_type): [optional] # noqa: E501 + total_duration (int, none_type): [optional] # noqa: E501 tx (str, none_type): [optional] # noqa: E501 ua (str, none_type): [optional] # noqa: E501 webhook_event_start (datetime, none_type): [optional] # noqa: E501 webhook_event_end (datetime, none_type): [optional] # noqa: E501 - webhook_event_duration (float, none_type): [optional] # noqa: E501 + webhook_event_duration (int, none_type): [optional] # noqa: E501 webhook_verify_start (datetime, none_type): [optional] # noqa: E501 webhook_verify_end (datetime, none_type): [optional] # noqa: E501 - webhook_verify_duration (float, none_type): [optional] # noqa: E501 + webhook_verify_duration (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -325,34 +325,34 @@ def __init__(self, *args, **kwargs): # noqa: E501 created_at (datetime, none_type): [optional] # noqa: E501 updated_at (datetime, none_type): [optional] # noqa: E501 amount (str, none_type): [optional] # noqa: E501 - decimals (float, none_type): [optional] # noqa: E501 + decimals (int, none_type): [optional] # noqa: E501 destination (str, none_type): [optional] # noqa: E501 errors ([TransactionError], none_type): [optional] # noqa: E501 explorer_url (str, none_type): [optional] # noqa: E501 fee_payer (str, none_type): [optional] # noqa: E501 ip (str, none_type): [optional] # noqa: E501 mint (str, none_type): [optional] # noqa: E501 - processing_duration (float, none_type): [optional] # noqa: E501 + processing_duration (int, none_type): [optional] # noqa: E501 reference_id (str, none_type): [optional] # noqa: E501 reference_type (str, none_type): [optional] # noqa: E501 signature (str, none_type): [optional] # noqa: E501 solana_committed (datetime, none_type): [optional] # noqa: E501 - solana_committed_duration (float, none_type): [optional] # noqa: E501 + solana_committed_duration (int, none_type): [optional] # noqa: E501 solana_finalized (datetime, none_type): [optional] # noqa: E501 - solana_finalized_duration (float, none_type): [optional] # noqa: E501 + solana_finalized_duration (int, none_type): [optional] # noqa: E501 solana_start (datetime, none_type): [optional] # noqa: E501 solana_transaction ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): [optional] # noqa: E501 source (str, none_type): [optional] # noqa: E501 status (TransactionStatus): [optional] # noqa: E501 - total_duration (float, none_type): [optional] # noqa: E501 + total_duration (int, none_type): [optional] # noqa: E501 tx (str, none_type): [optional] # noqa: E501 ua (str, none_type): [optional] # noqa: E501 webhook_event_start (datetime, none_type): [optional] # noqa: E501 webhook_event_end (datetime, none_type): [optional] # noqa: E501 - webhook_event_duration (float, none_type): [optional] # noqa: E501 + webhook_event_duration (int, none_type): [optional] # noqa: E501 webhook_verify_start (datetime, none_type): [optional] # noqa: E501 webhook_verify_end (datetime, none_type): [optional] # noqa: E501 - webhook_verify_duration (float, none_type): [optional] # noqa: E501 + webhook_verify_duration (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/kinetic_sdk/generated/client/model/transaction_data.py b/src/kinetic_sdk/generated/client/model/transaction_data.py index 12b51fb..bc77422 100644 --- a/src/kinetic_sdk/generated/client/model/transaction_data.py +++ b/src/kinetic_sdk/generated/client/model/transaction_data.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/transaction_error.py b/src/kinetic_sdk/generated/client/model/transaction_error.py index 63df524..7f3170d 100644 --- a/src/kinetic_sdk/generated/client/model/transaction_error.py +++ b/src/kinetic_sdk/generated/client/model/transaction_error.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/transaction_error_type.py b/src/kinetic_sdk/generated/client/model/transaction_error_type.py index c8937f2..f61dc51 100644 --- a/src/kinetic_sdk/generated/client/model/transaction_error_type.py +++ b/src/kinetic_sdk/generated/client/model/transaction_error_type.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model/transaction_response.py b/src/kinetic_sdk/generated/client/model/transaction_response.py index 7a3bdca..b50deec 100644 --- a/src/kinetic_sdk/generated/client/model/transaction_response.py +++ b/src/kinetic_sdk/generated/client/model/transaction_response.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ @@ -91,8 +91,8 @@ def openapi_types(): return { 'transaction': (TransactionData,), # noqa: E501 'meta': (ConfirmedTransactionMeta,), # noqa: E501 - 'slot': (float, none_type,), # noqa: E501 - 'block_time': (float, none_type,), # noqa: E501 + 'slot': (int, none_type,), # noqa: E501 + 'block_time': (int, none_type,), # noqa: E501 } @cached_property @@ -152,8 +152,8 @@ def _from_openapi_data(cls, transaction, meta, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - slot (float, none_type): [optional] # noqa: E501 - block_time (float, none_type): [optional] # noqa: E501 + slot (int, none_type): [optional] # noqa: E501 + block_time (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -245,8 +245,8 @@ def __init__(self, transaction, meta, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - slot (float, none_type): [optional] # noqa: E501 - block_time (float, none_type): [optional] # noqa: E501 + slot (int, none_type): [optional] # noqa: E501 + block_time (int, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/src/kinetic_sdk/generated/client/model/transaction_status.py b/src/kinetic_sdk/generated/client/model/transaction_status.py index abaebe1..80ae7d6 100644 --- a/src/kinetic_sdk/generated/client/model/transaction_status.py +++ b/src/kinetic_sdk/generated/client/model/transaction_status.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/model_utils.py b/src/kinetic_sdk/generated/client/model_utils.py index 22bd101..e72578f 100644 --- a/src/kinetic_sdk/generated/client/model_utils.py +++ b/src/kinetic_sdk/generated/client/model_utils.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/client/models/__init__.py b/src/kinetic_sdk/generated/client/models/__init__.py index ee1bb99..bf8983c 100644 --- a/src/kinetic_sdk/generated/client/models/__init__.py +++ b/src/kinetic_sdk/generated/client/models/__init__.py @@ -20,6 +20,9 @@ from kinetic_sdk.generated.client.model.balance_token import BalanceToken from kinetic_sdk.generated.client.model.cluster_type import ClusterType from kinetic_sdk.generated.client.model.commitment import Commitment +from kinetic_sdk.generated.client.model.compiled_inner_instruction import CompiledInnerInstruction +from kinetic_sdk.generated.client.model.compiled_instruction import CompiledInstruction +from kinetic_sdk.generated.client.model.confirmation_status import ConfirmationStatus from kinetic_sdk.generated.client.model.confirmed_signature_info import ConfirmedSignatureInfo from kinetic_sdk.generated.client.model.confirmed_transaction_meta import ConfirmedTransactionMeta from kinetic_sdk.generated.client.model.create_account_request import CreateAccountRequest @@ -31,6 +34,8 @@ from kinetic_sdk.generated.client.model.request_airdrop_request import RequestAirdropRequest from kinetic_sdk.generated.client.model.request_airdrop_response import RequestAirdropResponse from kinetic_sdk.generated.client.model.signature_status import SignatureStatus +from kinetic_sdk.generated.client.model.token_amount import TokenAmount +from kinetic_sdk.generated.client.model.token_balance import TokenBalance from kinetic_sdk.generated.client.model.transaction import Transaction from kinetic_sdk.generated.client.model.transaction_data import TransactionData from kinetic_sdk.generated.client.model.transaction_error import TransactionError diff --git a/src/kinetic_sdk/generated/client/rest.py b/src/kinetic_sdk/generated/client/rest.py index 92e9628..f0b5d1a 100644 --- a/src/kinetic_sdk/generated/client/rest.py +++ b/src/kinetic_sdk/generated/client/rest.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/generated/setup.py b/src/kinetic_sdk/generated/setup.py index f3d53ad..2ead56f 100644 --- a/src/kinetic_sdk/generated/setup.py +++ b/src/kinetic_sdk/generated/setup.py @@ -3,7 +3,7 @@ The OpenAPI definition of the Kinetic API # noqa: E501 - The version of the OpenAPI document: 1.0.0-rc.8 + The version of the OpenAPI document: 1.0.0-rc.9 Generated by: https://openapi-generator.tech """ diff --git a/src/kinetic_sdk/models/version.py b/src/kinetic_sdk/models/version.py index c20e43b..f4c534b 100644 --- a/src/kinetic_sdk/models/version.py +++ b/src/kinetic_sdk/models/version.py @@ -1,2 +1,2 @@ NAME = 'Kinetic Python SDK' -VERSION = '1.0.0-rc.8' +VERSION = '1.0.0-rc.9'