{"_id":"@aintivirus-ai/sdk-react","_rev":"2-cc237ed0df641c06b01f1fb326f00ea2","name":"@aintivirus-ai/sdk-react","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@aintivirus-ai/sdk-react","version":"0.1.0","keywords":["react","web3","mixer","hooks"],"license":"MIT","_id":"@aintivirus-ai/sdk-react@0.1.0","maintainers":[{"name":"goldliondev","email":"eityeily@gmail.com"}],"dist":{"shasum":"e947f7a1910640afa0c28cbadb1294344366afc0","tarball":"https://registry.npmjs.org/@aintivirus-ai/sdk-react/-/sdk-react-0.1.0.tgz","fileCount":2,"integrity":"sha512-vJA/hFKFzuENEdDnwjqSvLxubFf7s5+HRTHWK6JVRppCT5UCQaYfoz1lXpCpyYyQSx2MP4s7Mz9d05OoYank9A==","signatures":[{"sig":"MEUCIQCmbnbmKzNTGW3G//D7tMK3otG1JViHOa90mFmX1G+8OgIgEkUGknEFqEnxPXDwjRXdHzLWZCvsg9W/weIGp8hNp40=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2531},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"dev":"tsup --watch","build":"tsup"},"_npmUser":{"name":"goldliondev","email":"eityeily@gmail.com"},"_npmVersion":"11.6.2","description":"React hooks and provider for AintiVirus Mixer SDK","directories":{},"_nodeVersion":"25.1.0","dependencies":{"@coral-xyz/anchor":"^0.32.1","@aintivirus-ai/sdk-core":"^0.1.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","react":"19.2.3","ethers":"^6.16.0","react-dom":"19.2.3","typescript":"^5.3.3","@types/react":"^19","@solana/web3.js":"^1.98.0","@types/react-dom":"^19"},"peerDependencies":{"viem":"^2.0.0","react":">=18.0.0","wagmi":"^2.0.0 || ^3.0.0","ethers":"^6.0.0","@tanstack/react-query":"^5.0.0","@aintivirus-ai/sdk-core":"^0.1.0"},"peerDependenciesMeta":{"viem":{"optional":false},"wagmi":{"optional":false},"@tanstack/react-query":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/sdk-react_0.1.0_1775220830123_0.7489708045481678","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@aintivirus-ai/sdk-react","version":"0.1.1","description":"React hooks and provider for AintiVirus Mixer SDK","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"keywords":["react","web3","mixer","hooks"],"license":"MIT","publishConfig":{"access":"public"},"peerDependencies":{"@aintivirus-ai/sdk-core":"^0.1.2","@tanstack/react-query":"^5.0.0","react":">=18.0.0","viem":"^2.0.0","wagmi":"^2.0.0 || ^3.0.0","ethers":"^6.0.0"},"peerDependenciesMeta":{"wagmi":{"optional":false},"viem":{"optional":false},"@tanstack/react-query":{"optional":true}},"dependencies":{"@aintivirus-ai/sdk-core":"^0.1.2","@coral-xyz/anchor":"^0.32.1"},"devDependencies":{"@solana/web3.js":"^1.98.0","ethers":"^6.16.0","@types/react":"^19","@types/react-dom":"^19","react":"19.2.3","react-dom":"19.2.3","tsup":"^8.0.0","typescript":"^5.3.3"},"scripts":{"build":"tsup","dev":"tsup --watch"},"_id":"@aintivirus-ai/sdk-react@0.1.1","_integrity":"sha512-vmTdKLusyetIzm3wlEskAX4V07StyJdZkytXo4cWGIjZTr3fsJUtZi5mQNubvitc3s7QXpFXGN9XuOuznj9KOQ==","_resolved":"C:\\Users\\A\\AppData\\Local\\Temp\\af6ab8d44b636b26c321d429e107de88\\aintivirus-ai-sdk-react-0.1.1.tgz","_from":"file:aintivirus-ai-sdk-react-0.1.1.tgz","_nodeVersion":"25.1.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-vmTdKLusyetIzm3wlEskAX4V07StyJdZkytXo4cWGIjZTr3fsJUtZi5mQNubvitc3s7QXpFXGN9XuOuznj9KOQ==","shasum":"c18447b4b6dff99cc493a6ee0e66a56ddc2b7a45","tarball":"https://registry.npmjs.org/@aintivirus-ai/sdk-react/-/sdk-react-0.1.1.tgz","fileCount":8,"unpackedSize":131015,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQCtcuH5pIunKrzHWRBoT2MyMwVPFWexJWZeF3ht2rILCgIgeNYrhXC0mW9UFvLDpd25EHHf4oP14+Gjrsq9HIFSlvc="}]},"_npmUser":{"name":"goldliondev","email":"eityeily@gmail.com"},"directories":{},"maintainers":[{"name":"goldliondev","email":"eityeily@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sdk-react_0.1.1_1775811699285_0.4747975712066663"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-03T12:53:50.059Z","modified":"2026-04-10T09:01:39.572Z","0.1.0":"2026-04-03T12:53:50.286Z","0.1.1":"2026-04-10T09:01:39.429Z"},"license":"MIT","keywords":["react","web3","mixer","hooks"],"description":"React hooks and provider for AintiVirus Mixer SDK","maintainers":[{"name":"goldliondev","email":"eityeily@gmail.com"}],"readme":"# @aintivirus-ai/sdk-react\r\n\r\nReact hooks and context for AintiVirus Mixer SDK. Depends on **@aintivirus-ai/sdk-core**.\r\n\r\n## Usage\r\n\r\nWrap with **WagmiProvider** + **QueryClientProvider**, then **MixerProvider**. Pass the **same** `config` object to both `WagmiProvider` and `MixerProvider`’s `wagmiConfig` prop so hooks never hit `WagmiProviderNotFoundError` (wagmi’s `useConfig({ config })` works without relying on context alone):\r\n\r\n```tsx\r\nimport { MixerProvider, useMixerConfig, useDeposit } from \"@aintivirus-ai/sdk-react\";\r\nimport { wagmiConfig } from \"./wagmi\"; // your createConfig result\r\n\r\n<MixerProvider config={…} wagmiConfig={wagmiConfig} selectedChain={…}>\r\n  …\r\n</MixerProvider>\r\n```\r\n\r\n`useDeposit` reads `chainSDK` from context; withdraw/admin hooks reuse the same EVM instance and use wagmi only for connection / connector checks (`canTransactEvm`).\r\n\r\n## Exports\r\n\r\n- **Provider:** `MixerProvider`\r\n- **Hooks:** `useMixerConfig`, `useMixer`, `useDeploy`, `useDeposit`, `useWithdraw`, `usePayment`\r\n- **Re-exports from core:** `AintiVirusEVMSubgraph`, `MixerPool`, `DepositEntity`, `TokenUpdatedEntity`, etc.\r\n\r\n## Build\r\n\r\n```bash\r\npnpm build\r\n```\r\n\r\nEnsure **@aintivirus-ai/sdk-core** is built first (or use root `pnpm build:packages`).\r\n","readmeFilename":"README.md"}