Skip to content

Commit

Permalink
Add operator fee to rpc l1 block (#420)
Browse files Browse the repository at this point in the history
<!--
Thank you for your Pull Request. Please provide a description above and
review
the requirements below.

Bug fixes and new features should include tests.

Contributors guide:
https://github.com/alloy-rs/core/blob/main/CONTRIBUTING.md

The contributors guide includes instructions for running rustfmt and
building the
documentation.
-->

<!-- ** Please select "Allow edits from maintainers" in the PR Options
** -->

## Motivation

We need to show operator fee new params in RPC receipts.

Close #419
Ref paradigmxyz/reth#14243

<!--
Explain the context and why you're making that change. What is the
problem
you're trying to solve? In some cases there is not a problem and this
can be
thought of as being the motivation for your change.
-->

## Solution

<!--
Summarize the solution and provide any necessary context needed to
understand
the code change.
-->

## PR Checklist

- [ ] Added Tests
- [ ] Added Documentation
- [ ] Breaking changes
  • Loading branch information
leruaa authored Feb 6, 2025
1 parent d5e41e5 commit 5f764f6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions crates/rpc-types/src/receipt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,16 @@ pub struct L1BlockInfo {
/// Always null prior to the Ecotone hardfork.
#[serde(default, skip_serializing_if = "Option::is_none", with = "alloy_serde::quantity::opt")]
pub l1_blob_base_fee_scalar: Option<u128>,
/// Operator fee scalar.
///
/// Always null prior to the Isthmus hardfork.
#[serde(default, skip_serializing_if = "Option::is_none", with = "alloy_serde::quantity::opt")]
pub operator_fee_scalar: Option<u128>,
/// Operator fee constant.
///
/// Always null prior to the Isthmus hardfork.
#[serde(default, skip_serializing_if = "Option::is_none", with = "alloy_serde::quantity::opt")]
pub operator_fee_constant: Option<u128>,
}

impl Eq for L1BlockInfo {}
Expand Down

0 comments on commit 5f764f6

Please sign in to comment.