1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-18 12:28:09 +00:00

chore(core): regenerate trezorui2.pyi

[no changelog]
This commit is contained in:
grdddj 2023-07-11 15:05:39 +02:00 committed by Jiří Musil
parent 8f7122cb84
commit ec9569a00e

View File

@ -1,17 +1,19 @@
from typing import *
CONFIRMED: object
CANCELLED: object
INFO: object
# rust/src/ui/model_tr/layout.rs
def disable_animation(disable: bool) -> None:
"""Disable animations, debug builds only."""
# rust/src/ui/model_tr/layout.rs
def toif_info(data: bytes) -> tuple[int, int, bool]:
"""Get TOIF image dimensions and format (width: int, height: int, is_grayscale: bool)."""
# rust/src/ui/model_tr/layout.rs
def confirm_action(
*,
@ -26,6 +28,7 @@ def confirm_action(
) -> object:
"""Confirm action."""
# rust/src/ui/model_tr/layout.rs
def confirm_blob(
*,
@ -39,6 +42,7 @@ def confirm_blob(
) -> object:
"""Confirm byte sequence data."""
# rust/src/ui/model_tr/layout.rs
def confirm_address(
*,
@ -49,6 +53,7 @@ def confirm_address(
) -> object:
"""Confirm address."""
# rust/src/ui/model_tr/layout.rs
def confirm_properties(
*,
@ -60,6 +65,7 @@ def confirm_properties(
the value is to be rendered as binary with monospace font, False otherwise.
This only concerns the text style, you need to decode the value to UTF-8 in python."""
# rust/src/ui/model_tr/layout.rs
def confirm_reset_device(
*,
@ -68,10 +74,12 @@ def confirm_reset_device(
) -> object:
"""Confirm TOS before device setup."""
# rust/src/ui/model_tr/layout.rs
def confirm_backup() -> object:
"""Strongly recommend user to do backup."""
# rust/src/ui/model_tr/layout.rs
def show_address_details(
*,
@ -83,6 +91,7 @@ def show_address_details(
) -> object:
"""Show address details - QR code, account, path, cosigner xpubs."""
# rust/src/ui/model_tr/layout.rs
def confirm_value(
*,
@ -94,6 +103,7 @@ def confirm_value(
) -> object:
"""Confirm value."""
# rust/src/ui/model_tr/layout.rs
def confirm_joint_total(
*,
@ -102,6 +112,7 @@ def confirm_joint_total(
) -> object:
"""Confirm total if there are external inputs."""
# rust/src/ui/model_tr/layout.rs
def confirm_modify_output(
*,
@ -112,6 +123,7 @@ def confirm_modify_output(
) -> object:
"""Decrease or increase amount for given address."""
# rust/src/ui/model_tr/layout.rs
def confirm_output(
*,
@ -123,6 +135,7 @@ def confirm_output(
) -> object:
"""Confirm output."""
# rust/src/ui/model_tr/layout.rs
def confirm_total(
*,
@ -135,18 +148,11 @@ def confirm_total(
) -> object:
"""Confirm summary of a transaction."""
# rust/src/ui/model_tr/layout.rs
def tutorial() -> object:
"""Show user how to interact with the device."""
# rust/src/ui/model_tr/layout.rs
def show_error(
*,
title: str,
description: str,
button: str,
) -> object:
"""Show a popup with text centered both vertically and horizontally. With just a middle button."""
# rust/src/ui/model_tr/layout.rs
def confirm_modify_fee(
@ -159,6 +165,7 @@ def confirm_modify_fee(
) -> object:
"""Decrease or increase transaction fee."""
# rust/src/ui/model_tr/layout.rs
def confirm_fido(
*,
@ -171,6 +178,7 @@ def confirm_fido(
Returns page index in case of confirmation and CANCELLED otherwise.
"""
# rust/src/ui/model_tr/layout.rs
def multiple_pages_texts(
*,
@ -180,6 +188,8 @@ def multiple_pages_texts(
) -> object:
"""Show multiple texts, each on its own page."""
# rust/src/ui/model_tr/layout.rs
def show_warning(
*,
button: str,
@ -188,6 +198,7 @@ def show_warning(
) -> object:
"""Warning modal with middle button and centered text."""
# rust/src/ui/model_tr/layout.rs
def show_info(
*,
@ -197,14 +208,17 @@ def show_info(
) -> object:
"""Info modal."""
# rust/src/ui/model_tr/layout.rs
def show_passphrase() -> object:
"""Show passphrase on host dialog."""
# rust/src/ui/model_tr/layout.rs
def show_mismatch() -> object:
"""Warning modal, receiving address mismatch."""
# rust/src/ui/model_tr/layout.rs
def confirm_with_info(
*,
@ -216,6 +230,7 @@ def confirm_with_info(
"""Confirm given items but with third button. Always single page
without scrolling."""
# rust/src/ui/model_tr/layout.rs
def confirm_coinjoin(
*,
@ -224,6 +239,7 @@ def confirm_coinjoin(
) -> object:
"""Confirm coinjoin authorization."""
# rust/src/ui/model_tr/layout.rs
def request_pin(
*,
@ -234,6 +250,7 @@ def request_pin(
) -> str | object:
"""Request pin on device."""
# rust/src/ui/model_tr/layout.rs
def request_passphrase(
*,
@ -242,6 +259,7 @@ def request_passphrase(
) -> str | object:
"""Get passphrase."""
# rust/src/ui/model_tr/layout.rs
def request_bip39(
*,
@ -249,6 +267,7 @@ def request_bip39(
) -> str:
"""Get recovery word for BIP39."""
# rust/src/ui/model_tr/layout.rs
def request_slip39(
*,
@ -256,6 +275,7 @@ def request_slip39(
) -> str:
"""SLIP39 word input keyboard."""
# rust/src/ui/model_tr/layout.rs
def select_word(
*,
@ -266,6 +286,7 @@ def select_word(
"""Select mnemonic word from three possibilities - seed check after backup. The
iterable must be of exact size. Returns index in range `0..3`."""
# rust/src/ui/model_tr/layout.rs
def show_share_words(
*,
@ -273,6 +294,7 @@ def show_share_words(
) -> object:
"""Shows a backup seed."""
# rust/src/ui/model_tr/layout.rs
def request_number(
*,
@ -284,6 +306,7 @@ def request_number(
) -> object:
"""Number input with + and - buttons, description, and info button."""
# rust/src/ui/model_tr/layout.rs
def show_checklist(
*,
@ -295,6 +318,7 @@ def show_checklist(
"""Checklist of backup steps. Active index is highlighted, previous items have check
mark next to them."""
# rust/src/ui/model_tr/layout.rs
def confirm_recovery(
*,
@ -307,6 +331,7 @@ def confirm_recovery(
) -> object:
"""Device recovery homescreen."""
# rust/src/ui/model_tr/layout.rs
def select_word_count(
*,
@ -314,6 +339,7 @@ def select_word_count(
) -> int | str: # TR returns str
"""Select mnemonic word count from (12, 18, 20, 24, 33)."""
# rust/src/ui/model_tr/layout.rs
def show_group_share_success(
*,
@ -321,6 +347,7 @@ def show_group_share_success(
) -> int:
"""Shown after successfully finishing a group."""
# rust/src/ui/model_tr/layout.rs
def show_progress(
*,
@ -332,6 +359,7 @@ def show_progress(
description is determined at construction time. If you want multiline descriptions
make sure the initial description has at least that amount of lines."""
# rust/src/ui/model_tr/layout.rs
def show_progress_coinjoin(
*,
@ -343,6 +371,7 @@ def show_progress_coinjoin(
"""Show progress loader for coinjoin. Returns CANCELLED after a specified time when
time_ms timeout is passed."""
# rust/src/ui/model_tr/layout.rs
def show_homescreen(
*,
@ -354,6 +383,7 @@ def show_homescreen(
) -> CANCELLED:
"""Idle homescreen."""
# rust/src/ui/model_tr/layout.rs
def show_lockscreen(
*,
@ -363,26 +393,30 @@ def show_lockscreen(
) -> CANCELLED:
"""Homescreen for locked device."""
# rust/src/ui/model_tr/layout.rs
def draw_welcome_screen() -> None:
"""Show logo icon with the model name at the bottom and return."""
CONFIRMED: object
CANCELLED: object
INFO: object
# rust/src/ui/model_tt/layout.rs
def disable_animation(disable: bool) -> None:
"""Disable animations, debug builds only."""
# rust/src/ui/model_tt/layout.rs
def jpeg_info(data: bytes) -> tuple[int, int, int]:
"""Get JPEG image dimensions (width: int, height: int, mcu_height: int)."""
# rust/src/ui/model_tt/layout.rs
def jpeg_test(data: bytes) -> bool:
"""Test JPEG image."""
# rust/src/ui/model_tt/layout.rs
def confirm_action(
*,
@ -397,6 +431,7 @@ def confirm_action(
) -> object:
"""Confirm action."""
# rust/src/ui/model_tt/layout.rs
def confirm_emphasized(
*,
@ -407,6 +442,7 @@ def confirm_emphasized(
"""Confirm formatted text that has been pre-split in python. For tuples
the first component is a bool indicating whether this part is emphasized."""
# rust/src/ui/model_tt/layout.rs
def confirm_homescreen(
*,
@ -415,6 +451,7 @@ def confirm_homescreen(
) -> object:
"""Confirm homescreen."""
# rust/src/ui/model_tt/layout.rs
def confirm_blob(
*,
@ -428,6 +465,7 @@ def confirm_blob(
) -> object:
"""Confirm byte sequence data."""
# rust/src/ui/model_tt/layout.rs
def confirm_address(
*,
@ -439,6 +477,7 @@ def confirm_address(
"""Confirm address. Similar to `confirm_blob` but has corner info button
and allows left swipe which does the same thing as the button."""
# rust/src/ui/model_tt/layout.rs
def confirm_properties(
*,
@ -449,6 +488,7 @@ def confirm_properties(
"""Confirm list of key-value pairs. The third component in the tuple should be True if
the value is to be rendered as binary with monospace font, False otherwise."""
# rust/src/ui/model_tt/layout.rs
def confirm_reset_device(
*,
@ -457,6 +497,7 @@ def confirm_reset_device(
) -> object:
"""Confirm TOS before device setup."""
# rust/src/ui/model_tt/layout.rs
def show_address_details(
*,
@ -468,6 +509,7 @@ def show_address_details(
) -> object:
"""Show address details - QR code, account, path, cosigner xpubs."""
# rust/src/ui/model_tt/layout.rs
def show_spending_details(
*,
@ -478,6 +520,7 @@ def show_spending_details(
) -> object:
"""Show metadata when for outgoing transaction."""
# rust/src/ui/model_tt/layout.rs
def confirm_value(
*,
@ -492,6 +535,7 @@ def confirm_value(
) -> object:
"""Confirm value. Merge of confirm_total and confirm_output."""
# rust/src/ui/model_tt/layout.rs
def confirm_total(
*,
@ -501,6 +545,7 @@ def confirm_total(
) -> object:
"""Transaction summary. Always hold to confirm."""
# rust/src/ui/model_tt/layout.rs
def confirm_modify_output(
*,
@ -511,6 +556,7 @@ def confirm_modify_output(
) -> object:
"""Decrease or increase amount for given address."""
# rust/src/ui/model_tt/layout.rs
def confirm_modify_fee(
*,
@ -522,6 +568,7 @@ def confirm_modify_fee(
) -> object:
"""Decrease or increase transaction fee."""
# rust/src/ui/model_tt/layout.rs
def confirm_fido(
*,
@ -534,6 +581,7 @@ def confirm_fido(
Returns page index in case of confirmation and CANCELLED otherwise.
"""
# rust/src/ui/model_tt/layout.rs
def show_error(
*,
@ -545,6 +593,7 @@ def show_error(
) -> object:
"""Error modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs
def show_warning(
*,
@ -556,6 +605,7 @@ def show_warning(
) -> object:
"""Warning modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs
def show_success(
*,
@ -567,6 +617,7 @@ def show_success(
) -> object:
"""Success modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs
def show_info(
*,
@ -578,10 +629,12 @@ def show_info(
) -> object:
"""Info modal. No buttons shown when `button` is empty string."""
# rust/src/ui/model_tt/layout.rs
def show_mismatch() -> object:
"""Warning modal, receiving address mismatch."""
# rust/src/ui/model_tt/layout.rs
def show_simple(
*,
@ -591,6 +644,7 @@ def show_simple(
) -> object:
"""Simple dialog with text and one button."""
# rust/src/ui/model_tt/layout.rs
def confirm_with_info(
*,
@ -602,6 +656,7 @@ def confirm_with_info(
"""Confirm given items but with third button. Always single page
without scrolling."""
# rust/src/ui/model_tt/layout.rs
def confirm_more(
*,
@ -612,6 +667,7 @@ def confirm_more(
"""Confirm long content with the possibility to go back from any page.
Meant to be used with confirm_with_info."""
# rust/src/ui/model_tt/layout.rs
def confirm_coinjoin(
*,
@ -620,6 +676,7 @@ def confirm_coinjoin(
) -> object:
"""Confirm coinjoin authorization."""
# rust/src/ui/model_tt/layout.rs
def request_pin(
*,
@ -630,6 +687,7 @@ def request_pin(
) -> str | object:
"""Request pin on device."""
# rust/src/ui/model_tt/layout.rs
def request_passphrase(
*,
@ -638,6 +696,7 @@ def request_passphrase(
) -> str | object:
"""Passphrase input keyboard."""
# rust/src/ui/model_tt/layout.rs
def request_bip39(
*,
@ -645,6 +704,7 @@ def request_bip39(
) -> str:
"""BIP39 word input keyboard."""
# rust/src/ui/model_tt/layout.rs
def request_slip39(
*,
@ -652,6 +712,7 @@ def request_slip39(
) -> str:
"""SLIP39 word input keyboard."""
# rust/src/ui/model_tt/layout.rs
def select_word(
*,
@ -662,6 +723,7 @@ def select_word(
"""Select mnemonic word from three possibilities - seed check after backup. The
iterable must be of exact size. Returns index in range `0..3`."""
# rust/src/ui/model_tt/layout.rs
def show_share_words(
*,
@ -670,6 +732,7 @@ def show_share_words(
) -> object:
"""Show mnemonic for backup. Expects the words pre-divided into individual pages."""
# rust/src/ui/model_tt/layout.rs
def request_number(
*,
@ -681,6 +744,7 @@ def request_number(
) -> object:
"""Number input with + and - buttons, description, and info button."""
# rust/src/ui/model_tt/layout.rs
def show_checklist(
*,
@ -692,6 +756,7 @@ def show_checklist(
"""Checklist of backup steps. Active index is highlighted, previous items have check
mark next to them."""
# rust/src/ui/model_tt/layout.rs
def confirm_recovery(
*,
@ -703,6 +768,7 @@ def confirm_recovery(
) -> object:
"""Device recovery homescreen."""
# rust/src/ui/model_tt/layout.rs
def select_word_count(
*,
@ -710,10 +776,15 @@ def select_word_count(
) -> int | str: # TT returns int
"""Select mnemonic word count from (12, 18, 20, 24, 33)."""
# rust/src/ui/model_tt/layout.rs
def show_group_share_success(*, lines: Iterable[str]) -> int:
def show_group_share_success(
*,
lines: Iterable[str]
) -> int:
"""Shown after successfully finishing a group."""
# rust/src/ui/model_tt/layout.rs
def show_remaining_shares(
*,
@ -721,6 +792,7 @@ def show_remaining_shares(
) -> int:
"""Shows SLIP39 state after info button is pressed on `confirm_recovery`."""
# rust/src/ui/model_tt/layout.rs
def show_progress(
*,
@ -732,6 +804,7 @@ def show_progress(
description is determined at construction time. If you want multiline descriptions
make sure the initial description has at least that amount of lines."""
# rust/src/ui/model_tt/layout.rs
def show_progress_coinjoin(
*,
@ -743,6 +816,7 @@ def show_progress_coinjoin(
"""Show progress loader for coinjoin. Returns CANCELLED after a specified time when
time_ms timeout is passed."""
# rust/src/ui/model_tt/layout.rs
def show_homescreen(
*,
@ -754,6 +828,7 @@ def show_homescreen(
) -> CANCELLED:
"""Idle homescreen."""
# rust/src/ui/model_tt/layout.rs
def show_lockscreen(
*,
@ -763,6 +838,7 @@ def show_lockscreen(
) -> CANCELLED:
"""Homescreen for locked device."""
# rust/src/ui/model_tt/layout.rs
def draw_welcome_screen() -> None:
"""Show logo icon with the model name at the bottom and return."""