feat(types): add BloxrouteBackrunConfig on Message#209
Merged
Conversation
Add BloxrouteBackrunConfig (the per-tx BackRunMe profit split) as a typed field on Message, mirroring FlashbotMevshareEvent, plus ParseBloxrouteBackrunConfig (the 5-element arbOnlyMEV array parser) + Validate + BlxrSplit. mempool-explorer parses the stream array once and attaches it here, so consumers read Message.BloxrouteBackrunConfig directly (nil when absent) instead of re-unmarshalling raw event bytes. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
07a7306 to
9b8f784
Compare
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
bloxroute's submit_arb_only_bundle requires coinbase_profit (the wei paid to the BackRunMe contract). Add a coinbaseProfit *big.Int param to IBackrunSender.SendBackrunBundle; the BloxrouteBackrunmeSender sets it on the request params (JSON number, omitempty), the other senders ignore it. Test call sites pass nil. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
thanhpp
approved these changes
Jun 16, 2026
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.
What
Adds
BloxrouteBackrunConfig(the per-tx BackRunMe profit-split config) as a typed field onMessage, plus the array parser + validators:Message.BloxrouteBackrunConfig *BloxrouteBackrunConfig(json:"bloxroute_backrun_config,omitempty") — mirrorsFlashbotMevshareEvent, set only for bloxroute arbOnlyMEV txs, nil otherwiseBloxrouteBackrunConfig{ContractSplit, TargetRewardAddress, TargetSplit, BlxrRewardAddress, SearcherSplit}ParseBloxrouteBackrunConfig([]string)— the 5-element arbOnlyMEV array parser[contractSplit, targetRewardAddress, targetSplit, blxrRewardAddress, searcherSplit]Validate()(splits non-negative, sum ≤ 100, valid non-zero reward addresses) +BlxrSplit()(100 - contract - target - searcher)Why
bloxroute's arbOnlyMEV stream carries a per-tx
backrunConfig. Today mempool-explorer parses it but drops it (it never reachesMessage), so reserve-taker re-unmarshals the raw event bytes with array/object + camel/snake switch cases to recover it — effectively dead code, since the producer never writes the field.Putting the typed config on
Messagelets mempool-explorer parse the stream array once and attach it, and lets consumers (reserve-taker) readMessage.BloxrouteBackrunConfigdirectly (nil if absent) — no defensive re-parsing.Consumers: mempool-explorer (parses + sets), reserve-taker (reads) — separate PRs pinning this commit.
🤖 Generated with Claude Code