-
Create Forwarder To | Vyper (0.2)
Do you have a Vyper contract that is deployed more than once? Learn how to use create_forwarder_to to deploy Vyper contracts for cheap and save gas.
#Vyper #MinimalProxy #SmartContract #Ethereum #SaveGas
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Raw Call | Vyper (0.2)
This video explains how to use raw_call in Vyper. The function raw_call is, for Vyper version 0.2, the only way to call Solidity functions with dynamic array inputs / outputs.
#Vyper #RawCall #SmartContract #Ethereum
Code: https://github.com/t4sk/vyper-by-example
Uniswap example: https://github.com/t4sk/vyper-by-example/blob/master/src/Uniswap.vy
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Interface | Vyper (0.2)
Interface are used to make function calls between contracts. This video explains how to code interface in Vyper.
#Vyper #Interface #SmartContract #Ethereum
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
How to Setup Remix Local Compiler | Vyper
Remote Vyper compiler on Remix is not working. So this video will explain how to setup the local compiler.
#Vyper #Compiler #SmartContract #Ethereum
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Bits, Bytes and Hex
#Bit #Byte #Hex #uint256 #bytes32
What are bits, bytes and hex? This video explains how they relate to each other and how uint256 can be converted to bytes32
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Send and Receive Ether | Vyper (0.2)
This video explains how a Vyper smart contract can receive and send Ether
#Vyper #SendEther #ReceiveEther #SmartContract #Ethereum
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Event | Vyper (0.2)
In this video I explain what are events and how they are used.
#Vyper #Event #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Error | Vyper (0.2)
This video explains how to throw errors in Vyper using raise and assert.
#Vyper #Error #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
If Else and For Loop | Vyper (0.2)
I show some examples of if / else statement, for loops through array literals, state variables and using range in Vyper.
#Vyper #IfElse #ForLoop #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Variables | Vyper (0.2)
Learn about variables in Vyper. I will show you examples of public and private state variables, constants and environment variables.
#Vyper #Variables #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
How to Call Deployed Contract - Interface | Learn Solidity (0.6)
How to call another already deployed contract? Answer, use interface. In this video I will show you how to declare an interface. We will also go through an example contract that communicates with Uniswap.
#Solidity #Interface #Uniswap
Code: https://solidity-by-example.org/0.6/interface/
References
Uniswap
https://uniswap.org/docs/v2
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com -
Function | Vyper (0.2)
What are view, pure, nonpayable and payable functions? Learn about visibility and mutability in Vyper.
#Vyper #Visibility #Mutability #SmartContract
Code: https://github.com/t4sk/vyper-by-example
# References
Remix IDE: http://remix.ethereum.org
Vyper: https://vyper.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com