From e5b88ee00392d855b9d343a3dd80afeb33f44d79 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Tue, 30 May 2017 18:33:28 +0200 Subject: skeleton for better RPC types --- src/wallet.ts | 46 ++-------------------------------------------- 1 file changed, 2 insertions(+), 44 deletions(-) (limited to 'src/wallet.ts') diff --git a/src/wallet.ts b/src/wallet.ts index 92187d82f..51c99e805 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -60,6 +60,8 @@ import { ExchangeHandle, ExchangeRecord, ExchangeWireFeesRecord, + HistoryLevel, + HistoryRecord, Notifier, OfferRecord, PayCoinInfo, @@ -270,38 +272,6 @@ export class ConfirmReserveRequest { } -/** - * Activity history record. - */ -export interface HistoryRecord { - /** - * Type of the history event. - */ - type: string; - - /** - * Time when the activity was recorded. - */ - timestamp: number; - - /** - * Subject of the entry. Used to group multiple history records together. - * Only the latest history record with the same subjectId will be shown. - */ - subjectId?: string; - - /** - * Details used when rendering the history record. - */ - detail: any; - - /** - * Level of detail of the history entry. - */ - level: HistoryLevel; -} - - interface PayReq { coins: CoinPaySig[]; merchant_pub: string; @@ -323,18 +293,6 @@ interface TransactionRecord { } -/** - * Level of detail at which a history - * entry should be shown. - */ -export enum HistoryLevel { - Trace = 1, - Developer = 2, - Expert = 3, - User = 4, -} - - /** * Badge that shows activity for the wallet. */ -- cgit v1.2.3