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 prague engine types #557

Merged
merged 5 commits into from
Apr 17, 2024
Merged

feat: add prague engine types #557

merged 5 commits into from
Apr 17, 2024

Conversation

mattsse
Copy link
Contributor

@mattsse mattsse commented Apr 17, 2024

adds payload v4 type for https://github.com/ethereum/execution-apis/blob/main/src/engine/prague.md#depositreceiptv1

also adds https://eips.ethereum.org/EIPS/eip-6110 Deposit type

This does not yet enable V4 as supported variant to the payload enum, this will follow once reth is ready for this

ref paradigmxyz/reth#7363

mattsse and others added 2 commits April 17, 2024 12:32
Co-authored-by: DaniPopes <57450786+DaniPopes@users.noreply.github.com>
Copy link
Member

@onbjerg onbjerg left a comment

Choose a reason for hiding this comment

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

just nits

crates/eips/src/eip6110.rs Outdated Show resolved Hide resolved
crates/rpc-types-engine/src/exit.rs Outdated Show resolved Hide resolved
Comment on lines +19 to +22
/// Deposit signature
pub signature: FixedBytes<96>,
/// Deposit index
#[serde(with = "alloy_serde::u64_hex")]
Copy link
Member

Choose a reason for hiding this comment

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

i assume these are exit sig/exit index?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

honestly no idea

index field
The index field may appear unnecessary but it is important information for deposit processing flow on the Consensus Layer.

not very helpful -.-

Copy link
Member

@onbjerg onbjerg Apr 17, 2024

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

in fact, a lot of the fields are not present in that doc.. is it out of date?

@onbjerg onbjerg added the enhancement New feature or request label Apr 17, 2024
mattsse and others added 2 commits April 17, 2024 12:48
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
Co-authored-by: Oliver Nordbjerg <onbjerg@users.noreply.github.com>
@mattsse mattsse merged commit 5c9371c into main Apr 17, 2024
18 checks passed
@mattsse mattsse deleted the matt/add-prague-engine-types branch April 17, 2024 11:09
ThreeHrSleep pushed a commit to ThreeHrSleep/alloy that referenced this pull request Apr 17, 2024
* 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>
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants