import { Token } from 'types/network'; import * as types from './types'; export type TAddCustomToken = typeof addCustomToken; export function addCustomToken(payload: Token): types.AddCustomTokenAction { return { type: types.CustomTokensActions.ADD, payload }; } export type TRemoveCustomToken = typeof removeCustomToken; export function removeCustomToken(payload: string): types.RemoveCustomTokenAction { return { type: types.CustomTokensActions.REMOVE, payload }; }