-
Notifications
You must be signed in to change notification settings - Fork 115
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(bitcoin): add getInscription API and enhance types #901
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🦋 Changeset detectedLatest commit: 7be40ff The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
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 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #901 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 712 712
Lines 21525 21588 +63
Branches 1216 1225 +9
=========================================
+ Hits 21525 21588 +63 ☔ View full report in Codecov by Sentry. |
1aac786
to
657ad61
Compare
657ad61
to
2aadc72
Compare
ae0df11
to
670ba33
Compare
6a77093
to
00ea5fa
Compare
https://preview-901-ant-design-web3.surge.sh/components/bitcoin |
💡 Background and solution
问题背景:类似于 NFTCard,提供 OrdinalsCard 用于展示铭文
设计思路:UI 层可以使用 NFTCard,而图片信息需要去获取,也就是类似 getNFTMetadata 的逻辑。不过特殊之处在于:
因此不单独透出组件,而是提供统一的 API 读取铭文信息,开发者可以更加灵活地使用,同时依然可以使用 ant-design-web3 提供的 UI 组件。参见
demos/get-inscriptions.tsx
注:官方并不提供统一 Open API ordinals/ord#2672 因此使用 Hiro 的开源 API
🔗 Related issue link
#800