-
Notifications
You must be signed in to change notification settings - Fork 6
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
refactor(background): split up OpenPaymentsService
#775
Conversation
Extension builds preview
|
OpenPaymentsService
, extract OutgoingPaymentGrantService
OpenPaymentsService
, extract OutgoingPaymentGrantService
OutgoingPaymentGrantService
OutgoingPaymentGrantService
OutgoingPaymentGrantService
OutgoingPaymentGrantService
OutgoingPaymentGrantService
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits in first round of review.
Overall:
- Should move connectWallet and more outgoing-payment grant related things into new service.
- Make background communicate directly with new service, instead of going through OpenPaymentsService
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
OutgoingPaymentGrantService
OpenPaymentsService
As that'll allow us using `keyid` throughout code, but we prefer `keyId`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly there! Some small recommendations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
test-e2e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉🚀 Worth all the effort 💯
Closes #713
Changes proposed in this pull request
OutgoingPaymentGrantService
connectWallet
,addFunds
,updateBudget
,disconnectWallet
and related to newWalletService
createOutgoingPayment
,pollOutgoingPayment
andprobeDebitAmount
toPaymentSession