mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
* charts (wip) * charts (wip) * wip * add asset grid * split files * logic wip * proper getPrices logic * viewmodel (wip) * charts * remove unused import * remove restricted import...? * fix background gradient when scrolling * add safeguards for broken db * save new pin on removal * add safeguards for concurrency * add haptic feedback * fix haptic feedback * fix fiat ticker * reduce chart padding * add line touch indicator * improve touch target size on range selector * add date/time display when viewing past amount * merge * remove iconSvgPath reference * merge * fix state for date display * merge * auto-reformat * only load charts when page is opened * merge * reformat and apply lints * refactor to use `Money` instead of storing amount in `String` * add slop comment * fix exception on division by zero * ci * workaround toDouble being removed * disable strict parsing and rounding * fix abs() * use new currency picker sheet * safeguard for max flutter-supported decimals * fix amount precision * adjust to new buy/sell * Update lib/new-ui/pages/charts_page.dart Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> * adjust buy/sell di * replace -> ignore * reformat --------- Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
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.