Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 74a2fb1e5ba09891a5d02dae609240b304dc8542
  • Loading branch information
Lightspark Eng authored and jklein24 committed Sep 14, 2023
1 parent 9cf9d87 commit 086fd84
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# v1.4.1

- Fix deserializing nullable lists

# v1.4.0

- Adding UMA protocol support
Expand Down
4 changes: 3 additions & 1 deletion lightspark/objects/IncomingPayment.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,5 +184,7 @@ def from_json(requester: Requester, obj: Mapping[str, Any]) -> IncomingPayment:
lambda e: PostTransactionData_from_json(requester, e),
obj["incoming_payment_uma_post_transaction_data"],
)
),
)
if obj["incoming_payment_uma_post_transaction_data"]
else None,
)
8 changes: 6 additions & 2 deletions lightspark/objects/LightningTransaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,9 @@ def from_json(requester: Requester, obj: Mapping[str, Any]) -> LightningTransact
lambda e: PostTransactionData_from_json(requester, e),
obj["incoming_payment_uma_post_transaction_data"],
)
),
)
if obj["incoming_payment_uma_post_transaction_data"]
else None,
)
if obj["__typename"] == "OutgoingPayment":
# pylint: disable=import-outside-toplevel
Expand Down Expand Up @@ -393,7 +395,9 @@ def from_json(requester: Requester, obj: Mapping[str, Any]) -> LightningTransact
lambda e: PostTransactionData_from_json(requester, e),
obj["outgoing_payment_uma_post_transaction_data"],
)
),
)
if obj["outgoing_payment_uma_post_transaction_data"]
else None,
)
if obj["__typename"] == "RoutingTransaction":
# pylint: disable=import-outside-toplevel
Expand Down
4 changes: 3 additions & 1 deletion lightspark/objects/OutgoingPayment.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,5 +367,7 @@ def from_json(requester: Requester, obj: Mapping[str, Any]) -> OutgoingPayment:
lambda e: PostTransactionData_from_json(requester, e),
obj["outgoing_payment_uma_post_transaction_data"],
)
),
)
if obj["outgoing_payment_uma_post_transaction_data"]
else None,
)
8 changes: 6 additions & 2 deletions lightspark/objects/Transaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,9 @@ def from_json(requester: Requester, obj: Mapping[str, Any]) -> Transaction:
lambda e: PostTransactionData_from_json(requester, e),
obj["incoming_payment_uma_post_transaction_data"],
)
),
)
if obj["incoming_payment_uma_post_transaction_data"]
else None,
)
if obj["__typename"] == "OutgoingPayment":
# pylint: disable=import-outside-toplevel
Expand Down Expand Up @@ -614,7 +616,9 @@ def from_json(requester: Requester, obj: Mapping[str, Any]) -> Transaction:
lambda e: PostTransactionData_from_json(requester, e),
obj["outgoing_payment_uma_post_transaction_data"],
)
),
)
if obj["outgoing_payment_uma_post_transaction_data"]
else None,
)
if obj["__typename"] == "RoutingTransaction":
# pylint: disable=import-outside-toplevel
Expand Down
2 changes: 1 addition & 1 deletion lightspark/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "1.4.0"
__version__ = "1.4.1"

0 comments on commit 086fd84

Please sign in to comment.