From 078d83c9ebe4c625944c7044c1e75563e8d03d67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E6=8C=87=E5=AF=BC?= Date: Mon, 9 Sep 2024 11:17:00 +0800 Subject: [PATCH] docs: add version note for wagmi config (#1140) * docs: add version note for wagmi config * Update packages/web3/src/ethereum/index.md Co-authored-by: thinkasany <480968828@qq.com> --------- Co-authored-by: tingzhao.ytz Co-authored-by: thinkasany <480968828@qq.com> --- packages/web3/src/ethereum/index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/web3/src/ethereum/index.md b/packages/web3/src/ethereum/index.md index 5879d61cf..2a190df79 100644 --- a/packages/web3/src/ethereum/index.md +++ b/packages/web3/src/ethereum/index.md @@ -84,18 +84,18 @@ When the `showQrModal` configuration is not `false`, the built-in [web3modal](ht | Property | Description | Type | Default | Version | | --- | --- | --- | --- | --- | -| config | wagmi config | [WagmiConfig](https://wagmi.sh/core/config) | - | - | +| config | wagmi config | [WagmiConfig](https://wagmi.sh/core/config) | Support for automatically generating configurations such as `chains` and `wallets` is available after `2.8.0` | - | | queryClient | [React Query](https://react-query.tanstack.com/) queryClient | `new QueryClient()` | - | - | | wallets | Wallets | [WalletFactory](#walletfactory)[] | - | - | | chains | Chains | [ChainAssetWithWagmiChain](#chainassetwithwagmichain)\[\] | - | - | | ens | Whether to display ENS | `boolean` | - | - | | balance | Whether to display balance | `boolean` | - | - | | locale | Multilingual settings | [Locale](https://github.com/ant-design/ant-design-web3/blob/main/packages/common/src/locale/en_US.ts) | - | - | -| eip6963 | Whether to use EIP6963 protocol wallet and related configurations | `boolean` \| `EIP6963Config` | `false` | | +| eip6963 | Whether to use EIP6963 protocol wallet and related configurations | `boolean` \| `EIP6963Config` | `false` | `2.2.0` | | initialState | Initial state to hydrate into the [Wagmi Config](https://wagmi.sh/react/api/createConfig). Useful for SSR. | [State](https://wagmi.sh/react/api/createConfig#state-1) \| `undefined` | - | - | | reconnectOnMount | Whether or not to reconnect previously connected [connectors](https://wagmi.sh/react/api/createConfig#connectors) on mount. | `boolean` \| `undefined` | `true` | - | -| walletConnect | WalletConnect configuration | `false` \| [WalletConnectOptions](#walletconnectoptions) | - | - | -| transports | [Transport](https://wagmi.sh/core/api/createConfig#transports) configuration | `Transport` | - | - | +| walletConnect | WalletConnect configuration | `false` \| [WalletConnectOptions](#walletconnectoptions) | - | `2.8.0` | +| transports | [Transport](https://wagmi.sh/core/api/createConfig#transports) configuration | `Transport` | - | `2.8.0` | ### WalletFactory