Skip to content

Commit

Permalink
Add debug trait + format
Browse files Browse the repository at this point in the history
  • Loading branch information
edisontim committed Nov 7, 2024
1 parent cf378ca commit 9b1729e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 20 deletions.
4 changes: 1 addition & 3 deletions crates/dojo/test-utils/src/sequencer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ use jsonrpsee::core::Error;
use katana_core::backend::Backend;
use katana_core::constants::DEFAULT_SEQUENCER_ADDRESS;
use katana_executor::implementation::blockifier::BlockifierFactory;
use katana_node::config::dev::DevConfig;
use katana_node::config::rpc::{ApiKind, RpcConfig, DEFAULT_RPC_ADDR, DEFAULT_RPC_MAX_CONNECTIONS};
use katana_node::config::rpc::ApiKind;
pub use katana_node::config::*;
use katana_node::LaunchedNode;
use katana_primitives::chain::ChainId;
use katana_primitives::chain_spec::ChainSpec;
use starknet::accounts::{ExecutionEncoding, SingleOwnerAccount};
use starknet::core::chain_id;
use starknet::core::types::{BlockId, BlockTag, Felt};
Expand Down
2 changes: 1 addition & 1 deletion crates/katana/core/src/constants.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ pub const DEFAULT_STRK_L1_GAS_PRICE: u128 = 100 * u128::pow(10, 9); // Given in
pub const DEFAULT_ETH_L1_DATA_GAS_PRICE: u128 = u128::pow(10, 6); // Given in units of Wei.
pub const DEFAULT_STRK_L1_DATA_GAS_PRICE: u128 = u128::pow(10, 9); // Given in units of STRK.

pub const DEFAULT_SEQUENCER_ADDRESS: ContractAddress = ContractAddress(felt!("0x1"));
pub const DEFAULT_SEQUENCER_ADDRESS: ContractAddress = ContractAddress(felt!("0x1"));
29 changes: 13 additions & 16 deletions crates/katana/node/src/config/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,24 @@ pub mod fork;
pub mod metrics;
pub mod rpc;

use std::{
collections::{BTreeMap, HashSet},
net::{IpAddr, SocketAddr},
path::PathBuf,
str::FromStr,
};
use std::collections::{BTreeMap, HashSet};
use std::net::{IpAddr, SocketAddr};
use std::path::PathBuf;
use std::str::FromStr;

use db::DbConfig;
use dev::{DevConfig, FixedL1GasPriceConfig};
use execution::ExecutionConfig;
use fork::ForkingConfig;
use katana_core::service::messaging::MessagingConfig;
use katana_primitives::{
block::{BlockHash, BlockHashOrNumber, BlockNumber, GasPrices},
chain::ChainId,
chain_spec::ChainSpec,
class::ClassHash,
genesis::{allocation::GenesisAllocation, GenesisClass},
version::ProtocolVersion,
ContractAddress, Felt,
};
use katana_primitives::block::{BlockHash, BlockHashOrNumber, BlockNumber, GasPrices};
use katana_primitives::chain::ChainId;
use katana_primitives::chain_spec::ChainSpec;
use katana_primitives::class::ClassHash;
use katana_primitives::genesis::allocation::GenesisAllocation;
use katana_primitives::genesis::GenesisClass;
use katana_primitives::version::ProtocolVersion;
use katana_primitives::{ContractAddress, Felt};
use metrics::MetricsConfig;
use rpc::{ApiKind, RpcConfig};
use starknet::providers::Url;
Expand Down Expand Up @@ -75,7 +72,7 @@ pub struct SequencingConfig {
pub no_mining: bool,
}

#[derive(Default)]
#[derive(Default, Debug)]
pub struct ConfigBuilder {
config: Config,
}
Expand Down

0 comments on commit 9b1729e

Please sign in to comment.