diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-04-02 14:46:53 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-04-02 14:46:53 +0530 |
commit | 1728e5011e16f226c6e3675aa196872af39f6c4e (patch) | |
tree | 4dff66f6ee14fe885d6e848eee3bda8307ffe3b3 /src/types | |
parent | 62de27d2acc2a59e8125d2b7d2cbcf6a41bdc62d (diff) | |
download | wallet-core-1728e5011e16f226c6e3675aa196872af39f6c4e.tar.xz |
split reconciliation and summary of reserve history
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/dbTypes.ts | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/src/types/dbTypes.ts b/src/types/dbTypes.ts index c88148e7e..9c2b3ca3e 100644 --- a/src/types/dbTypes.ts +++ b/src/types/dbTypes.ts @@ -35,7 +35,13 @@ import { import { Index, Store } from "../util/query"; import { OperationError, RefreshReason } from "./walletTypes"; -import { ReserveTransaction, ReserveCreditTransaction, ReserveWithdrawTransaction, ReserveClosingTransaction, ReserveRecoupTransaction } from "./ReserveTransaction"; +import { + ReserveTransaction, + ReserveCreditTransaction, + ReserveWithdrawTransaction, + ReserveClosingTransaction, + ReserveRecoupTransaction, +} from "./ReserveTransaction"; import { Timestamp, Duration, getTimestampNow } from "../util/time"; import { Wallet } from "../wallet"; @@ -191,7 +197,7 @@ export interface WalletReserveHistoryRecoupItem { matchedExchangeTransaction?: ReserveRecoupTransaction; } -export type WalletReserveHistoryItem = +export type WalletReserveHistoryItem = | WalletReserveHistoryCreditItem | WalletReserveHistoryWithdrawItem | WalletReserveHistoryRecoupItem @@ -300,13 +306,6 @@ export interface ReserveRecord { lastError: OperationError | undefined; reserveTransactions: ReserveTransaction[]; - - /** - * History of the reserve as modeled by the wallet. - * Reconciled with the history kept by the exchange - * when we request the reserve status. - */ - history: WalletReserveHistoryItem[]; } /** |