4/5
## Moccasin Five More We're going to keep moving right along in this course. We're going to be learning about modules today. The repo's coming along very well. We're going to keep moving on along here, and we're going to go into be the next section, the Moccasin Five More. This is going to be the final time we work with our favorites contract. We will see you no more. However, we're not just working with the favorites contract. We're going to be working with a few other contracts here. Let me show you what we're going to be learning in this section. We have a couple of new contracts, along with a `favorites_factory` contract, that we will interact with. We will also use the `ext call` to interact with our contracts and also learn about `static call`. We also have an interface, which is a new thing we've not encountered before. Our main Vyper code will be in our `five_more.vy` file. We'll use it to import favorites. We're going to use the `initialize` and `favorites.init` functions. We also have the `export` function at the bottom of our file. This section is all about modules. We will be playing a whole bunch with this contract. This should be a quick pit stop here, just to learn about modules, and then we're going to go on to the more advanced Buy Me a Coffee.
We're going to keep moving right along in this course. We're going to be learning about modules today. The repo's coming along very well. We're going to keep moving on along here, and we're going to go into be the next section, the Moccasin Five More. This is going to be the final time we work with our favorites contract. We will see you no more. However, we're not just working with the favorites contract. We're going to be working with a few other contracts here.
Let me show you what we're going to be learning in this section. We have a couple of new contracts, along with a favorites_factory
contract, that we will interact with. We will also use the ext call
to interact with our contracts and also learn about static call
.
We also have an interface, which is a new thing we've not encountered before. Our main Vyper code will be in our five_more.vy
file. We'll use it to import favorites.
We're going to use the initialize
and favorites.init
functions.
We also have the export
function at the bottom of our file.
This section is all about modules. We will be playing a whole bunch with this contract. This should be a quick pit stop here, just to learn about modules, and then we're going to go on to the more advanced Buy Me a Coffee.
A practical guide to Vyper smart contract modules - The lesson covers contract deployment and interaction using the new 0.4.0 modules feature, including interfacing and the 'Xcall' function. This section will focus on the basics of modules and how to use them in your Vyper smart contracts.
Previous lesson
Previous
Next lesson
Next
Give us feedback
Vyper 0.4.1
Last updated on April 21, 2025
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using 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 August 11, 2025
Duration: 2h 20min
Duration: 1h 51min
Duration: 58min
Duration: 2h 23min
Duration: 53min
Duration: 2h 24min
Duration: 28min
Duration: 1h 54min
Duration: 11min
Course Overview
About the course
Python basics
Introduction to Web3.py
Introduction to Titanoboa
Introduction to Moccasin
How to create an ERC-20
How to test Python code and Vyper smart contract
How to deploy Vyper smart contracts on ZKsync using 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 August 11, 2025