import {
CONFIG_META,
ChangeLanguageAction,
SetLatestBlockAction,
SetOfflineAction,
SetOnlineAction,
ToggleAutoGasLimitAction,
ChangeThemeAction
} from './types';
import { Theme } from 'config';
export function setOnline(): SetOnlineAction {
return {
type: CONFIG_META.SET_ONLINE
};
}
export function setOffline(): SetOfflineAction {
type: CONFIG_META.SET_OFFLINE
export type TToggleAutoGasLimit = typeof toggleAutoGasLimit;
export function toggleAutoGasLimit(): ToggleAutoGasLimitAction {
type: CONFIG_META.TOGGLE_AUTO_GAS_LIMIT
export type TChangeLanguage = typeof changeLanguage;
export function changeLanguage(sign: string): ChangeLanguageAction {
type: CONFIG_META.LANGUAGE_CHANGE,
payload: sign
export type TChangeTheme = typeof changeTheme;
export function changeTheme(theme: Theme): ChangeThemeAction {
type: CONFIG_META.THEME_CHANGE,
payload: theme
export type TSetLatestBlock = typeof setLatestBlock;
export function setLatestBlock(payload: string): SetLatestBlockAction {
type: CONFIG_META.SET_LATEST_BLOCK,
payload