Skip to content

Commit

Permalink
Add support for sierra 1.7.0
Browse files Browse the repository at this point in the history
commit-id:b4493f44
  • Loading branch information
kkawula committed Jan 15, 2025
1 parent 5ca6907 commit 4dd2ab0
Show file tree
Hide file tree
Showing 11 changed files with 154 additions and 49 deletions.
12 changes: 12 additions & 0 deletions .spr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
githubRepoOwner: software-mansion
githubRepoName: universal-sierra-compiler
githubHost: github.com
githubRemote: origin
githubBranch: master
requireChecks: true
requireApproval: true
mergeMethod: rebase
mergeQueue: false
forceFetchTags: false
showPrTitlesInStack: false
branchPushIndividually: false
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

0 comments on commit 4dd2ab0

Please sign in to comment.