Solidity Boolean and Integer Types – A Helpful Guide with Video

Types are among the most important building blocks of a statically-typed programming language, and since Solidity falls into that category, we finally have the opportunity to entertain ourselves with this crucial topic. By learning about types, we’ll get more closely familiar with the Solidity features that are based on idiosyncrasies of a particular data type. … Read more

Seven Simple Solidity Blocks to Build Your dApp

In this article, we’ll take a detailed look at the structure of a smart contract (docs). πŸ’‘ We’ll learn about state variables, functions, function modifiers, events, errors, struct types, and enum types. We have recognized most of these elements in action in the previous articles, especially in the ones where we had real examples of … Read more

Solidity File Layout – SPDX License ID and Version Pragmas

In the previous articles, we looked at some of the representative examples of smart contracts representing possible real-world scenarios. Our main focus was on capturing the essence of each case, without particular attention given to the general structure, i.e. layout of the respective source files. However, in this mini-series starting with this article, we will … Read more

Solidity by Example – Understanding Modular Contracts

This article continues on the Solidity Smart Contract Examples series and implements an example of a modular contract checking that the balances being sent between the addresses comply with the requirements (docs). We’ll first lay out the entire smart contract example without the comments for readability and development purposes. Then we’ll dissect it part by … Read more

Solidity Example – Safe Remote Purchase

This article continues on the Solidity Smart Contract Examples series, which implements a simple, but the useful process of safe remote purchase. Here, we’re walking through an example of a blind auction (docs). We’ll first lay out the entire smart contract example without the comments for readability and development purposes. Then we’ll dissect it part … Read more

Compound for Developers: Yield Farming, Borrowing, Lending

This tutorial is in continuation of the first part of our DeFi series. In this part, let’s discuss the DeFi lending protocol Compound. πŸͺ™ Full DeFi Course: Click the link to access our free full DeFi course that’ll show you the ins and outs of decentralized finance (DeFi). Compound Operated by Compound, it is a … Read more

Top 5 Solidity Smart Contract Examples for Learning

In this smart contract collection, you’ll dive the most insightful Solidity examples for learning and polishing your skills as a Solidity developer and Blockchain engineer. You can also use those as templates when creating your own smart contracts. Stand on the shoulders of giants! πŸ¦„ 🌍 Recommended Tutorials: Before diving into any individual example in … Read more

Mastering the Solidity Blind Auction Contract (Example)

This article continues on the Solidity Smart Contract Examples series, which implements a somewhat more complex process of a blind auction. 🌍 Recommended Tutorial: Smart Contracts with Solidity — Crash Course Here, we’re walking through an example of a blind auction (original source). We’ll first lay out the entire smart contract example without the comments … Read more

How Does the Solidity Voting Smart Contract Work?

With this article, we are starting a journey of going through smart contract examples in Solidity. We’ll first lay out the entire smart contract example without the comments for readability purposes. Then we’ll dissect it part by part, analyze it and explain it. Following this path, we’ll get a hands-on experience with smart contracts, as … Read more