diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index e8a84a2e2..d670726ec 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -21,7 +21,7 @@ lint: - clippy@1.65.0 - git-diff-check - hadolint@2.12.0 - - markdownlint@0.40.0 + - markdownlint@0.41.0 - osv-scanner@1.7.3 - oxipng@9.1.1 - prettier@3.2.5 @@ -30,7 +30,7 @@ lint: - shfmt@3.6.0 - taplo@0.8.1 - terrascan@1.19.1 - - trivy@0.51.2 + - trivy@0.51.4 - trufflehog@3.76.3 - yamllint@1.35.1 ignore: diff --git a/Cargo.lock b/Cargo.lock index 5a645bfce..754817e64 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8000,7 +8000,7 @@ dependencies = [ [[package]] name = "kakarot-rpc" -version = "0.6.14" +version = "0.6.15" dependencies = [ "alloy-primitives 0.7.2", "alloy-rlp", diff --git a/README.md b/README.md index 35f6be265..c3a36affe 100644 --- a/README.md +++ b/README.md @@ -102,13 +102,15 @@ TL;DR: - [Rust](https://www.rust-lang.org/tools/install) - [Docker](https://docs.docker.com/engine/install) - [Python](https://www.python.org/) +- [Deno](https://docs.deno.com/runtime/manual/) - Make ## Installation ### Setup the project -To set up the repository (pulling git submodule and building Cairo dependencies), run: +To set up the repository (pulling git submodule and building Cairo dependencies), +run: ```console make setup @@ -234,6 +236,22 @@ You can take a look at `rpc-call-examples` directory. Please note the following: ## Testing +### Rust tests + +In order to execute the Rust tests, follow the below instructions: + +- Run `make setup` in order to setup the project. +- Run `make test` which will create a Genesis test file for Kakarot + and launch tests. +- If you which to only run a specific test, be sure to first at least + run `make katana-genesis` once, then run `make test-target TARGET=test_you_want_to_run`. + +### Apibara indexer tests + +In order to run the Typescript unit tests, you will need to have [Deno](https://docs.deno.com/runtime/manual/) +installed. Then you can run `KAKAROT_ADDRESS=ADDRESS_YOU_WANT_TO_USE_FOR_KAKAROT +deno test --allow-env`. + ### Hive The [Hive](https://github.com/ethereum/hive/tree/master) end-to-end test suite @@ -469,5 +487,3 @@ Thanks goes to these wonderful people This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! - -