Skip to content

Commit

Permalink
fix sierra_ir (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
julio4 committed Dec 30, 2024
1 parent 2420ef0 commit d62725b
Show file tree
Hide file tree
Showing 13 changed files with 128 additions and 320 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,6 @@ src/**/*.md

node_modules


# windsurf rules
.windsurfrules
4 changes: 4 additions & 0 deletions Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ name = "pragma_lib"
version = "1.0.0"
source = "git+https://github.com/astraly-labs/pragma-lib#86d7ccdc15b349b8b48d9796fc8464c947bea6e1"

[[package]]
name = "sierra_ir"
version = "0.1.0"

[[package]]
name = "simple_account"
version = "0.1.0"
Expand Down
1 change: 1 addition & 0 deletions listings/advanced-concepts/sierra_ir/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
target
16 changes: 16 additions & 0 deletions listings/advanced-concepts/sierra_ir/Scarb.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[package]
name = "sierra_ir"
version.workspace = true
edition.workspace = true

[lib]
sierra-text = true

[dependencies]
starknet.workspace = true

[dev-dependencies]
cairo_test.workspace = true

[scripts]
test.workspace = true
6 changes: 0 additions & 6 deletions listings/advanced-concepts/sierra_ir/simple_program.cairo

This file was deleted.

2 changes: 1 addition & 1 deletion listings/advanced-concepts/sierra_ir/simple_program.sierra
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ felt252_add([0], [1]) -> ([2]); // 0
store_temp<felt252>([2]) -> ([2]); // 1
return([2]); // 2

simple::simple::add_numbers@0([0]: felt252, [1]: felt252) -> (felt252);
sierra_ir::add_numbers@0([0]: felt252, [1]: felt252) -> (felt252);
1 change: 1 addition & 0 deletions listings/advanced-concepts/sierra_ir/src/lib.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod simple_program;
3 changes: 3 additions & 0 deletions listings/advanced-concepts/sierra_ir/src/simple_program.cairo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn add_numbers(a: felt252, b: felt252) -> felt252 {
a + b
}
59 changes: 0 additions & 59 deletions listings/advanced-concepts/sierra_ir/storage_variables.cairo

This file was deleted.

346 changes: 92 additions & 254 deletions pages/advanced-concepts/sierra_ir.md

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions pages/advanced-concepts/sierra_ir_storage_contract.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```cairo
// [!include ~/listings/getting-started/variables/storage_variables.sierra]
```
4 changes: 4 additions & 0 deletions routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,10 @@ const config: Sidebar = [
text: "Signature Verification",
link: "/advanced-concepts/signature_verification",
},
{
text: "Sierra IR",
link: "/advanced-concepts/sierra_ir",
}
],
},
{
Expand Down

0 comments on commit d62725b

Please sign in to comment.