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

bip-tap-universe: split universe trees, use new sum values #45

Merged
merged 1 commit into from
Oct 18, 2023

Conversation

Roasbeef
Copy link
Owner

In this commit, we split the Universe trees into transfer vs issuance. The leaf sum value for issuance is the number of units, while for transfer just 1 (accumulator).

For Multiverse trees, we make a similar distinction. The sum value for an issuance multiverse is just 1, so it tracks the total amount of assets committed to. For transfer multiverses, the value here is the same as the root of a transfer universe, this ends up summing to the total number of transfer committed to.

@Roasbeef
Copy link
Owner Author

cc @guggero

Copy link

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Nice, LGTM 🎉

Just one clarification question and a couple of nits.

bip-tap-universe.mediawiki Outdated Show resolved Hide resolved
bip-tap-universe.mediawiki Outdated Show resolved Hide resolved
bip-tap-universe.mediawiki Outdated Show resolved Hide resolved
bip-tap-universe.mediawiki Show resolved Hide resolved
In this commit, we split the Universe trees into transfer vs issuance.
The leaf sum value for issuance is the number of units, while for
transfer just `1` (accumulator).

For Multiverse trees, we make a similar distinction. The sum value for
an issuance multiverse is just 1, so it tracks the total amount of
assets committed to. For transfer multiverses, the value here is the
same as the root of a transfer universe, this ends up summing to the
total number of transfer committed to.
@Roasbeef Roasbeef merged commit 6dd3458 into bip-tap-pr Oct 18, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants