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

view: port wasm planner to core #4312

Merged
merged 19 commits into from
May 3, 2024
Merged

view: port wasm planner to core #4312

merged 19 commits into from
May 3, 2024

Conversation

TalDerei
Copy link
Collaborator

@TalDerei TalDerei commented May 3, 2024

Describe your changes

This PR adds a port of the wasm planner, integrating it within the penumbra-view crate.

SwapClaim handling
In the process of porting this PR, we found a bug in the handling of SwapClaim actions with the wasm planner.

SwapClaim actions produce surplus value from their prepaid fees) that must be released so that the transaction balance to zero. In principle, it should be possible to release this value into an output note. This isn't the approach we took with this PR. Instead, we release it to the transaction fee, providing a base for us to improve on later. This will be tracked by #4313.

Issue ticket number and link

References #4081

Checklist before requesting a review

  • If this code contains consensus-breaking changes, I have added the "consensus-breaking" label. Otherwise, I declare my belief that there are not consensus-breaking changes, for the following reason:

@TalDerei TalDerei self-assigned this May 3, 2024
@TalDerei TalDerei requested a review from erwanor May 3, 2024 20:33
@TalDerei TalDerei marked this pull request as ready for review May 3, 2024 20:33
@TalDerei
Copy link
Collaborator Author

TalDerei commented May 3, 2024

with the governance passing, do we want to change the base branch in this PR?

@erwanor
Copy link
Member

erwanor commented May 3, 2024

Exciting, good job, can you edit the title/description and we'll send it

@TalDerei TalDerei changed the title planner: governance voting refactor(planner): port wasm planner to core May 3, 2024
@erwanor erwanor changed the title refactor(planner): port wasm planner to core view: port wasm planner to core May 3, 2024
Copy link
Member

@erwanor erwanor left a comment

Choose a reason for hiding this comment

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

SEND IT

@TalDerei TalDerei merged commit db773d8 into main May 3, 2024
13 checks passed
@TalDerei TalDerei deleted the planner-governance branch May 3, 2024 20:47
@erwanor erwanor added A-client Area: Design and implementation for client functionality _P-V1 Priority: slated for V1 release _P-high High priority labels May 3, 2024
@erwanor erwanor added this to the Sprint 5 milestone May 3, 2024
@TalDerei
Copy link
Collaborator Author

TalDerei commented May 3, 2024

cc @cratelyn

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-client Area: Design and implementation for client functionality _P-high High priority _P-V1 Priority: slated for V1 release
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants