btcpayserver/BTCPayServer.Client/Models
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
..
ApiHealthData.cs format 2020-04-30 16:44:27 +02:00
ApiKeyData.cs format 2020-04-30 16:44:27 +02:00
AppBaseData.cs Move AdditionalData to AppBaseData 2024-07-11 21:43:30 +09:00
AppItem.cs Refactoring: Move AppItem to Client lib and use the class for item list (#6258) 2024-11-05 11:49:30 +09:00
AppItemStats.cs Greenfield: App endpoints for sales statistics (#6103) 2024-09-12 16:17:16 +09:00
ApplicationUserData.cs User: Add name and image URL (#6008) 2024-06-26 17:39:22 +09:00
ApprovePayoutRequest.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
ApproveUserRequest.cs Admins can approve registered users (#5647) 2024-01-31 14:45:54 +09:00
AppSalesStats.cs Greenfield: App endpoints for sales statistics (#6103) 2024-09-12 16:17:16 +09:00
AssetPairData.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
ConnectToNodeRequest.cs Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
CreateApiKeyRequest.cs Cleaning up bom from cs files 2020-06-28 21:44:35 -05:00
CreateApplicationUserRequest.cs User: Add name and image URL (#6008) 2024-06-26 17:39:22 +09:00
CreateInvoiceRequest.cs Add ability to require refund email from app level (#3013) 2021-10-27 23:32:56 +09:00
CreateLightningInvoiceRequest.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
CreateOnChainTransactionRequest.cs The Big Cleanup: Refactor BTCPay internals (#5809) 2024-04-04 16:31:04 +09:00
CreatePaymentRequestRequest.cs Run dotnet format 2020-06-28 17:55:27 +09:00
CreatePayoutRequest.cs Rename PaymentMethod => PaymentMethodId (#6198) 2024-09-06 13:24:33 +09:00
CreatePayoutThroughStoreRequest.cs Introduce Payout metadata for api and plugins (#5182) 2023-07-24 18:37:18 +09:00
CreatePullPaymentRequest.cs Renaming various properties in the Payouts API (#6246) 2024-09-26 11:25:45 +09:00
CreateStoreRequest.cs Run dotnet format 2020-06-28 17:55:27 +09:00
CrowdfundAppData.cs Refactoring: Move AppItem to Client lib and use the class for item list (#6258) 2024-11-05 11:49:30 +09:00
EmailSettingsData.cs changing check box to toggle in various setting views (#5769) 2024-03-14 15:16:48 +01:00
FileData.cs Greenfield: Add file endpoints and upload (#6075) 2024-07-11 09:28:24 +09:00
GenerateOnChainWalletRequest.cs Greenfield: Can set the label when generating a wallet for store (#6186) 2024-09-02 18:54:15 +09:00
GenericPaymentMethodData.cs The Big Cleanup: Refactor BTCPay internals (#5809) 2024-04-04 16:31:04 +09:00
GreenfieldAPIError.cs BTCPayServerClient refactoring (#6024) 2024-06-19 15:25:33 +02:00
GreenfieldPermissionAPIError.cs Run dotnet format (#3244) 2021-12-31 16:59:02 +09:00
GreenfieldValidationError.cs BTCPayServerClient refactoring (#6024) 2024-06-19 15:25:33 +02:00
HistogramData.cs Histograms: Add Lightning data and API endpoints (#6217) 2024-11-05 21:40:37 +09:00
InvoiceData.cs Remove CheckoutV1 2024-04-05 16:58:13 +09:00
InvoiceExceptionStatus.cs Remove Legacy Status from the code (#5982) 2024-05-15 07:49:53 +09:00
InvoicePaymentMethodDataModel.cs The Big Cleanup: Refactor BTCPay internals (#5809) 2024-04-04 16:31:04 +09:00
LabelData.cs Refactor labels (#4179) 2022-10-11 17:34:29 +09:00
Language.cs Add misc/permissions to document the hierarchical structure (#2654) 2021-07-08 14:34:10 +09:00
LedgerEntryData.cs Custodian withdrawal support + Some refactoring and cleanup (#4085) 2023-03-20 10:45:32 +09:00
LightningAddressData.cs Greenfield: Add missing invoice metadata to Lightning Address (#6084) 2024-07-04 22:42:02 +09:00
LightningAutomatedPayoutSettings.cs Remove unused field from automated payout settings 2024-10-09 13:13:10 +09:00
LightningInvoiceData.cs Dotnet reformat 2023-04-10 11:07:03 +09:00
LightningNodeBalanceData.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
LightningNodeInformationData.cs Greenfield: Extend LN GetInfo data (#4167) 2022-09-28 09:34:34 +09:00
LightningPaymentData.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
LockUserRequest.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
MarkInvoiceStatusRequest.cs make individual action items 2020-08-26 21:36:31 +09:00
MarkPayoutRequest.cs Refactor walletobj API, make wallet object graph directionless (#4297) 2022-11-19 00:04:46 +09:00
NotificationData.cs Greenfield: Add store id for notifications (#6093) 2024-07-11 00:12:22 +09:00
NotificationSettingsData.cs Greenfield: Manage notifications (#6058) 2024-06-25 20:01:11 +02:00
OnChainAutomatedPayoutSettings.cs Rename PaymentMethod => PaymentMethodId (#6198) 2024-09-06 13:24:33 +09:00
OnChainPaymentMethodPreviewResultData.cs GreenField: Store OnChain Payment Method (#2157) 2020-12-23 14:00:38 +09:00
OnChainWalletAddressData.cs Allow Payjoin for wallet receive addresses (#2425) 2021-04-13 12:26:36 +09:00
OnChainWalletFeeRateData.cs GreenField: Add FeeRate To Wallets API (#2375) 2021-04-07 15:16:17 +09:00
OnChainWalletOverviewData.cs Provide more data through OnChain Wallet API (#2420) 2021-04-08 12:43:51 +09:00
OnChainWalletTransactionData.cs Refactor walletobj API, make wallet object graph directionless (#4297) 2022-11-19 00:04:46 +09:00
OnChainWalletUTXOData.cs The Big Cleanup: Refactor BTCPay internals (#5809) 2024-04-04 16:31:04 +09:00
OpenLightningChannelRequest.cs Fix build 2022-12-23 17:17:09 +09:00
PatchOnChainTransactionRequest.cs Add transaction info PATCH endpoint (#3561) 2022-04-14 13:17:22 +09:00
PayLightningInvoiceRequest.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
PaymentMethodCriteriaData.cs Rename PaymentMethod => PaymentMethodId (#6198) 2024-09-06 13:24:33 +09:00
PaymentRequestBaseData.cs Branding updates for 2.0 (#5947) 2024-05-09 09:18:02 +09:00
PaymentRequestData.cs Payment Request: Add processing status for on-chain payments (#5309) 2023-09-19 10:10:13 +09:00
PayoutData.cs Renaming various properties in the Payouts API (#6246) 2024-09-26 11:25:45 +09:00
PayoutProcessorData.cs Renaming various properties in the Payouts API (#6246) 2024-09-26 11:25:45 +09:00
PayPaymentRequestRequest.cs [Greenfield] Can create an invoice for a payment request via Greenfield (#4243) 2022-11-02 18:41:19 +09:00
PermissionMetadata.cs Add misc/permissions to document the hierarchical structure (#2654) 2021-07-08 14:34:10 +09:00
PointOfSaleAppData.cs Refactoring: Move AppItem to Client lib and use the class for item list (#6258) 2024-11-05 11:49:30 +09:00
PullPaymentBaseData.cs Remove period concept from PullPayment (#5963) 2024-05-01 17:59:10 +09:00
PullPaymentLNURL.cs Add Greenfield API endpoint for pull payment LNURL items (#4472) 2023-01-26 14:43:07 +09:00
RateSource.cs Code formatting updates (#4502) 2023-01-06 22:18:07 +09:00
RefundInvoiceRequest.cs Rename PaymentMethod => PaymentMethodId (#6198) 2024-09-06 13:24:33 +09:00
RegisterBoltcardRequest.cs If pull payment opened in mobile, use deeplink to setup card (#5613) 2024-03-14 11:07:11 +01:00
SendEmailRequest.cs New API endpoint: Send email using store SMTP (#3181) 2022-03-11 10:17:40 +01:00
ServerInfoData.cs Remove references to cryptoCode in SyncStatus (#6275) 2024-10-04 16:58:31 +09:00
StoreBaseData.cs Store Branding: Apply brand color to backend as well (#5992) 2024-09-13 21:39:21 +09:00
StoreData.cs Store Custom Roles (#4940) 2023-05-26 23:49:32 +09:00
StoreRateConfiguration.cs Greenfield: Store Rates Config (#3931) 2022-10-12 22:19:33 +09:00
StoreRateResult.cs Greenfield: Currency rate should be strings (#4607) 2023-02-08 19:18:37 +09:00
StoreReportRequest.cs Add reporting feature (#5155) 2023-07-24 09:24:32 +09:00
StoreReportsResponse.cs Add reporting feature (#5155) 2023-07-24 09:24:32 +09:00
StoreWebhookData.cs Pluginize Webhooks and support Payouts (#5421) 2023-12-01 10:50:05 +01:00
TransactionStatus.cs Improve performance of on chain transaction listing for big wallets 2022-07-05 14:23:13 +09:00
UpdateApplicationUserRequest.cs User: Add name and image URL (#6008) 2024-06-26 17:39:22 +09:00
UpdateInvoiceRequest.cs GreenField: Update invoice metadata (#2095) 2020-12-12 15:15:34 +09:00
UpdateNotification.cs GreenField: Notifications API (#2055) 2020-12-11 23:11:08 +09:00
UpdateNotificationSettingsRequest.cs Greenfield: Manage notifications (#6058) 2024-06-25 20:01:11 +02:00
UpdatePaymentRequestRequest.cs Run dotnet format 2020-06-28 17:55:27 +09:00
UpdateStoreRequest.cs format 2020-04-30 16:44:27 +02:00
WebhookDeliveryData.cs Add Greenfield API 2020-11-13 14:15:03 +09:00
WebhookDeliveryStatus.cs Add Webhooks in store's settings 2020-11-08 15:57:24 +09:00
WebhookEvent.cs Pluginize Webhooks and support Payouts (#5421) 2023-12-01 10:50:05 +01:00
WebhookEventType.cs Pluginize Webhooks and support Payouts (#5421) 2023-12-01 10:50:05 +01:00
WebhookInvoiceEvent.cs The Big Cleanup: Refactor BTCPay internals (#5809) 2024-04-04 16:31:04 +09:00