refactor(wallet): split 2321-LOC god-file into app.wallet package (P3B.2)
Move app/wallet_manager_v2.py verbatim to app/wallet/manager.py with a thin WalletManagerFacade class wrapper exposing the public API. The legacy app/wallet_manager_v2.py becomes a 19-line re-export shim. Public API preserved (WalletManagerV2, get_wallet_manager_v2, all enums/records/helpers). Routes unchanged (56). Phase 3B of AUDIT-2026-Q3.md.
This commit is contained in:
parent
0440dbe46a
commit
5e63521574
3 changed files with 2423 additions and 2321 deletions
25
app/wallet/__init__.py
Normal file
25
app/wallet/__init__.py
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
"""Wallet subsystem.
|
||||
|
||||
Phase 3B of AUDIT-2026-Q3.md.
|
||||
|
||||
Re-exports the canonical public API of WalletManagerV2. The bulk of the
|
||||
implementation lives in app.wallet.manager (moved verbatim from
|
||||
app.wallet_manager_v2 on 2026-07-07).
|
||||
"""
|
||||
from app.wallet.manager import ( # noqa: F401
|
||||
ChainMeta,
|
||||
PaymentRecord,
|
||||
PaymentType,
|
||||
ShamirSecretSharing,
|
||||
WalletEncryption,
|
||||
WalletManagerFacade,
|
||||
WalletManagerV2,
|
||||
WalletPurpose,
|
||||
WalletRecord,
|
||||
WalletRotationSchedule,
|
||||
WalletStatus,
|
||||
WalletTier,
|
||||
ZKAddressVerifier,
|
||||
get_wallet_manager_v2,
|
||||
import_legacy_wallets,
|
||||
)
|
||||
2378
app/wallet/manager.py
Normal file
2378
app/wallet/manager.py
Normal file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue