KeepKey / Trezor: client split
We're going to want to do a few things differently, such as device recovery. So move the client code to clientbase.py and create a per-plugin client.py file for the derived client class.
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
from ..trezor.client import trezor_client_class
|
||||
from ..trezor.plugin import TrezorCompatiblePlugin, TrezorCompatibleWallet
|
||||
from .plugin import TrezorCompatiblePlugin, TrezorCompatibleWallet
|
||||
|
||||
|
||||
class TrezorWallet(TrezorCompatibleWallet):
|
||||
@@ -13,8 +12,7 @@ class TrezorPlugin(TrezorCompatiblePlugin):
|
||||
minimum_firmware = (1, 2, 1)
|
||||
wallet_class = TrezorWallet
|
||||
try:
|
||||
from trezorlib.client import proto, BaseClient, ProtocolMixin
|
||||
client_class = trezor_client_class(ProtocolMixin, BaseClient, proto)
|
||||
from .client import TrezorClient as client_class
|
||||
import trezorlib.ckd_public as ckd_public
|
||||
from trezorlib.client import types
|
||||
from trezorlib.transport_hid import HidTransport, DEVICE_IDS
|
||||
|
||||
Reference in New Issue
Block a user