Skip to content

Commit

Permalink
fix(mev): builders as vector of strings in privacy struct
Browse files Browse the repository at this point in the history
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 committed Jun 27, 2024
1 parent 097e21a commit d36388d
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 d36388d

Please sign in to comment.