April 2019
Intermediate to advanced
490 pages
12h 6m
English
To get up to speed with this new exciting language, we'll go through a simple smart contract so that you can see the full complexity of Vyper. We'll see all the types of variables and functions in one single smart contract.
Go ahead and create a new example.vy file. As you can see, Vyper smart contracts have the .vy termination. Inside it, type down the following code; we'll later explain what every variable means and how they are used. This is just a quick exercise to get your programming hands familiar with how Vyper is written. This code will be your go-to guide to familiarize yourself with Vyper's syntax:
# EventsLogTransfer: event({from: indexed(address), to: indexed(address), amount: uint256})# Custom unitsunits: { ...Read now
Unlock full access