A quick guide for deploying your smart contracts to a public testnet

Photo by Andrey Larin on Unsplash

Welcome to another article in ethereum programming basics. In the previous articles we have seen the process and the basic tools to develop a decentralized application, and in today’s article we will see how to deploy a dapp in a public testnet, I will also give you some resources you can use to strenghten your skills as an ethereum developer.

What is Infura

Infura is powered by a cutting-edge microservice-driven architecture that dynamically scales…


A quick guide for using drizzle store in a React Dapp

Photo by Samuel Yongbo Kwon on Unsplash

If you have been trying lately to build your dapp front-end with React and Redux, and you’ve realized that you couldn’t just focus on what the dapp is supposed to do, because you had to spend a lot of time configuring the application to provide the components with web3 and contracts instances and keep data synchronized with the blockchain, then this is the right place for you, drizzle store is exactly what you need in this case. So, let’s see how it works and how to use it with a dapp front-end.

What is drizzle store and how it works


How to use events for logging

person smiling as they check their smart phone
person smiling as they check their smart phone
Photo by Emmanuel on Unsplash

Welcome to another article in the Learn Solidity series, which aims to introduce you to Ethereum programming.

In the last article, we have seen how to use web3.js to build a dapp. In today’s article, we will see how to use web3.js to read events from the blockchain.

Events in Solidity act like the logging functionality that you’re used to with other languages, except that instead of logging to the console or to a file, the logs are saved in the Ethereum blockchain. In the following sections we will see:

  • How to declare and trigger an event
  • What logsBloom is…


A practical introduction to web3.js

Laptop with code on a table
Laptop with code on a table
Photo by Nathan da Silva on Unsplash.

Welcome to another installment of the Learn Solidity series. In the last article, we saw how to implement the factory pattern. If you’ve been following from the beginning of this series, then you’ve got the basics down and can start writing your own smart contracts.

Therefore, today I would like to give you the big picture of building decentralized applications and introduce you to web3.js — the missing piece to start building your own dapps.

Before diving into the details of what web3.js …


How to use the factory pattern in your smart contracts

Factory
Factory
Photo by Ant Rozetsky on Unsplash.

Welcome to another installment of the Learn Solidity series. In the previous article, we discussed how to create a smart contract from within another smart contract. Today, we will take a look at a typical use case for this scenario.

What Is the Factory Pattern?


How to create contracts from within contracts

Six young adults sitting/standing at tables and interacting.
Six young adults sitting/standing at tables and interacting.
Photo by Akson on Unsplash

Welcome to another article in the “Learn Solidity” series. In the last article, we saw how to use functions and applied everything we’ve learned so far to build a multisignature wallet.

In this article, we’ll see how to create a contract from within another contract — and how to define abstract contracts and interfaces.

Contract Creation

Let’s take a closer look at how this actually works by examining the example given in the Solidity…


How to use functions in Solidity

Young boy looking at instructions for a lego set
Young boy looking at instructions for a lego set
Photo by Kelly Sikkema on Unsplash

Welcome to another article in the Learn Solidity series, in the previous article we concluded with variables, and today I will introduce you to functions and modifiers, which will give you by the end of this article all the pieces to build a multisignature wallet as we will see in the practice section.

Functions in Solidity have the following form :

function function_name(<param_type> <param_name>) <visibility> <state mutability> [returns(<return_type>)]{ ... }

They can be written either outside (free function) or inside a contract.

Return Variables


Reference types, which should explicitly specify the data location

a row of red British telephone booths (call boxes) along a street
a row of red British telephone booths (call boxes) along a street
Photo by Nick Fewings on Unsplash

Welcome to another article in the Learn Solidity series. In the last article, we have seen how data location works and when you can use each of the three locations: memory, storage, and calldata.

In this article, we will continue our journey of learning about variables in Solidity. This time we will focus on reference types, which should explicitly specify the data location, as we mentioned in previous articles. We will also see how you can define mappings, enumerations, and constants.

Arrays

Storage arrays

These arrays are declared as state…


How data storage works

metal storage cabinet with many small, labelled drawers
metal storage cabinet with many small, labelled drawers
Photo by jesse orrico on Unsplash

Welcome to another article in the Learn Solidity series. As I promised in the last article, we will see how data storage works in Solidity.

Ethereum Virtual Machine (EVM)

The internal workings of EVM:


Start writing smart contracts on Ethereum

neon display of strings of numbers
neon display of strings of numbers
Photo by Photos Hobby on Unsplash

Welcome to the second article in the Learn Solidity series. If you haven’t read the first one, I highly recommend that you do in order to set up your development environment and write and deploy your first contract.
In this article, we will have a look at variables in Solidity, their types, how they are stored, and how you can use them.

In Solidity we have two types of variables :

State variables

These variables are declared outside of functions (like the attributes of a class) and are stored permanently in the Ethereum blockchain, more specifically in the storage Merkle Patricia tree…

wissal haji

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store