diff options
author | Florian Dold <florian@dold.me> | 2020-12-16 17:59:04 +0100 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2020-12-16 17:59:04 +0100 |
commit | bafb52edff4d56bcb9e3c3d0a260f507c517b08c (patch) | |
tree | 09b484a8cedc9893f5ea7593a98fadde075eafa3 /packages/taler-wallet-core/src/types/backupTypes.ts | |
parent | c09c5bbe625566fc61c811160d2ccdab263327fa (diff) | |
download | wallet-core-bafb52edff4d56bcb9e3c3d0a260f507c517b08c.tar.xz |
don't store reserve history anymore, adjust withdrawal implementation accordingly
Diffstat (limited to 'packages/taler-wallet-core/src/types/backupTypes.ts')
-rw-r--r-- | packages/taler-wallet-core/src/types/backupTypes.ts | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/packages/taler-wallet-core/src/types/backupTypes.ts b/packages/taler-wallet-core/src/types/backupTypes.ts index 09bc4670c..a3261ae35 100644 --- a/packages/taler-wallet-core/src/types/backupTypes.ts +++ b/packages/taler-wallet-core/src/types/backupTypes.ts @@ -53,12 +53,6 @@ * Imports. */ import { Timestamp } from "../util/time"; -import { - ReserveClosingTransaction, - ReserveCreditTransaction, - ReserveRecoupTransaction, - ReserveWithdrawTransaction, -} from "./ReserveTransaction"; /** * Type alias for strings that are to be treated like amounts. @@ -1128,82 +1122,6 @@ export interface BackupExchange { tos_etag_accepted: string | undefined; } -export enum WalletReserveHistoryItemType { - Credit = "credit", - Withdraw = "withdraw", - Closing = "closing", - Recoup = "recoup", -} - -export interface BackupReserveHistoryCreditItem { - type: WalletReserveHistoryItemType.Credit; - - /** - * Amount we expect to see credited. - */ - expected_amount?: BackupAmountString; - - /** - * Item from the reserve transaction history that this - * wallet reserve history item matches up with. - */ - matched_exchange_transaction?: ReserveCreditTransaction; -} - -/** - * Reserve history item for a withdrawal - */ -export interface BackupReserveHistoryWithdrawItem { - type: WalletReserveHistoryItemType.Withdraw; - - expected_amount?: BackupAmountString; - - /** - * Hash of the blinded coin. - * - * When this value is set, it indicates that a withdrawal is active - * in the wallet for the reserve. - */ - expected_coin_ev_hash?: string; - - /** - * Item from the reserve transaction history that this - * wallet reserve history item matches up with. - */ - matched_exchange_transaction?: ReserveWithdrawTransaction; -} - -export interface BackupReserveHistoryClosingItem { - type: WalletReserveHistoryItemType.Closing; - - /** - * Item from the reserve transaction history that this - * wallet reserve history item matches up with. - */ - matched_exchange_transaction?: ReserveClosingTransaction; -} - -export interface BackupReserveHistoryRecoupItem { - type: WalletReserveHistoryItemType.Recoup; - - /** - * Amount we expect to see recouped. - */ - expected_amount?: BackupAmountString; - - /** - * Item from the reserve transaction history that this - * wallet reserve history item matches up with. - */ - matched_exchange_transaction?: ReserveRecoupTransaction; -} - -export type BackupReserveHistoryItem = - | BackupReserveHistoryCreditItem - | BackupReserveHistoryWithdrawItem - | BackupReserveHistoryRecoupItem - | BackupReserveHistoryClosingItem; - export enum BackupProposalStatus { /** * Proposed (and either downloaded or not, |