Fix balancer substream naming

This commit is contained in:
Florian Pellissier
2024-03-07 15:39:07 +01:00
parent 3cf78c398e
commit b8d7f6686c
3 changed files with 7 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ The example from the official docs will serve us just well:
```toml ```toml
[package] [package]
name = "substreams_[CHAIN]_[PROTOCOL_SYSTEM]" name = "substreams-[CHAIN]-[PROTOCOL_SYSTEM]"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View File

@@ -1,10 +1,10 @@
[package] [package]
name = "substreams-balancer" name = "substreams-ethereum-balancer"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
[lib] [lib]
name = "substreams_balancer" name = "substreams_ethereum_balancer"
crate-type = ["cdylib"] crate-type = ["cdylib"]
[dependencies] [dependencies]

View File

@@ -1,6 +1,6 @@
specVersion: v0.1.0 specVersion: v0.1.0
package: package:
name: "substreams_balancer" name: "substreams_ethereum_balancer"
version: v0.1.0 version: v0.1.0
protobuf: protobuf:
@@ -14,7 +14,7 @@ protobuf:
binaries: binaries:
default: default:
type: wasm/rust-v1 type: wasm/rust-v1
file: target/wasm32-unknown-unknown/release/substreams_balancer.wasm file: target/wasm32-unknown-unknown/release/substreams_ethereum_balancer.wasm
modules: modules:
- name: map_pools_created - name: map_pools_created
@@ -35,7 +35,7 @@ modules:
- name: map_balance_deltas - name: map_balance_deltas
kind: map kind: map
initialBlock: 12369300 # An arbitrary block that should change based on your requirements initialBlock: 12369300 # An arbitrary block that should change based on your requirements
inputs: inputs:
- source: sf.ethereum.type.v2.Block - source: sf.ethereum.type.v2.Block
- store: store_pools_created - store: store_pools_created
@@ -59,6 +59,6 @@ modules:
- map: map_balance_deltas - map: map_balance_deltas
- store: store_pools_created - store: store_pools_created
- store: store_balance_changes - store: store_balance_changes
mode: deltas # This is the key property that simplifies `BalanceChange` handling mode: deltas # This is the key property that simplifies `BalanceChange` handling
output: output:
type: proto:tycho.evm.v1.BlockContractChanges type: proto:tycho.evm.v1.BlockContractChanges