Add a ResolverApi interface.

This commit adds a `ResolverApi` trait to the `format` crate that can be
implemented by any type that can act as a resolver. A resolver is able
to provide information on the chain state. This chain state could be
fresh or it could be cached (which is something that we will do in a
future PR).

This cleans up our crate graph so that `format` is not depending on the
node interactions crate for the `EthereumNode` trait.
This commit is contained in:
Omar Abdulla
2025-07-24 15:01:00 +03:00
parent df6ad1e9e2
commit 2aaf2f54c7
10 changed files with 68 additions and 87 deletions
Generated
+1 -1
View File
@@ -4016,7 +4016,6 @@ dependencies = [
"alloy-sol-types",
"anyhow",
"revive-dt-common",
"revive-dt-node-interaction",
"semver 1.0.26",
"serde",
"serde_json",
@@ -4031,6 +4030,7 @@ dependencies = [
"anyhow",
"revive-dt-common",
"revive-dt-config",
"revive-dt-format",
"revive-dt-node-interaction",
"serde",
"serde_json",