mirror of
https://github.com/status-im/MyCrypto.git
synced 2025-01-11 19:44:21 +00:00
31912c0f83
* Setup api / reducers / actions for gas. * Implement gas price saga, fetch from component, and loading states. Blocked on CORS. * Implement caching mechanism. * Add tests for gas saga and reducer. * More testing. * Indicate that gas price is recommended when fetched from API. * Hide track while loading. * Fix tscheck. * Check gas estimate before assuming its ok. * Check for correct logical order of gas prices. * Tscheck fixes.
20 lines
526 B
TypeScript
20 lines
526 B
TypeScript
import * as interfaces from './actionTypes';
|
|
import { TypeKeys } from './constants';
|
|
|
|
export type TFetchGasEstimates = typeof fetchGasEstimates;
|
|
export function fetchGasEstimates(): interfaces.FetchGasEstimatesAction {
|
|
return {
|
|
type: TypeKeys.GAS_FETCH_ESTIMATES
|
|
};
|
|
}
|
|
|
|
export type TSetGasEstimates = typeof setGasEstimates;
|
|
export function setGasEstimates(
|
|
payload: interfaces.SetGasEstimatesAction['payload']
|
|
): interfaces.SetGasEstimatesAction {
|
|
return {
|
|
type: TypeKeys.GAS_SET_ESTIMATES,
|
|
payload
|
|
};
|
|
}
|