comments
This commit is contained in:
parent
96ef591fb9
commit
f9e1ad0624
@ -76,11 +76,19 @@ import {CryptoApi} from "./cryptoApi";
|
|||||||
import URI = require("urijs");
|
import URI = require("urijs");
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Named tuple of coin and denomination.
|
||||||
|
*/
|
||||||
export interface CoinWithDenom {
|
export interface CoinWithDenom {
|
||||||
coin: CoinRecord;
|
coin: CoinRecord;
|
||||||
denom: DenominationRecord;
|
denom: DenominationRecord;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Element of the payback list that the
|
||||||
|
* exchange gives us in /keys.
|
||||||
|
*/
|
||||||
@Checkable.Class
|
@Checkable.Class
|
||||||
export class Payback {
|
export class Payback {
|
||||||
@Checkable.String
|
@Checkable.String
|
||||||
@ -88,6 +96,9 @@ export class Payback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Structure that the exchange gives us in /keys.
|
||||||
|
*/
|
||||||
@Checkable.Class
|
@Checkable.Class
|
||||||
export class KeysJson {
|
export class KeysJson {
|
||||||
@Checkable.List(Checkable.Value(Denomination))
|
@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) {
|
function setTimeout(f: any, t: number) {
|
||||||
return chrome.extension.getBackgroundPage().setTimeout(f, t);
|
return chrome.extension.getBackgroundPage().setTimeout(f, t);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user