-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(solana): support wallet-connect and handle connect error #656
Conversation
🦋 Changeset detectedLatest commit: 26c60f2 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #656 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 647 647
Lines 19537 19603 +66
Branches 1114 1121 +7
=========================================
+ Hits 19537 19603 +66 ☔ View full report in Codecov by Sentry. |
我突然想到,有没有可能不用它的这个适配器,感觉它这个有点老了,我们直接用 wallet connect 官方的 https://docs.walletconnect.com/advanced/providers/universal |
@@ -43,15 +43,15 @@ | |||
"@ant-design/web3-assets": "workspace:*", | |||
"@ant-design/web3-common": "workspace:*", | |||
"@metaplex-foundation/js": "^0.20.1", | |||
"@solana/wallet-adapter-base": "^0.9.23", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看错了,好像就是指到这个的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看错了,好像就是指到这个的
有点乱,代码仓库还转移过组织,来龙去脉有点麻烦 😂
可以换成这个,代码会多一点 |
更新了一波,现在二维码可以适配我们自己的逻辑了。 对 WalletConnect 支持良好的钱包似乎不多?试了几个,Trust 的体验最好。。 |
f9a4872
to
12f6000
Compare
Changeset needs to be included |
export class WalletConnectWalletAdapter extends BaseSignerWalletAdapter { | ||
name = WalletConnectWalletName; | ||
url = 'https://walletconnect.org'; | ||
icon = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是 walletConnect 的 icon 吗?能不能用 web3-icons 里面的 icon?
done |
|
||
export const CoinbaseWallet = () => | ||
WalletFactory(new CoinbaseWalletAdapter(), metadata_CoinbaseWallet); | ||
|
||
export const PhantomWallet = () => WalletFactory(new PhantomWalletAdapter(), metadata_Phantom); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
789bbb0
to
2b7401d
Compare
Co-authored-by: thinkasany <480968828@qq.com>
2b7401d
to
26c60f2
Compare
添加 WalletConnect 连接方式,处理连接错误。
测试用例稍后补充。