Implement amend_intent, outbound intents, hooks, and recipient field - #440
Merged
james2177 merged 3 commits intoSep 30, 2026
Conversation
stellar-vortex-protocol#358: Allow users to amend Open/Bidding intents' price and deadline in place - Add amend_intent() public function with full validation - Separate rate-limiting from cancellation (AMENDMENT_COOLDOWN) - Enforce tightening restrictions: only allowed in Open state - Emit intent_amended event with old/new values stellar-vortex-protocol#355: Implement Stellar-origin reverse-direction intents with on-chain escrow - Add OutboundIntentRecord struct and OutboundIntentState enum - Implement submit_outbound_intent() to lock tokens in escrow - Implement accept_outbound_intent() for solver bond commitment - Add deterministic outbound intent ID computation - Extend DataKey with OutboundIntent and UserOutboundIntents variants stellar-vortex-protocol#357: Infrastructure for optional post-fill hooks - Add Hook struct with HookFailPolicy (Revert/Isolate) - Add hook: Option<Hook> field to IntentRecord - Add HookInvocationFailed and HookBudgetExceeded error types stellar-vortex-protocol#356: Infrastructure for explicit recipient field - Add recipient: Option<Address> field to IntentRecord - Add InvalidRecipient error type - Recipient defaults to user if None All changes maintain backward compatibility. Closes stellar-vortex-protocol#355 Closes stellar-vortex-protocol#356 Closes stellar-vortex-protocol#357 Closes stellar-vortex-protocol#358
|
@katefominmoore23 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
…-357-358 # Conflicts: # intent_settlement/src/lib.rs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Implements 4 high-priority enhancements to the Vortex Protocol:
Openintent's price and deadline in place #358: Allow users to amend Open/Bidding intents' price and deadline in place, keeping ID stablerecipientto intents so output can go to an address other than the submitter #356: Add explicit recipient field to intents for payment/treasury use casesImplementation Details
#358: amend_intent()
#355: Outbound intents with escrow
#357: Post-fill hooks
#356: Recipient field
Testing
Closes #358
Closes #355
Closes #357
Closes #356