diff options
Diffstat (limited to 'lib/wallet/types.ts')
-rw-r--r-- | lib/wallet/types.ts | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/wallet/types.ts b/lib/wallet/types.ts index 5beff72bd..1edfa3601 100644 --- a/lib/wallet/types.ts +++ b/lib/wallet/types.ts @@ -42,6 +42,12 @@ export class AmountJson { } +export interface SignedAmountJson { + amount: AmountJson; + isNegative: boolean; +} + + export interface ReserveRecord { reserve_pub: string; reserve_priv: string, @@ -195,6 +201,12 @@ export interface RefreshSession { valueWithFee: AmountJson /** + * Sum of the value of denominations we want + * to withdraw in this session, without fees. + */ + valueOutput: AmountJson; + + /** * Signature to confirm the melting. */ confirmSig: string; @@ -308,6 +320,15 @@ export class ExchangeHandle { static checked: (obj: any) => ExchangeHandle; } +export interface WalletBalance { + [currency: string]: WalletBalanceEntry; +} + +export interface WalletBalanceEntry { + available: AmountJson; + pendingIncoming: AmountJson; +} + @Checkable.Class export class Contract { |