From acbce8612c7ae145c0dec57e8984db30dc23e5f4 Mon Sep 17 00:00:00 2001 From: Ranadeep Biswas Date: Tue, 10 Dec 2024 22:48:20 +0100 Subject: [PATCH] event filter for ibc core class --- .../starknet-chain-context/src/contexts/encoding/event.rs | 1 + relayer/crates/starknet-integration-tests/src/tests/erc20.rs | 1 + relayer/crates/starknet-integration-tests/src/tests/ics20.rs | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/relayer/crates/starknet-chain-context/src/contexts/encoding/event.rs b/relayer/crates/starknet-chain-context/src/contexts/encoding/event.rs index 92a3f890..34f0b3e1 100644 --- a/relayer/crates/starknet-chain-context/src/contexts/encoding/event.rs +++ b/relayer/crates/starknet-chain-context/src/contexts/encoding/event.rs @@ -26,6 +26,7 @@ pub struct StarknetEventEncoding { pub erc20_hashes: HashSet, pub ics20_hashes: HashSet, pub ibc_client_hashes: HashSet, + pub ibc_core_hashes: HashSet, } pub struct StarknetEventEncodingContextComponents; diff --git a/relayer/crates/starknet-integration-tests/src/tests/erc20.rs b/relayer/crates/starknet-integration-tests/src/tests/erc20.rs index 92fb54c1..54b31cb9 100644 --- a/relayer/crates/starknet-integration-tests/src/tests/erc20.rs +++ b/relayer/crates/starknet-integration-tests/src/tests/erc20.rs @@ -92,6 +92,7 @@ fn test_erc20_transfer() -> Result<(), Error> { erc20_hashes: [erc20_class_hash].into(), ics20_hashes: Default::default(), ibc_client_hashes: Default::default(), + ibc_core_hashes: Default::default(), }; { diff --git a/relayer/crates/starknet-integration-tests/src/tests/ics20.rs b/relayer/crates/starknet-integration-tests/src/tests/ics20.rs index fb69530b..fb6a0213 100644 --- a/relayer/crates/starknet-integration-tests/src/tests/ics20.rs +++ b/relayer/crates/starknet-integration-tests/src/tests/ics20.rs @@ -179,7 +179,8 @@ fn test_starknet_ics20_contract() -> Result<(), Error> { let event_encoding = StarknetEventEncoding { erc20_hashes: [erc20_class_hash].into(), ics20_hashes: [ics20_class_hash].into(), - ibc_client_hashes: Default::default(), + ibc_client_hashes: [comet_client_class_hash].into(), + ibc_core_hashes: [ibc_core_class_hash].into(), }; {