From 586c9030800d1fe567e7a702801092776c23ea7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s=20Elizondo?= Date: Thu, 8 Aug 2024 14:56:46 -0600 Subject: [PATCH] Revert "Removes zid filters for wraps/unwraps and ERC20 transfers." This reverts commit 26039edbd397e83410f40f193f536c95958a5b52. --- src/events.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/events.ts b/src/events.ts index ac367b0c..4754a216 100644 --- a/src/events.ts +++ b/src/events.ts @@ -592,7 +592,8 @@ export const eventScrperProps: EventScraperProps[] = [ contractAddress: WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS, startBlock: WRAP_UNWRAP_NATIVE_START_BLOCK, parser: parseWrapNativeEvent, - + filterFunction: filterWrapUnwrapEvents, + filterFunctionGetContext: filterWrapUnwrapEventsGetContext, }, { enabled: FEAT_WRAP_UNWRAP_NATIVE_EVENT, @@ -603,7 +604,8 @@ export const eventScrperProps: EventScraperProps[] = [ contractAddress: WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS, startBlock: WRAP_UNWRAP_NATIVE_START_BLOCK, parser: parseUnwrapNativeEvent, - + filterFunction: filterWrapUnwrapEvents, + filterFunctionGetContext: filterWrapUnwrapEventsGetContext, }, { enabled: FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT, @@ -614,7 +616,8 @@ export const eventScrperProps: EventScraperProps[] = [ contractAddress: WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS, startBlock: WRAP_UNWRAP_NATIVE_START_BLOCK, parser: parseWrapNativeTransferEvent, - + filterFunction: filterWrapUnwrapEvents, + filterFunctionGetContext: filterWrapUnwrapEventsGetContext, }, { enabled: FEAT_WRAP_UNWRAP_NATIVE_TRANSFER_EVENT, @@ -625,7 +628,8 @@ export const eventScrperProps: EventScraperProps[] = [ contractAddress: WRAP_UNWRAP_NATIVE_CONTRACT_ADDRESS, startBlock: WRAP_UNWRAP_NATIVE_START_BLOCK, parser: parseUnwrapNativeTransferEvent, - + filterFunction: filterWrapUnwrapEvents, + filterFunctionGetContext: filterWrapUnwrapEventsGetContext, }, { enabled: FEAT_SOCKET_BRIDGE_EVENT, @@ -790,6 +794,8 @@ export const eventScrperProps: EventScraperProps[] = [ contractAddress: null, startBlock: SETTLER_DEPLOYMENT_BLOCK, parser: parseERC20TransferEvent, + filterFunction: filterERC20TransferEvents, + filterFunctionGetContext: filterERC20TransferEventsGetContext, }, { enabled: FEAT_SETTLER_ERC721_TRANSFER_EVENT,