-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat: build on modular core-web #67
base: main
Are you sure you want to change the base?
Conversation
- this provides common instantiation and state observation logic for when we create a fedimint clint like FedimintWallet
- an instance of this class can be used to interact with the federation, without any of the other wallet or lightnign modules - should probably be called `FederationAdmin`?
- Replaces `FederationService` with an instance of `Federation` within `FedimintWallet`. - Showcases how standalone client instances can be composed into a logic set like the wallet, while sharing an indemponent `WorkerClient` instance
🦋 Changeset detectedLatest commit: 0c0b088 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Hey @okjodom, Thanks for the contribution! Love the idea to further modularize things. Few questions:
|
Hey @alexlwn123
I am testing a scenario where I only need In this scenario, I totally could consume |
This is an attempt at sharing what look like 'best practices' for when to instantiate the worker, and keep track of the service having an active connection to a federation. At a high level, the methods
Aggreed on preference for composition over inheritance. If |
Federation
class that can be used standalone to connect and interact with the federationFedimintWallet
now usesFederation
instead ofFederationService
while still sharing the sameWorkerClient
instance