mirror of
https://github.com/trezor/trezor-wallet
synced 2025-05-31 13:18:46 +00:00
renamed service
This commit is contained in:
parent
18f82f1453
commit
9844983e09
@ -31,7 +31,7 @@ import type { TokenAction } from 'actions/TokenActions';
|
|||||||
import type { TrezorConnectAction } from 'actions/TrezorConnectActions';
|
import type { TrezorConnectAction } from 'actions/TrezorConnectActions';
|
||||||
import type { WalletAction } from 'actions/WalletActions';
|
import type { WalletAction } from 'actions/WalletActions';
|
||||||
import type { Web3Action } from 'actions/Web3Actions';
|
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 {
|
import type {
|
||||||
Device,
|
Device,
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
/* @flow */
|
/* @flow */
|
||||||
|
|
||||||
import { RATE_UPDATE } from 'services/TickerService';
|
import { RATE_UPDATE } from 'services/CoingeckoService';
|
||||||
|
|
||||||
import type { Action } from 'flowtype';
|
import type { Action } from 'flowtype';
|
||||||
import type { FiatRateAction } from 'services/TickerService';
|
import type { FiatRateAction } from 'services/CoingeckoService';
|
||||||
|
|
||||||
export type Fiat = {
|
export type Fiat = {
|
||||||
+network: string;
|
+network: string;
|
||||||
|
@ -47,7 +47,7 @@ const loadRateAction = (): AsyncAction => async (dispatch: Dispatch, getState: G
|
|||||||
/**
|
/**
|
||||||
* Middleware
|
* Middleware
|
||||||
*/
|
*/
|
||||||
const TickerService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
const CoingeckoService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispatch) => (action: Action): Action => {
|
||||||
next(action);
|
next(action);
|
||||||
|
|
||||||
if (action.type === READY) {
|
if (action.type === READY) {
|
||||||
@ -57,4 +57,4 @@ const TickerService: Middleware = (api: MiddlewareAPI) => (next: MiddlewareDispa
|
|||||||
return action;
|
return action;
|
||||||
};
|
};
|
||||||
|
|
||||||
export default TickerService;
|
export default CoingeckoService;
|
@ -2,7 +2,7 @@ import WalletService from './WalletService';
|
|||||||
import LogService from './LogService';
|
import LogService from './LogService';
|
||||||
import RouterService from './RouterService';
|
import RouterService from './RouterService';
|
||||||
import LocalStorageService from './LocalStorageService';
|
import LocalStorageService from './LocalStorageService';
|
||||||
import TickerService from './TickerService';
|
import CoingeckoService from './CoingeckoService';
|
||||||
import TrezorConnectService from './TrezorConnectService';
|
import TrezorConnectService from './TrezorConnectService';
|
||||||
|
|
||||||
export default [
|
export default [
|
||||||
@ -11,5 +11,5 @@ export default [
|
|||||||
RouterService,
|
RouterService,
|
||||||
LocalStorageService,
|
LocalStorageService,
|
||||||
TrezorConnectService,
|
TrezorConnectService,
|
||||||
TickerService,
|
CoingeckoService,
|
||||||
];
|
];
|
Loading…
Reference in New Issue
Block a user