alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
654 stars 236 forks source link

feat: Add more missing eth_callBundle arguments #1667

Closed ryanschneider closed 2 days ago

ryanschneider commented 2 days ago

Motivation

Previously https://github.com/alloy-rs/alloy/pull/978 missed coinbase and timeout when adding the additional undocumented fields available on the actual node. I suspect this happened because the the initial versions of rpc-types-mev were based on Flashbots' public API docs for eth_callBundle, but the public options are actually only a subset of what's actually available on an actual node.

Solution

This simply adds the missing fields and their builder methods. I'll also make a follow-on PR to add functionality for them in reth.

PR Checklist