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

chore(core/ui): drop no longer used confirm_proposals_tezos

This commit is contained in:
matejcik 2021-07-22 13:57:02 +02:00 committed by matejcik
parent fcb5f88318
commit 5dcb51458f

View File

@ -71,7 +71,6 @@ __all__ = (
"confirm_modify_fee", "confirm_modify_fee",
"confirm_coinjoin", "confirm_coinjoin",
"confirm_timebounds_stellar", "confirm_timebounds_stellar",
"confirm_proposals_tezos",
"confirm_transfer_binance", "confirm_transfer_binance",
) )
@ -991,30 +990,6 @@ async def confirm_timebounds_stellar(
) )
# TODO cleanup @ redesign
async def confirm_proposals_tezos(
ctx: wire.GenericContext, proposals: Sequence[str]
) -> None:
if len(proposals) > 1:
title = "Submit proposals"
else:
title = "Submit proposal"
pages: list[ui.Component] = []
for page, proposal in enumerate(proposals):
text = Text(title, ui.ICON_SEND, icon_color=ui.PURPLE, new_lines=False)
text.bold("Proposal {}:\n".format(page + 1))
text.mono(*chunks_intersperse(proposal, 17))
pages.append(text)
pages[-1] = Confirm(pages[-1])
paginated = Paginated(pages)
await raise_if_cancelled(
interact(ctx, paginated, "confirm_proposals", ButtonRequestType.SignTx)
)
# TODO cleanup @ redesign # TODO cleanup @ redesign
async def confirm_transfer_binance( async def confirm_transfer_binance(
ctx: wire.GenericContext, inputs_outputs: Sequence[Tuple[str, str, str]] ctx: wire.GenericContext, inputs_outputs: Sequence[Tuple[str, str, str]]