diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-06 19:39:55 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-06 19:39:55 +0530 |
commit | 4e76edf129229823281c2a662392249c32a1c7a2 (patch) | |
tree | acc1c8b68176978362f45608ae0efc9b729ddde7 /src/types/pending.ts | |
parent | 7c7d3e001ec3fa066ad7a41876142c331e3e2f0f (diff) | |
download | wallet-core-4e76edf129229823281c2a662392249c32a1c7a2.tar.xz |
include (pending) wallet balance in pending ops response
Diffstat (limited to 'src/types/pending.ts')
-rw-r--r-- | src/types/pending.ts | 14 |
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; /** |