feat: foundations for delegated staking, operator keys, sealed-bid auctions, best-effort batches - #444
Merged
james2177 merged 2 commits intoSep 30, 2026
Conversation
…d auctions, and best-effort batches - Issue stellar-vortex-protocol#363: Add Operator struct and SolverOperator DataKey for session keys with scoped permissions (accept, fill, bid, request_extension) with per-intent limits and expiry timestamps - Issue stellar-vortex-protocol#364: Add delegated staking infrastructure - SolverDelegation struct, DelegatedStake and SolverDelegatedShares DataKeys for share-based accounting with pro-rata slashing and commission fees - Issue stellar-vortex-protocol#365: Add sealed-bid auction support - CommittedBid and RevealedBid structs, CommittedBid and BidRevealWindow DataKeys for commit-reveal sealed-bid flow with penalty bonds - Issue stellar-vortex-protocol#366: Add BatchModeConfig DataKey and BatchProcessingError for best-effort batch variants that return per-item results instead of reverting on first failure New error codes 36-44 for operator authorization, delegation validation, bid commitment, and batch processing scenarios. New DataKey variants for operator storage, delegated stake tracking, bid commits, and configuration. New structs for Operator (with scopes and limits), SolverDelegation (with shares and commission), CommittedBid (with bond), and RevealedBid (with salt). Closes stellar-vortex-protocol#363 Closes stellar-vortex-protocol#364 Closes stellar-vortex-protocol#365 Closes stellar-vortex-protocol#366
|
@Joel234-png 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! 🚀 |
…-365-366 # 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
Adds foundational infrastructure for four high-impact solver features:
Changes
Issue #363: Operator Keys
Operatorstruct with scopes bitmask and per-intent limitsSolverOperator(Address, Address)DataKey for operator grantsIssue #364: Delegated Staking
SolverDelegationstruct with share-based accountingDelegatedStake(Address, Address)for delegator sharesSolverDelegatedShares(Address)for total solver sharesIssue #365: Sealed-Bid Auctions
CommittedBidandRevealedBidstructsCommittedBid(BytesN<32>, Address)for commit phase: hash(solver || intent_id || amount || salt)BidRevealWindow(BytesN<32>)for reveal window configurationIssue #366: Best-Effort Batches
BatchModeConfigDataKey for atomic vs best-effort mode toggleArchitecture
All features follow existing patterns in the codebase:
These foundations enable:
Closes #363
Closes #364
Closes #365
Closes #366