refactor: simplify OpenPaymentsService #713
Labels
area: background
Improvements or additions to extension background script
good first issue
Good for newcomers
refactor
OpenPaymentsService
has grown a lot (1000+ lines) as we kept adding new things to this service directly. For a cleanup, it might be worth separating the connect wallet parts to a separate service. I thinkOutgoingPaymentGrantService
might be a good name, as we use same grant part inconnectWallet
,addFunds
,updateBudget
,disconnectWallet
and more (open to any better names).We likely want to keep the token within this
OutgoingPaymentGrantService
. Might need some care with cyclic dependencies with awilix though.The text was updated successfully, but these errors were encountered: