import { BlocksActions , IBlocksFetch , IBlocksFetchedHeight , IBlocksInitialHeight , IBlocksNew } from './actionTypes' ; import { Block } from '../../state/blocks' ; export const BlocksInitialHeight = ( height ) : IBlocksInitialHeight => ( { type : BlocksActions . BlocksInitialHeight , height } ) ; export const BlocksFetch = ( height ) : IBlocksFetch => ( { type : BlocksActions . BlocksFetch , height } ) ; export const BlocksFetchedHeight = ( height ) : IBlocksFetchedHeight => ( { type : BlocksActions . BlocksFetchedHeight , height } ) ; export const BlocksFetched = ( number , block_infos ) : IBlocksNew => ( { type : BlocksActions . BlocksFetched , number , block_infos } ) ; export const BlocksNew = ( number , block_infos ) : IBlocksNew => ( { type : BlocksActions . BlocksNew , number , block_infos } ) ;