Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add ClientVersionV1 #562

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

guha-rahul
Copy link
Contributor

Motivation

Solution

Added the type for ClientVersionV1 in a indentification.rs by adding a ClientCode enum that holds all the client code in 2 letter forms and ClientVersionV1 struct.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

@guha-rahul
Copy link
Contributor Author

@mattsse sorry for the inconvenience , i have made a pr from a different branch.

Copy link
Member

@mattsse mattsse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ty!

@mattsse mattsse changed the title added ClientVersionV1 feat: add ClientVersionV1 Apr 17, 2024
@mattsse mattsse merged commit 188c4f8 into alloy-rs:main Apr 17, 2024
18 checks passed
ThreeHrSleep pushed a commit to ThreeHrSleep/alloy that referenced this pull request Apr 17, 2024
* added ClientVersionV1

* touchups

* rustfmt

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
mattsse added a commit that referenced this pull request Apr 17, 2024
* Move BlockId type to alloy-eip

* suggested changes

* touchups

* chore: touchups

* fix: tmp fix for PendingTransactionBuilder::get_receipt (#558)

* feat: add prague engine types (#557)

* feat: add prague engine types

* Update crates/eips/src/eip6110.rs

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* clippy

* Update crates/eips/src/eip6110.rs

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>

* Update crates/rpc-types-engine/src/exit.rs

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>

---------

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>

* fix: add more generics to any and receipt with bloom (#559)

* fix: signer fills from if unset (#555)

* fix: override txtype during submission prep (#556)

* Use the same way to both serialize and deserialize `OptimismPayloadAttributes::gas_limit`. (#563)

* Use the same way to both serialize and deserialize `OptimismPayloadAttributes::gas_limit`.

I understand that `op-reth` only ever deserializes this structure.
My use case is to serialize this struct and pass it to `op-geth`. The latter expects it to be hex.

* rustfmt

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* feat: add ClientVersionV1 (#562)

* added ClientVersionV1

* touchups

* rustfmt

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* clippy

* use alloc

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Co-authored-by: James Prestwich <james@prestwi.ch>
Co-authored-by: Raman Hafiyatulin <r.gafiyatullin@me.com>
Co-authored-by: guha-rahul <52607971+guha-rahul@users.noreply.github.com>
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* added ClientVersionV1

* touchups

* rustfmt

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
ben186 pushed a commit to ben186/alloy that referenced this pull request Jul 27, 2024
* Move BlockId type to alloy-eip

* suggested changes

* touchups

* chore: touchups

* fix: tmp fix for PendingTransactionBuilder::get_receipt (alloy-rs#558)

* feat: add prague engine types (alloy-rs#557)

* feat: add prague engine types

* Update crates/eips/src/eip6110.rs

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>

* clippy

* Update crates/eips/src/eip6110.rs

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>

* Update crates/rpc-types-engine/src/exit.rs

Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>

---------

Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>

* fix: add more generics to any and receipt with bloom (alloy-rs#559)

* fix: signer fills from if unset (alloy-rs#555)

* fix: override txtype during submission prep (alloy-rs#556)

* Use the same way to both serialize and deserialize `OptimismPayloadAttributes::gas_limit`. (alloy-rs#563)

* Use the same way to both serialize and deserialize `OptimismPayloadAttributes::gas_limit`.

I understand that `op-reth` only ever deserializes this structure.
My use case is to serialize this struct and pass it to `op-geth`. The latter expects it to be hex.

* rustfmt

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* feat: add ClientVersionV1 (alloy-rs#562)

* added ClientVersionV1

* touchups

* rustfmt

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>

* clippy

* use alloc

---------

Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Arsenii Kulikov <klkvrr@gmail.com>
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Co-authored-by: James Prestwich <james@prestwi.ch>
Co-authored-by: Raman Hafiyatulin <r.gafiyatullin@me.com>
Co-authored-by: guha-rahul <52607971+guha-rahul@users.noreply.github.com>
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