import { AnyAction } from "redux" ; import { BigNumber } from "@joincivil/typescript-types" ; export enum userActions { ADD_USER = "ADD_USER" , UPDATE_VOTING_BALANCE = "UPDATE_VOTING_BALANCE" , UPDATE_TOKEN_BALANCE = "UPDATE_TOKEN_BALANCE" } export const addUser = ( account , balance , votingBalance ) : AnyAction => { return { type : userActions . ADD_USER , data : { account , balance , votingBalance } , } ; } ; export const updateUserTokenBalance = ( account , balance ) : AnyAction => { return { type : userActions . UPDATE_TOKEN_BALANCE , data : { account , balance } , } ; } ; export const updateUserVotingBalance = ( account , votingBalance ) : AnyAction => { return { type : userActions . UPDATE_VOTING_BALANCE , data : { account , votingBalance } , } ; } ;