actions.ts
1 import { Web3setNodeAction, CONFIG_NODES_STATIC, Web3UnsetNodeAction } from './types'; 2 3 export function web3SetNode(payload: Web3setNodeAction['payload']): Web3setNodeAction { 4 return { 5 type: CONFIG_NODES_STATIC.WEB3_SET, 6 payload 7 }; 8 } 9 10 export type TWeb3UnsetNode = typeof web3UnsetNode; 11 export function web3UnsetNode(): Web3UnsetNodeAction { 12 return { 13 type: CONFIG_NODES_STATIC.WEB3_UNSET 14 }; 15 }