aboutsummaryrefslogtreecommitdiff
path: root/src/types
diff options
context:
space:
mode:
Diffstat (limited to 'src/types')
-rw-r--r--src/types/dbTypes.ts6
-rw-r--r--src/types/talerTypes.ts14
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;