smartswap-redux-multicall
v1.0.1
Published
A React + Redux lib for fetching and caching chain state via the MultiCall contract
Downloads
7
Readme
MultiCall
A React + Redux library for fetching, batching, and caching chain state via the MultiCall contract.
Setup
yarn add smartswap-redux-multicall
or npm install smartswap-redux-multicall
// Somewhere in your app
export const multicall = createMulticall({ reducerPath: 'multicall' })
// In your store's root reducer
export const rootReducer = combineReducers({
// Other reducers
[multicall.reducerPath]: multicall.reducer
})