mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
- Add FeatureFlag.isLightningEnabled flag (off) - Gate dashboard_view_model.hasLightning behind the flag, which transitively hides the LightningSwitcher in TopBar and the Lightning Username settings row (both already gated on hasLightning) - Remove CryptoCurrency.btcln from CryptoCurrency.all so it stops appearing in any all-currencies pickers/lists Lightning code paths (cw_bitcoin/lib/lightning/, lightning send/receive pages) are intentionally left in place so the flag can be flipped back on once we have an LSP / Greenlight node lined up.
cw_core
Core abstractions and shared types for Cake Wallet modules.
Highlights
- Wallet primitives:
WalletBase,WalletService,WalletInfo,WalletAddresses. - Transaction primitives:
TransactionInfo,TransactionHistoryBase, directions/priorities. - Currency models:
CryptoCurrency,Erc20Token, SPL/TRON token types. - Persistence helpers: Hive adapters, path helpers (
pathForWallet), encrypted storage utils. - Node representation (
Node) and sync status types.
Usage
Extend WalletBase for a new chain and provide a WalletService implementation to create/open/restore wallets.
class MyChainWallet extends WalletBase<MyBalance, MyHistory, MyTxInfo> { /* ... */ }
class MyChainWalletService extends WalletService<New, FromSeed, FromKeys, FromHardware> { /* ... */ }
See the chain modules (e.g., cw_bitcoin, cw_evm) for complete examples.