wagmi-extended 1.0.0 → 1.0.1
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/README.md +6 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
# wagmi-extended
|
|
2
2
|
|
|
3
|
-
`wagmi-extended` is a library that provides extended hooks and helper functions on top of [Wagmi](https://wagmi.sh/), [Viem](https://viem.sh/), and [TanStack Query](https://tanstack.com/query/v5) for Ethereum and blockchain development with React.
|
|
3
|
+
`wagmi-extended` is a library that provides extended hooks and helper functions on top of [Wagmi](https://wagmi.sh/), [Viem](https://viem.sh/), and [TanStack Query](https://tanstack.com/query/v5) for Ethereum and blockchain development with React.
|
|
4
|
+
<br />
|
|
5
|
+
<br />
|
|
6
|
+
It simplifies common tasks such as fetching token metadata, approving ERC20 token transfers, sending transactions, writing contracts, waiting for receipt and more—with configurable behavior via global defaults.
|
|
4
7
|
|
|
5
8
|
## Table of Contents
|
|
6
9
|
|
|
@@ -38,7 +41,7 @@ Your project must include the following peer dependencies:
|
|
|
38
41
|
- **Viem**: ^2.0.0
|
|
39
42
|
- **@tanstack/react-query**: ^5.0.0
|
|
40
43
|
|
|
41
|
-
Note: You must wrap your application with necessary providers (e.g. QueryClientProvider from TanStack Query).
|
|
44
|
+
Note: You must wrap your application with necessary providers (e.g. QueryClientProvider from TanStack Query and WagmiProvider).
|
|
42
45
|
|
|
43
46
|
### API
|
|
44
47
|
|
|
@@ -49,6 +52,7 @@ import {
|
|
|
49
52
|
useTokenX,
|
|
50
53
|
useERC20ApproveX,
|
|
51
54
|
useSendTransactionX,
|
|
55
|
+
useWriteTransactionX,
|
|
52
56
|
setDefaults,
|
|
53
57
|
getDefaults,
|
|
54
58
|
} from "wagmi-extended";
|