
I wrote this article on the Starknet Edu blog. You can find the article here.
Today it was announced that StarkNet 0.10.0 was released to the Goerli testnet. This update means that there’s a new version of the cairo-lang python package (version 0.10.0) whose release notes mentions that it depends on python 3.9 instead of 3.7.
I haven’t used python in a long time as I have relied mostly on node (javascript) for backend development so I’ve found myself re-learning the basics of python. One of those basic skills that I have to familiarize myself with is how to properly update the python binary.
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
Note: This article was updated on Sep 20th, 2022 to use Cairo 0.10
$ starknet-compile contracts/ERC721/ERC721.cairo --output artifacts/ERC721.json
$ starknet deploy --contract artifacts/ERC721.json --inputs arg1 arg2 arg3 --network alpha-goerli
Note: I wrote a better guide on how to setup a local development environment here. Use that guide instead of this one as I’ve updated all the articles on this series to use it.
In this tutorial we will be completing the ERC721 workshop created by the StarkWare team so developers can get familiarized with creating smart contracts with Cairo and deploying them to StarkNet’s test network, Goerli.
I’ll be breaking down the workshop into multiple articles to keep each post to a manageable size and to make it easy to find by search engines. Make sure to follow the link at the end of each article to go to the next section.
Write a function that returns the multiplication of the first two arguments if the third argument is an even number or performs an addition if odd.
Create an array with the values 1, 2 and 3, and print the last value to the terminal.
Implement the function y = x^n.