-
Notifications
You must be signed in to change notification settings - Fork 9
[Feat] Support axiom cli sdk #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
@noel2004 while being WIP, can we turn it into a draft PR for now? |
Yes. Should be a draft PR |
e399619 to
2272f0a
Compare
| )?; | ||
| println!("{LOG_PREFIX} Uploaded program to Axiom program_id={program_id}"); | ||
| axiom_program_ids[project_name] = serde_json::Value::String(program_id); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok so now since it is automatically uploaded, let us don't set AXIOM_API_KEY unless needed. (eg: dont set it in github action.). We dont. want to upload too many unused programs to axiom cloud.
| pub mod config { | ||
| pub const CHUNK: &str = "cfg_01k9b6y2tcnw8b969vnk6d7eyq"; | ||
| pub const BATCH: &str = "cfg_01k9b6wa8hx37z42kd41cqrkfs"; | ||
| pub const BUNDLE: &str = "cfg_01k9b6xjt0va25sy94tztwehs7"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a comment to explain that these 3 const strings are related to 3 openvm.toml. If those change, we should(how? add a doc link?) change these cfg_xxx too.
|
|
||
| impl super::ProvingTask { | ||
| pub fn build_openvm_input(&self) -> OpenVMInput { | ||
| let mut input = Vec::new(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add a doc link. Either an axiom doc link, or an openvm code link? (inside openvm::cli crate?)
| bytesize = "2.0.1" | ||
| url = "2.5.4" | ||
| tokio = "1" | ||
| axiom-sdk = { git = "https://github.com/axiom-crypto/axiom-api-cli.git", branch = "feat/upload-exe-raw" } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should fix this later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
generally good.
Change needed:
separate build and upload to axiom cloud. Also upload elfs to s3.
"upload to axiom cloud" must be a manual action. Either a standalone rust program, or a build-guest sub command, or a bash script.
Working plan:
scroll-zkvm-typescratescrollmonorepo so the prover inscrollmonorepo can run under "axiom cloud" mode