move hw_wallet.py from plugins to electrum library
This commit is contained in:
@@ -10,7 +10,7 @@ from electrum.keystore import bip39_normalize_passphrase
|
||||
from electrum.bip32 import BIP32Node, convert_bip32_strpath_to_intpath
|
||||
from electrum.logging import Logger
|
||||
from electrum.plugin import runs_in_hwd_thread
|
||||
from electrum.plugins.hw_wallet.plugin import HardwareClientBase, HardwareHandlerBase
|
||||
from electrum.hw_wallet.plugin import HardwareClientBase, HardwareHandlerBase
|
||||
|
||||
|
||||
class GuiMixin(object):
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
from electrum.plugin import hook
|
||||
from electrum.hw_wallet import CmdLineHandler
|
||||
|
||||
from .safe_t import SafeTPlugin
|
||||
from ..hw_wallet import CmdLineHandler
|
||||
|
||||
class Plugin(SafeTPlugin):
|
||||
handler = CmdLineHandler()
|
||||
|
||||
@@ -15,9 +15,9 @@ from electrum.i18n import _
|
||||
from electrum.plugin import hook
|
||||
from electrum.logging import Logger
|
||||
|
||||
from electrum.plugins.hw_wallet.qt import QtHandlerBase, QtPluginBase
|
||||
from electrum.plugins.hw_wallet.trezor_qt_pinmatrix import PinMatrixWidget
|
||||
from electrum.plugins.hw_wallet.plugin import only_hook_if_libraries_available
|
||||
from electrum.hw_wallet.qt import QtHandlerBase, QtPluginBase
|
||||
from electrum.hw_wallet.trezor_qt_pinmatrix import PinMatrixWidget
|
||||
from electrum.hw_wallet.plugin import only_hook_if_libraries_available
|
||||
|
||||
from .safe_t import SafeTPlugin, TIM_NEW, TIM_RECOVER, TIM_MNEMONIC, TIM_PRIVKEY
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ from electrum.plugin import Device, runs_in_hwd_thread
|
||||
from electrum.transaction import Transaction, PartialTransaction, PartialTxInput, Sighash
|
||||
from electrum.keystore import Hardware_KeyStore
|
||||
|
||||
from ..hw_wallet import HW_PluginBase
|
||||
from ..hw_wallet.plugin import is_any_tx_output_on_change_branch, trezor_validate_op_return_output_and_get_data
|
||||
from electrum.hw_wallet import HW_PluginBase
|
||||
from electrum.hw_wallet.plugin import is_any_tx_output_on_change_branch, trezor_validate_op_return_output_and_get_data
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from .client import SafeTClient
|
||||
|
||||
Reference in New Issue
Block a user