diff options
author | Florian Dold <florian.dold@gmail.com> | 2020-03-24 15:25:04 +0530 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2020-03-24 15:25:04 +0530 |
commit | 01e83df471802d3253953b00672af0bc879403fe (patch) | |
tree | 80f763be28055139221fafb50e8ded7a89b8bc3d /src/types | |
parent | c4d289956275677b24459237d13ed8c23a606079 (diff) | |
download | wallet-core-01e83df471802d3253953b00672af0bc879403fe.tar.xz |
helpers for auditor integration test
Diffstat (limited to 'src/types')
-rw-r--r-- | src/types/dbTypes.ts | 6 | ||||
-rw-r--r-- | src/types/talerTypes.ts | 14 |
2 files changed, 16 insertions, 4 deletions
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; |