Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

Commit 98aad6c

Browse files
committed
align around zenith naming instead of signet
1 parent d9a02b6 commit 98aad6c

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/bundle.rs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,32 @@ use alloy_primitives::{Address, B256, U256};
66

77
use crate::SignedOrder;
88

9-
/// Wraps a flashbots style EthSendBundle with host fills to make a Signet compatible bundle
9+
/// Wraps a flashbots style EthSendBundle with host fills to make a Zenith compatible bundle
1010
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
1111
#[serde(rename_all = "camelCase")]
12-
pub struct SignetEthBundle {
12+
pub struct ZenithEthBundle {
1313
/// The bundle of transactions to simulate. Same structure as a Flashbots [EthSendBundle] bundle.
1414
/// see <https://github.com/alloy-rs/alloy/blob/main/crates/rpc-types-mev/src/eth_calls.rs#L121-L139>
1515
#[serde(flatten)]
1616
pub bundle: EthSendBundle,
1717
/// Host fills to be applied with the bundle, represented as a signed permit2 order.
18-
/// TODO: Link to docs
1918
pub host_fills: Option<SignedOrder>,
2019
}
2120

22-
/// Response for `signet_sendBundle`
21+
/// Response for `zenith_sendBundle`
2322
#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize, Deserialize)]
2423
#[serde(rename_all = "camelCase")]
25-
pub struct SignetEthBundleResponse {
24+
pub struct ZenithEthBundleResponse {
2625
/// The bundle hash of the sent bundle.
2726
///
2827
/// This is calculated as keccak256(tx_hashes) where tx_hashes are the concatenated transaction hashes.
2928
pub bundle_hash: B256,
3029
}
3130

32-
/// Bundle of transactions for `signet_callBundle`
33-
///
34-
/// TODO: Link to docs.
31+
/// Bundle of transactions for `zenith_callBundle`
3532
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
3633
#[serde(rename_all = "camelCase")]
37-
pub struct SignetCallBundle {
34+
pub struct ZenithCallBundle {
3835
/// The bundle of transactions to simulate. Same structure as a Flashbots [EthCallBundle] bundle.
3936
/// see <https://github.com/alloy-rs/alloy/blob/main/crates/rpc-types-mev/src/eth_calls.rs#L13-L33>
4037
#[serde(flatten)]
@@ -44,10 +41,10 @@ pub struct SignetCallBundle {
4441
pub host_fills: BTreeMap<Address, BTreeMap<Address, U256>>,
4542
}
4643

47-
/// Response for `signet_callBundle`
44+
/// Response for `zenith_callBundle`
4845
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize, Default)]
4946
#[serde(rename_all = "camelCase")]
50-
pub struct SignetCallBundleResponse {
47+
pub struct ZenithCallBundleResponse {
5148
/// The flattened "vanilla" response which comes from `eth_callBundle`
5249
#[serde(flatten)]
5350
pub response: EthCallBundleResponse,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ pub use orders::{AggregateOrders, SignedOrder};
2424

2525
mod bundle;
2626
pub use bundle::{
27-
SignetCallBundle, SignetCallBundleResponse, SignetEthBundle, SignetEthBundleResponse,
27+
ZenithCallBundle, ZenithCallBundleResponse, ZenithEthBundle, ZenithEthBundleResponse,
2828
};
2929

3030
mod req;

0 commit comments

Comments
 (0)