mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-12-23 23:08:14 +00:00
chore(core): regenerate trezorui2.pyi
This commit is contained in:
parent
264b92e11c
commit
03913ebf1b
@ -42,8 +42,8 @@ def disable_animation(disable: bool) -> None:
|
|||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
def jpeg_info(data: bytes) -> (width: int, height: int, mcu_height: int):
|
def jpeg_info(data: bytes) -> tuple[int, int, int]:
|
||||||
"""Get JPEG image dimensions."""
|
"""Get JPEG image dimensions (width: int, height: int, mcu_height: int)."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -121,17 +121,6 @@ def confirm_reset_device(
|
|||||||
"""Confirm TOS before device setup."""
|
"""Confirm TOS before device setup."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
|
||||||
def show_qr(
|
|
||||||
*,
|
|
||||||
title: str,
|
|
||||||
address: str,
|
|
||||||
verb_cancel: str,
|
|
||||||
case_sensitive: bool,
|
|
||||||
) -> object:
|
|
||||||
"""Show QR code."""
|
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
def show_address_details(
|
def show_address_details(
|
||||||
*,
|
*,
|
||||||
@ -148,7 +137,7 @@ def show_address_details(
|
|||||||
def show_spending_details(
|
def show_spending_details(
|
||||||
*,
|
*,
|
||||||
account: str,
|
account: str,
|
||||||
fee_rate: str | None = None,
|
fee_rate: str | None,
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Show metadata when for outgoing transaction."""
|
"""Show metadata when for outgoing transaction."""
|
||||||
|
|
||||||
@ -158,8 +147,8 @@ def confirm_value(
|
|||||||
*,
|
*,
|
||||||
title: str,
|
title: str,
|
||||||
value: str,
|
value: str,
|
||||||
description: str | None = None,
|
description: str | None,
|
||||||
subtitle: str | None = None,
|
subtitle: str | None,
|
||||||
verb: str | None = None,
|
verb: str | None = None,
|
||||||
verb_cancel: str | None = None,
|
verb_cancel: str | None = None,
|
||||||
info_button: bool = False,
|
info_button: bool = False,
|
||||||
@ -195,6 +184,7 @@ def confirm_modify_fee(
|
|||||||
sign: int,
|
sign: int,
|
||||||
user_fee_change: str,
|
user_fee_change: str,
|
||||||
total_fee_new: str,
|
total_fee_new: str,
|
||||||
|
fee_rate_amount: str | None,
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Decrease or increase transaction fee."""
|
"""Decrease or increase transaction fee."""
|
||||||
|
|
||||||
@ -269,8 +259,8 @@ def show_mismatch() -> object:
|
|||||||
def show_simple(
|
def show_simple(
|
||||||
*,
|
*,
|
||||||
title: str | None,
|
title: str | None,
|
||||||
description: str,
|
description: str = "",
|
||||||
button: str | None = None,
|
button: str = "",
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Simple dialog with text and one button."""
|
"""Simple dialog with text and one button."""
|
||||||
|
|
||||||
@ -324,7 +314,7 @@ def request_passphrase(
|
|||||||
prompt: str,
|
prompt: str,
|
||||||
max_len: int,
|
max_len: int,
|
||||||
) -> str | object:
|
) -> str | object:
|
||||||
"""Passphrase input keyboard."""
|
"""Passphrase input keyboard."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -332,7 +322,7 @@ def request_bip39(
|
|||||||
*,
|
*,
|
||||||
prompt: str,
|
prompt: str,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""BIP39 word input keyboard."""
|
"""BIP39 word input keyboard."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -340,7 +330,7 @@ def request_slip39(
|
|||||||
*,
|
*,
|
||||||
prompt: str,
|
prompt: str,
|
||||||
) -> str:
|
) -> str:
|
||||||
"""SLIP39 word input keyboard."""
|
"""SLIP39 word input keyboard."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -350,7 +340,7 @@ def select_word(
|
|||||||
description: str,
|
description: str,
|
||||||
words: Iterable[str],
|
words: Iterable[str],
|
||||||
) -> int:
|
) -> int:
|
||||||
"""Select mnemonic word from three possibilities - seed check after backup. The
|
"""Select mnemonic word from three possibilities - seed check after backup. The
|
||||||
iterable must be of exact size. Returns index in range `0..3`."""
|
iterable must be of exact size. Returns index in range `0..3`."""
|
||||||
|
|
||||||
|
|
||||||
@ -360,7 +350,7 @@ def show_share_words(
|
|||||||
title: str,
|
title: str,
|
||||||
pages: Iterable[str],
|
pages: Iterable[str],
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Show mnemonic for backup. Expects the words pre-divided into individual pages."""
|
"""Show mnemonic for backup. Expects the words pre-divided into individual pages."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -372,7 +362,7 @@ def request_number(
|
|||||||
max_count: int,
|
max_count: int,
|
||||||
description: Callable[[int], str] | None = None,
|
description: Callable[[int], str] | None = None,
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Number input with + and - buttons, description, and info button."""
|
"""Number input with + and - buttons, description, and info button."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -383,8 +373,8 @@ def show_checklist(
|
|||||||
active: int,
|
active: int,
|
||||||
button: str,
|
button: str,
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Checklist of backup steps. Active index is highlighted, previous items have check
|
"""Checklist of backup steps. Active index is highlighted, previous items have check
|
||||||
mark nex to them."""
|
mark next to them."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -394,17 +384,17 @@ def confirm_recovery(
|
|||||||
description: str,
|
description: str,
|
||||||
button: str,
|
button: str,
|
||||||
dry_run: bool,
|
dry_run: bool,
|
||||||
info_button: bool,
|
info_button: bool = False,
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Device recovery homescreen."""
|
"""Device recovery homescreen."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
def select_word_count(
|
def select_word_count(
|
||||||
*,
|
*,
|
||||||
dry_run: bool,
|
dry_run: bool,
|
||||||
) -> int | CANCELLED:
|
) -> int | str: # TT returns int
|
||||||
"""Select mnemonic word count from (12, 18, 20, 24, 33)."""
|
"""Select mnemonic word count from (12, 18, 20, 24, 33)."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -412,7 +402,7 @@ def show_group_share_success(
|
|||||||
*,
|
*,
|
||||||
lines: Iterable[str]
|
lines: Iterable[str]
|
||||||
) -> int:
|
) -> int:
|
||||||
"""Shown after successfully finishing a group."""
|
"""Shown after successfully finishing a group."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -420,7 +410,7 @@ def show_remaining_shares(
|
|||||||
*,
|
*,
|
||||||
pages: Iterable[tuple[str, str]],
|
pages: Iterable[tuple[str, str]],
|
||||||
) -> int:
|
) -> int:
|
||||||
"""Shows SLIP39 state after info button is pressed on `confirm_recovery`."""
|
"""Shows SLIP39 state after info button is pressed on `confirm_recovery`."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -428,11 +418,11 @@ def show_progress(
|
|||||||
*,
|
*,
|
||||||
title: str,
|
title: str,
|
||||||
indeterminate: bool = False,
|
indeterminate: bool = False,
|
||||||
description: str | None = None,
|
description: str = "",
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Show progress loader. Please note that the number of lines reserved on screen for
|
"""Show progress loader. Please note that the number of lines reserved on screen for
|
||||||
description is determined at construction time. If you want multiline descriptions
|
description is determined at construction time. If you want multiline descriptions
|
||||||
make sure the initial desciption has at least that amount of lines."""
|
make sure the initial description has at least that amount of lines."""
|
||||||
|
|
||||||
|
|
||||||
# rust/src/ui/model_tt/layout.rs
|
# rust/src/ui/model_tt/layout.rs
|
||||||
@ -443,7 +433,7 @@ def show_progress_coinjoin(
|
|||||||
time_ms: int = 0,
|
time_ms: int = 0,
|
||||||
skip_first_paint: bool = False,
|
skip_first_paint: bool = False,
|
||||||
) -> object:
|
) -> object:
|
||||||
"""Show progress loader for coinjoin. Returns CANCELLED after a specified time when
|
"""Show progress loader for coinjoin. Returns CANCELLED after a specified time when
|
||||||
time_ms timeout is passed."""
|
time_ms timeout is passed."""
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user