Open
Conversation
capossele
commented
Feb 24, 2026
Contributor
Author
There was a problem hiding this comment.
TODO: in a follow up PR, these structs should be merged with the indexer one, to avoid code repetition and desync risks (already happening for the aggregation one)
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.
Adds key rotation support to the order generator, allowing it to cycle through a set of derived wallet addresses at a configurable interval. This prevents long-running order activity from being easily linked to a single address.
derivation.rs): BIP-39/BIP-32 key derivation from a mnemonic, producing a funding key (index 0) and N rotation keys (indices 1..N)indexer.rs,indexer_client.rs): Tracks open requests per address to determine when it's safe to rotate (i.e., no pending requests)rotation.rs,main.rs): Orchestrates the rotation cycle, waits for outstanding requests to settle, sweeps funds back to the funding key, then activates the next keyorder-generator.ts,index.ts): Updates Pulumi infra to wire up the new mnemonic/rotation config;