Files
hash-wallet/cw_core
malik1004xandGitHub 915e76d4f9 improve evm ui (#3129)
* improve evm ui

* fix model generation

* add db schema

* bugfixes

* scrollable fav token modal

* make combined balance the default

* add crypto_full_icons to pubspec

* optimize transaction duplication check

* fix format issue

* add chain icons to swap tiles

* decrease asset tile font weight

* show chain icon in swap currency selector

* move chain icon for tokens

* new trade history row

* ui fix

* fix padding on modal

* remove vec
2026-04-01 11:04:58 +02:00
..
2026-04-01 11:04:58 +02: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.