From bef9c3b8c64fa5742ccb59a9185068db07413849 Mon Sep 17 00:00:00 2001 From: Igor Line Date: Thu, 27 Jun 2024 17:10:57 +0200 Subject: [PATCH] fix: builders as vector of strings in privacy (#48) according to mev-share specification builders are specified by their names which you can refer to on this page --- crates/mev-share-rpc-api/src/types.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crates/mev-share-rpc-api/src/types.rs b/crates/mev-share-rpc-api/src/types.rs index 93e97b8..3dd28a0 100644 --- a/crates/mev-share-rpc-api/src/types.rs +++ b/crates/mev-share-rpc-api/src/types.rs @@ -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, - /// 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>, + pub builders: Option>, } /// Hints on what data should be shared about the bundle and its transactions