[no changelog]mmilata/monero-drop-python-test
parent
2a3f0c16bd
commit
2f987c3c5e
@ -0,0 +1,6 @@
|
||||
from . import UI2
|
||||
|
||||
if UI2:
|
||||
from .tt_v2.altcoin import * # noqa: F401,F403
|
||||
else:
|
||||
from .tt.altcoin import * # noqa: F401,F403
|
@ -0,0 +1,6 @@
|
||||
from . import UI2
|
||||
|
||||
if UI2:
|
||||
from .tt_v2.recovery import * # noqa: F401,F403
|
||||
else:
|
||||
from .tt.recovery import * # noqa: F401,F403
|
@ -0,0 +1,6 @@
|
||||
from . import UI2
|
||||
|
||||
if UI2:
|
||||
from .tt_v2.reset import * # noqa: F401,F403
|
||||
else:
|
||||
from .tt.reset import * # noqa: F401,F403
|
@ -0,0 +1,36 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from trezor import wire
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Sequence
|
||||
|
||||
pass
|
||||
|
||||
|
||||
async def confirm_total_ethereum(
|
||||
ctx: wire.GenericContext, total_amount: str, gas_price: str, fee_max: str
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def confirm_total_ripple(
|
||||
ctx: wire.GenericContext,
|
||||
address: str,
|
||||
amount: str,
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def confirm_transfer_binance(
|
||||
ctx: wire.GenericContext, inputs_outputs: Sequence[tuple[str, str, str]]
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def confirm_decred_sstx_submission(
|
||||
ctx: wire.GenericContext,
|
||||
address: str,
|
||||
amount: str,
|
||||
) -> None:
|
||||
raise NotImplementedError
|
@ -0,0 +1,61 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from trezor import wire
|
||||
|
||||
import trezorui2
|
||||
|
||||
from . import _RustLayout
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from typing import Iterable, Callable, Any
|
||||
|
||||
pass
|
||||
|
||||
|
||||
async def request_word_count(ctx: wire.GenericContext, dry_run: bool) -> int:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def request_word(
|
||||
ctx: wire.GenericContext, word_index: int, word_count: int, is_slip39: bool
|
||||
) -> str:
|
||||
if is_slip39:
|
||||
keyboard: Any = _RustLayout(
|
||||
trezorui2.request_bip39(
|
||||
prompt=f"Type word {word_index + 1} of {word_count}:"
|
||||
)
|
||||
)
|
||||
else:
|
||||
keyboard = _RustLayout(
|
||||
trezorui2.request_slip39(
|
||||
prompt=f"Type word {word_index + 1} of {word_count}:"
|
||||
)
|
||||
)
|
||||
|
||||
word: str = await ctx.wait(keyboard)
|
||||
return word
|
||||
|
||||
|
||||
async def show_remaining_shares(
|
||||
ctx: wire.GenericContext,
|
||||
groups: Iterable[tuple[int, tuple[str, ...]]], # remaining + list 3 words
|
||||
shares_remaining: list[int],
|
||||
group_threshold: int,
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def show_group_share_success(
|
||||
ctx: wire.GenericContext, share_index: int, group_index: int
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def continue_recovery(
|
||||
ctx: wire.GenericContext,
|
||||
button_label: str,
|
||||
text: str,
|
||||
subtext: str | None,
|
||||
info_func: Callable | None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
@ -0,0 +1,55 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from trezor import wire
|
||||
|
||||
if TYPE_CHECKING:
|
||||
from trezor.enums import BackupType
|
||||
from typing import Sequence
|
||||
|
||||
|
||||
async def show_share_words(
|
||||
ctx: wire.GenericContext,
|
||||
share_words: Sequence[str],
|
||||
share_index: int | None = None,
|
||||
group_index: int | None = None,
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def confirm_word(
|
||||
ctx: wire.GenericContext,
|
||||
share_index: int | None,
|
||||
share_words: Sequence[str],
|
||||
offset: int,
|
||||
count: int,
|
||||
group_index: int | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def slip39_show_checklist(
|
||||
ctx: wire.GenericContext, step: int, backup_type: BackupType
|
||||
) -> None:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def slip39_prompt_threshold(
|
||||
ctx: wire.GenericContext, num_of_shares: int, group_id: int | None = None
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def slip39_prompt_number_of_shares(
|
||||
ctx: wire.GenericContext, group_id: int | None = None
|
||||
) -> int:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def slip39_advanced_prompt_number_of_groups(ctx: wire.GenericContext) -> int:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def slip39_advanced_prompt_group_threshold(
|
||||
ctx: wire.GenericContext, num_of_groups: int
|
||||
) -> int:
|
||||
raise NotImplementedError
|
@ -0,0 +1,20 @@
|
||||
from typing import TYPE_CHECKING
|
||||
|
||||
from trezor import wire
|
||||
|
||||
from ...components.common.webauthn import ConfirmInfo
|
||||
|
||||
if TYPE_CHECKING:
|
||||
Pageable = object
|
||||
|
||||
|
||||
async def confirm_webauthn(
|
||||
ctx: wire.GenericContext | None,
|
||||
info: ConfirmInfo,
|
||||
pageable: Pageable | None = None,
|
||||
) -> bool:
|
||||
raise NotImplementedError
|
||||
|
||||
|
||||
async def confirm_webauthn_reset() -> bool:
|
||||
raise NotImplementedError
|
@ -0,0 +1,6 @@
|
||||
from . import UI2
|
||||
|
||||
if UI2:
|
||||
from .tt_v2.webauthn import * # noqa: F401,F403
|
||||
else:
|
||||
from .tt.webauthn import * # noqa: F401,F403
|
Loading…
Reference in new issue