This repo contains first steps, tips and learnings to use StarkNet and create smart contracts using Cairo.
The two articles have been published in the Chainstack blog:
You can find differe contracts with examples in the cairo-examples
folder. Make sure to follow instructions to setup your development environment, explained in the first article.
The cairo-examples
is a Nile project so it's recommended to install it as well.
The test files in the /cairo-examples/tests/
folder can be run using pytest
, for examples pytest ./tests/test_secretNumber.py
The webapp
folder contains a Vue.js application to showcase how to interact with a contract deployed in StarkNet. Check out the Numbers component to see how to connect to a wallet call contract methods.
The app uses @argent/get-starknet
library.