alby-hub/db/queries
Anshuman 1d3f9ecd41
feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153)
* feat: add both Sat and Msat companion fields for all ambiguous balance/amount properties

* feat: add sat and msat companion fields to backend API responses

* chore: align frontend types and other missing fields

* chore: keep old formula for calculating total fee sat

* chore: remove unnecessary balance assignments in cashu and phoenix

* chore: add deprecated comment to non unit fields

* chore: rename callers and variable to specify units

* chore: remove msat fields for channel size and liquidity fields

* chore: drop msat fields from onchain channel size and liquidity responses

* chore: further changes

* chore: remove amount msat field onchain tx

* chore: remove msats from onchain balance response

* chore: remove msat fields for swaps

* chore: remove msat fields for punishment reserves

* chore: simplify rebalancing fee calculation

* chore: remove unnecessary fields

* chore: mark deprecated fields in frontend types

---------

Co-authored-by: im-adithya <imadithyavardhan@gmail.com>
2026-04-17 13:53:28 +05:30
..
get_budget_usage.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
get_budget_usage_test.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
get_isolated_balance.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
get_isolated_balance_test.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
get_total_subwallet_balance.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
get_total_subwallet_balance_test.go feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30