20 lines
527 B
TypeScript
20 lines
527 B
TypeScript
|
import * as interfaces from './actionTypes';
|
||
|
import { TypeKeys } from './constants';
|
||
|
|
||
|
export type TFiatRequestedRates = typeof fiatRequestedRates;
|
||
|
export function fiatRequestedRates(): interfaces.FiatRequestedRatesAction {
|
||
|
return {
|
||
|
type: TypeKeys.RATES_FIAT_REQUESTED
|
||
|
};
|
||
|
}
|
||
|
|
||
|
export type TFiatSucceededRates = typeof fiatSucceededRates;
|
||
|
export function fiatSucceededRates(payload: {
|
||
|
[key: string]: number;
|
||
|
}): interfaces.FiatSucceededRatesAction {
|
||
|
return {
|
||
|
type: TypeKeys.RATES_FIAT_SUCCEEDED,
|
||
|
payload
|
||
|
};
|
||
|
}
|