Skip to content

Commit 9907392

Browse files
committed
fix lint
1 parent a28b48e commit 9907392

File tree

4 files changed

+7
-32
lines changed

4 files changed

+7
-32
lines changed

Cargo.lock

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/wait.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
PORT=$(jq -r '.l2RollupPort' hostPort.json)
44

5-
for i in {1..20}
5+
for i in {1..150}
66
do
77
L2_NUMBER=$(curl -X POST localhost:$PORT -d '{"method":"optimism_syncStatus", "jsonrpc": "2.0", "id":1, "params":[]}' -H "Content-Type: application/json" | jq .result.finalized_l2.number)
88
echo $L2_NUMBER
9-
if [ $L2_NUMBER -gt 100 ]; then
9+
if [ $L2_NUMBER -gt 200 ]; then
1010
exit 0
1111
fi
1212
echo "waiting for L2 number to be greater than 100"

server/Cargo.toml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,16 @@ tracing-subscriber = { version = "0.3", features = ["fmt", "env-filter"] }
1616
axum = "0.7.9"
1717
log = "0.4.22"
1818
tokio = { version="1.41", features=["full"] }
19-
async-trait = "0.1"
2019

2120
# Kona
22-
kona-mpt = { workspace = true }
2321
kona-client = { workspace = true }
2422
kona-host = { workspace = true, features=["single"] }
2523
kona-proof = { workspace = true, features = ["std"] }
2624
kona-preimage = { workspace = true, features = ["std"] }
27-
kona-providers-alloy= { workspace = true }
28-
kona-protocol = { workspace = true, features = ["std", "serde"] }
2925
kona-genesis = { workspace = true, features = ["std", "serde"] }
3026

3127
# Alloy
32-
alloy-rlp = { workspace = true }
33-
alloy-eips = { workspace = true, features = ["kzg"] }
34-
alloy-provider = { workspace = true, features = ["reqwest"] }
35-
alloy-consensus = { workspace = true }
36-
alloy-transport = { workspace = true }
37-
alloy-rpc-types = { workspace = true, features = ["eth", "debug"] }
38-
alloy-rpc-client = { workspace = true}
3928
alloy-primitives = { workspace = true, features = ["map", "serde"] }
40-
alloy-transport-http = { workspace = true }
41-
42-
# OP Alloy
43-
op-alloy-rpc-types-engine = { workspace = true, features = ["serde"] }
4429

4530
# optimism derivation
4631
optimism-derivation = { git = "https://github.com/datachainlab/optimism-elc", branch = "feature/v0.1.0", default-features = false }

server/src/host/single/handler.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use crate::host::single::local_kv::LocalKeyValueStore;
55
use crate::host::single::trace::{encode_to_bytes, TracingKeyValueStore};
66
use alloy_primitives::B256;
77
use anyhow::Result;
8+
use kona_client::fpvm_evm::FpvmOpEvmFactory;
89
use kona_genesis::RollupConfig;
910
use kona_host::single::{SingleChainHintHandler, SingleChainHost};
1011
use kona_host::{MemoryKeyValueStore, OnlineHostBackend, PreimageServer, SplitKeyValueStore};
@@ -13,7 +14,6 @@ use kona_preimage::{
1314
};
1415
use kona_proof::HintType;
1516
use std::sync::Arc;
16-
use kona_client::fpvm_evm::FpvmOpEvmFactory;
1717
use tokio::sync::RwLock;
1818
use tokio::task;
1919

@@ -83,7 +83,10 @@ impl DerivationRequest {
8383
let client_task = task::spawn(Self::run_client_native(
8484
HintWriter::new(hint.client.clone()),
8585
OracleReader::new(preimage.client.clone()),
86-
FpvmOpEvmFactory::new(HintWriter::new(hint.client), OracleReader::new(preimage.client)),
86+
FpvmOpEvmFactory::new(
87+
HintWriter::new(hint.client),
88+
OracleReader::new(preimage.client),
89+
),
8790
));
8891

8992
let (_, client_result) = tokio::try_join!(server_task, client_task)?;

0 commit comments

Comments
 (0)