Skip to content

Commit 9f38ec0

Browse files
feat(apollo_starknet_os_program): add command to dump aggregator program
1 parent 6582ee2 commit 9f38ec0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

crates/starknet_committer_and_os_cli/src/os_cli/commands.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use std::fs;
22
use std::path::Path;
33

4-
use apollo_starknet_os_program::{OS_PROGRAM_BYTES, PROGRAM_HASH};
4+
use apollo_starknet_os_program::{AGGREGATOR_PROGRAM_BYTES, OS_PROGRAM_BYTES, PROGRAM_HASH};
55
use cairo_lang_starknet_classes::casm_contract_class::CasmContractClass;
66
use cairo_vm::types::layout_name::LayoutName;
77
use cairo_vm::vm::runners::cairo_pie::CairoPie;
@@ -104,6 +104,7 @@ pub(crate) fn serialize_os_runner_output(
104104

105105
pub(crate) fn dump_program(output_path: String, program: ProgramToDump) {
106106
let bytes = match program {
107+
ProgramToDump::Aggregator => AGGREGATOR_PROGRAM_BYTES,
107108
ProgramToDump::Os => OS_PROGRAM_BYTES,
108109
};
109110
// Dumping the `Program` struct won't work - it is not deserializable via cairo-lang's Program

crates/starknet_committer_and_os_cli/src/os_cli/run_os_cli.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ pub struct OsCliCommand {
1919
#[derive(clap::ValueEnum, Clone, Debug, Serialize)]
2020
#[serde(rename_all = "kebab-case")]
2121
pub enum ProgramToDump {
22+
Aggregator,
2223
Os,
2324
}
2425

0 commit comments

Comments
 (0)