MyCrypto/common/features/gas/actions.ts

19 lines
468 B
TypeScript

import * as types from './types';
export type TFetchGasEstimates = typeof fetchGasEstimates;
export function fetchGasEstimates(): types.FetchGasEstimatesAction {
return {
type: types.GasActions.FETCH_ESTIMATES
};
}
export type TSetGasEstimates = typeof setGasEstimates;
export function setGasEstimates(
payload: types.SetGasEstimatesAction['payload']
): types.SetGasEstimatesAction {
return {
type: types.GasActions.SET_ESTIMATES,
payload
};
}