Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

chore: Bump starknet deps to 2.0.0 #755

Merged
merged 4 commits into from
Jul 4, 2023
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
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# will have compiled files and executables
debug/
target/
cairo1/
cairo2/

# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
#Cargo.lock
Expand Down Expand Up @@ -38,6 +37,8 @@ cairo2/

# END AUTOGENERATED

cairo1/**/
cairo2/**/
starknet-venv/
**/*.json
cairo_programs/cairo_1_contracts/*.sierra
Expand All @@ -54,3 +55,4 @@ __pycache__/
lcov.info
.rusty-hook.toml
!starknet_programs/raw_contract_classes/*.json
cairo-*.tar
88 changes: 44 additions & 44 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ starknet_api = "0.1.0"
num-traits = "0.2.15"

[dependencies]
cairo-lang-starknet = "2.0.0-rc6"
cairo-lang-casm = "2.0.0-rc6"
cairo-lang-starknet = "2.0.0"
cairo-lang-casm = "2.0.0"
cairo-vm = { workspace=true, features = ["cairo-1-hints"]}
getset = "0.1.2"
lazy_static = "1.4.0"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,14 @@ cairo-repo-2-dir-macos = cairo2-macos
build-cairo-2-compiler-macos: | $(cairo-repo-2-dir-macos)

$(cairo-repo-2-dir-macos):
curl -L -o cairo-2.0.0.tar https://github.com/starkware-libs/cairo/releases/download/v2.0.0-rc6/release-aarch64-apple-darwin.tar \
curl -L -o cairo-2.0.0.tar https://github.com/starkware-libs/cairo/releases/download/v2.0.0/release-aarch64-apple-darwin.tar \
&& tar -xzvf cairo-2.0.0.tar \
&& mv cairo/ cairo2/

build-cairo-2-compiler: | $(cairo-repo-2-dir)

$(cairo-repo-2-dir):
curl -L -o cairo-2.0.0.tar https://github.com/starkware-libs/cairo/releases/download/v2.0.0-rc6/release-x86_64-unknown-linux-musl.tar.gz \
curl -L -o cairo-2.0.0.tar https://github.com/starkware-libs/cairo/releases/download/v2.0.0/release-x86_64-unknown-linux-musl.tar.gz \
&& tar -xzvf cairo-2.0.0.tar \
&& mv cairo/ cairo2/

Expand Down
2 changes: 1 addition & 1 deletion starknet_programs/cairo2/simple_wallet.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ mod SimpleWallet {
}

#[constructor]
fn init(ref self: ContractState, initial_balance: felt252) {
fn constructor(ref self: ContractState, initial_balance: felt252) {
self.balance.write(initial_balance);
}

Expand Down