From c1966cca3869c5ac785f5fbee866de250cd5b7b0 Mon Sep 17 00:00:00 2001 From: 0xMochan Date: Mon, 3 Jun 2024 09:57:19 -0400 Subject: [PATCH] fix: pass CI --- substreams/ethereum-curve/src/abi/mod.rs | 2 +- substreams/ethereum-curve/src/pool_changes.rs | 4 ++-- substreams/ethereum-curve/src/pool_factories.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/substreams/ethereum-curve/src/abi/mod.rs b/substreams/ethereum-curve/src/abi/mod.rs index 6319d5c..7d30590 100644 --- a/substreams/ethereum-curve/src/abi/mod.rs +++ b/substreams/ethereum-curve/src/abi/mod.rs @@ -5,6 +5,6 @@ pub mod crypto_swap_ng_factory; pub mod meta_registry; pub mod tricrypto_factory; pub mod main_registry; -pub mod erc20; +pub mod ERC20; pub mod meta_pool_factory; pub mod crypto_swap_registry; diff --git a/substreams/ethereum-curve/src/pool_changes.rs b/substreams/ethereum-curve/src/pool_changes.rs index 7ccf405..93d7109 100644 --- a/substreams/ethereum-curve/src/pool_changes.rs +++ b/substreams/ethereum-curve/src/pool_changes.rs @@ -24,9 +24,9 @@ fn get_pool_tokens(pool_address: &Vec, tokens_store: &StoreGetString) -> Opt ) } -/// TODO rewrite +/// Tracks `Transfers` in and out of tracked pools if it matches the specific tokens. pub fn emit_deltas(log: LogView, tokens_store: &StoreGetString) -> Option { - let transfer = abi::erc20::events::Transfer::match_and_decode(log)?; + let transfer = abi::ERC20::events::Transfer::match_and_decode(log)?; let (component_id, pool_tokens, is_incoming) = if let Some(pool_tokens) = get_pool_tokens(&transfer.to, tokens_store) { diff --git a/substreams/ethereum-curve/src/pool_factories.rs b/substreams/ethereum-curve/src/pool_factories.rs index 61c7103..f28db9e 100644 --- a/substreams/ethereum-curve/src/pool_factories.rs +++ b/substreams/ethereum-curve/src/pool_factories.rs @@ -672,7 +672,7 @@ pub fn address_map( /// If all else fails, we force an `unwrap` to trigger a `panic` so that we can resolve this by /// adding onto our map of `pool` -> `token` addresses. fn get_token_from_pool(pool: &Vec) -> Vec { - abi::erc20::functions::Name {} + abi::ERC20::functions::Name {} .call(pool.clone()) .and(Some(pool.clone())) .or_else(|| {