Skip to content
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

Add decimal display to taprpc.Asset #960

Merged
merged 2 commits into from
Jun 21, 2024

Conversation

GeorgeTsagk
Copy link
Member

Description

Recently we supported a new decimal_display field when minting which would be encoded in the asset metadata. This PR tries to expose that field back to the user via commonly used asset RPC calls

@GeorgeTsagk GeorgeTsagk self-assigned this Jun 19, 2024
proof/courier.go Outdated Show resolved Hide resolved
taprpc/marshal.go Outdated Show resolved Hide resolved
@guggero guggero self-requested a review June 20, 2024 09:43
@dstadulis dstadulis added this to the v0.4 milestone Jun 20, 2024
@GeorgeTsagk GeorgeTsagk force-pushed the rpc-asset-decimal-display branch from 90c4253 to ea8afd4 Compare June 20, 2024 16:41
@GeorgeTsagk GeorgeTsagk requested a review from Roasbeef June 20, 2024 16:48
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Nice 🎉
Just a couple of suggestions where we might also want to expose the value.

taprpc/taprootassets.proto Outdated Show resolved Hide resolved
taprpc/taprootassets.proto Outdated Show resolved Hide resolved
taprpc/marshal.go Outdated Show resolved Hide resolved
proof/courier.go Outdated Show resolved Hide resolved
rpcserver.go Outdated Show resolved Hide resolved
taprpc/taprootassets.proto Outdated Show resolved Hide resolved
@GeorgeTsagk GeorgeTsagk force-pushed the rpc-asset-decimal-display branch from ea8afd4 to 441c231 Compare June 21, 2024 14:45
@GeorgeTsagk GeorgeTsagk requested a review from guggero June 21, 2024 14:47
@GeorgeTsagk GeorgeTsagk force-pushed the rpc-asset-decimal-display branch from 441c231 to 927c173 Compare June 21, 2024 14:49
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Just some nits, otherwise LGTM 🎉

rpcserver.go Outdated Show resolved Hide resolved
rpcserver.go Outdated Show resolved Hide resolved
rpcserver.go Outdated Show resolved Hide resolved
@GeorgeTsagk GeorgeTsagk force-pushed the rpc-asset-decimal-display branch from 927c173 to 21bb811 Compare June 21, 2024 15:18
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM 🧤

@Roasbeef Roasbeef merged commit 1533d9e into lightninglabs:main Jun 21, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

4 participants