You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
[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.