mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-26 06:08:40 +01:00
# Conflicts: # res/values/strings_it.arb # res/values/strings_ja.arb # res/values/strings_ko.arb # res/values/strings_my.arb # res/values/strings_nl.arb # res/values/strings_pl.arb # res/values/strings_pt.arb # res/values/strings_pt_BR.arb # res/values/strings_ru.arb # res/values/strings_th.arb # res/values/strings_tl.arb # res/values/strings_tr.arb # res/values/strings_uk.arb # res/values/strings_ur.arb # res/values/strings_vi.arb # res/values/strings_yo.arb # res/values/strings_zh.arb
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.