Skip to content

Commit

Permalink
move address.py in messages.utils
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 13, 2025
1 parent 0682954 commit d164bab
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions counterparty-core/counterpartycore/lib/messages/dispenser.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
message_type,
util,
)
from counterpartycore.lib.tools.address import pack as address_pack
from counterpartycore.lib.tools.address import unpack as address_unpack
from counterpartycore.lib.messages.utils.address import pack as address_pack
from counterpartycore.lib.messages.utils.address import unpack as address_unpack

logger = logging.getLogger(config.LOGGER_NAME)

Expand Down
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/lib/messages/sweep.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
util,
)
from counterpartycore.lib.exceptions import * # noqa: F403
from counterpartycore.lib.tools import address
from counterpartycore.lib.messages.utils import address

logger = logging.getLogger(config.LOGGER_NAME)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import logging

import bitcoin

from counterpartycore.lib import config, exceptions, script # noqa: F401

logger = logging.getLogger(config.LOGGER_NAME)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from bitstring import BitArray, ConstBitStream

from counterpartycore.lib import config, exceptions, ledger
from counterpartycore.lib.tools import address
from counterpartycore.lib.messages.utils import address

logger = logging.getLogger(config.LOGGER_NAME)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
import struct

from counterpartycore.lib import config, exceptions, ledger, message_type, util
from counterpartycore.lib.messages.utils import address
from counterpartycore.lib.messages.versions import send1
from counterpartycore.lib.tools import address

logger = logging.getLogger(config.LOGGER_NAME)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
from bitstring import ReadError

from counterpartycore.lib import config, exceptions, ledger, message_type, util

from .utils.mpma_encoding import _decode_mpma_send_decode, _encode_mpma_send
from counterpartycore.lib.messages.utils.mpma_encoding import (
_decode_mpma_send_decode,
_encode_mpma_send,
)

logger = logging.getLogger(config.LOGGER_NAME)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from counterpartycore.lib import config

ADDRESS_VECTOR = {
"tools.address": {
"messages.utils.address": {
"pack": [
{
"config_context": {"ADDRESSVERSION": config.ADDRESSVERSION_MAINNET},
Expand Down
2 changes: 1 addition & 1 deletion counterparty-core/counterpartycore/test/util_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ def exec_tested_method(tx_name, method, tested_method, inputs, server_db):
"transaction_helper.transaction_outputs",
"backend",
"message_type",
"tools.address",
"messages.utils.address",
]
or (
tx_name == "composer"
Expand Down

0 comments on commit d164bab

Please sign in to comment.