summaryrefslogtreecommitdiff
path: root/src/types/pending.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-06 19:39:55 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-06 19:39:55 +0530
commit4e76edf129229823281c2a662392249c32a1c7a2 (patch)
treeacc1c8b68176978362f45608ae0efc9b729ddde7 /src/types/pending.ts
parent7c7d3e001ec3fa066ad7a41876142c331e3e2f0f (diff)
downloadwallet-core-4e76edf129229823281c2a662392249c32a1c7a2.tar.gz
wallet-core-4e76edf129229823281c2a662392249c32a1c7a2.tar.bz2
wallet-core-4e76edf129229823281c2a662392249c32a1c7a2.zip
include (pending) wallet balance in pending ops response
Diffstat (limited to 'src/types/pending.ts')
-rw-r--r--src/types/pending.ts14
1 files changed, 13 insertions, 1 deletions
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;
/**