This commit is contained in:
Florian Dold 2020-03-24 17:57:44 +05:30
parent ecc7b5e76e
commit 1bac5329b5
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -731,16 +731,51 @@ export class WithdrawResponse {
ev_sig: string; ev_sig: string;
} }
/**
* Easy to process format for the public data of coins
* managed by the wallet.
*/
export interface CoinDumpJson { export interface CoinDumpJson {
coins: Array<{ coins: Array<{
/**
* The coin's denomination's public key.
*/
denom_pub: string; denom_pub: string;
/**
* Hash of denom_pub.
*/
denom_pub_hash: string; denom_pub_hash: string;
/**
* Value of the denomination (without any fees).
*/
denom_value: string; denom_value: string;
/**
* Public key of the coin.
*/
coin_pub: string; coin_pub: string;
/**
* Base URL of the exchange for the coin.
*/
exchange_base_url: string; exchange_base_url: string;
/**
* Remaining value on the coin, to the knowledge of
* the wallet.
*/
remaining_value: string; remaining_value: string;
/**
* Public key of the parent coin.
* Only present if this coin was obtained via refreshing.
*/
refresh_parent_coin_pub: string | undefined; 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; withdrawal_reserve_pub: string | undefined;
/**
* Is the coin suspended?
* Suspended coins are not considered for payments.
*/
coin_suspended: boolean; coin_suspended: boolean;
}>; }>;
} }