Skip to content

amegakure-studio/cairo-template

Repository files navigation

Cairo Template

💽 Install dependencies

asdf

  • asdf - The multiple runtime version manager. See asdf guide for more details.

Scarb

  • Scarb - Cairo package manager.

First, add the Scarb plugin to asdf:

asdf plugin add scarb

Install:

asdf install scarb 2.5.0
asdf global scarb 2.5.0

Starknet Foundry

  • Starknet Foundry - Toolchain for developing Starknet smart contracts. It helps with writing, deploying, and testing your smart contracts. It is inspired by Foundry.

First, add the Starknet Foundry plugin to asdf:

asdf plugin add starknet-foundry

Install:

asdf install starknet-foundry 0.16.0
asdf global starknet-foundry 0.16.0

🛠️ Build

To build the project, run:

make build

🧪 Test

To test the project, run:

make test

🚀 Deploy

To deploy follow this setup account guide, then run:

make deploy

🎯 Pre-commit

To add pre-commit to the project, run:

pip install pre-commit && pre-commit install

📚 Resources

Here are some resources to help you get started: