This repository was archived by the owner on Oct 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
chore: Move some sdk::core types to their own crate, sdk-core-types
#1693
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
31126f9
chore: move reg_abi to runner
codeblooded1729 329d875
add: sdk-core-types
codeblooded1729 2ea3a2d
use sdk-core-types in sdk
codeblooded1729 2e913eb
runner: remove mozak-sdk dependency and add sdk-core-types
codeblooded1729 f695fe3
circuits: remove mozak-sdk dependency and add sdk-core-types
codeblooded1729 9cc16f1
update lock: examples
codeblooded1729 eadfa3c
workspace: update toml and lock
codeblooded1729 3c241e1
taplo fmt
codeblooded1729 f79108f
clippy: update sdk-core-types metadata
codeblooded1729 01cd2a2
cargo fmt
codeblooded1729 3e9bfbd
taplo fmt again
codeblooded1729 782dfbd
Merge branch 'main' into kapil/sdk_core_types
codeblooded1729 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -6,9 +6,8 @@ use mozak_runner::code; | |
| use mozak_runner::decode::ECALL; | ||
| use mozak_runner::elf::Program; | ||
| use mozak_runner::instruction::{Args, Instruction, Op}; | ||
| use mozak_runner::reg_abi::{REG_A0, REG_A1, REG_A2, REG_A3}; | ||
| use mozak_runner::vm::ExecutionRecord; | ||
| use mozak_sdk::core::ecall; | ||
| use mozak_sdk::core::reg_abi::{REG_A0, REG_A1, REG_A2, REG_A3}; | ||
| use plonky2::field::goldilocks_field::GoldilocksField; | ||
| use plonky2::field::types::Field; | ||
| use plonky2::fri::FriConfig; | ||
|
|
@@ -18,6 +17,7 @@ use plonky2::plonk::circuit_data::CircuitConfig; | |
| use plonky2::plonk::config::{GenericConfig, Hasher, Poseidon2GoldilocksConfig}; | ||
| use plonky2::util::log2_ceil; | ||
| use plonky2::util::timing::TimingTree; | ||
| use sdk_core_types::ecall_id; | ||
| use starky::config::StarkConfig; | ||
| use starky::prover::prove as prove_table; | ||
| use starky::stark::Stark; | ||
|
|
@@ -523,7 +523,7 @@ pub fn create_poseidon2_test( | |
| op: Op::ADD, | ||
| args: Args { | ||
| rd: REG_A0, | ||
| imm: ecall::POSEIDON2, | ||
| imm: ecall_id::POSEIDON2, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We moved from |
||
| ..Args::default() | ||
| }, | ||
| }, | ||
|
|
||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
Doesn't this look weird?