aboutsummaryrefslogtreecommitdiff
path: root/src/wallet.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-30 18:33:28 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-30 18:33:28 +0200
commite5b88ee00392d855b9d343a3dd80afeb33f44d79 (patch)
treebe4a882fbefd8797acfc37e2fb32b80001d37a1c /src/wallet.ts
parentb6df47f25e6db2de0a7563730f8881f935a94f29 (diff)
downloadwallet-core-e5b88ee00392d855b9d343a3dd80afeb33f44d79.tar.xz
skeleton for better RPC types
Diffstat (limited to 'src/wallet.ts')
-rw-r--r--src/wallet.ts46
1 files changed, 2 insertions, 44 deletions
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;
@@ -324,18 +294,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.
*/
export interface Badge {