import { TickProcessed } from './../../data/pools/tickData' ; import { createAction } from '@reduxjs/toolkit' ; import { PoolData , PoolChartEntry } from './reducer' ; import { Transaction } from 'types' ; import { SupportedNetwork } from 'constants/networks' ; export const updatePoolData = createAction < { pools : PoolData [ ] ; networkId : SupportedNetwork ; } > ( 'pools/updatePoolData' ) ; export const addPoolKeys = createAction < { poolAddresses : string [ ] ; networkId : SupportedNetwork ; } > ( 'pool/addPoolKeys' ) ; export const updatePoolChartData = createAction < { poolAddress : string ; chartData : PoolChartEntry [ ] ; networkId : SupportedNetwork ; } > ( 'pool/updatePoolChartData' ) ; export const updatePoolTransactions = createAction < { poolAddress : string ; transactions : Transaction [ ] ; networkId : SupportedNetwork ; } > ( 'pool/updatePoolTransactions' ) ; export const updateTickData = createAction < { poolAddress : string ; tickData : { ticksProcessed : TickProcessed [ ] ; feeTier : string ; tickSpacing : number ; activeTickIdx : number ; } | undefined ; networkId : SupportedNetwork ; } > ( 'pool/updateTickData' ) ;