alloy-rs / alloy

Transports, Middleware, and Networks for the Alloy project
https://alloy.rs
Apache License 2.0
667 stars 241 forks source link

feat: EIP-7685 requests helpers #1699

Closed klkvr closed 6 hours ago

klkvr commented 20 hours ago

Motivation

Adds constant DEPOSIT_REQUEST_TYPE similarly to https://github.com/alloy-rs/alloy/blob/eb8fb7133e19248b8ba3cda009b3f63deacce0c5/crates/eips/src/eip7002.rs#L18-L20 and https://github.com/alloy-rs/alloy/blob/eb8fb7133e19248b8ba3cda009b3f63deacce0c5/crates/eips/src/eip7251.rs#L15-L17

And a helper Requests::push_request_with_type which appends request data to the given request typ

Solution

PR Checklist