fix(sdk): properly handle deletion -> creation -> deletion sequence (#213)

* fix(sdk): properly handle deletion -> creation -> deletion sequence

This commit resolves a bug that occurred when an attribute underwent a deletion, followed by creation, and then another deletion. The system would incorrectly ignore the final deletion because the attribute was mistakenly marked as newly created during the process.

* docs: fix typo

Co-authored-by: Louise Poole <louisecarmenpoole@gmail.com>

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
Co-authored-by: Louise Poole <louisecarmenpoole@gmail.com>
This commit is contained in:
Zizou
2025-06-24 11:41:10 +02:00
committed by GitHub
parent 648a3bf419
commit 27f178de59
4 changed files with 157 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
[package]
name = "tycho-substreams"
version = "0.2.1"
version = "0.2.2"
edition = "2021"
description = "Tycho substreams development kit, contains tycho-indexer block changes model and helper functions for common indexing tasks."
repository = "https://github.com/propeller-heads/tycho-protocol-sdk/tree/main/substreams/crates/tycho-substreams"
@@ -21,3 +21,6 @@ ethabi = "18.0.0"
num-bigint = "0.4.4"
serde = "1.0.204"
serde_json = "1.0.120"
[dev-dependencies]
rstest = "0.24.0"