Use tycho-substreams erc20 abi.

This commit is contained in:
kayibal
2025-02-06 10:15:22 -06:00
committed by Alan Höng
parent 7302989617
commit a7e1dd9397
10 changed files with 6 additions and 2582 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +1 @@
#![allow(clippy::all)]
pub mod erc20;

View File

@@ -102,7 +102,7 @@ fn map_relative_component_balance(
.transactions()
.flat_map(|tx| {
tx.logs_with_calls()
.map(|(_log, _call)| -> Vec<BalanceDelta> {
.flat_map(|(_log, _call)| -> Vec<BalanceDelta> {
/*
TODO: Parse events/calls to extract balance deltas
@@ -138,7 +138,6 @@ fn map_relative_component_balance(
*/
vec![]
})
.flatten()
})
.collect::<Vec<_>>();