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

Reverting new leaf schema events for burn, redeem, and decompress #1123

Merged
merged 1 commit into from
Jun 21, 2023

Conversation

danenbm
Copy link
Contributor

@danenbm danenbm commented Jun 21, 2023

This code was added to Bubblegum to make Read API indexing of compression easier. But instead of using these leaf schema events, we were able to derive the asset_id using the leaf index from the change log event.

I think it would have been more convenient to use these leaf events, but by solving it through derivation in the Read API, it keeps the Read API backwards compatible with all existing cNFT transactions that don't provide the leaf schema events in burn, redeem, and decompress.

Note this code was never deployed to devnet or mainnet.

@danenbm danenbm changed the title Reverting new leaf schema events for burn, redeem, and decompress Reverting new leaf schema events for burn, redeem, and decompress Jun 21, 2023
@danenbm danenbm marked this pull request as ready for review June 21, 2023 21:35
@danenbm danenbm requested a review from a team as a code owner June 21, 2023 21:35
@danenbm danenbm requested review from samuelvanderwaal and blockiosaurus and removed request for a team June 21, 2023 21:35
@github-actions
Copy link
Contributor

Workflow Verify package library found differences when running yarn api:gen in the JS lib for bubblegum. Please see the job for more details: https://github.com/metaplex-foundation/metaplex-program-library/actions/runs/5339164500.

Copy link
Contributor

@febo febo left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@blockiosaurus blockiosaurus left a comment

Choose a reason for hiding this comment

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

Magnifique

@danenbm danenbm merged commit 94cb52c into master Jun 21, 2023
@danenbm danenbm deleted the danenbm/bgum-revert-events branch June 21, 2023 22:30
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.

4 participants