fbpx
March 1, 2019

Casino, Reddit, Airbnb Solidity Tutorial | EatTheBlocks Newsletter #27

Lottery, Fomo3D & Rock Paper Scissors Solidity tutorials - Have you ever dreamed of running your own decentralized casino? Checkout these tutorials! Building a decentralized reddit Part 3 - Tutorial on how to build a reddit Dapp using EmbarksJS, an alternative framework for building smart contract EthBnb Tutorial - Tutorial for developing…

Read Story
February 26, 2019

Rock paper scissors Solidity tutorial

You know Rock paper scissors right? If you don't, that's a simple game where in each round 2 players make one of 3 moves: rock paper scissors Paper beats rock, scissors beat paper, and rock beats scissors. You can also bet money in each round, to make it more interesting.…

Read Story
February 24, 2019

Fomo3D Tutorial

Have you heard of Fomo3D? This is a famous lottery Dapp on Ethereum where the last player to invest in a round win the jackpot! By the way, don't freak out if you visit the page of Fomo3d and see references to "scam". This is just some provocative marketing. This…

Read Story
February 23, 2019

Lottery in Solidity

This video is a tutorial to build a lottery smart contract in Solidity. The rules are simples. In each round of the lottery, anybody can send Ether to the smart contract. When enough participants have sent their money, the lottery will determine a winner and send him/her a prize. The…

Read Story
February 21, 2019

Event organization smart contract

In this video, I will teach you how to build a smart contract to organize events.There will be 2 types of users: event organizers customers Event organizers will be able to organize events and sell tickets. Customers will be able to not only buy tickets from the event organizers but…

Read Story
February 19, 2019

Loan state machine in Solidity

In this video we will create a loan smart contract with Solidity. There will be 2 kind of parties interacting with the smart contract: investors borrowers The investor will send Ether at the beginning of the loan, and at the end the borrower will reimburse the investor of the initial…

Read Story
February 17, 2019

Testing dates in Solidity smart contracts – Part I

Dates are a bit weird in Solidity. Solidity does have some keywords for working with dates, like now, or 1 day, but it does not have a native date type. Instead, dates are represented as integers, using timestamps in seconds. In our Truffle tests, we need to be able to…

Read Story
February 16, 2019

More tricks for bn.js (Big Number) library in Truffle tests

In the last video of the smart contract testing series I showed you the basic usage of the Big Number library to deal with integers. But Big Number has many more trick up his sleeves :) In this video, I will show you all these tricks so that you feel…

Read Story
February 14, 2019

Testing integers in smart contract with Truffle and bn.js (Big Number)

In Solidity smart contract, you might have to deal with huge numbers, especially when doing financial transfers. Don't forget that we need to specify Ether transfers in Wei, a fundamental unit equals to 1 * 10 ^ -18 Ether, so very quickly even small financial values can lead to big…

Read Story
February 13, 2019

Etherdelta smart contract walkthrough

In this article, I will walk you through the code of the Etherdelta smart contract: ERC20 token transfers, orders creation, and trades settlement. The smart contract is written in Solidity, and the repo is publicly accessible on the Github of Etherdelta. Decentralized exchanges are one of the most fascinating Blockchain…

Read Story

Never miss a minute

Get great content to your inbox every week. No spam.
[contact-form-7 id="6" title="Footer CTA Subscribe Form"]
Arrow-up