wagmi 0.2.21 → 0.2.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "wagmi",
|
|
3
3
|
"description": "React Hooks library for Ethereum",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.2.
|
|
5
|
+
"version": "0.2.22",
|
|
6
6
|
"ethereum": "awkweb.eth",
|
|
7
7
|
"repository": "tmm/wagmi",
|
|
8
8
|
"homepage": "https://wagmi.sh",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@ethersproject/providers": "^5.5.1",
|
|
49
49
|
"@walletconnect/ethereum-provider": "1.7.5",
|
|
50
|
-
"wagmi-core": "0.1.
|
|
50
|
+
"wagmi-core": "0.1.16",
|
|
51
51
|
"walletlink": "^2.5.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"@types/react": "^17.0.0",
|
|
56
56
|
"ethers": "^5.5.1",
|
|
57
57
|
"react": "^17.0.0",
|
|
58
|
-
"wagmi-testing": "0.1.
|
|
58
|
+
"wagmi-testing": "0.1.16",
|
|
59
59
|
"walletlink": "^2.5.0"
|
|
60
60
|
},
|
|
61
61
|
"readme": "# wagmi [](https://www.npmjs.com/package/wagmi) [](https://www.npmjs.com/package/wagmi) [](https://github.com/sponsors/tmm)\n\nReact Hooks library for Ethereum, built on [ethers.js](https://github.com/ethers-io/ethers.js).\n\n## Features\n\n- 🚀 20+ hooks for working with wallets, ENS, contracts, transactions, signing, etc.\n- 💼 Built-in wallet connectors for MetaMask, WalletConnect, and Coinbase Wallet\n- 🌀 Auto-refresh data on wallet and network changes\n- 🦄 TypeScript ready\n- 💨 Zero-dependencies (besides ethers.js peer dependency)\n- 🌳 Test suite and documentation\n- 📖 MIT License\n\n## Documentation\n\nVisit https://wagmi.sh to view the full documentation.\n\n## Usage\n\n1. Install the dependencies.\n\n```bash\nnpm add wagmi ethers\n```\n\n2. Wrap your app with the `Provider` component.\n\n```tsx\nimport { Provider } from 'wagmi'\n\nconst App = () => (\n <Provider>\n <YourRoutes />\n </Provider>\n)\n```\n\n3. Use hooks.\n\n```tsx\nimport { useAccount } from 'wagmi'\n\nconst Page = () => {\n const [{ data, error, loading }, disconnect] = useAccount({\n fetchEns: true,\n })\n\n return ...\n}\n```\n\nEvery component inside the `Provider` is set up with the default `InjectedConnector` for connecting wallets and ethers.js [Default Provider](https://docs.ethers.io/v5/api/providers/#providers-getDefaultProvider) for fetching data.\n\nWant to learn more? Check out the [guides](https://wagmi-xyz.vercel.app/guides/connect-wallet) or browse the [API docs](https://wagmi-xyz.vercel.app/docs/provider).\n\n## Community\n\n- Join the [discussions on GitHub](https://github.com/tmm/wagmi/discussions)\n- Follow [@awkweb](https://twitter.com/awkweb) on Twitter for project updates\n- Sign the [guestbook](https://github.com/tmm/wagmi/discussions/2)\n- Share [your project/organization](https://github.com/tmm/wagmi/discussions/201) that uses wagmi\n\n## Support\n\n- awkweb.eth\n- [GitHub Sponsors](https://github.com/sponsors/tmm)\n- [Gitcoin Grant](https://gitcoin.co/grants/4493/wagmi-react-hooks-library-for-ethereum)\n\n## Thanks\n\n- [ricmoo.eth](https://twitter.com/ricmoo) for creating and continued work on [ethers.js](https://github.com/ethers-io/ethers.js)\n- [Mirror](https://mirror.xyz) for creating space to do good work\n\n## License\n\nMIT.\n\n<br />\n\nwagmi\n"
|