forked from lthn/blockchain
This pull request introduces a comprehensive new API interface for the blockchain, leveraging OpenAPI v3 to facilitate direct consumption of chain data by GUI and web applications. This change significantly refines the project's build infrastructure, incorporating Conan for dependency management and CMake for configuration, alongside the integration of an OpenAPI Generator to produce SDKs for multiple languages. ### Highlights * **New API Interface**: Introduced a new API interface using OpenAPI v3 to enable GUI/WEB development to consume chain data without needing custom server applications. * **Build System Enhancements**: Significant updates to the build system, including Makefile, CMake, and Conan configurations, to streamline the build process and support new functionalities. * **Multi-language SDK Generation**: Integrated OpenAPI Generator to automatically create SDKs for various programming languages, including Go, Angular, and PHP, simplifying client-side integration.
92 lines
3.7 KiB
Python
Generated
92 lines
3.7 KiB
Python
Generated
# coding: utf-8
|
|
|
|
# flake8: noqa
|
|
|
|
"""
|
|
Lethean Blockchain API
|
|
|
|
OpenAPI for Lethean Blockchain
|
|
|
|
The version of the OpenAPI document: 6.0.1
|
|
Generated by OpenAPI Generator (https://openapi-generator.tech)
|
|
|
|
Do not edit the class manually.
|
|
""" # noqa: E501
|
|
|
|
|
|
__version__ = "1.0.0"
|
|
|
|
# Define package exports
|
|
__all__ = [
|
|
"BlockApi",
|
|
"InfoApi",
|
|
"ApiResponse",
|
|
"ApiClient",
|
|
"Configuration",
|
|
"OpenApiException",
|
|
"ApiTypeError",
|
|
"ApiValueError",
|
|
"ApiKeyError",
|
|
"ApiAttributeError",
|
|
"ApiException",
|
|
"BlockDetailsModel",
|
|
"BlockProcessingPerformanceModel",
|
|
"BlockTemplateModel",
|
|
"BlockTemplateRequestModel",
|
|
"DbStatInfoModel",
|
|
"HeightModel",
|
|
"InfoModel",
|
|
"MaintainersInfoModel",
|
|
"PerformanceModel",
|
|
"PosEntryModel",
|
|
"SubmitBlockRequestModel",
|
|
"SubmitBlockResponseModel",
|
|
"TransactionAttachmentModel",
|
|
"TransactionDetailsModel",
|
|
"TransactionExtraModel",
|
|
"TransactionInputModel",
|
|
"TransactionOutputModel",
|
|
"TxGenerationContextModel",
|
|
"TxPoolPerformanceModel",
|
|
"TxProcessingPerformanceModel",
|
|
"VersionModel",
|
|
]
|
|
|
|
# import apis into sdk package
|
|
from lthn.api.block_api import BlockApi as BlockApi
|
|
from lthn.api.info_api import InfoApi as InfoApi
|
|
|
|
# import ApiClient
|
|
from lthn.api_response import ApiResponse as ApiResponse
|
|
from lthn.api_client import ApiClient as ApiClient
|
|
from lthn.configuration import Configuration as Configuration
|
|
from lthn.exceptions import OpenApiException as OpenApiException
|
|
from lthn.exceptions import ApiTypeError as ApiTypeError
|
|
from lthn.exceptions import ApiValueError as ApiValueError
|
|
from lthn.exceptions import ApiKeyError as ApiKeyError
|
|
from lthn.exceptions import ApiAttributeError as ApiAttributeError
|
|
from lthn.exceptions import ApiException as ApiException
|
|
|
|
# import models into sdk package
|
|
from lthn.models.block_details_model import BlockDetailsModel as BlockDetailsModel
|
|
from lthn.models.block_processing_performance_model import BlockProcessingPerformanceModel as BlockProcessingPerformanceModel
|
|
from lthn.models.block_template_model import BlockTemplateModel as BlockTemplateModel
|
|
from lthn.models.block_template_request_model import BlockTemplateRequestModel as BlockTemplateRequestModel
|
|
from lthn.models.db_stat_info_model import DbStatInfoModel as DbStatInfoModel
|
|
from lthn.models.height_model import HeightModel as HeightModel
|
|
from lthn.models.info_model import InfoModel as InfoModel
|
|
from lthn.models.maintainers_info_model import MaintainersInfoModel as MaintainersInfoModel
|
|
from lthn.models.performance_model import PerformanceModel as PerformanceModel
|
|
from lthn.models.pos_entry_model import PosEntryModel as PosEntryModel
|
|
from lthn.models.submit_block_request_model import SubmitBlockRequestModel as SubmitBlockRequestModel
|
|
from lthn.models.submit_block_response_model import SubmitBlockResponseModel as SubmitBlockResponseModel
|
|
from lthn.models.transaction_attachment_model import TransactionAttachmentModel as TransactionAttachmentModel
|
|
from lthn.models.transaction_details_model import TransactionDetailsModel as TransactionDetailsModel
|
|
from lthn.models.transaction_extra_model import TransactionExtraModel as TransactionExtraModel
|
|
from lthn.models.transaction_input_model import TransactionInputModel as TransactionInputModel
|
|
from lthn.models.transaction_output_model import TransactionOutputModel as TransactionOutputModel
|
|
from lthn.models.tx_generation_context_model import TxGenerationContextModel as TxGenerationContextModel
|
|
from lthn.models.tx_pool_performance_model import TxPoolPerformanceModel as TxPoolPerformanceModel
|
|
from lthn.models.tx_processing_performance_model import TxProcessingPerformanceModel as TxProcessingPerformanceModel
|
|
from lthn.models.version_model import VersionModel as VersionModel
|
|
|