Using Vyper to Implement a Smart Contract
This chapter will cover the process of writing smart contracts using Vyper, a programming language that bears a resemblance to Python. In this chapter, you’ll learn how to set up the Vyper compiler and deploy the smart contract on the blockchain. Then, we’ll go through an overview of Vyper by writing small chunks of code to understand one feature at a time. In the previous chapter, you wrote a simple smart contract using Solidity. Solidity is, indeed, the most used programming language used to write smart contracts. But for Python developers, Vyper is more familiar.
The following topics will be covered in this chapter:
- Setting up Vyper
- Data types
- Functions
- Control structures
- Environment variables
- Event logging
- Interface