From ce334320363618c6c1ed3d2ae598d49cae98753c Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 14 Nov 2016 03:37:47 +0100 Subject: add test cases for coin selection --- src/types.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/types.ts') 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}; +} -- cgit v1.2.3