{"_id":"@airdao/redux-multicall","_rev":"1-ed7bcaddf9d94eb9deb1b0263cb61705","name":"@airdao/redux-multicall","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@airdao/redux-multicall","version":"1.0.0","keywords":["astra","airdao"],"license":"MIT","_id":"@airdao/redux-multicall@1.0.0","maintainers":[{"name":"tech_airdao","email":"support@airdao.io"},{"name":"november-pain","email":"m.chikita@inc4.net"}],"homepage":"https://github.com/ambrosus/redux-multicall#readme","bugs":{"url":"https://github.com/ambrosus/redux-multicall/issues"},"dist":{"shasum":"21c4d134bbe40d3e7cc9564038e125ddf7c8d745","tarball":"https://registry.npmjs.org/@airdao/redux-multicall/-/redux-multicall-1.0.0.tgz","fileCount":3,"integrity":"sha512-8Tmn0GY5lcakK8dx3Z5/cCs0oDdYOveUxX1AdVetNbLmwqkv0DDQIrNHZYa3f3d0e+9z+z2mAKi1VZdl80M4YQ==","signatures":[{"sig":"MEUCIQCirYPkmMkoRccEHJmjqSFmAyrLvp2nsm6WaNi1aFDp7AIgHo+0tLz+ak8W+pIqRuTIOITQTgwNygbYiEocyQlHHk4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4796},"main":"dist/index.js","module":"dist/redux-multicall.esm.js","engines":{"node":">=18"},"gitHead":"0a27deff448ed133b42a7af1212820c07c0ed15c","scripts":{"lint":"dts lint .","test":"dts test src","build":"dts build","watch":"dts watch","release":"semantic-release","test:e2e":"dts test integration-tests","prepublishOnly":"yarn contracts:compile && yarn build","contracts:compile":"typechain --target ethers-v5 --out-dir src/abi/types './node_modules/@airdao/astra-cl-periphery/artifacts/contracts/**/*Multicall*(!.dbg.json).@(json)'"},"typings":"dist/index.d.ts","_npmUser":{"name":"tech_airdao","email":"support@airdao.io"},"prettier":{"semi":false,"printWidth":120,"singleQuote":true},"repository":{"url":"git+https://github.com/ambrosus/redux-multicall.git","type":"git"},"_npmVersion":"8.19.4","description":"A React + Redux lib for fetching and caching chain state via the MultiCall contract","directories":{},"_nodeVersion":"22.12.0","eslintConfig":{"rules":{"no-useless-computed-key":"off"}},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.2.0","dotenv":"^16.0.3","ethers":"^5.4.7","dts-cli":"^2.0.5","react-dom":"^18.2.0","typechain":"^8.3.2","typescript":"4.7.2","@types/jest":"^29.5.14","@types/node":"^22.10.5","react-redux":"^9.2.0","@types/react":"^18.2.0","@reduxjs/toolkit":"^2.5.0","@types/react-dom":"^18.2.0","semantic-release":"^19.0.5","@ethersproject/abi":"5","@testing-library/dom":"^10.4.0","@typechain/ethers-v5":"^10.2.1","@semantic-release/git":"^10.0.1","@testing-library/react":"^16.1.0","eslint-plugin-prettier":"3.4.1","@ethersproject/bignumber":"5","@ethersproject/contracts":"5","@ethersproject/providers":"5","@testing-library/jest-dom":"^6.6.3","@airdao/astra-cl-periphery":"^1.0.0","@semantic-release/changelog":"^6.0.1","@testing-library/user-event":"^14.5.2"},"peerDependencies":{"react":">=18","react-redux":">=9","@reduxjs/toolkit":"2","@ethersproject/abi":"5","@ethersproject/bignumber":"5","@ethersproject/contracts":"5"},"_npmOperationalInternal":{"tmp":"tmp/redux-multicall_1.0.0_1736187097990_0.5480747518255356","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@airdao/redux-multicall","version":"1.0.1","description":"A React + Redux lib for fetching and caching chain state via the MultiCall contract","main":"dist/index.js","typings":"dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/ambrosus/redux-multicall.git"},"keywords":["astra","airdao"],"module":"dist/redux-multicall.esm.js","license":"MIT","publishConfig":{"access":"public"},"scripts":{"contracts:compile":"typechain --target ethers-v5 --out-dir src/abi/types './node_modules/@airdao/astra-cl-periphery/artifacts/contracts/**/*Multicall*(!.dbg.json).@(json)'","lint":"dts lint .","test":"dts test src","test:e2e":"dts test integration-tests","build":"dts build","watch":"dts watch","prepublishOnly":"yarn contracts:compile && yarn build","release":"semantic-release"},"devDependencies":{"@airdao/astra-cl-periphery":"^1.0.0","@ethersproject/abi":"5","@ethersproject/bignumber":"5","@ethersproject/contracts":"5","@ethersproject/providers":"5","@reduxjs/toolkit":"^2.5.0","@semantic-release/changelog":"^6.0.1","@semantic-release/git":"^10.0.1","@testing-library/dom":"^10.4.0","@testing-library/jest-dom":"^6.6.3","@testing-library/react":"^16.1.0","@testing-library/user-event":"^14.5.2","@typechain/ethers-v5":"^10.2.1","@types/jest":"^29.5.14","@types/node":"^22.10.5","@types/react":"^18.2.0","@types/react-dom":"^18.2.0","dotenv":"^16.0.3","dts-cli":"^2.0.5","eslint-plugin-prettier":"3.4.1","ethers":"^5.4.7","react":"^18.2.0","react-dom":"^18.2.0","react-redux":"^9.2.0","semantic-release":"^19.0.5","typechain":"^8.3.2","typescript":"4.7.2"},"peerDependencies":{"@ethersproject/abi":"5","@ethersproject/bignumber":"5","@ethersproject/contracts":"5","@reduxjs/toolkit":"2","react":">=18","react-redux":">=9"},"engines":{"node":">=18"},"prettier":{"printWidth":120,"semi":false,"singleQuote":true},"eslintConfig":{"rules":{"no-useless-computed-key":"off"}},"gitHead":"81b56d6429ae409636eb64579d79e2ffb5c404dd","bugs":{"url":"https://github.com/ambrosus/redux-multicall/issues"},"homepage":"https://github.com/ambrosus/redux-multicall#readme","_id":"@airdao/redux-multicall@1.0.1","_nodeVersion":"22.12.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-/nh/QxdOdTfiuWr11z+NKL7Wii/9sXXQEk2Smth7ukQIhKkm/BFq/9PrH4dOB+jXzTpoz9hgTYmjToLcYztgBQ==","shasum":"7007dcac0575f5d9918ace7261d9580ec3765629","tarball":"https://registry.npmjs.org/@airdao/redux-multicall/-/redux-multicall-1.0.1.tgz","fileCount":51,"unpackedSize":465829,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGapoljsG0orjeZlsrT15jVmd+Gf9yRxh5mYR5/tTs/+AiEA8l/jeuxbqYCgD9R2jIArW5I3fc2KSsXFgEV+1mMqImo="}]},"_npmUser":{"name":"tech_airdao","email":"support@airdao.io"},"directories":{},"maintainers":[{"name":"tech_airdao","email":"support@airdao.io"},{"name":"november-pain","email":"m.chikita@inc4.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/redux-multicall_1.0.1_1736238833159_0.15818343261718093"},"_hasShrinkwrap":false}},"time":{"created":"2025-01-06T18:11:37.820Z","modified":"2025-01-07T08:33:53.578Z","1.0.0":"2025-01-06T18:11:38.159Z","1.0.1":"2025-01-07T08:33:53.369Z"},"bugs":{"url":"https://github.com/ambrosus/redux-multicall/issues"},"license":"MIT","homepage":"https://github.com/ambrosus/redux-multicall#readme","keywords":["astra","airdao"],"repository":{"type":"git","url":"git+https://github.com/ambrosus/redux-multicall.git"},"description":"A React + Redux lib for fetching and caching chain state via the MultiCall contract","maintainers":[{"name":"tech_airdao","email":"support@airdao.io"},{"name":"november-pain","email":"m.chikita@inc4.net"}],"readme":"# MultiCall\n\nA React + Redux library for fetching, batching, and caching chain state via the MultiCall contract.\n\n## Setup\n\n`yarn add @airdao/redux-multicall` or `npm install @airdao/redux-multicall`\n\n## Usage\n\nThe usage of this library is similar to [RTK Query](https://redux-toolkit.js.org/rtk-query/overview#create-an-api-slice).\n\n```js\n// Somewhere in your app\nexport const multicall = createMulticall({ reducerPath: 'multicall' })\n\n// In your store's root reducer\nexport const rootReducer = combineReducers({\n  // Other reducers\n  [multicall.reducerPath]: multicall.reducer\n})\n```\n\nTo use the updater, you'll need an instance of the Astra Multicall2 contract:\n\n```js\nimport { abi as MulticallABI } from '@airdao/astra-cl-periphery/artifacts/contracts/lens/AstraInterfaceMulticall.sol/AstraInterfaceMulticall.json'\nimport { Contract } from '@ethersproject/contracts'\nimport { AstraInterfaceMulticall } from './abi/types'\n\nconst multicall2Contract = new Contract(address, MulticallABI, provider) as AstraInterfaceMulticall\n```\n\nFor a more detailed example, see basic example app in `./integration-tests`\n\n## Alpha software\n\nThe latest version of the SDK is used in production in the Astra Interface,\nbut it is considered Alpha software and may contain bugs or change significantly between patch versions.\nIf you have questions about how to use the SDK, please reach out in the `#dev-chat` channel of the Discord.\nPull requests welcome!\n","readmeFilename":"README.md"}