feat: Implement ProtocolApprovalsManager

I decided to make ProtocolApprovalsManager public method sync not to propagate asynceness early on onto the rest of the code. If later we decide that it is better to have this async, it should be easier to make that change than the opposite one.

--- don't change below this line ---
ENG-4064 Took 24 minutes
This commit is contained in:
Diana Carvalho
2025-01-20 13:12:31 +00:00
parent 8a709b3033
commit cbf2b4de5a
4 changed files with 170 additions and 37 deletions

View File

@@ -14,11 +14,14 @@ serde_json = "1.0.135"
thiserror = "1.0.69"
tokio = { version = "1.38.0", features = ["full"] }
alloy = { version = "0.5.4", features = ["providers"], optional = true }
alloy = { version = "0.5.4", features = ["providers", "rpc-types-eth"], optional = true }
alloy-sol-types = { version = "0.8.14", optional = true }
alloy-primitives = { version = "0.8.9", optional = true }
tycho-core = { git = "https://github.com/propeller-heads/tycho-indexer.git", package = "tycho-core", tag = "0.46.0" }
[dev-dependencies]
rstest = "0.24.0"
[features]
default = ["evm"]
evm = ["alloy", "alloy-sol-types", "alloy-primitives"]