import { AppDispatch } from '../../../contexts/reducer' ; import { PageActions } from '../../../contexts/actions' ; export const dispatchTransactionCount = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticTransactionCount , payload : { statisticTransactionCounts : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticTransactionCountFetchEnd , payload : { statisticTransactionCountsFetchEnd : true , } , } ) ; } ; export const dispatchAddressCount = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticAddressCount , payload : { statisticAddressCounts : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticAddressCountFetchEnd , payload : { statisticAddressCountsFetchEnd : true , } , } ) ; } ; export const dispatchCellCount = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticCellCount , payload : { statisticCellCounts : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticCellCountFetchEnd , payload : { statisticCellCountsFetchEnd : true , } , } ) ; } ; export const dispatchTransactionFee = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticTxFeeHistory , payload : { statisticTxFeeHistories : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticTxFeeHistoryFetchEnd , payload : { statisticTxFeeHistoriesFetchEnd : true , } , } ) ; } ; export const dispatchBalanceRank = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticAddressBalanceRank , payload : { statisticAddressBalanceRanks : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticAddressBalanceRankFetchEnd , payload : { statisticAddressBalanceRanksFetchEnd : true , } , } ) ; } ; export const dispatchBalanceDistribution = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticBalanceDistribution , payload : { statisticBalanceDistributions : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticBalanceDistributionFetchEnd , payload : { statisticBalanceDistributionsFetchEnd : true , } , } ) ; } ; export const dispatchAverageBlockTime = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticAverageBlockTime , payload : { statisticAverageBlockTimes : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticAverageBlockTimeFetchEnd , payload : { statisticAverageBlockTimesFetchEnd : true , } , } ) ; } ; export const dispatchBlockTimeDistribution = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticBlockTimeDistribution , payload : { statisticBlockTimeDistributions : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticBlockTimeDistributionFetchEnd , payload : { statisticBlockTimeDistributionsFetchEnd : true , } , } ) ; } ; export const dispatchEpochTimeDistribution = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticEpochTimeDistribution , payload : { statisticEpochTimeDistributions : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticEpochTimeDistributionFetchEnd , payload : { statisticEpochTimeDistributionsFetchEnd : true , } , } ) ; } ; export const dispatchDifficulty = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticDifficulty , payload : { statisticDifficulties : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticDifficultyFetchEnd , payload : { statisticDifficultiesFetchEnd : true , } , } ) ; } ; export const dispatchHashRate = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticHashRate , payload : { statisticHashRates : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticHashRateFetchEnd , payload : { statisticHashRatesFetchEnd : true , } , } ) ; } ; export const dispatchUncleRate = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticUncleRate , payload : { statisticUncleRates : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticUncleRateFetchEnd , payload : { statisticUncleRatesFetchEnd : true , } , } ) ; } ; export const dispatchDifficultyHashRate = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticDifficultyHashRate , payload : { statisticDifficultyHashRates : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticDifficultyHashRateFetchEnd , payload : { statisticDifficultyHashRatesFetchEnd : true , } , } ) ; } ; export const dispatchDifficultyUncleRateEpoch = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticDifficultyUncleRateEpoch , payload : { statisticDifficultyUncleRateEpochs : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticDifficultyUncleRateFetchEnd , payload : { statisticDifficultyUncleRatesFetchEnd : true , } , } ) ; } ; export const dispatchMinerAddressDistribution = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticMinerAddressDistribution , payload : { statisticMinerAddresses : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticMinerAddressDistributionFetchEnd , payload : { statisticMinerAddressesFetchEnd : true , } , } ) ; } ; export const dispatchTotalSupply = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticTotalSupply , payload : { statisticTotalSupplies : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticTotalSupplyFetchEnd , payload : { statisticTotalSuppliesFetchEnd : true , } , } ) ; } ; export const dispatchAPC = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticAnnualPercentageCompensation , payload : { statisticAnnualPercentageCompensations : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticAnnualPercentageCompensationFetchEnd , payload : { statisticAnnualPercentageCompensationsFetchEnd : true , } , } ) ; } ; export const dispatchSecondaryIssuance = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticSecondaryIssuance , payload : { statisticSecondaryIssuance : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticSecondaryIssuanceFetchEnd , payload : { statisticSecondaryIssuanceFetchEnd : true , } , } ) ; } ; export const dispatchInflationRate = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticInflationRate , payload : { statisticInflationRates : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticInflationRateFetchEnd , payload : { statisticInflationRatesFetchEnd : true , } , } ) ; } ; export const dispatchLiquidity = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticLiquidity , payload : { statisticLiquidity : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticLiquidityFetchEnd , payload : { statisticLiquidityFetchEnd : true , } , } ) ; } ; export const dispatchTotalDeposit = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticTotalDaoDeposit , payload : { statisticTotalDaoDeposits : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticTotalDaoDepositFetchEnd , payload : { statisticTotalDaoDepositsFetchEnd : true , } , } ) ; } ; export const dispatchDailyDeposit = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticNewDaoDeposit , payload : { statisticNewDaoDeposits : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticNewDaoDepositFetchEnd , payload : { statisticNewDaoDepositsFetchEnd : true , } , } ) ; } ; export const dispatchDepositCirculationRatio = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticCirculationRatio , payload : { statisticCirculationRatios : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticCirculationRatioFetchEnd , payload : { statisticCirculationRatiosFetchEnd : true , } , } ) ; } ; export const dispatchNodeDistribution = ( dispatch , data ) => { dispatch ( { type : PageActions . UpdateStatisticNodeDistribution , payload : { statisticNodeDistributions : data , } , } ) ; dispatch ( { type : PageActions . UpdateStatisticNodeDistributionFetchEnd , payload : { statisticNodeDistributionsFetchEnd : true , } , } ) ; } ;