Skip to content

Added paymentHash and preimageNonce params to createInvoice functions #227

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

Conversation

AaryamanBhute
Copy link
Contributor

Added paymentHash and preimageNonce params to createInvoice, createLnurlInvoice, and createUmaInvoice and their respective mutations from all 3 clients.

Used type of Hash32 on both parameters in order to match mutation input object types like:

Screenshot 2025-03-25 at 1 56 36 PM

@AaryamanBhute AaryamanBhute reopened this Mar 25, 2025
@AaryamanBhute AaryamanBhute marked this pull request as draft March 25, 2025 21:06
@@ -134,8 +136,20 @@ class LightsparkFuturesClient(config: ClientConfig) {
memo: String? = null,
type: InvoiceType = InvoiceType.STANDARD,
expirySecs: Int? = null,
paymentHash: Hash32? = null,
Copy link
Contributor

Choose a reason for hiding this comment

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

Sorry I should have clarified - The graphql query types should be Hash32, but in kotlin, they should just be strings here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated to be strings in Kotlin but kept the types as Hash32 in the mutation string.

…urlInvoice, and createUmaInvoice and their respective mutations from all 3 clients.
@AaryamanBhute AaryamanBhute force-pushed the aaryaman/lpt-262-add-payment_has-and-preimage_nonce-parameters branch from 8e462af to 6009d01 Compare March 25, 2025 21:43
Copy link
Contributor

@jklein24 jklein24 left a comment

Choose a reason for hiding this comment

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

🎉

@AaryamanBhute AaryamanBhute marked this pull request as ready for review March 25, 2025 21:49
@AaryamanBhute AaryamanBhute merged commit 242a9ba into develop Mar 25, 2025
1 check passed
@AaryamanBhute AaryamanBhute deleted the aaryaman/lpt-262-add-payment_has-and-preimage_nonce-parameters branch March 25, 2025 21:49
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