From 4e76edf129229823281c2a662392249c32a1c7a2 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Fri, 6 Mar 2020 19:39:55 +0530 Subject: include (pending) wallet balance in pending ops response --- src/types/pending.ts | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/types/pending.ts') diff --git a/src/types/pending.ts b/src/types/pending.ts index 3c169c2c4..b86c7797b 100644 --- a/src/types/pending.ts +++ b/src/types/pending.ts @@ -21,7 +21,7 @@ /** * Imports. */ -import { OperationError } from "./walletTypes"; +import { OperationError, WalletBalance } from "./walletTypes"; import { WithdrawalSource, RetryInfo, ReserveRecordStatus } from "./dbTypes"; import { Timestamp, Duration } from "../util/time"; @@ -231,7 +231,19 @@ export interface PendingOperationInfoCommon { * Response returned from the pending operations API. */ export interface PendingOperationsResponse { + /** + * List of pending operations. + */ pendingOperations: PendingOperationInfo[]; + + /** + * Current wallet balance, including pending balances. + */ + walletBalance: WalletBalance; + + /** + * When is the next pending operation due to be re-tried? + */ nextRetryDelay: Duration; /** -- cgit v1.2.3