Mandatory Ressources :
Resource | Link |
---|---|
Goerli Starknet Explorer | https://goerli.voyager.online/ |
⇒ Setup Argent Account
0x074002c7df47096f490a1a89b086b8a468f2e7c686e04a024d93b7c59f934f83
Req : Python 3.7
sudo apt install python-dev python3-dev virtualenv python3-virtualenv python3-venv
python3 -m venv ~/cairo_venv
source ~/cairo_venv/bin/activate
pip install --upgrade pip
sudo apt install -y libgmp3-dev gcc
pip3 install cairo-lang
pip3 install cairo-nile
#pip3 install contextvars if using Python 3.6
create test.cairo :
func main():
[ap] = 1000; ap++
[ap] = 2000; ap++
[ap] = [ap - 2] + [ap - 1]; ap++
ret
end
Compile contract and output :
cairo-compile test.cairo --output test_compiled.json
cairo-run \\
--program=test_compiled.json --print_output \\
--print_info --relocate_prints --tracer