Skip to content
Snippets Groups Projects
Commit 06ba386b authored by Jakub Ziebinski's avatar Jakub Ziebinski
Browse files

Extract converters to the appropriate package

parent f5b5ebe6
No related branches found
No related tags found
1 merge request!230Implementation of the python wax interface
......@@ -3,16 +3,16 @@ from __future__ import annotations
from datetime import datetime, timedelta, timezone
from typing import TYPE_CHECKING
from wax._private.converters.decimal_converter import DecimalConverter
from wax._private.converters.operation_converters.from_proto_to_cpp_string import from_proto_to_cpp_string
from wax._private.converters.operation_converters.from_protocol_to_cpp_string import from_protocol_to_cpp_string
from wax._private.converters.python_price_converter import convert_to_python_price
from wax._private.core.constants import (
DEFAULT_TRANSACTION_EXPIRATION_TIME,
HIVE_PERCENT_PRECISION_DOT_PLACES,
PUBLIC_KEY_ADDRESS_PREFIX,
)
from wax._private.core.decimal_converter import DecimalConverter
from wax._private.core.format_recognizers.operation import is_hive_protocol_format
from wax._private.core.operation_converters.from_proto_to_cpp_string import from_proto_to_cpp_string
from wax._private.core.operation_converters.from_protocol_to_cpp_string import from_protocol_to_cpp_string
from wax._private.core.python_price_converter import convert_to_python_price
from wax._private.models.asset import (
Asset,
AssetFactory,
......
......@@ -7,8 +7,8 @@ from typing import TYPE_CHECKING, Any
from google.protobuf.json_format import MessageToJson
from google.protobuf.message import Message
from wax._private.core.encoders import to_cpp_string
from wax._private.exceptions import InvalidOperationFormatError
from wax._private.result_tools import to_cpp_string
if TYPE_CHECKING:
from wax._private.models.operations import ProtoOperation
......
......@@ -4,8 +4,8 @@ import json
from functools import singledispatch
from typing import TYPE_CHECKING, Any
from wax._private.core.encoders import to_cpp_string
from wax._private.exceptions import InvalidOperationFormatError
from wax._private.result_tools import to_cpp_string
if TYPE_CHECKING:
from wax._private.models.operations import ProtocolOperation
......
......@@ -6,7 +6,7 @@ from decimal import Decimal
from enum import Enum
from typing import TYPE_CHECKING, Final, Protocol, TypeAlias
from wax._private.core.decimal_converter import DecimalConverter
from wax._private.converters.decimal_converter import DecimalConverter
from wax._private.exceptions import (
CannotCreateAssetError,
UnknownAssetNaiError,
......
......@@ -3,8 +3,8 @@ from __future__ import annotations
from dataclasses import dataclass
from decimal import Decimal
from wax._private.converters.decimal_converter import DecimalConverter
from wax._private.core.constants import HIVE_PERCENT_PRECISION_DOT_PLACES
from wax._private.core.decimal_converter import DecimalConverter
from wax.interfaces import IManabarData
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment