Home

Awesome

starknet-scaffold

Scaffold a starknet cairo project.

Includes:

Usage

Compile

bin/compile

Compile project contracts using nile

Test

bin/test

Run the project test suite. Tests will utilize a cached base deployment defined at test/conftest.py:build_cache. Updates to the conftest.py file will automatically trigger a contract rebuild.

See example test at:

test/Contract_test.py

New tests require a new entry in bin/test.

Deploy

bin/deploy

Deploy a projects contracts. Create a *.deployments.txt file to track deployment addresses.

Development

If you are using VSCode, we provide a development container with all required dependencies. When opening VS Code, it should ask you to re-open the project in a container, if it finds the .devcontainer folder. If not, you can open the Command Palette (cmd + shift + p), and run “Remote-Containers: Reopen in Container”.