From 9844983e0903d1d169dc92f63649a9ca4325eab0 Mon Sep 17 00:00:00 2001 From: Vladimir Volek Date: Wed, 7 Nov 2018 17:44:57 +0100 Subject: [PATCH] renamed service --- src/flowtype/index.js | 2 +- src/reducers/FiatRateReducer.js | 4 ++-- src/services/{TickerService.js => CoingeckoService.js} | 4 ++-- src/services/index.js | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) rename src/services/{TickerService.js => CoingeckoService.js} (89%) diff --git a/src/flowtype/index.js b/src/flowtype/index.js index e3eef1b7..72623205 100644 --- a/src/flowtype/index.js +++ b/src/flowtype/index.js @@ -31,7 +31,7 @@ import type { TokenAction } from 'actions/TokenActions'; import type { TrezorConnectAction } from 'actions/TrezorConnectActions'; import type { WalletAction } from 'actions/WalletActions'; import type { Web3Action } from 'actions/Web3Actions'; -import type { FiatRateAction } from 'services/TickerService'; // this service has no action file, all is written inside one file +import type { FiatRateAction } from 'services/CoingeckoService'; // this service has no action file, all is written inside one file import type { Device, diff --git a/src/reducers/FiatRateReducer.js b/src/reducers/FiatRateReducer.js index ccc3e793..6492fcec 100644 --- a/src/reducers/FiatRateReducer.js +++ b/src/reducers/FiatRateReducer.js @@ -1,9 +1,9 @@ /* @flow */ -import { RATE_UPDATE } from 'services/TickerService'; +import { RATE_UPDATE } from 'services/CoingeckoService'; import type { Action } from 'flowtype'; -import type { FiatRateAction } from 'services/TickerService'; +import type { FiatRateAction } from 'services/CoingeckoService'; export type Fiat = { +network: string; diff --git a/src/services/TickerService.js b/src/services/CoingeckoService.js similarity index 89% rename from src/services/TickerService.js rename to src/services/CoingeckoService.js index 951d61d2..b8fc96a4 100644 --- a/src/services/TickerService.js +++ b/src/services/CoingeckoService.js @@ -47,7 +47,7 @@ const loadRateAction = (): AsyncAction => async (dispatch: Dispatch, getState: G /** * Middleware */ -const TickerService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => { +const CoingeckoService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => { next(action); if (action.type === READY) { @@ -57,4 +57,4 @@ const TickerService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa return action; }; -export default TickerService; \ No newline at end of file +export default CoingeckoService; \ No newline at end of file diff --git a/src/services/index.js b/src/services/index.js index c7b51c8f..58a6e636 100644 --- a/src/services/index.js +++ b/src/services/index.js @@ -2,7 +2,7 @@ import WalletService from './WalletService'; import LogService from './LogService'; import RouterService from './RouterService'; import LocalStorageService from './LocalStorageService'; -import TickerService from './TickerService'; +import CoingeckoService from './CoingeckoService'; import TrezorConnectService from './TrezorConnectService'; export default [ @@ -11,5 +11,5 @@ export default [ RouterService, LocalStorageService, TrezorConnectService, - TickerService, + CoingeckoService, ]; \ No newline at end of file