import { State } from '../../state' ; import Web3 = require ( 'web3' ) ; export const getVtxStatus = ( state ) : string => state . vtxconfig . status ; export const getVtxLastError = ( state ) : Error => state . vtxconfig . last_error ; export const getWeb3 = ( state ) : Web3 => state . vtxconfig . web3 ;