Skip to content

Commit

Permalink
fix: builders as vector of strings in privacy (#48)
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 refer to on this page

<https://github.com/flashbots/dowg/blob/main/builder-registrations.json>
  • Loading branch information
igorline authored Jun 27, 2024
1 parent d998465 commit bef9c3b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/mev-share-rpc-api/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,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 bef9c3b

Please sign in to comment.