Files
hash-wallet/cw_core
malik1004xandGitHub 24cceb5795 fix ui edge cases (#3109)
* wrap navbar in observer to account for disabling pages

* always display fiat amount with 2 decimals on confirm sheet

* don't show limit popup if max limit is 0 (this signifies the providers didn't load yet)

* fix deposit amount getting set to "ALL" in race condition

* disable showing hardware wallets on l2 wallet selector

* fix reset in account customizer if designs weren't loaded properly

* add withDecimals string extension

* add fallback on failed display amount parse
2026-03-18 22:34:02 +01:00
..
2026-03-18 22:34:02 +01:00
2026-03-11 04:26:57 +02:00
2026-03-11 04:26:57 +02:00
2026-03-11 04:26:57 +02:00

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.