btcpayserver/BTCPayServer/Hosting
d11n 641bdcff31
Histograms: Add Lightning data and API endpoints (#6217)
* Histograms: Add Lightning data and API endpoints

Ported over from the mobile-working-branch.

Adds histogram data for Lightning and exposes the wallet/lightning histogram data via the API. It also add a dashboard graph for the Lightning balance.

Caveat: The Lightning histogram is calculated by using the current channel balance and going backwards through as much invoices and transactions as we have. The "start" of the LN graph data might not be accurate though. That's because we don't track (and not even have) the LN onchain data. It is calculated by using the current channel balance and going backwards through as much invoices and transactions as we have. So the historic graph data for LN is basically a best effort of trying to reconstruct it with what we have: The LN channel transactions.

* More timeframes

* Refactoring: Remove redundant WalletHistogram types

* Remove store property from dashboard tile view models

* JS error fixes
2024-11-05 21:40:37 +09:00
..
BlockExplorerLinkStartupTask.cs Pluginify BTCPayNetworkProvider (#5331) 2023-11-29 18:51:40 +09:00
BTCpayMiddleware.cs chore: fix typos (#5883) 2024-03-30 10:20:24 +01:00
BTCPayServerServices.cs Histograms: Add Lightning data and API endpoints (#6217) 2024-11-05 21:40:37 +09:00
GreenfieldMiddleware.cs Rename GreenField -> Greenfield 2022-01-14 13:46:04 +09:00
HeadersOverrideMiddleware.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
LoadCurrencyNameTableStartupTask.cs Can inject currency data in CurrencyNameTable (#6276) 2024-10-04 22:24:44 +09:00
LoadTranslationsStartupTask.cs Add translation for store rate and wallet setup (#6271) 2024-10-03 19:21:19 +09:00
LowercaseTransformer.cs Use nicer urls, part2 (Fix #921) 2022-01-15 14:54:06 +09:00
MigrationStartupTask.cs Refactoring: Move AppItem to Client lib and use the class for item list (#6258) 2024-11-05 11:49:30 +09:00
SkippableObjectValidatorProvider.cs Add Label and accountKeyPath to the on chain payment methods (#2166) 2020-12-28 13:59:01 +01:00
Startup.cs Uniformize Wallet API's path (#6209) 2024-09-12 15:19:10 +09:00
ValidateControllerNameTransformer.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00