diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-14 03:37:47 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-14 03:37:47 +0100 |
commit | ce334320363618c6c1ed3d2ae598d49cae98753c (patch) | |
tree | 1c77d9f7f8e193891b249410a4924e5d83532385 /src/types.ts | |
parent | af901cb892a5ecd493915e49c04dfbecf00c8b0e (diff) | |
download | wallet-core-ce334320363618c6c1ed3d2ae598d49cae98753c.tar.xz |
add test cases for coin selection
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 7 |
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}; +} |