A summary of Solidity programming language.
This summary was based on EatTheBlocks YouTube tutorial on Solidity. While that is a great resource, here's a quick summary of the main points covered across hours of video content. This summary cuts to the chase. 😉
Full video series: here
Once you've downloaded or cloned the repository, you'll find files organized by chapters in the order they were originally presented. More specifically, you'll find:
Chapters
- Introduction to Contracts
- Functions
- Variables
- Built-in Variables
- Control Flow
- Arrays
- Mappings
- Structs
- Enums
- Memory Storage
- Events
- Send Ether To
- Send Ether From
- Calling Functions
- Transfering ERC20 Token
- Constructors
- Creating Smart Contracts programatically
- Error Handling
- Modifiers
- Fallback Functions
- Assembly
- Libraries
- Just clone or download the repository.
- Open folder with VS Code or similar (there're many Solidity add-ons available).
- You can also copy/paste the code into Remix IDE and try out the code on the test net.
- This tutorial was written with Solidity
v0.8.7
, a higher version from the original ETB tutorial that usesv0.5.11
. - It's possible that some files throw errors when compiling. This is intentional since there's probably something in that file meant to teach you something can't / shoudn't be done 🙂.
- Help me keep this summary 👍 by creating pull requests and issues!
- Share this project and make sure you and others give it a ⭐
- 🐦 twitter: @jkarmy.
- ☕️ If you like the open-source work I do, consider buying me a coffee so I can stay awake and keep typing away!
Cheers 🏖
The MIT License (MIT)
Copyright (c) 2021 Juan Antonio Karmy
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.