Ethereum IOT Kid Grounding Device II: Smart Contract

Ethereum IOT Kid Grounding Device II: Smart Contract

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.

I like to equate Smart Contract to the business logic layer of conventional apps which developers would have developed as JSON web services in tools such as node.js (if you like JavaScript) or django (if you like Python).

Creating Smart Contracts with Smart Contract

Creating Smart Contracts with Smart Contract

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.

Lottery as a Smart Contract: The Business Logic

Lottery as a Smart Contract: The Business Logic

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.

Motivation