Skip to content

Commit 824fd99

Browse files
DaniPopesgrandizzy
andauthored
feat: add Sourcify trace identifier (#11917)
* wip * unify * update overriding * logs, config * chore: more logs, cache None responses * chore: clippy --------- Co-authored-by: grandizzy <[email protected]>
1 parent 11edbc8 commit 824fd99

File tree

9 files changed

+504
-301
lines changed

9 files changed

+504
-301
lines changed

Cargo.lock

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

crates/cast/src/debug.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ pub(crate) async fn handle_traces(
5656
.with_labels(labels.chain(config_labels))
5757
.with_signature_identifier(SignaturesIdentifier::from_config(config)?)
5858
.with_label_disabled(disable_label);
59-
let mut identifier = TraceIdentifiers::new().with_etherscan(config, chain)?;
59+
let mut identifier = TraceIdentifiers::new().with_external(config, chain)?;
6060
if let Some(contracts) = &known_contracts {
6161
builder = builder.with_known_contracts(contracts);
6262
identifier = identifier.with_local_and_bytecodes(contracts, contracts_bytecode);
@@ -69,7 +69,7 @@ pub(crate) async fn handle_traces(
6969
}
7070

7171
if decode_internal || debug {
72-
if let Some(ref etherscan_identifier) = identifier.etherscan {
72+
if let Some(ref etherscan_identifier) = identifier.external {
7373
sources.merge(etherscan_identifier.get_compiled_contracts().await?);
7474
}
7575

crates/chisel/src/dispatcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl ChiselDispatcher {
167167
)?)
168168
.build();
169169

170-
let mut identifier = TraceIdentifiers::new().with_etherscan(
170+
let mut identifier = TraceIdentifiers::new().with_external(
171171
&session_config.foundry_config,
172172
session_config.evm_opts.get_remote_chain_id().await,
173173
)?;

crates/evm/traces/Cargo.toml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,21 @@ alloy-primitives = { workspace = true, features = [
3232
alloy-sol-types.workspace = true
3333
revm-inspectors.workspace = true
3434

35+
async-trait.workspace = true
3536
eyre.workspace = true
3637
futures.workspace = true
3738
itertools.workspace = true
39+
memchr.workspace = true
40+
rayon.workspace = true
41+
reqwest.workspace = true
42+
revm.workspace = true
43+
serde_json = { workspace = true, features = ["raw_value"] }
3844
serde.workspace = true
39-
serde_json.workspace = true
45+
solar.workspace = true
46+
tempfile.workspace = true
4047
tokio = { workspace = true, features = ["time", "macros"] }
4148
tracing.workspace = true
42-
tempfile.workspace = true
43-
rayon.workspace = true
44-
solar.workspace = true
45-
revm.workspace = true
4649
yansi.workspace = true
47-
memchr.workspace = true
4850

4951
[dev-dependencies]
5052
tempfile.workspace = true

crates/evm/traces/src/identifier/etherscan.rs

Lines changed: 0 additions & 278 deletions
This file was deleted.

0 commit comments

Comments
 (0)