Skip to content

Commit

Permalink
feat: contract bindings (#28)
Browse files Browse the repository at this point in the history
* added rust library

* renamed library to bindings

* reflected the change in README

---------

Co-authored-by: KeneePatel <[email protected]>
  • Loading branch information
KeneePatel and KeneePatel authored Apr 11, 2024
1 parent 2be9d46 commit ff8853f
Show file tree
Hide file tree
Showing 6 changed files with 4,688 additions and 1 deletion.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,16 @@ To build the project, run:
scarb build
```

## Bindings (Rust)

To build/update the bindings, first build the contract with `scarb`.

Then, within the Rust project `bindings/` run:

````bash
cargo build
````

## Test

To test the project, run:
Expand Down
2 changes: 1 addition & 1 deletion Scarb.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ version = 1
[[package]]
name = "openzeppelin"
version = "0.9.0"
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.9.0#861fc416f87addbe23a3b47f9d19ab27c10d5dc8"
source = "git+https://github.com/OpenZeppelin/cairo-contracts.git?tag=v0.9.0#364db5b1aecc1335d2e65db887291d19aa28937d"

[[package]]
name = "piltover"
Expand Down
Loading

0 comments on commit ff8853f

Please sign in to comment.