Learn about the data types available in Vyper. I will explain value types, which include boolean, in128, uint128, address, bytes32, bytes array and strings.
Example of how nested mappings are stored in EVM storage
Code
https://solidity-by-example.org/evm/storage/
Take a course
https://www.smartcontract.engineer/
Remix
https://remix.ethereum.org
#Solidity #SmartContract #Ethereum #スマートコントラクト
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=lk_hiEGhXgU
Contract address can be known before the contract is deployed. But the default way the contract address is computed is not easy to use. Create2 is a better way to find out what the contract's address is going to be before the contract is deployed.
Code - 0:56
Contract bytecode 1:52
How to compute contract address for create2 3:05
Deploy with create2 4:46
Remix demo 7:04
https://solidity-by-example.org/app/create2/
https://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed
#Solidity #Create2 #SmartContract #Solidity #Ethereum #スマートコントラクト
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Join me on Discord: https://discord.gg/Ny8sPaj
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=-XT2YCQGVEQ
Learn how to write your first smart contract in Solidity.
Code: https://solidity-by-example.org/hello-world/
Remix IDE: http://remix.ethereum.org
Solidity: https://solidity.readthedocs.io
Follow on Twitter: @ProgrammerSmart https://twitter.com/ProgrammerSmart
Website: https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=hMwdd664_iw
This video explains how Tornado Cash uses zk-SNARK to protect privacy.
Deposit 0:45
Why does everyone deposit the same amount of ETH? 1:52
Wrong way to withdraw 2:46
Correct way to withdraw - zero knowledge proof 4:04
Nullifier? 5:17
How is deposit hash (commitment) stored? 6:58
How to build a Merkle tree 7:19
Merkle tree in Tornado Cash 7:53
How to insert commitment into Merkle tree of Tornado Cash 8:32
How to prove commitment is in the Merkle tree 10:18
Tools used by Tornado Cash (Circom, snarkjs) 11:51
https://tornado.cash/
https://github.com/tornadocash/tornado-core
#Solidity #SmartContract #TornadoCash #ZeroKnowledgeProof #Ethereum #スマートコントラクト
Follow
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=z_cRicXX1jI
Let's start building our multi-sig wallet app using React and Typescript. In this video I will show you 3 things.
1. How to initialize a React application using Typescript.
2. How to setup Truffle for UI development
3. How to write a function to unlock accounts managed by MetaMask and a function that will keep an eye on the current account used in MetaMask, checking back every second. This isn't the only way to write such functions but this will be a good starting point.
Demo: https://multi-sig.netlify.app/
Code: https://github.com/t4sk/multi-sig-wallet
Notes: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-02/01-setup/
Metamask: https://metamask.io/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
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
...
https://www.youtube.com/watch?v=D-y2XK3YABc
How to easily mint 1 miliion DAI on mainnet fork, in your Foundry test.
Mainnet fork provider - Alchemy
https://www.alchemy.com/
Code
https://github.com/t4sk/hello-foundry
Book
https://book.getfoundry.sh/
Take a course
https://www.smartcontract.engineer/
#Solidity #SmartContract #Ethereum #スマートコントラクト
Remix
https://remix.ethereum.org
Follow
https://odysee.com/@SmartContractProgrammer:8
https://twitter.com/ProgrammerSmart
https://discord.gg/bt8FK2wkcW
https://t.me/smartcontractprogrammer
https://smartcontractprogrammer.com
...
https://www.youtube.com/watch?v=I8mzJxMBzs0
This video with show you how to write a test for a smart contract using Truffle. I will show you two examples, testing that a function works and testing that a function will fail when we expect it to fail. We will be testing the multi-sig wallet contract.
Code: https://smartcontractprogrammer.com/courses/multi-sig-wallet/chapter-01/01-testing/
Truffle: https://www.trufflesuite.com/docs/truffle/overview
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
...
https://www.youtube.com/watch?v=XFQgY-lNNlE