0/5
## Section: Moccasin: Buy Me A Coffee In this section, we are going to make our Buy Me A Coffee project very professional. We are going to use the GitHub repo associated with the project to find all the code. We are going to make some changes to the code, including refactoring, modules and imports. The biggest thing that we are going to improve on is our deployment process and our tests. We will write unit tests, staging tests and integration tests. We are going to learn what deployments.db does and what storage does. We are going to learn about a powerful moccasin feature called manifest named, and how it makes testing easier. Finally, we are going to push our code up to GitHub, which will be the start of your portfolio. Now let's look at the tests. We can run our tests with the following command: ```bash mox test ``` We can also run coverage tests with: ```bash mox test --coverage ``` We can also run tests on a fork of the Sepolia testnet with: ```bash mox test --network sepolia --fork ``` We can also run staging tests. We are going to learn how to write very defensible code. One mistake can mean the end of millions of dollars. In the smart contract world, you need to be able to write very defensible code. We are going to learn about all the cool features of moccasin, and you are going to become a better Python and Vyper developer. We are going to push this code up to GitHub so you can start building your portfolio.
A comprehensive workshop on creating a professional Buy Me A Coffee project using Mocassin. Learn advanced testing techniques including unit tests, staging tests, and integration tests.
Previous lesson
Previous
Next lesson
Next
Give us feedback
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 April 21, 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 April 21, 2025
Testimonials
Read what our students have to say about this course.
Chainlink
Chainlink
Gustavo Gonzalez
Solutions Engineer at OpenZeppelin
Francesco Andreoli
Lead Devrel at Metamask
Albert Hu
DeForm Founding Engineer
Radek
Senior Developer Advocate at Ceramic
Boidushya
WalletConnect
Idris
Developer Relations Engineer at Axelar