Skip to content

Commit 1d644e0

Browse files
committed
feat(op-angstrom): make testing-tools compile again
1 parent f803c7e commit 1d644e0

File tree

6 files changed

+29
-23
lines changed

6 files changed

+29
-23
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,3 +214,9 @@ uniswap-v4 = { path = "./crates/uniswap-v4/" }
214214
uniswap_v3_math = { git = "https://github.com/SorellaLabs/v3-math", branch = "main" }
215215
url = "2"
216216
validation = { path = "./crates/validation/" }
217+
218+
# OP-stack support
219+
reth-optimism-chainspec = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
220+
reth-optimism-cli = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
221+
reth-optimism-node = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
222+
reth-optimism-primitives = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }

bin/op-angstrom/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,10 @@ url.workspace = true
4646
validation.workspace = true
4747

4848
# OP-stack support
49-
reth-optimism-chainspec = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
50-
reth-optimism-cli = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
51-
reth-optimism-node = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
52-
reth-optimism-primitives = { git = "https://github.com/paradigmxyz/reth", version = "1.6.0", tag = "v1.6.0" }
49+
reth-optimism-chainspec.workspace = true
50+
reth-optimism-cli.workspace = true
51+
reth-optimism-node.workspace = true
52+
reth-optimism-primitives.workspace = true
5353

5454
[target.'cfg(unix)'.dependencies]
5555
tikv-jemallocator = { version = "0.6.0", optional = true }

testing-tools/src/controllers/strom/harness.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pub async fn initialize_strom_components_at_block<Provider: WithWalletProvider>(
202202
Box::pin(eth_event_rx_stream) as Pin<Box<dyn Stream<Item = EthEvent> + Send + Sync>>;
203203

204204
// Takes updates that are generally provided by EthDataCleanser
205-
let uniswap_pool_manager = configure_uniswap_manager::<_, DEFAULT_TICKS>(
205+
let uniswap_pool_manager = configure_uniswap_manager::<_, _, DEFAULT_TICKS>(
206206
provider.rpc_provider().into(),
207207
mock_canon.subscribe_to_canonical_state(),
208208
uniswap_registry,

testing-tools/src/controllers/strom/internals.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use std::{
99
use alloy::{primitives::Address, providers::Provider, signers::local::PrivateKeySigner};
1010
use alloy_rpc_types::BlockId;
1111
use angstrom::components::StromHandles;
12-
use angstrom_amm_quoter::{QuoterHandle, QuoterManager};
12+
use angstrom_amm_quoter::{ConsensusQuoterManager, QuoterHandle};
1313
use angstrom_eth::{
1414
handle::Eth,
1515
manager::{EthDataCleanser, EthEvent}
@@ -183,7 +183,7 @@ impl<P: WithWalletProvider> AngstromNodeInternals<P> {
183183
let network_stream = Box::pin(eth_handle.subscribe_network())
184184
as Pin<Box<dyn Stream<Item = EthEvent> + Send + Sync>>;
185185

186-
let uniswap_pool_manager = configure_uniswap_manager::<_, DEFAULT_TICKS>(
186+
let uniswap_pool_manager = configure_uniswap_manager::<_, _, DEFAULT_TICKS>(
187187
state_provider.rpc_provider().into(),
188188
eth_handle.subscribe_cannon_state_notifications().await,
189189
uniswap_registry.clone(),
@@ -338,7 +338,7 @@ impl<P: WithWalletProvider> AngstromNodeInternals<P> {
338338
);
339339

340340
// spin up amm quoter
341-
let amm = QuoterManager::new(
341+
let amm = ConsensusQuoterManager::new(
342342
block_sync.clone(),
343343
order_storage.clone(),
344344
strom_handles.quoter_rx,

testing-tools/src/replay/runner.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use alloy_primitives::aliases::I24;
1010
use alloy_rpc_types::{BlockId, BlockNumberOrTag, Filter};
1111
use alloy_sol_types::SolEvent;
1212
use angstrom::components::initialize_strom_handles;
13-
use angstrom_amm_quoter::{QuoterHandle, QuoterManager};
13+
use angstrom_amm_quoter::{ConsensusQuoterManager, QuoterHandle};
1414
use angstrom_eth::{
1515
handle::Eth,
1616
manager::{EthDataCleanser, EthEvent}
@@ -277,7 +277,7 @@ impl ReplayRunner {
277277
let network_stream = Box::pin(eth_handle.subscribe_network())
278278
as Pin<Box<dyn Stream<Item = EthEvent> + Send + Sync>>;
279279

280-
let uniswap_pool_manager = configure_uniswap_manager::<_, 50>(
280+
let uniswap_pool_manager = configure_uniswap_manager::<_, _, 50>(
281281
rpc.clone().into(),
282282
eth_handle.subscribe_cannon_state_notifications().await,
283283
uniswap_registry.clone(),
@@ -445,7 +445,7 @@ impl ReplayRunner {
445445
let consensus_client = ConsensusHandler(strom_handles.consensus_tx_rpc.clone());
446446

447447
// spin up amm quoter
448-
let amm = QuoterManager::new(
448+
let amm = ConsensusQuoterManager::new(
449449
global_block_sync.clone(),
450450
order_storage.clone(),
451451
strom_handles.quoter_rx,

0 commit comments

Comments
 (0)