Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@bitkarrot
Copy link
Contributor

@bitkarrot bitkarrot commented Feb 2, 2024

EDIT: Ready for review.

ZBD API Developer Dashboard, the Projects section was used to generate the API Keys
Screenshot 2024-02-05 at 11 41 05 AM


This is a work in progress PR to get ZBD wallet integrated into LNBits.

It is not yet complete yet, am still working on it and testing! Will post a comment here once its ready for review. Thanks.

@codecov
Copy link

codecov bot commented Feb 2, 2024

Codecov Report

Attention: Patch coverage is 25.97403% with 57 lines in your changes are missing coverage. Please review.

Project coverage is 58.51%. Comparing base (ddab407) to head (237d346).

Files Patch % Lines
lnbits/wallets/zbd.py 21.91% 57 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #2235      +/-   ##
==========================================
- Coverage   58.79%   58.51%   -0.28%     
==========================================
  Files          60       61       +1     
  Lines        9132     9209      +77     
==========================================
+ Hits         5369     5389      +20     
- Misses       3763     3820      +57     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dni dni requested review from callebtc, dni, motorina0 and prusnak and removed request for dni and prusnak February 5, 2024 08:52
@dni dni added the wallets Funding sources label Feb 5, 2024
@dni dni marked this pull request as draft February 5, 2024 08:53
@dni dni changed the title ZBD wallet API Integration (WIP) - the real one feat: ZBD wallet API Integration (WIP) - the real one Feb 5, 2024
@bitkarrot
Copy link
Contributor Author

OK Ready for review @prusnak @dni

See proof of work video attached here:

zbd-pow.mp4

@bitkarrot bitkarrot marked this pull request as ready for review February 5, 2024 19:34
@bitkarrot bitkarrot changed the title feat: ZBD wallet API Integration (WIP) - the real one feat: ZBD wallet API Integration Feb 5, 2024
@prusnak
Copy link
Collaborator

prusnak commented Feb 6, 2024

I rebased the branch on top of current dev to remove conflicts.

@prusnak
Copy link
Collaborator

prusnak commented Feb 6, 2024

@bitkarrot can you please have a look at typing failures?

lnbits/wallets/zbd.py:13:5: F811 Redefinition of unused `PaymentStatus` from line 8
lnbits/wallets/zbd.py:121: error: Incompatible return value type (got "InvoiceResponse", expected "PaymentResponse")  [return-value]

@prusnak
Copy link
Collaborator

prusnak commented Feb 6, 2024

@bitkarrot can you please have a look at typing failures?

I went ahead and fixed them in 6b2f3eb

Copy link
Collaborator

@prusnak prusnak left a comment

Choose a reason for hiding this comment

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

utACK

Code looks fine

@andrerfneves
Copy link

huge! thanks @bitkarrot for taking this on. going to find some time to spin up local LNBits and test further 👍

@arcbtc
Copy link
Member

arcbtc commented Feb 9, 2024

Amazing work. Async invoice stream needs attention though, for the invoice listeners. Not sure if its possible, it should be.

@prusnak
Copy link
Collaborator

prusnak commented Feb 9, 2024

Rebased on top of dev to get rid of bundle conflict.

@prusnak
Copy link
Collaborator

prusnak commented Feb 20, 2024

rebased on top of current dev branch to resolve conflicts

@prusnak
Copy link
Collaborator

prusnak commented Feb 20, 2024

Let's merge so we don't have to keep rebasing it. // cc @dni

@bitkarrot
Copy link
Contributor Author

Will make pytest a separate PR that can be applied to all Wallet integrations,
if @prusnak has itchy fingers and can't wait to merge this one. ;)

Copy link
Collaborator

@motorina0 motorina0 left a comment

Choose a reason for hiding this comment

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

LGTM
Thank you for adding this implementation.

The only important open topic is: https://github.com/lnbits/lnbits/pull/2235/files#r1497611632

@bitkarrot
Copy link
Contributor Author

Thanks @motorina0 . will fix the rest in the morning, right now too fried.

LGTM Thank you for adding this implementation.

The only important open topic is: https://github.com/lnbits/lnbits/pull/2235/files#r1497611632

@bitkarrot
Copy link
Contributor Author

OK changes requested by @motorina0 done.

@bitkarrot
Copy link
Contributor Author

Let's merge so we don't have to keep rebasing it. // cc @dni

Um, yes. I tried to resolve the conflicts in the bundle.min.js but gave up, not sure how to do this best way.
@prusnak

bitkarrot and others added 12 commits February 23, 2024 15:49
@prusnak
Copy link
Collaborator

prusnak commented Feb 23, 2024

Um, yes. I tried to resolve the conflicts in the bundle.min.js but gave up, not sure how to do this best way.

Easiest way is to just drop the chore: make bundle during the rebase and recreate it again from scratch by running make bundle - that's also the reason why you want to have it as a separate commit.

PS: I just did the process above to resolve the conflicts.

@prusnak prusnak merged commit 1b7efd8 into lnbits:dev Feb 23, 2024
@prusnak
Copy link
Collaborator

prusnak commented Feb 23, 2024

Great work, merged!

@bitkarrot
Copy link
Contributor Author

Thank you! will do that next time :D

Easiest way is to just drop the chore: make bundle during the rebase and recreate it again from scratch by running make bundle - that's also the reason why you want to have it as a separate commit.

PS: I just did the process above to resolve the conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wallets Funding sources

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants