Seperate balance interface to own type file

This commit is contained in:
Matthias 2020-12-02 20:05:16 +01:00
parent db08da67d8
commit 8836bd922c
3 changed files with 22 additions and 22 deletions

21
src/types/balance.ts Normal file
View File

@ -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<BalanceRecords>;
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;
}

View File

@ -1,4 +1,5 @@
export * from './auth';
export * from './balance';
export * from './blacklist';
export * from './chart';
export * from './daily';

View File

@ -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<BalanceRecords>;
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',