@@ -6,35 +6,32 @@ use alloy_primitives::{Address, B256, U256};
6
6
7
7
use crate :: SignedOrder ;
8
8
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
10
10
#[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
11
11
#[ serde( rename_all = "camelCase" ) ]
12
- pub struct SignetEthBundle {
12
+ pub struct ZenithEthBundle {
13
13
/// The bundle of transactions to simulate. Same structure as a Flashbots [EthSendBundle] bundle.
14
14
/// see <https://github.com/alloy-rs/alloy/blob/main/crates/rpc-types-mev/src/eth_calls.rs#L121-L139>
15
15
#[ serde( flatten) ]
16
16
pub bundle : EthSendBundle ,
17
17
/// Host fills to be applied with the bundle, represented as a signed permit2 order.
18
- /// TODO: Link to docs
19
18
pub host_fills : Option < SignedOrder > ,
20
19
}
21
20
22
- /// Response for `signet_sendBundle `
21
+ /// Response for `zenith_sendBundle `
23
22
#[ derive( Debug , Clone , Copy , PartialEq , Eq , Serialize , Deserialize ) ]
24
23
#[ serde( rename_all = "camelCase" ) ]
25
- pub struct SignetEthBundleResponse {
24
+ pub struct ZenithEthBundleResponse {
26
25
/// The bundle hash of the sent bundle.
27
26
///
28
27
/// This is calculated as keccak256(tx_hashes) where tx_hashes are the concatenated transaction hashes.
29
28
pub bundle_hash : B256 ,
30
29
}
31
30
32
- /// Bundle of transactions for `signet_callBundle`
33
- ///
34
- /// TODO: Link to docs.
31
+ /// Bundle of transactions for `zenith_callBundle`
35
32
#[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize ) ]
36
33
#[ serde( rename_all = "camelCase" ) ]
37
- pub struct SignetCallBundle {
34
+ pub struct ZenithCallBundle {
38
35
/// The bundle of transactions to simulate. Same structure as a Flashbots [EthCallBundle] bundle.
39
36
/// see <https://github.com/alloy-rs/alloy/blob/main/crates/rpc-types-mev/src/eth_calls.rs#L13-L33>
40
37
#[ serde( flatten) ]
@@ -44,10 +41,10 @@ pub struct SignetCallBundle {
44
41
pub host_fills : BTreeMap < Address , BTreeMap < Address , U256 > > ,
45
42
}
46
43
47
- /// Response for `signet_callBundle `
44
+ /// Response for `zenith_callBundle `
48
45
#[ derive( Debug , Clone , PartialEq , Eq , Serialize , Deserialize , Default ) ]
49
46
#[ serde( rename_all = "camelCase" ) ]
50
- pub struct SignetCallBundleResponse {
47
+ pub struct ZenithCallBundleResponse {
51
48
/// The flattened "vanilla" response which comes from `eth_callBundle`
52
49
#[ serde( flatten) ]
53
50
pub response : EthCallBundleResponse ,
0 commit comments