feat: update balancer v2 spkg to make it return old slot values (#252)

* feat: update balancer v2 spkg to make it return old slot values

This is needed for the new DCI version that uses old values to look into exactly what part of the slot change and compare with the retrigger offset

* refactor: use crate registry instead of github

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
Zizou
2025-09-09 10:38:35 +02:00
committed by GitHub
parent 93b969e41f
commit ed43a079c9
3 changed files with 22 additions and 5 deletions

21
substreams/Cargo.lock generated
View File

@@ -240,7 +240,7 @@ dependencies = [
[[package]]
name = "ethereum-balancer-v2"
version = "0.3.2"
version = "0.4.0"
dependencies = [
"anyhow",
"ethabi 18.0.0",
@@ -250,7 +250,7 @@ dependencies = [
"num-bigint",
"substreams",
"substreams-ethereum",
"tycho-substreams 0.2.2",
"tycho-substreams 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)",
]
[[package]]
@@ -1774,6 +1774,23 @@ dependencies = [
"substreams-ethereum",
]
[[package]]
name = "tycho-substreams"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "828cbe6f7b984fefe39d8fdb4c40311e329f30ded0a70e477e8f2add4d60483d"
dependencies = [
"ethabi 18.0.0",
"hex",
"itertools 0.12.1",
"num-bigint",
"prost 0.11.9",
"serde",
"serde_json",
"substreams",
"substreams-ethereum",
]
[[package]]
name = "typenum"
version = "1.17.0"

View File

@@ -1,6 +1,6 @@
[package]
name = "ethereum-balancer-v2"
version = "0.3.2"
version = "0.4.0"
edition = "2021"
[lib]
@@ -15,7 +15,7 @@ hex = "0.4.3"
anyhow = "1.0.75"
num-bigint = "0.4.4"
itertools = "0.12.0"
tycho-substreams = { git = "https://github.com/propeller-heads/tycho-protocol-sdk.git", tag = "0.4.0" }
tycho-substreams = "0.5.0"
[build-dependencies]
anyhow = "1"

View File

@@ -1,7 +1,7 @@
specVersion: v0.1.0
package:
name: "ethereum_balancer_v2"
version: v0.3.2
version: v0.4.0
url: "https://github.com/propeller-heads/tycho-protocol-sdk/tree/main/substreams/ethereum-balancer-v2"
protobuf: