/decode-vector — Decode a Test Vector JSON
Decode and visualize a compressed test vector JSON file generated by /generate-vectors.
Usage
- •
/decode-vector path_jsons/length_03/02-0cd0354f.json— default view (compressed + summary) - •
/decode-vector path_jsons/length_03/02-0cd0354f.json --show-all— all visualizations - •
/decode-vector path_jsons/length_03/02-0cd0354f.json -t -f— transaction + fees only
Display Flags
| Flag | Short | Description |
|---|---|---|
--show-compressed | -c | Show compressed data summary |
--show-transaction | -t | Show full transaction results |
--show-fees | -f | Show detailed fee distribution |
--show-summary | -s | Show summary table |
--show-all | -a | Show all visualizations |
If no flags are specified, defaults to showing compressed data and summary.
Additional Options
| Flag | Default | Description |
|---|---|---|
--json-dir | path_jsons | Directory containing lookup_tables.json |
Instructions
Run the following command, with the JSON file path and any flags from $ARGUMENTS:
bash
source /home/jmlago/miniconda3/bin/activate && conda activate kpi-tracker && python scripts/02_decode_test_vector.py $ARGUMENTS
The first positional argument must be the path to the JSON file. If the user provides just a filename without a directory, check path_jsons/ subdirectories for it.
Show the full output to the user.