Skip to content

v0.2.3

Choose a tag to compare

@ouziel-slama ouziel-slama released this 23 Jul 10:36
d1a0832

[0.2.3] - 2026-07-23

Added

  • React: deposit / withdraw observer callbacks on <WalletBalances/> (web + native) — onDeposit, onWithdraw, and onWithdrawComplete. Previously the only host-observable action was onSellAsset; deposit and withdraw happened entirely inside the component, so a host could not track them. These three are observers, not overrides: the built-in deposit modal and withdraw form still drive the UX unchanged — the callbacks only notify.
    • onDeposit(event: WalletDepositEvent) fires when a deposit address is opened ({ symbol, depositType, asset? }asset set when opened from a specific holding).
    • onWithdraw(event: WalletWithdrawEvent) fires when a withdraw flow is opened for a balance ({ target }, covering BTC + every asset kind).
    • onWithdrawComplete(event: WalletWithdrawCompleteEvent) fires when a withdraw broadcasts successfully ({ target, txid }).
    • New exported types: WalletDepositEvent, WalletWithdrawEvent, WalletWithdrawCompleteEvent. The shared useWalletBalancesController now accepts an optional { onDeposit, onWithdraw } and exposes openWithdraw(target), so both renderers fire the callbacks identically.