Skip to content

Commit

Permalink
Update builders to vector of strings in privacy struct (#983)
Browse files Browse the repository at this point in the history
fix(mev): builders as vector of strings in privacy struct

according to mev-share specification builders are specified by their
names which you can find on this page

https://github.com/flashbots/dowg/blob/main/builder-registrations.json
  • Loading branch information
igorline authored Jun 28, 2024
1 parent 3cc55de commit a2182f4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/rpc-types-mev/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,10 @@ pub struct Privacy {
/// Hints on what data should be shared about the bundle and its transactions
#[serde(skip_serializing_if = "Option::is_none")]
pub hints: Option<PrivacyHint>,
/// The addresses of the builders that should be allowed to see the bundle/transaction.
/// Names of the builders that should be allowed to see the bundle/transaction.
/// <https://github.com/flashbots/dowg/blob/main/builder-registrations.json>
#[serde(skip_serializing_if = "Option::is_none")]
pub builders: Option<Vec<Address>>,
pub builders: Option<Vec<String>>,
}

/// Hints on what data should be shared about the bundle and its transactions
Expand Down

0 comments on commit a2182f4

Please sign in to comment.