
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@uniswap/redux-multicall
Advanced tools
A React + Redux lib for fetching and caching chain state via the MultiCall contract
A React + Redux library for fetching, batching, and caching chain state via the MultiCall contract.
yarn add @uniswap/redux-multicall or npm install @uniswap/redux-multicall
The usage of this library is similar to RTK Query.
// 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
})
To use the updater, you'll need an instance of the Uniswap Multicall2 contract:
import { abi as MulticallABI } from '@uniswap/v3-periphery/artifacts/contracts/lens/UniswapInterfaceMulticall.sol/UniswapInterfaceMulticall.json'
import { Contract } from '@ethersproject/contracts'
import { UniswapInterfaceMulticall } from './abi/types'
const multicall2Contract = new Contract(address, MulticallABI, provider) as UniswapInterfaceMulticall
For a more detailed example, see basic example app in ./integration-tests
The latest version of the SDK is used in production in the Uniswap Interface,
but it is considered Alpha software and may contain bugs or change significantly between patch versions.
If you have questions about how to use the SDK, please reach out in the #dev-chat channel of the Discord.
Pull requests welcome!
FAQs
A React + Redux lib for fetching and caching chain state via the MultiCall contract
The npm package @uniswap/redux-multicall receives a total of 9,123 weekly downloads. As such, @uniswap/redux-multicall popularity was classified as popular.
We found that @uniswap/redux-multicall demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.