1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-02-01 18:30:56 +00:00

fix(core): exclude altcoin functions from bitcoinonly build

This commit is contained in:
matejcik 2024-03-07 13:47:22 +01:00 committed by matejcik
parent f34ad3daf1
commit b6e8567a49
4 changed files with 241 additions and 241 deletions

View File

@ -1,7 +1,7 @@
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import trezorui2 import trezorui2
from trezor import TR, io, loop, ui from trezor import TR, io, loop, ui, utils
from trezor.enums import ButtonRequestType from trezor.enums import ButtonRequestType
from trezor.wire import ActionCancelled from trezor.wire import ActionCancelled
from trezor.wire.context import wait as ctx_wait from trezor.wire.context import wait as ctx_wait
@ -1079,6 +1079,8 @@ def confirm_total(
) )
if not utils.BITCOIN_ONLY:
async def confirm_ethereum_staking_tx( async def confirm_ethereum_staking_tx(
title: str, title: str,
intro_question: str, intro_question: str,
@ -1128,7 +1130,6 @@ async def confirm_ethereum_staking_tx(
) )
) )
def confirm_solana_tx( def confirm_solana_tx(
amount: str, amount: str,
fee: str, fee: str,
@ -1159,7 +1160,6 @@ def confirm_solana_tx(
) )
) )
async def confirm_ethereum_tx( async def confirm_ethereum_tx(
recipient: str, recipient: str,
total_amount: str, total_amount: str,

View File

@ -1,7 +1,7 @@
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import trezorui2 import trezorui2
from trezor import TR, ui from trezor import TR, ui, utils
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Any from typing import Any
@ -57,13 +57,13 @@ def pin_progress(message: str, description: str) -> ProgressLayout:
return progress(message, description) return progress(message, description)
if not utils.BITCOIN_ONLY:
def monero_keyimage_sync_progress() -> ProgressLayout: def monero_keyimage_sync_progress() -> ProgressLayout:
return progress("", TR.progress__syncing) return progress("", TR.progress__syncing)
def monero_live_refresh_progress() -> ProgressLayout: def monero_live_refresh_progress() -> ProgressLayout:
return progress("", TR.progress__refreshing, indeterminate=True) return progress("", TR.progress__refreshing, indeterminate=True)
def monero_transaction_progress_inner() -> ProgressLayout: def monero_transaction_progress_inner() -> ProgressLayout:
return progress("", TR.progress__signing_transaction) return progress("", TR.progress__signing_transaction)

View File

@ -1,7 +1,7 @@
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import trezorui2 import trezorui2
from trezor import TR, io, loop, ui from trezor import TR, io, loop, ui, utils
from trezor.enums import ButtonRequestType from trezor.enums import ButtonRequestType
from trezor.wire import ActionCancelled from trezor.wire import ActionCancelled
from trezor.wire.context import wait as ctx_wait from trezor.wire.context import wait as ctx_wait
@ -1001,6 +1001,8 @@ def confirm_summary(
) )
if not utils.BITCOIN_ONLY:
async def confirm_ethereum_tx( async def confirm_ethereum_tx(
recipient: str, recipient: str,
total_amount: str, total_amount: str,
@ -1047,7 +1049,6 @@ async def confirm_ethereum_tx(
except ActionCancelled: except ActionCancelled:
continue continue
async def confirm_ethereum_staking_tx( async def confirm_ethereum_staking_tx(
title: str, title: str,
intro_question: str, intro_question: str,
@ -1092,7 +1093,6 @@ async def confirm_ethereum_staking_tx(
br_code=br_code, br_code=br_code,
) )
def confirm_solana_tx( def confirm_solana_tx(
amount: str, amount: str,
fee: str, fee: str,

View File

@ -1,7 +1,7 @@
from typing import TYPE_CHECKING from typing import TYPE_CHECKING
import trezorui2 import trezorui2
from trezor import TR, ui from trezor import TR, ui, utils
if TYPE_CHECKING: if TYPE_CHECKING:
from typing import Any from typing import Any
@ -60,13 +60,13 @@ def pin_progress(message: str, description: str) -> ProgressLayout:
return progress(message, description=description) return progress(message, description=description)
if not utils.BITCOIN_ONLY:
def monero_keyimage_sync_progress() -> ProgressLayout: def monero_keyimage_sync_progress() -> ProgressLayout:
return progress("", TR.progress__syncing) return progress("", TR.progress__syncing)
def monero_live_refresh_progress() -> ProgressLayout: def monero_live_refresh_progress() -> ProgressLayout:
return progress("", TR.progress__refreshing, indeterminate=True) return progress("", TR.progress__refreshing, indeterminate=True)
def monero_transaction_progress_inner() -> ProgressLayout: def monero_transaction_progress_inner() -> ProgressLayout:
return progress("", TR.progress__signing_transaction) return progress("", TR.progress__signing_transaction)