Skip to content

Commit

Permalink
docs: add adapters link
Browse files Browse the repository at this point in the history
  • Loading branch information
gin-lsl committed May 20, 2024
1 parent d973038 commit 129ef57
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/web3/src/solana/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ The recommended configuration mainly includes:

To reduce the size of the package you're including, you need to manually configure the `wallets` to import the relevant wallets. You can export the necessary resources from `@ant-design/web3-assets` and `@solana/wallet-adapter-ADAPTER_YOUR_NEED`. If you don't find the resources you need, you can let us know by submitting a [GitHub issue](https://github.com/ant-design/ant-design-web3/issues). You can also configure it yourself or submit a Pull Request to us for support.

`@solana/wallet-adapter-ADAPTER_YOUR_NEED`:

Available adapters can be found here: [wallet-adapters](https://github.com/anza-xyz/wallet-adapter/blob/master/packages/wallets/wallets/src/index.ts)

<code src="./demos/more-wallets.tsx"></code>

## WalletConnect
Expand Down
4 changes: 4 additions & 0 deletions packages/web3/src/solana/index.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ Ant Design Web3 官方提供了 `@ant-design/web3-solana` 来适配 Solana,它

为了降低引入包的大小,你需要手动配置 `wallets` 引入相关钱包。你可以从 `@ant-design/web3-assets``@solana/wallet-adapter-ADAPTER_YOUR_NEED` 中导出相关资源,如果没有你需要的资源,你可以通过提交 [GitHub issue](https://github.com/ant-design/ant-design-web3/issues) 告诉我们。当然,你也可以自己配置或者给我们提交 PR 支持。

`@solana/wallet-adapter-ADAPTER_YOUR_NEED`:

能够在这里找到可用的适配器:[wallet-adapters](https://github.com/anza-xyz/wallet-adapter/blob/master/packages/wallets/wallets/src/index.ts)

<code src="./demos/more-wallets.tsx"></code>

## 使用 WalletConnect 协议
Expand Down

0 comments on commit 129ef57

Please sign in to comment.