summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-24 16:56:46 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-24 16:56:46 +0200
commitf9e1ad0624c4b76df45a689aff5d39bb74f80183 (patch)
tree2f5fa5801f189e5c0227f5c65a61408e5ed73e66 /src
parent96ef591fb9b453f0c37bcb3105d5f277d02d2f56 (diff)
downloadwallet-core-f9e1ad0624c4b76df45a689aff5d39bb74f80183.tar.gz
wallet-core-f9e1ad0624c4b76df45a689aff5d39bb74f80183.tar.bz2
wallet-core-f9e1ad0624c4b76df45a689aff5d39bb74f80183.zip
comments
Diffstat (limited to 'src')
-rw-r--r--src/wallet.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/wallet.ts b/src/wallet.ts
index a496b6f8a..f2c38078b 100644
--- a/src/wallet.ts
+++ b/src/wallet.ts
@@ -76,11 +76,19 @@ import {CryptoApi} from "./cryptoApi";
import URI = require("urijs");
+/**
+ * Named tuple of coin and denomination.
+ */
export interface CoinWithDenom {
coin: CoinRecord;
denom: DenominationRecord;
}
+
+/**
+ * Element of the payback list that the
+ * exchange gives us in /keys.
+ */
@Checkable.Class
export class Payback {
@Checkable.String
@@ -88,6 +96,9 @@ export class Payback {
}
+/**
+ * Structure that the exchange gives us in /keys.
+ */
@Checkable.Class
export class KeysJson {
@Checkable.List(Checkable.Value(Denomination))
@@ -287,6 +298,10 @@ const builtinCurrencies: CurrencyRecord[] = [
];
+
+// FIXME: these functions should be dependency-injected
+// into the wallet, as this is chrome specific => bad
+
function setTimeout(f: any, t: number) {
return chrome.extension.getBackgroundPage().setTimeout(f, t);
}