Skip to content

Commit

Permalink
Migrate to Cairo 2.1.0 (#675)
Browse files Browse the repository at this point in the history
* Migrate to Cairo 2.1.0

* fix katana breaking changes

* Update set inline macro

* InlineMacro test setup

* Implement get macro

* Remove deps logic

* merge main

* Format

* Dont index entity components by default

* Implement new component keys pattern

* Typed keys trait

* Update get macro

* Remove query

* Fix tests

* Update erc20 implementation

* Fix ci issues

* Fix examples

* Format

* Fix component value serialization

* Update gen

* Additional cleanup

* Avoid rebuild if artifacts already exist

* CI fixes (#708)

* Inlinemacros (#709)

* Return when the target path already exists

* Add packages to compile

* Component class hash updated

For #675
Makes sense for class hash to be changed coz compiled code is now different.

* compute contract address for receipt

* Remove partitions

* Format

---------

Co-authored-by: Kariy <[email protected]>
Co-authored-by: Shramee Srivastav <[email protected]>
  • Loading branch information
3 people authored Aug 5, 2023
1 parent 2f5c06d commit 7893eed
Show file tree
Hide file tree
Showing 98 changed files with 2,150 additions and 3,638 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,6 @@ jobs:
- name: Build and start Katana node
run: |
cargo build --bin katana
nohup target/debug/katana --accounts 2 --account-class crates/katana/core/contracts/compiled/account_without_validation.json --allow-zero-max-fee &
nohup target/debug/katana --accounts 2 --account-class crates/katana/core/contracts/compiled/account_without_validation.json --disable-fee &
- name: Execute Hurl Scripts
run: hurl --test examples/rpc/**/*.hurl
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"cairo1.languageServerPath": "/workspaces/dojo/target/release/dojo-language-server",
"cairo1.enableLanguageServer": true
"cairo1.enableLanguageServer": true,
"rust-analyzer.linkedProjects": [
"./crates/dojo-lang/Cargo.toml"
]
}
Loading

0 comments on commit 7893eed

Please sign in to comment.