feat: Add encoding to test suite (#259)

* feat: Add encoding to test suite

Use execution from simulation
Add protocol_system to all test files and pass it to run tycho
Add encoding_utils.rs

#time 5h 0m

#time 1m

#time 7m

* refactor: Move encoding swap to its own method to simplify main code

Rename encoding_utils.rs to encoding.rs

#time 20m


#time 0m

#time 0m
This commit is contained in:
dianacarvalho1
2025-09-11 14:30:49 +01:00
committed by GitHub
parent db5c418e57
commit 22843cfd3b
9 changed files with 1084 additions and 345 deletions

View File

@@ -31,6 +31,7 @@ impl TychoRunner {
start_block: u64,
end_block: u64,
protocol_type_names: &[String],
protocol_system: &str,
) -> miette::Result<()> {
// Expects a .env present in the same folder as package root (where Cargo.toml is)
dotenv().ok();
@@ -50,6 +51,8 @@ impl TychoRunner {
"map_protocol_changes",
"--protocol-type-names",
&protocol_type_names.join(","),
"--protocol-system",
protocol_system,
"--start-block",
&start_block.to_string(),
"--stop-block",