Skip to content

Latest commit

 

History

History
41 lines (27 loc) · 1.06 KB

File metadata and controls

41 lines (27 loc) · 1.06 KB

Development

Setup

We recommend installing scarb through ASDF. Please refer to these instructions.
Thanks to the .tool-versions file, you don't need to install a specific scarb or starknet foundry version. The correct one will be automatically downloaded and installed.
You also need to install the Universal-Sierra-Compiler (USC); please refer to these instructions.

Test the contracts (Cairo)

scarb test

Test the contracts (JavaScript)

Devnet

Integration tests use a local Starknet devnet on http://127.0.0.1:5050.

  • If you have Docker installed, scarb run test-ts will auto-start the devnet when needed.
  • Make sure the Docker daemon is running (e.g. Docker Desktop on macOS).
  • You can still start it manually:
scarb run start-devnet

Install JS dependencies

Install all packages:

pnpm install

Run all integration tests:

scarb run test-ts