From 695f410837a7cc73b302405e412598e064d84473 Mon Sep 17 00:00:00 2001 From: shreyav Date: Mon, 22 Jul 2024 10:11:49 -0700 Subject: [PATCH 1/2] remove default null --- lightspark/scripts/create_uma_invoice.py | 2 +- lightspark/scripts/outgoing_payments_for_invoice.py | 2 +- lightspark/scripts/outgoing_payments_for_payment_hash.py | 2 +- lightspark/scripts/pay_uma_invoice.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lightspark/scripts/create_uma_invoice.py b/lightspark/scripts/create_uma_invoice.py index 315e374..4693cdd 100644 --- a/lightspark/scripts/create_uma_invoice.py +++ b/lightspark/scripts/create_uma_invoice.py @@ -8,7 +8,7 @@ $amount_msats: Long! $metadata_hash: String! $expiry_secs: Int - $receiver_hash: String = null + $receiver_hash: String ) {{ create_uma_invoice(input: {{ node_id: $node_id diff --git a/lightspark/scripts/outgoing_payments_for_invoice.py b/lightspark/scripts/outgoing_payments_for_invoice.py index 2f58aa6..191200b 100644 --- a/lightspark/scripts/outgoing_payments_for_invoice.py +++ b/lightspark/scripts/outgoing_payments_for_invoice.py @@ -5,7 +5,7 @@ OUTGOING_PAYMENTS_FOR_INVOICE_QUERY = f""" query OutgoingPaymentsForInvoice( $encoded_invoice: String!, - $transaction_statuses: [TransactionStatus!] = null + $transaction_statuses: [TransactionStatus!] ) {{ outgoing_payments_for_invoice(input: {{ encoded_invoice: $encoded_invoice, diff --git a/lightspark/scripts/outgoing_payments_for_payment_hash.py b/lightspark/scripts/outgoing_payments_for_payment_hash.py index 9260352..0ed51b9 100644 --- a/lightspark/scripts/outgoing_payments_for_payment_hash.py +++ b/lightspark/scripts/outgoing_payments_for_payment_hash.py @@ -5,7 +5,7 @@ OUTGOING_PAYMENTS_FOR_PAYMENT_HASH_QUERY = f""" query OutgoingPaymentsForPaymentHash( $payment_hash: Hash32!, - $transaction_statuses: [TransactionStatus!] = null + $transaction_statuses: [TransactionStatus!] ) {{ outgoing_payments_for_payment_hash(input: {{ payment_hash: $payment_hash, diff --git a/lightspark/scripts/pay_uma_invoice.py b/lightspark/scripts/pay_uma_invoice.py index 8972c28..b4afcc2 100644 --- a/lightspark/scripts/pay_uma_invoice.py +++ b/lightspark/scripts/pay_uma_invoice.py @@ -10,7 +10,7 @@ $maximum_fees_msats: Long! $amount_msats: Long $idempotency_key: String - $sender_hash: String = null + $sender_hash: String ) {{ pay_uma_invoice(input: {{ node_id: $node_id From 347036d7f9992092710d2ff4f35a3854675d0d16 Mon Sep 17 00:00:00 2001 From: shreyav Date: Mon, 22 Jul 2024 12:05:26 -0700 Subject: [PATCH 2/2] revert non invoice changes and add changelog --- CHANGELOG.md | 4 ++++ lightspark/scripts/outgoing_payments_for_invoice.py | 2 +- lightspark/scripts/outgoing_payments_for_payment_hash.py | 2 +- lightspark/version.py | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72b92ee..06b5a6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 2.10.1 + +- Removes default params on graphql mutations `PayUmaInvoice` and `CreateUmaInvoice` + # 2.10.0 - Add extra params to `create_uma_invoice` and `pay_uma_invoice` for analytics. diff --git a/lightspark/scripts/outgoing_payments_for_invoice.py b/lightspark/scripts/outgoing_payments_for_invoice.py index 191200b..2f58aa6 100644 --- a/lightspark/scripts/outgoing_payments_for_invoice.py +++ b/lightspark/scripts/outgoing_payments_for_invoice.py @@ -5,7 +5,7 @@ OUTGOING_PAYMENTS_FOR_INVOICE_QUERY = f""" query OutgoingPaymentsForInvoice( $encoded_invoice: String!, - $transaction_statuses: [TransactionStatus!] + $transaction_statuses: [TransactionStatus!] = null ) {{ outgoing_payments_for_invoice(input: {{ encoded_invoice: $encoded_invoice, diff --git a/lightspark/scripts/outgoing_payments_for_payment_hash.py b/lightspark/scripts/outgoing_payments_for_payment_hash.py index 0ed51b9..9260352 100644 --- a/lightspark/scripts/outgoing_payments_for_payment_hash.py +++ b/lightspark/scripts/outgoing_payments_for_payment_hash.py @@ -5,7 +5,7 @@ OUTGOING_PAYMENTS_FOR_PAYMENT_HASH_QUERY = f""" query OutgoingPaymentsForPaymentHash( $payment_hash: Hash32!, - $transaction_statuses: [TransactionStatus!] + $transaction_statuses: [TransactionStatus!] = null ) {{ outgoing_payments_for_payment_hash(input: {{ payment_hash: $payment_hash, diff --git a/lightspark/version.py b/lightspark/version.py index 1c62222..565443f 100644 --- a/lightspark/version.py +++ b/lightspark/version.py @@ -1 +1 @@ -__version__ = "2.10.0" +__version__ = "2.10.1"