diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-02 20:33:01 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-02 20:33:01 +0530 |
commit | ef0acf06bfb7820a21c4719dba0d659f600be3c7 (patch) | |
tree | 216d34722240f682e5ee58632947fa75e9b4fcee /src/types/history.ts | |
parent | 1728e5011e16f226c6e3675aa196872af39f6c4e (diff) | |
download | wallet-core-ef0acf06bfb7820a21c4719dba0d659f600be3c7.tar.xz |
model reserve history in the exchange, improve reserve handling logic
Diffstat (limited to 'src/types/history.ts')
-rw-r--r-- | src/types/history.ts | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/types/history.ts b/src/types/history.ts index f4f3872ca..8179f6261 100644 --- a/src/types/history.ts +++ b/src/types/history.ts @@ -119,8 +119,6 @@ export interface HistoryReserveBalanceUpdatedEvent { */ timestamp: Timestamp; - newHistoryTransactions: ReserveTransaction[]; - /** * Condensed information about the reserve. */ @@ -129,13 +127,17 @@ export interface HistoryReserveBalanceUpdatedEvent { /** * Amount currently left in the reserve. */ - amountReserveBalance: string; + reserveBalance: string; + + /** + * Amount we still expect to be added to the reserve. + */ + reserveAwaitedAmount: string; /** - * Amount we expected to be in the reserve at that time, - * considering ongoing withdrawals from that reserve. + * Amount that hasn't been withdrawn yet. */ - amountExpected: string; + reserveUnclaimedAmount: string; } /** @@ -612,7 +614,7 @@ export interface HistoryWithdrawnEvent { * Unique identifier for the withdrawal session, can be used to * query more detailed information from the wallet. */ - withdrawSessionId: string; + withdrawalGroupId: string; withdrawalSource: WithdrawalSource; |