aboutsummaryrefslogtreecommitdiff
path: root/src/types.ts
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-14 03:37:47 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-14 03:37:47 +0100
commitce334320363618c6c1ed3d2ae598d49cae98753c (patch)
tree1c77d9f7f8e193891b249410a4924e5d83532385 /src/types.ts
parentaf901cb892a5ecd493915e49c04dfbecf00c8b0e (diff)
downloadwallet-core-ce334320363618c6c1ed3d2ae598d49cae98753c.tar.xz
add test cases for coin selection
Diffstat (limited to 'src/types.ts')
-rw-r--r--src/types.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/types.ts b/src/types.ts
index 8f24fda90..f6458955b 100644
--- a/src/types.ts
+++ b/src/types.ts
@@ -559,3 +559,10 @@ export interface CheckRepurchaseResult {
export interface Notifier {
notify(): void;
}
+
+/**
+ * For terseness.
+ */
+export function mkAmount(value: number, fraction: number, currency: string): AmountJson {
+ return {value, fraction, currency};
+}