/ common / features / config / nodes / static / types.ts
types.ts
 1  import { StaticNodeConfig, StaticNodeConfigs } from 'types/node';
 2  
 3  export type StaticNodesState = StaticNodeConfigs;
 4  
 5  export enum CONFIG_NODES_STATIC {
 6    WEB3_SET = 'CONFIG_NODES_STATIC_WEB3_SET',
 7    WEB3_UNSET = 'CONFIG_NODES_STATIC_WEB3_UNSET'
 8  }
 9  
10  export interface Web3setNodeAction {
11    type: CONFIG_NODES_STATIC.WEB3_SET;
12    payload: { id: 'web3'; config: StaticNodeConfig };
13  }
14  
15  export interface Web3UnsetNodeAction {
16    type: CONFIG_NODES_STATIC.WEB3_UNSET;
17  }
18  
19  export type StaticNodeAction = Web3setNodeAction | Web3UnsetNodeAction;