Skip to content

Fix Privacy Builders field datatype to Vector of String#5

Closed
igorline wants to merge 1 commit intoleruaa:mainfrom
igorline:builder-strings
Closed

Fix Privacy Builders field datatype to Vector of String#5
igorline wants to merge 1 commit intoleruaa:mainfrom
igorline:builder-strings

Conversation

@igorline
Copy link
Copy Markdown
Contributor

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

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
@leruaa
Copy link
Copy Markdown
Owner

leruaa commented Jun 27, 2024

Hmmm looks like you are right, according to the specs builders, should be a Vec<String>...

But the confusing part is that it's a Vec<Address> everywhere:

mev-share-rs: https://github.com/paradigmxyz/mev-share-rs/blob/d998465221dade7bdd3009f422769da4686cb543/crates/mev-share-rpc-api/src/types.rs#L127

alloy: https://github.com/alloy-rs/alloy/blob/60cd429bd036c16f1e1f23ec7950689ad9819c76/crates/rpc-types-mev/src/common.rs#L59

reth: https://github.com/paradigmxyz/reth/blob/9542f3bcf081f1fd171071cfdd66c545306f5ce4/crates/rpc/rpc-types/src/mev.rs#L135

Anyway, I was planning to migrate RPC types to alloy ones (see #2), so I'm sorry to say I don't think I will merge this.

To conclude, I think it would be interesting to have this fixed in alloy. Do you mind open an issue? If you don't have time I will do it.

@igorline
Copy link
Copy Markdown
Contributor Author

Oh, I see. Will be opening PRs to alloy, thanks for pointing out

@igorline igorline closed this Jun 27, 2024
@igorline
Copy link
Copy Markdown
Contributor Author

Added PR to alloy alloy-rs/alloy#983 and mev-share-rs paradigmxyz/mev-share-rs#48

Reth seems to be migrating to alloy rpc-types-mev anyway paradigmxyz/reth#9108

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants