Skip to content

feat: add amount and fiat amount types #202

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

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

feat: add amount and fiat amount types #202

wants to merge 3 commits into from

Conversation

rolznz
Copy link
Contributor

@rolznz rolznz commented Apr 9, 2025

Moving Amount and FiatAmount from the LNClient JS SDK PR: getAlby/js-sdk#344

Right now the changes do not feel fully integrated with lightning tools and kind of tacked on top and not tightly integrated. For example fiat.getSatoshiValue returns a number, not an Amount type.

The Amount type and resolveAmount are exported at the root.

What do you think?

Copy link
Member

@im-adithya im-adithya left a comment

Choose a reason for hiding this comment

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

Just a small comment, otherwise looks good 🙌

@rolznz
Copy link
Contributor Author

rolznz commented Apr 11, 2025

From Bumi: we can explore how to apply this to the existing lightning tools functions - especially to make it easier to use with fiat. But it's not too high priority, let's leave this PR open for now and these types in the JS SDK for now and we can move them later.

@rolznz rolznz marked this pull request as draft May 21, 2025 12:35
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.

2 participants