Skip to content

Commit e0cf602

Browse files
committed
wip
1 parent 218a69a commit e0cf602

File tree

6 files changed

+12
-10
lines changed

6 files changed

+12
-10
lines changed

Cargo.lock

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

crates/node/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ katana-db.workspace = true
1212
katana-executor.workspace = true
1313
katana-gateway-server.workspace = true
1414
katana-gateway-client.workspace = true
15+
katana-gateway-types.workspace = true
1516
katana-gas-price-oracle.workspace = true
1617
katana-messaging.workspace = true
1718
katana-metrics.workspace = true

crates/node/src/full/pending/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
use std::sync::Arc;
22
use std::time::Duration;
33

4-
use katana_gateway::client::Client;
5-
use katana_gateway::types::{ConfirmedTransaction, ErrorCode, PreConfirmedBlock, StateDiff};
4+
use katana_gateway_client::Client;
5+
use katana_gateway_types::{ConfirmedTransaction, ErrorCode, PreConfirmedBlock, StateDiff};
66
use katana_pipeline::PipelineBlockSubscription;
77
use katana_primitives::block::BlockNumber;
88
use katana_primitives::state::StateUpdates;
@@ -162,7 +162,7 @@ impl PreconfBlockWatcher {
162162
// this could either be because the latest block is still not synced to the
163163
// chain's tip, in which case we just skip to the next
164164
// iteration.
165-
Err(katana_gateway::client::Error::Sequencer(error))
165+
Err(katana_gateway_client::Error::Sequencer(error))
166166
if error.code == ErrorCode::BlockNotFound =>
167167
{
168168
continue

crates/node/src/full/pending/provider.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::fmt::Debug;
22

3-
use katana_gateway::types::TxTryFromError;
3+
use katana_gateway_types::TxTryFromError;
44
use katana_primitives::block::{GasPrices, PartialHeader, PendingBlock};
55
use katana_primitives::transaction::TxWithHash;
66
use katana_primitives::Felt;

crates/node/src/full/pending/state.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
use katana_gateway::types::{ErrorCode, GatewayError};
1+
use katana_gateway_types::{ErrorCode, GatewayError};
22
use katana_primitives::block::BlockNumber;
33
use katana_primitives::class::{ClassHash, CompiledClassHash, ContractClass};
44
use katana_primitives::contract::{ContractAddress, Nonce, StorageKey, StorageValue};
@@ -13,7 +13,7 @@ pub struct PreconfStateProvider {
1313
pub base: Box<dyn StateProvider>,
1414
pub preconf_block_id: Option<BlockNumber>,
1515
pub preconf_state_updates: Option<StateUpdates>,
16-
pub gateway: katana_gateway::client::Client,
16+
pub gateway: katana_gateway_client::Client,
1717
}
1818

1919
impl StateProvider for PreconfStateProvider {
@@ -80,7 +80,7 @@ impl ContractClassProvider for PreconfStateProvider {
8080
let result = runtime::Builder::new_current_thread()
8181
.build()
8282
.unwrap()
83-
.block_on(self.gateway.get_class(hash, katana_gateway::types::BlockId::Pending));
83+
.block_on(self.gateway.get_class(hash, katana_gateway_types::BlockId::Pending));
8484

8585
match result {
8686
Ok(class) => {
@@ -91,7 +91,7 @@ impl ContractClassProvider for PreconfStateProvider {
9191
}
9292

9393
Err(error) => {
94-
if let katana_gateway::client::Error::Sequencer(GatewayError {
94+
if let katana_gateway_client::Error::Sequencer(GatewayError {
9595
code: ErrorCode::UndeclaredClass,
9696
..
9797
}) = error

crates/node/src/full/pool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ pub type FullNodePool =
1515
/// Any transaction validation is performed by the Starknet sequencer.
1616
#[derive(Debug)]
1717
pub struct GatewayProxyValidator {
18-
gateway_client: katana_gateway::client::Client,
18+
gateway_client: katana_gateway_client::Client,
1919
}
2020

2121
impl GatewayProxyValidator {
22-
pub fn new(gateway_client: katana_gateway::client::Client) -> Self {
22+
pub fn new(gateway_client: katana_gateway_client::Client) -> Self {
2323
Self { gateway_client }
2424
}
2525
}

0 commit comments

Comments
 (0)