Writing Smart Contracts
Let’s tackle smart contracts!
What can we expect in this chapter? Now that we have a good overview of Tezos, we will address smart contracts. SmartPy allows you to write smart contracts without the need to learn a smart contract-specific language as it is available through a Python library.
We will take a look at:
- How to use the Python library of SmartPy,
- How to work with the SmartPy online editor,
- How typing and conditions work with SmartPy,
- How to write and deploy a smart contract to certify students, and
- How to write and deploy a smart contract for crowdfunding.
In this chapter
We will begin our Tezos’ smart contract journey with an introduction to SmartPy, including a quick Python refresher. After, we will dive into the language and apply what we learned to two smart contract examples: A contract to certify students and a contract for crowdfunding.
Let’s take a first glance at SmartPy, its editor, and look into our repeater contract example by also diving deeper at managing multiple inputs.
We will dive deeper into SmartPy by taking a close look at typing and conditions with our example repeater contract.
To master SmartPy let’s tackle a hands-on example with a smart contract to certify students.
To continue our smart contract learning journey, how about a second exercise? This time let’s deploy a smart contract to crowdfund.