Skip to content

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