Skip to content

Commit

Permalink
fix: msrv
Browse files Browse the repository at this point in the history
  • Loading branch information
refcell committed Sep 18, 2024
1 parent 718d915 commit f762fad
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: "1.80" # MSRV
toolchain: "1.81" # MSRV
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[workspace.package]
version = "0.0.0"
edition = "2021"
rust-version = "1.80"
rust-version = "1.81"
authors = []
license = "MIT OR Apache-2.0"
repository = "https://github.com/paradigmxyz/op-rs"
Expand Down
2 changes: 1 addition & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
msrv = "1.80"
msrv = "1.81"
4 changes: 2 additions & 2 deletions crates/kona-providers/src/chain_provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ impl InMemoryChainProvider {
self.0.write().commit(chain);
}

/// Inserts the L2 genesis [BlockID] into the provider.
/// Inserts the L2 genesis [BlockNumHash] into the provider.
pub fn insert_l2_genesis_block(&mut self, block: BlockNumHash) {
self.0.write().insert_l2_genesis_block(block);
}
Expand Down Expand Up @@ -126,7 +126,7 @@ impl InMemoryChainProviderInner {
}
}

/// Inserts the L2 genesis [BlockID] into the provider.
/// Inserts the L2 genesis [BlockNumHash] into the provider.
fn insert_l2_genesis_block(&mut self, block: BlockNumHash) {
self.hash_to_block_info.insert(
block.hash,
Expand Down
2 changes: 1 addition & 1 deletion crates/rollup/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ type L1AttributesQueue<CP, BP, L2CP> = AttributesQueue<
///
/// This pipeline is a derivation pipeline that takes the outputs of the [FrameQueue] stage
/// and transforms them into
/// [OptimismPayloadAttributes](alloy::rpc::types::engine::OptimismPayloadAttributes).
/// [OptimismPayloadAttributes](op_alloy_rpc_types_engine::OptimismPayloadAttributes).
pub type RollupPipeline<CP, BP> =
DerivationPipeline<L1AttributesQueue<CP, BP, AlloyL2ChainProvider>, AlloyL2ChainProvider>;

Expand Down
6 changes: 3 additions & 3 deletions crates/rollup/src/validator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ use url::Url;
/// A trait that defines the interface for validating newly derived L2 attributes.
#[async_trait]
pub trait AttributesValidator: Debug + Send {
/// Validates the given [`L2AttributesWithParent`] and returns true
/// Validates the given [`OptimismAttributesWithParent`] and returns true
/// if the attributes are valid, false otherwise.
async fn validate(&self, attributes: &OptimismAttributesWithParent) -> Result<bool>;
}

/// TrustedValidator
///
/// Validates the [`L2AttributesWithParent`] by fetching the associated L2 block from
/// Validates the [`OptimismAttributesWithParent`] by fetching the associated L2 block from
/// a trusted L2 RPC and constructing the L2 Attributes from the block.
#[derive(Debug, Clone)]
pub struct TrustedValidator {
Expand Down Expand Up @@ -128,7 +128,7 @@ impl AttributesValidator for TrustedValidator {

/// EngineApiValidator
///
/// Validates the [`L2AttributesWithParent`] by sending the attributes to an L2 engine API.
/// Validates the [`OptimismAttributesWithParent`] by sending the attributes to an L2 engine API.
/// The engine API will return a `VALID` or `INVALID` response.
#[derive(Debug, Clone)]
pub struct EngineApiValidator {
Expand Down

0 comments on commit f762fad

Please sign in to comment.