Closed TalDerei closed 2 months ago
Latest commit: 58e3985ca4e0b10cb716fe79db177735ef963db2
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@erwanor can you review wasm changes?
Actually, sorry, one big-picture question: is it actually correct to set the spends
instead of the outputs
for a send transaction? I'm not sure what that would do... is that being handled by your code changes to planner.rs
?
Actually, sorry, one big-picture question: is it actually correct to set the
spends
instead of theoutputs
for a send transaction? I'm not sure what that would do... is that being handled by your code changes toplanner.rs
?
We modified the protobuf definition to add spend actions as a special user intent to signify max functionality. In a regular send transaction, the planner constructs an output request. However, for send transactions where the user attempts to spend their entire balance, we track additional internal state to identify this intent and then branch on that logic to construct a spend request. Like you pointed out, the spend
request is handled differently by the planner.
References https://github.com/penumbra-zone/web/issues/1313.
max functionality is only supported for general
sends
, andswaps
/delegations
were decided as out of scope for now.