This is part 2 of my Ethereum IOT Kid Grounding Device project. In this part, we will discuss the business logic behind Grounder.sol, the Smart Contract that does the real work behind grounding my kid. You may read part 1 here.
Solidity as a programming language has been most intriguing for me because of its many features that I haven't come across in languages that I have been more familiar with. One example is the underscore like the one in line 10 below.
This article explores the technique of getting one Smart Contract to call another Smart Contract and is a follow-up to the Escrow Service article that I wrote in May 2018. The Safe Remote Purchase Smart Contract is, in my opinion, the clearest example to explain Smart Contracts to anyone who needs to understand what it does. Safe Remote Purchase has several quirky characteristics. In this article, I will explain one of them.
Syncing to the Ethereum Blockchain has always been a challenge particularly for me.
This is part 2 of the "Lottery as a Smart Contract" series. In part 1, I described the business logic behind the Lottery Smart Contract. Here, I will demonstrate how this contract is executed. To run this, you will need:
Writing a lottery contract is a great way to learn important Smart Contract concepts such as State, Event and Visibility. In this 3 part series, I will describe the logic and codes behind a Lottery Smart Contract. In developing my Lottery Contract, I used Oraclize, a data carrier service that executes external JSON web services.