ant-design / ant-design-web3

🥳 Efficient react components for building dapps easier | Connect crypto wallets and more Web3 UI components | Web3 icons | Supports Ethereum, Solana, Bitcoin, TON, Sui and others.
https://web3.ant.design
MIT License
897 stars 149 forks source link

feat(solana): Add TipLink Wallet Adapter #1167

Closed gin-lsl closed 2 months ago

gin-lsl commented 2 months ago

添加 Tiplink 示例

TipLink 可以通过 Google 登录来连接钱包。官网在 TipLink.io

代码中的 clientId 是从 Discord 联系官方提供的。

💡 Background and solution

🔗 Related issue link

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ant-design-web3 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 22, 2024 1:55pm
changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: b10b4ea8da2e425d16313e92b745d711932b4284

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------------------- | ----- | | @ant-design/web3-solana | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

github-actions[bot] commented 2 months ago

Preview is ready

socket-security[bot] commented 2 months ago

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

View full report↗︎

gin-lsl commented 2 months ago

目前还有些编译错误

yutingzhao1991 commented 2 months ago
export const TiplinkWallet = () =>
  WalletFactory(
    new TipLinkWalletAdapter({
      clientId: YOUR_TIPLINK_CLIENT_ID,
      theme: 'system',
      title: 'Ant Design Web3',
    }),
    metadata_TipLink,
  );

这个可以内置。

gin-lsl commented 2 months ago

@yutingzhao1991 本来是想要内置的,而且不会有这个编译错误。我先改成内置的,再看下合不合适。

yutingzhao1991 commented 2 months ago
image

我这里打开预览地址会报这个错误

gin-lsl commented 2 months ago

改成了在 web3-solana 中内置。预览页面无法连接钱包,连接会被阻止。可以在本地尝试。

codecov[bot] commented 2 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 99.99%. Comparing base (e790aea) to head (b10b4ea). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1167 +/- ## ======================================= Coverage 99.99% 99.99% ======================================= Files 847 847 Lines 18074 18075 +1 Branches 1576 1576 ======================================= + Hits 18073 18074 +1 Misses 1 1 ``` | [Flag](https://app.codecov.io/gh/ant-design/ant-design-web3/pull/1167/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/ant-design/ant-design-web3/pull/1167/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design) | `99.99% <100.00%> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=ant-design#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.