From 01e83df471802d3253953b00672af0bc879403fe Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 24 Mar 2020 15:25:04 +0530 Subject: helpers for auditor integration test --- src/types/dbTypes.ts | 6 ++---- src/types/talerTypes.ts | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 4 deletions(-) (limited to 'src/types') diff --git a/src/types/dbTypes.ts b/src/types/dbTypes.ts index f28426ac9..5a5ac7c3d 100644 --- a/src/types/dbTypes.ts +++ b/src/types/dbTypes.ts @@ -674,11 +674,9 @@ export interface CoinRecord { exchangeBaseUrl: string; /** - * We have withdrawn the coin, but it's not accepted by the exchange anymore. - * We have to tell an auditor and wait for compensation or for the exchange - * to fix it. + * The coin is currently suspended, and will not be used for payments. */ - suspended?: boolean; + suspended: boolean; /** * Blinding key used when withdrawing the coin. diff --git a/src/types/talerTypes.ts b/src/types/talerTypes.ts index 569b93120..e5be32abe 100644 --- a/src/types/talerTypes.ts +++ b/src/types/talerTypes.ts @@ -759,6 +759,20 @@ export class WithdrawResponse { ev_sig: string; } +export interface CoinDumpJson { + coins: Array<{ + denom_pub: string; + denom_pub_hash: string; + denom_value: string; + coin_pub: string; + exchange_base_url: string; + remaining_value: string; + refresh_parent_coin_pub: string | undefined; + withdrawal_reserve_pub: string | undefined; + coin_suspended: boolean; + }>; +} + export type AmountString = string; export type Base32String = string; export type EddsaSignatureString = string; -- cgit v1.2.3