5/5
## License We are building a simple smart contract for a favorites list. The first line of code we will write in our Vyper smart contract file should be: ```python # pragma version >=0.4.1 ``` This line tells the compiler what version of Vyper we will be using. In this case, we will be using Vyper version 0.4.1. Next, we will add another line that defines the license of our code: ```python # @license MIT ``` This line tells the world that this code is licensed under the MIT license. Let's break down why we use a license: - There are many types of code licenses out there. - Most of the code in the blockchain world is open source. - This line tells the compiler what license our code is under. The MIT license is one of the most permissive licenses. This means that anyone can use, redistribute, or modify our code as they see fit. We've now established a basic code structure and license.
A helpful introduction to Vyper license identifiers - This lesson explains the importance of including a license identifier in Vyper code. It specifically covers the widely used MIT license and how it allows others to use and modify the code.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Course Overview
About the course
The basics of blockchain transactions, how to send and receive money on a blockchain network.
How to write Python based smart contracts using Vyper.
How to read and understand Vyper smart contracts.
Vyper data structures, arrays, structs, hash maps.
How to build a smart contract application and deploy on ZKsync with Moccasin.
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on May 29, 2025
Duration: 2h 08min
Duration: 2h 32min
Duration: 24min
Course Overview
About the course
The basics of blockchain transactions, how to send and receive money on a blockchain network.
How to write Python based smart contracts using Vyper.
How to read and understand Vyper smart contracts.
Vyper data structures, arrays, structs, hash maps.
How to build a smart contract application and deploy on ZKsync with Moccasin.
Smart Contract Auditor
$100,000 - $200,000 (avg. salary)
On-chain Data Analyst
$59,000 - $139,000 (avg. salary)
DeFi Developer
$75,000 - $200,000 (avg. salary)
Smart Contract Engineer
$100,000 - $150,000 (avg. salary)
Web3 developer
$60,000 - $150,000 (avg. salary)
Web3 Developer Relations
$85,000 - $125,000 (avg. salary)
Last updated on May 29, 2025