from __future__ import annotations

from dataclasses import dataclass


@dataclass(frozen=True)
class PanicClosePlan:
    wallet_address: str
    confirmation_required: str
    side_effects: tuple[str, ...] = ()


def build_panic_close_plan(wallet_address: str) -> PanicClosePlan:
    return PanicClosePlan(wallet_address=wallet_address, confirmation_required=f"CLOSE ALL {wallet_address[-4:]}")
