alby-hub/db
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
..
migrations feat: track last settled transaction time for apps (#2214) 2026-04-09 16:26:45 +05:30
queries feat: suffix balance/amount fields with explicit unit (Sat or Msat) (#2153) 2026-04-17 13:53:28 +05:30
sqlite-wrapper Fix: sqlite connection parameters, add migrations to delete orphaned records and change postgres transaction amount to bigint (#1462) 2025-07-06 17:45:46 +07:00
test Fix: sqlite connection parameters, add migrations to delete orphaned records and change postgres transaction amount to bigint (#1462) 2025-07-06 17:45:46 +07:00
db.go Fix: sqlite connection parameters, add migrations to delete orphaned records and change postgres transaction amount to bigint (#1462) 2025-07-06 17:45:46 +07:00
models.go feat: track last settled transaction time for apps (#2214) 2026-04-09 16:26:45 +05:30