Skip to content

Commit

Permalink
feat: Add more missing eth_callBundle arguments
Browse files Browse the repository at this point in the history
Previously alloy-rs#978 missed `coinbase` and `timeout`.
  • Loading branch information
ryanschneider committed Nov 19, 2024
1 parent 86812db commit 4c69b75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/rpc-types-mev/src/eth_calls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,15 @@ pub struct EthCallBundle {
pub block_number: u64,
/// Either a hex encoded number or a block tag for which state to base this simulation on
pub state_block_number: BlockNumberOrTag,
/// the coinbase to use for this bundle simulation
#[serde(default, skip_serializing_if = "Option::is_none")]
pub coinbase: Option<Address>,
/// the timestamp to use for this bundle simulation, in seconds since the unix epoch
#[serde(default, with = "alloy_serde::quantity::opt", skip_serializing_if = "Option::is_none")]
pub timestamp: Option<u64>,
/// the timeout to apply to execution of this bundle, in milliseconds
#[serde(default, with = "alloy_serde::quantity::opt", skip_serializing_if = "Option::is_none")]
pub timeout: Option<u64>,
/// gas limit of the block to use for this simulation
#[serde(default, with = "alloy_serde::quantity::opt", skip_serializing_if = "Option::is_none")]
pub gas_limit: Option<u64>,
Expand Down

0 comments on commit 4c69b75

Please sign in to comment.