Skip to content
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

Add support for sierra 1.7.0 #62

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add support for sierra 1.7.0
commit-id:b4493f44
  • Loading branch information
kkawula committed Jan 16, 2025
commit 37979c31b7aeef47aed0bfcc84a629020f2ce95b
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
target
.spr.yml
174 changes: 130 additions & 44 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ license = "MIT"
[dependencies]
cairo-lang-starknet-sierra-0_1_0 = { package = "cairo-lang-starknet", git = "https://github.com/starkware-libs/cairo.git", tag = "v1.0.0-alpha.6", version = "1.0.0-alpha.6" }
cairo-lang-starknet-sierra-1_0_0 = { package = "universal-sierra-compiler-cairo-lang-starknet-proxy", version = "=0.2.0" }
cairo-lang-sierra-to-casm = "2.7.0"
cairo-lang-sierra = "2.7.0"
cairo-lang-starknet-classes = "2.7.0"
cairo-lang-sierra-to-casm = "2.10.0-rc.0"
cairo-lang-sierra = "2.10.0-rc.0"
cairo-lang-starknet-classes = "2.10.0-rc.0"
serde_json = "1.0.108"
serde = "1.0.193"
clap = "4.4.11"
Expand All @@ -28,4 +28,4 @@ indoc = "2.0.4"
fs_extra = "1.3.0"
test-case = "3.3.1"
num-bigint = "0.4.4"
cairo-lang-casm = { version = "2.7.0", features = ["serde"] }
cairo-lang-casm = { version = "2.10.0-rc.0", features = ["serde"] }
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Universal-Sierra-Compiler is the tool/crate for Sierra compilation. It compiles

| Supported Sierra Versions |
|---------------------------|
| 1.7.0 |
| 1.6.0 |
| 1.5.0 |
| ~1.4.0 |
Expand Down
2 changes: 1 addition & 1 deletion src/commands/compile_contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn compile(mut sierra_json: Value) -> Result<Value> {

let sierra_version = parse_sierra_version(&sierra_json)?;
match sierra_version.as_slice() {
[1, 2..=6, ..] => {
[1, 2..=7, ..] => {
let sierra_class: ContractClass = serde_json::from_value(sierra_json.clone()).unwrap();
let casm_class =
CasmContractClass::from_contract_class(sierra_class, true, usize::MAX).unwrap();
Expand Down
Loading
Loading