From 2c2306e80b517ed6ba6a1f48f1dfa19f8ec54533 Mon Sep 17 00:00:00 2001 From: smypmsa Date: Tue, 5 Aug 2025 14:53:07 +0000 Subject: [PATCH] fix(core): add missing method to event parser interface --- src/interfaces/core.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/interfaces/core.py b/src/interfaces/core.py index 7ad5a6d..2de0348 100644 --- a/src/interfaces/core.py +++ b/src/interfaces/core.py @@ -344,6 +344,21 @@ class EventParser(ABC): """ pass + @abstractmethod + def parse_token_creation_from_block( + self, + block_data: dict[str, Any] + ) -> TokenInfo | None: + """Parse token creation from block data. + + Args: + block_data: Block data containing transactions + + Returns: + TokenInfo if token creation found, None otherwise + """ + pass + @abstractmethod def get_program_id(self) -> Pubkey: """Get the program ID this parser monitors.