Skip to content
This repository was archived by the owner on Apr 18, 2025. It is now read-only.

Move external-tracer from bus-mapping to a new crate only for test #84

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ members = [
"geth-utils",
"integration-tests",
"circuit-benchmarks",
"eth-types"
"eth-types",
"external-tracer"
]

[patch.crates-io]
Expand Down
6 changes: 3 additions & 3 deletions bus-mapping/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ authors = ["CPerezz <c.perezbaro@gmail.com>"]
eth-types = { path = "../eth-types" }
ethers-core = "0.6"
ethers-providers = "0.6"
geth-utils = { path = "../geth-utils" }
itertools = "0.10"
lazy_static = "1.4"
log = "0.4.14"
Expand All @@ -17,6 +16,7 @@ serde = {version = "1.0.130", features = ["derive"] }
serde_json = "1.0.66"

[dev-dependencies]
url = "2.2.2"
tokio = { version = "1.13", features = ["macros"] }
external-tracer = { path = "../external-tracer" }
pretty_assertions = "1.0.0"
tokio = { version = "1.13", features = ["macros"] }
url = "2.2.2"
2 changes: 1 addition & 1 deletion bus-mapping/src/circuit_input_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
//! types from geth / web3 and outputs the circuit inputs.
use crate::evm::opcodes::gen_associated_ops;
use crate::exec_trace::OperationRef;
use crate::external_tracer::BlockConstants;
use crate::geth_errors::*;
use crate::operation::container::OperationContainer;
use crate::operation::{MemoryOp, Op, Operation, RWCounter, StackOp, RW};
Expand All @@ -12,6 +11,7 @@ use core::fmt::Debug;
use eth_types::evm_types::{
Gas, GasCost, MemoryAddress, OpcodeId, ProgramCounter, StackAddress,
};
use eth_types::geth_types::BlockConstants;
use eth_types::{
self, Address, ChainConstants, GethExecStep, GethExecTrace, Hash,
ToAddress, ToBigEndian, Word,
Expand Down
7 changes: 3 additions & 4 deletions bus-mapping/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
//! self, Address, Word, Hash, U64, GethExecTrace, GethExecStep, ChainConstants
//! };
//! use eth_types::evm_types::Gas;
//! use eth_types::geth_types::BlockConstants;
//! use bus_mapping::circuit_input_builder::CircuitInputBuilder;
//! use bus_mapping::external_tracer::BlockConstants;
//! use pairing::arithmetic::FieldExt;
//!
//! let input_trace = r#"
Expand Down Expand Up @@ -112,8 +112,8 @@
//! };
//!
//! // We use some mock data as context for the trace
//! let eth_block = mock::new_block();
//! let eth_tx = mock::new_tx(&eth_block);
//! let eth_block = external_tracer::new_block();
//! let eth_tx = external_tracer::new_tx(&eth_block);
//! let mut sdb = StateDB::new();
//! sdb.set_account(&Address::zero(), state_db::Account::zero());
//!
Expand Down Expand Up @@ -220,7 +220,6 @@
extern crate alloc;
pub mod evm;
pub mod exec_trace;
pub mod external_tracer;
pub mod operation;
#[macro_use]
pub mod bytecode;
Expand Down
Loading