summaryrefslogtreecommitdiff
path: root/src/types/talerTypes.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2020-03-24 17:57:44 +0530
committerFlorian Dold <florian.dold@gmail.com>2020-03-24 17:57:44 +0530
commit1bac5329b510e74d644d0edbf6118b527b10c8ad (patch)
tree0cc8e9e546fe198e959800b22991236c7311112d /src/types/talerTypes.ts
parentecc7b5e76edb5f544dcb18990e239f41c229418c (diff)
downloadwallet-core-1bac5329b510e74d644d0edbf6118b527b10c8ad.tar.gz
wallet-core-1bac5329b510e74d644d0edbf6118b527b10c8ad.tar.bz2
wallet-core-1bac5329b510e74d644d0edbf6118b527b10c8ad.zip
docs
Diffstat (limited to 'src/types/talerTypes.ts')
-rw-r--r--src/types/talerTypes.ts35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/types/talerTypes.ts b/src/types/talerTypes.ts
index 90751940d..0f35f7ede 100644
--- a/src/types/talerTypes.ts
+++ b/src/types/talerTypes.ts
@@ -731,16 +731,51 @@ export class WithdrawResponse {
ev_sig: string;
}
+/**
+ * Easy to process format for the public data of coins
+ * managed by the wallet.
+ */
export interface CoinDumpJson {
coins: Array<{
+ /**
+ * The coin's denomination's public key.
+ */
denom_pub: string;
+ /**
+ * Hash of denom_pub.
+ */
denom_pub_hash: string;
+ /**
+ * Value of the denomination (without any fees).
+ */
denom_value: string;
+ /**
+ * Public key of the coin.
+ */
coin_pub: string;
+ /**
+ * Base URL of the exchange for the coin.
+ */
exchange_base_url: string;
+ /**
+ * Remaining value on the coin, to the knowledge of
+ * the wallet.
+ */
remaining_value: string;
+ /**
+ * Public key of the parent coin.
+ * Only present if this coin was obtained via refreshing.
+ */
refresh_parent_coin_pub: string | undefined;
+ /**
+ * Public key of the reserve for this coin.
+ * Only present if this coin was obtained via refreshing.
+ */
withdrawal_reserve_pub: string | undefined;
+ /**
+ * Is the coin suspended?
+ * Suspended coins are not considered for payments.
+ */
coin_suspended: boolean;
}>;
}