Skip to content
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

Preliminary refactor in preparation for adding multiverse support #346

Merged
merged 7 commits into from
Jul 25, 2023

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented Jun 8, 2023

Preliminary refactor PR made in an attempt to split up the work a bit.

@ffranr ffranr requested review from guggero and jharveyb June 8, 2023 13:59
@ffranr ffranr force-pushed the refactor-universe branch 3 times, most recently from b5942f7 to 9c4b9b4 Compare June 9, 2023 13:52
@ffranr ffranr requested a review from Roasbeef June 9, 2023 13:53
@dstadulis dstadulis added the v0.3 label Jun 15, 2023
@@ -194,6 +194,10 @@ type BaseForest interface {
// of assets tracked in the base Universe.
RootNodes(ctx context.Context) ([]BaseRoot, error)

RegisterIssuance(ctx context.Context, id Identifier, key BaseKey,
Copy link
Member

Choose a reason for hiding this comment

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

Doesn't need to be done now, but eventually we'll also want to distinguish from the a multi-verse of only issuance, from one of all transfers for an asset, from one of all transfers for any asset.

Also notice the other BaseUniverse interface doesn't actually take an ID as it's bound to that asset id or group key. As this is a base multi-verse/forst, I think we'd also want to carry that over. You'd then have something similar to the current base uni struct here that is able to fetch the multiverse needed for the action.

@ffranr ffranr force-pushed the refactor-universe branch 4 times, most recently from 397747e to 3af30e2 Compare June 22, 2023 14:48
@ffranr ffranr requested a review from Roasbeef June 22, 2023 14:58
@ffranr
Copy link
Contributor Author

ffranr commented Jun 22, 2023

I don't intend on adding more to this PR (except when responding to reviews). I think it's good to go as a refactoring PR. I'll make other PRs for the rest of the work.

@ffranr ffranr force-pushed the refactor-universe branch from 3af30e2 to 6ab36c7 Compare June 22, 2023 15:27
@lightninglabs-deploy
Copy link

@Roasbeef: review reminder
@jharveyb: review reminder

@ffranr ffranr force-pushed the refactor-universe branch from 43eaf0e to 742f12e Compare July 24, 2023 20:23
Copy link
Contributor

@jharveyb jharveyb left a comment

Choose a reason for hiding this comment

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

LGTM! Looking forward to the follow-up PRs.

Feels like commits 1-3 and 4-5 can be squashed together, but non-blocking.

@ffranr ffranr added this pull request to the merge queue Jul 25, 2023
Merged via the queue into lightninglabs:main with commit e02f22f Jul 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants