import { Authorization , IVtxconfigAuthorizeAndSetWeb3 , IVtxconfigReset , IVtxconfigResetComplete , IVtxconfigResetSectionComplete , IVtxconfigSetAllowedNet , IVtxconfigSetInfos , IVtxconfigSetStatus , IVtxconfigSetWeb3 , VtxconfigActions } from './actionTypes' ; import { VtxStatus } from '../../state/vtxconfig' ; import Web3 = require ( 'web3' ) ; export const VtxconfigSetAllowedNet = ( net_id , genesis_hash ) : IVtxconfigSetAllowedNet => ( { type : VtxconfigActions . VtxconfigSetAllowedNet , net_id , genesis_hash } ) ; export const VtxconfigSetWeb3 = ( web3 ) : IVtxconfigSetWeb3 => ( { type : VtxconfigActions . VtxconfigSetWeb3 , web3 , } ) ; export const VtxconfigSetStatus = ( status ) : IVtxconfigSetStatus => ( { type : VtxconfigActions . VtxconfigSetStatus , status } ) ; export const VtxconfigReset = ( ) : IVtxconfigReset => ( { type : VtxconfigActions . VtxconfigReset } ) ; export const VtxconfigResetSectionComplete = ( section ) : IVtxconfigResetSectionComplete => ( { type : VtxconfigActions . VtxconfigResetSectionComplete , section } ) ; export const VtxconfigResetComplete = ( ) : IVtxconfigResetComplete => ( { type : VtxconfigActions . VtxconfigResetComplete } ) ; export const VtxconfigSetInfos = ( coinbase , net ) : IVtxconfigSetInfos => ( { type : VtxconfigActions . VtxconfigSetInfos , coinbase , net } ) ; export const VtxconfigAuthorizeAndSetWeb3 = ( authorization , cb ) : IVtxconfigAuthorizeAndSetWeb3 => ( { type : VtxconfigActions . VtxconfigAuthorizeAndSetWeb3 , authorization , cb } ) ;