From 8836bd922ccee10be0060b6762c335e2554feebd Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 2 Dec 2020 20:05:16 +0100 Subject: [PATCH] Seperate balance interface to own type file --- src/types/balance.ts | 21 +++++++++++++++++++++ src/types/index.ts | 1 + src/types/types.ts | 22 ---------------------- 3 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 src/types/balance.ts diff --git a/src/types/balance.ts b/src/types/balance.ts new file mode 100644 index 00000000..426b0acf --- /dev/null +++ b/src/types/balance.ts @@ -0,0 +1,21 @@ +export interface BalanceRecords { + balance: number; + currency: string; + est_stake: number; + free: number; + used: number; + stake: string; +} + +export interface BalanceInterface { + currencies: Array; + note: string; + /** Stake currency used */ + stake: string; + /** Fiat symbol used */ + symbol: string; + /** Total Balance in stake currency */ + total: number; + /** Balance in FIAT currency */ + value: number; +} diff --git a/src/types/index.ts b/src/types/index.ts index b32af85a..549d1e33 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,4 +1,5 @@ export * from './auth'; +export * from './balance'; export * from './blacklist'; export * from './chart'; export * from './daily'; diff --git a/src/types/types.ts b/src/types/types.ts index ad22f65e..b2f60206 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -9,15 +9,6 @@ export interface PerformanceEntry { profit: number; } -export interface BalanceRecords { - balance: number; - currency: string; - est_stake: number; - free: number; - used: number; - stake: string; -} - export interface Logs { /** * Array of Logs @@ -28,19 +19,6 @@ export interface Logs { log_count: number; } -export interface BalanceInterface { - currencies: Array; - note: string; - /** Stake currency used */ - stake: string; - /** Fiat symbol used */ - symbol: string; - /** Total Balance in stake currency */ - total: number; - /** Balance in FIAT currency */ - value: number; -} - /** Values for BotState.state */ export enum BotStates { RUNNING = 'running',