Catalog npm
Back to packageRELEASE DETAILS

0.2.0

npm

@0xinti/redux-multicall

A React + Redux lib for fetching and caching chain state via the MultiCall contract

ethereumuniswap
Published18 Feb 2024
Direct dependencies24
Transitive dependenciesNot calculated

README

Current package documentation

MultiCall

A React + Redux library for fetching, batching, and caching chain state via the MultiCall contract.

Setup

yarn add @uniswap/redux-multicall or npm install @uniswap/redux-multicall

Usage

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

Alpha software

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!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 30

Native requirements
24 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@ethersproject/abi
Environment
{
  "local_name": "@ethersproject/abi",
  "alias": false,
  "peer_metadata": null
}
5development
@ethersproject/bignumber
Environment
{
  "local_name": "@ethersproject/bignumber",
  "alias": false,
  "peer_metadata": null
}
5development
@ethersproject/contracts
Environment
{
  "local_name": "@ethersproject/contracts",
  "alias": false,
  "peer_metadata": null
}
5development
@ethersproject/providers
Environment
{
  "local_name": "@ethersproject/providers",
  "alias": false,
  "peer_metadata": null
}
5development
@reduxjs/toolkit
Environment
{
  "local_name": "@reduxjs/toolkit",
  "alias": false,
  "peer_metadata": null
}
^1.6.2development
@semantic-release/changelog
Environment
{
  "local_name": "@semantic-release/changelog",
  "alias": false,
  "peer_metadata": null
}
^6.0.1development
@semantic-release/git
Environment
{
  "local_name": "@semantic-release/git",
  "alias": false,
  "peer_metadata": null
}
^10.0.1development
@testing-library/jest-dom
Environment
{
  "local_name": "@testing-library/jest-dom",
  "alias": false,
  "peer_metadata": null
}
^5.15.1development
@testing-library/react
Environment
{
  "local_name": "@testing-library/react",
  "alias": false,
  "peer_metadata": null
}
^12.1.2development
@typechain/ethers-v5
Environment
{
  "local_name": "@typechain/ethers-v5",
  "alias": false,
  "peer_metadata": null
}
^7.2.0development
@types/jest
Environment
{
  "local_name": "@types/jest",
  "alias": false,
  "peer_metadata": null
}
^25.2.1development
@types/react
Environment
{
  "local_name": "@types/react",
  "alias": false,
  "peer_metadata": null
}
^17.0.28development
@types/react-dom
Environment
{
  "local_name": "@types/react-dom",
  "alias": false,
  "peer_metadata": null
}
^17.0.14development
@uniswap/v3-periphery
Environment
{
  "local_name": "@uniswap/v3-periphery",
  "alias": false,
  "peer_metadata": null
}
^1.3.0development
dotenv
Environment
{
  "local_name": "dotenv",
  "alias": false,
  "peer_metadata": null
}
^16.0.3development
eslint-plugin-prettier
Environment
{
  "local_name": "eslint-plugin-prettier",
  "alias": false,
  "peer_metadata": null
}
3.4.1development
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
^5.4.7development
prettier
Environment
{
  "local_name": "prettier",
  "alias": false,
  "peer_metadata": null
}
^2.4.1development
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
^17.0.2development
react-dom
Environment
{
  "local_name": "react-dom",
  "alias": false,
  "peer_metadata": null
}
^17.0.2development
react-redux
Environment
{
  "local_name": "react-redux",
  "alias": false,
  "peer_metadata": null
}
^7.2.5development
semantic-release
Environment
{
  "local_name": "semantic-release",
  "alias": false,
  "peer_metadata": null
}
^19.0.5development
tsdx
Environment
{
  "local_name": "tsdx",
  "alias": false,
  "peer_metadata": null
}
^0.14.1development
typechain
Environment
{
  "local_name": "typechain",
  "alias": false,
  "peer_metadata": null
}
^5.2.0development
@ethersproject/abi
Environment
{
  "local_name": "@ethersproject/abi",
  "alias": false,
  "peer_metadata": null
}
5peer
@ethersproject/bignumber
Environment
{
  "local_name": "@ethersproject/bignumber",
  "alias": false,
  "peer_metadata": null
}
5peer
@ethersproject/contracts
Environment
{
  "local_name": "@ethersproject/contracts",
  "alias": false,
  "peer_metadata": null
}
5peer
@reduxjs/toolkit
Environment
{
  "local_name": "@reduxjs/toolkit",
  "alias": false,
  "peer_metadata": null
}
1peer
react
Environment
{
  "local_name": "react",
  "alias": false,
  "peer_metadata": null
}
>=17peer
react-redux
Environment
{
  "local_name": "react-redux",
  "alias": false,
  "peer_metadata": null
}
>=7peer

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-8mDhkzoWochVe1EV3yDfrsWaW53yjiQ2qqhJgOqx1Fndz4CH1T7t+jpkDwjeIr2Ugwuc/YdSDBaQKbOr8BEPWw==",
  "shasum": "5fb85438a2fa044155a0d35be4f75ad99eacb706",
  "tarball": "https://registry.npmjs.org/@0xinti/redux-multicall/-/redux-multicall-0.2.0.tgz",
  "fileCount": 34,
  "unpackedSize": 553486,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIAQ8ckVpb50CUij3x+aMyt/dLrUzE9AXMnEHzs616IwMAiBVLWFkBMQu7B27n17Eh+DnlasUrAIVvNqXm0ad1XBP2Q=="
    }
  ]
}

Repository

PENDING
uniswap/redux-multicall

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 08:57 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:9efc255cdcd708d89415978c0a0a46daaa6f1cd4a6a973a58bb9e12f2cced94e

Other collected versions

0.3.018 Feb0.1.118 FebView all collected versions →