mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 01:35:20 +00:00
trezor: link button messages to enum names
This commit is contained in:
parent
79681c90e0
commit
f4e2781786
1 changed files with 17 additions and 9 deletions
|
@ -11,19 +11,27 @@ from electrum.plugins.hw_wallet.plugin import OutdatedHwFirmwareException, Hardw
|
||||||
|
|
||||||
from trezorlib.client import TrezorClient
|
from trezorlib.client import TrezorClient
|
||||||
from trezorlib.exceptions import TrezorFailure, Cancelled, OutdatedFirmwareError
|
from trezorlib.exceptions import TrezorFailure, Cancelled, OutdatedFirmwareError
|
||||||
from trezorlib.messages import WordRequestType, FailureType, RecoveryDeviceType
|
from trezorlib.messages import WordRequestType, FailureType, RecoveryDeviceType, ButtonRequestType
|
||||||
import trezorlib.btc
|
import trezorlib.btc
|
||||||
import trezorlib.device
|
import trezorlib.device
|
||||||
|
|
||||||
MESSAGES = {
|
MESSAGES = {
|
||||||
3: _("Confirm the transaction output on your {} device"),
|
ButtonRequestType.ConfirmOutput:
|
||||||
4: _("Confirm internal entropy on your {} device to begin"),
|
_("Confirm the transaction output on your {} device"),
|
||||||
5: _("Write down the seed word shown on your {}"),
|
ButtonRequestType.ResetDevice:
|
||||||
6: _("Confirm on your {} that you want to wipe it clean"),
|
_("Complete the initialization process on your {} device"),
|
||||||
7: _("Confirm on your {} device the message to sign"),
|
ButtonRequestType.ConfirmWord:
|
||||||
8: _("Confirm the total amount spent and the transaction fee on your {} device"),
|
_("Write down the seed word shown on your {}"),
|
||||||
10: _("Confirm wallet address on your {} device"),
|
ButtonRequestType.WipeDevice:
|
||||||
14: _("Choose on your {} device where to enter your passphrase"),
|
_("Confirm on your {} that you want to wipe it clean"),
|
||||||
|
ButtonRequestType.ProtectCall:
|
||||||
|
_("Confirm on your {} device the message to sign"),
|
||||||
|
ButtonRequestType.SignTx:
|
||||||
|
_("Confirm the total amount spent and the transaction fee on your {} device"),
|
||||||
|
ButtonRequestType.Address:
|
||||||
|
_("Confirm wallet address on your {} device"),
|
||||||
|
ButtonRequestType.PassphraseType:
|
||||||
|
_("Choose on your {} device where to enter your passphrase"),
|
||||||
'default': _("Check your {} device to continue"),
|
'default': _("Check your {} device to continue"),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue