fix: Fix python tests

- These are just used for comparison purposes and will eventually be deleted.
- Also balancer v3 test fix: add protocol_system to yaml, and remove "excludePaths" from protobuf in substreams.yaml (this entry was not supported)
This commit is contained in:
TAMARA LIPOWSKI
2025-09-17 17:15:56 -04:00
committed by Tamara
parent f00a625182
commit 779c690b6d
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
substreams_yaml_path: ./substreams.yaml substreams_yaml_path: ./substreams.yaml
protocol_system: "vm:balancer_v3"
protocol_type_names: protocol_type_names:
- "balancer_v3_pool" - "balancer_v3_pool"
adapter_contract: "BalancerV3SwapAdapter" adapter_contract: "BalancerV3SwapAdapter"

View File

@@ -10,9 +10,6 @@ protobuf:
- tycho/evm/v1/utils.proto - tycho/evm/v1/utils.proto
importPaths: importPaths:
- ../../proto - ../../proto
excludePaths:
- sf/substreams
- google
binaries: binaries:
default: default:

View File

@@ -59,6 +59,7 @@ class TychoRunner:
end_block: int, end_block: int,
protocol_type_names: list, protocol_type_names: list,
initialized_accounts: list, initialized_accounts: list,
protocol_system: str = "test_protocol",
) -> None: ) -> None:
"""Run the Tycho indexer with the specified SPKG and block range.""" """Run the Tycho indexer with the specified SPKG and block range."""
@@ -80,6 +81,8 @@ class TychoRunner:
"map_protocol_changes", "map_protocol_changes",
"--protocol-type-names", "--protocol-type-names",
",".join(protocol_type_names), ",".join(protocol_type_names),
"--protocol-system",
protocol_system,
"--start-block", "--start-block",
str(start_block), str(start_block),
"--stop-block", "--stop-block",