-
Notifications
You must be signed in to change notification settings - Fork 111
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
Conversation
b5942f7
to
9c4b9b4
Compare
universe/interface.go
Outdated
@@ -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, |
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.
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.
397747e
to
3af30e2
Compare
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. |
3af30e2
to
6ab36c7
Compare
43eaf0e
to
742f12e
Compare
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.
LGTM! Looking forward to the follow-up PRs.
Feels like commits 1-3 and 4-5 can be squashed together, but non-blocking.
Preliminary refactor PR made in an attempt to split up the work a bit.