Skip to content

Commit af482e0

Browse files
block_number_index added to callBundle reference type (#1705)
* block_number_index added to callBundle reference type * update to transaction_index * update import * rustfmt * fix features --------- Co-authored-by: Matthias Seitz <[email protected]>
1 parent 01e0081 commit af482e0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

crates/rpc-types-mev/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ rustdoc-args = ["--cfg", "docsrs"]
1919
alloy-eips = { workspace = true, features = ["serde"] }
2020
alloy-primitives.workspace = true
2121
alloy-serde.workspace = true
22+
alloy-rpc-types-eth = { workspace = true, features = ["serde"] }
2223

2324
serde.workspace = true
2425
serde_json.workspace = true

crates/rpc-types-mev/src/eth_calls.rs

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ use crate::{u256_numeric_string, Privacy, Validity};
22

33
use alloy_eips::{eip2718::Encodable2718, BlockNumberOrTag};
44
use alloy_primitives::{keccak256, Address, Bytes, Keccak256, B256, U256};
5+
use alloy_rpc_types_eth::TransactionIndex;
56
use serde::{Deserialize, Serialize};
67

78
/// Bundle of transactions for `eth_callBundle`
@@ -18,6 +19,9 @@ pub struct EthCallBundle {
1819
pub block_number: u64,
1920
/// Either a hex encoded number or a block tag for which state to base this simulation on
2021
pub state_block_number: BlockNumberOrTag,
22+
/// Inclusive number of tx to replay in block. -1 means replay all
23+
#[serde(default, skip_serializing_if = "Option::is_none")]
24+
pub transaction_index: Option<TransactionIndex>,
2125
/// the coinbase to use for this bundle simulation
2226
#[serde(default, skip_serializing_if = "Option::is_none")]
2327
pub coinbase: Option<Address>,

0 commit comments

Comments
 (0)