Skip to content

feat: add type_hash to rgbpp assets routes #184

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

Merged
merged 4 commits into from
Jul 4, 2024
Merged

feat: add type_hash to rgbpp assets routes #184

merged 4 commits into from
Jul 4, 2024

Conversation

ahonn
Copy link
Contributor

@ahonn ahonn commented Jul 3, 2024

Changes

  • Add type_script field to /rgbpp/v1/address/:btc_address/balance response
    • Convenient for future transactions (From @ShookLyngs)
  • Add type_hash field to /rgbpp/v1/assets routes response

Copy link

vercel bot commented Jul 3, 2024

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

Name Status Preview Comments Updated (UTC)
btc-assets-api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 4, 2024 0:49am

@ahonn ahonn marked this pull request as ready for review July 3, 2024 12:19
@Flouse Flouse requested a review from ShookLyngs July 4, 2024 01:39
@Flouse Flouse merged commit 954bfa9 into develop Jul 4, 2024
4 checks passed
@Flouse Flouse deleted the feat/typehash branch July 4, 2024 01:42
@@ -91,5 +91,6 @@ export const XUDTBalance = z.object({
available_amount: z.string(),
pending_amount: z.string(),
type_hash: z.string(),
type_script: Script,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another case issue is the Script is in camelCase where this type is in snake_case: https://github.com/ckb-cell/btc-assets-api/blob/f686bc1ab05719fc9942ecd01f1c1e645138cf9d/src/routes/rgbpp/types.ts#L3-L7

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants