-
Upgrade your Parachain Runtime
This is how you upgrade your Parachain Runtime in Polkadot. Requirement: Your parachain must have a democracy or a sudo pallet installed. You already know how to create the Chainspec, WASM and Genesis State files from your blockchain. 1. Setup a development infrastructure Startup your Relaychain. You need atleast two nodes, e.g., Alice and Bob using the same…
-
Adding pallet_contracts to Substrate Cumulus Parachain Template.
Anything Polkadot and Substrate is difficult, thus adding pallet_contracts to the latest Parachain Template requires a lot of hacking and begging from people in Parity Technology for help. But nevertheless we’ve managed to add support for smart contracts into our Parachain. Parachain is a sharded blockchain implementation of Polkadot. Hence this blockchain needs a Relay…
-
Deploying and executing Web3 Smart Contracts in Polygon using Node.js and Web3.js
The ability to have premissionless transistion functions through smart contracts makes blockchain special. These are two most commonly used smart contracts: Our goal is to deploy the two smart contracts into a blockchain and interact with it externally using Node.js with Web3.js libraries in four (4) steps. For our blockchain we will be using Polygon…
-
Sending Gmail emails using Rust
This blog will show you how simple it is to send Gmail emails using Rust. We will be also using .env to securely store your Gmail credentials at the server. Let’s start! The first step is to setup a Gmail app password: Next is to modify the Cargo.toml file by adding dependecies. We will be…
-
Programmatically transfer balances from one account to another in Substrate.
Programmatically transferring balances from one account to another is the most important automation function you will need to invoked in your blockchain if ever you want to act as an off-chain worker, decentralized exchange, oracle, pool or any other finance related activities. Here are the steps on how to programmatically transfer a balance from one…
-
Hack the substrade-node-template to add support to WASM Smart Contracts?
You need Smart Contracts to be able to expand the use-cases of your blockchain, without it, your chain will be just like Bitcoin, nothing but a UTXO ledger. Web3 runs on top of Smart Contracts. Fungible and Non-fungible Tokens (NFT) runs on top of Smart Contracts. Other bridges and inter-blockchain automation runs on top of…
-
How to pay the block author/validator on a Proof-of-Authority (PoA) consensus in Substrate.
If you are starting your own blockchain and you don’t want the complexity of a large chain, you need start with a new and controlled community which later on be converted into Parachains, a large shared chain that can connect to a relay chain in the Polkadot eco-system. For me, starting with Proof-of-Aurthority (PoA) is…
-
How to deploy Substrate node in AWS EC2.
In the Substrate official website they mentioned that “substrate enables developers to quickly and easily build future proof blockchains” – they’re lying! even deploying is not easy and we still have to prove that it is future proof but nevertheless we move forward. The technology is about 3 years old but the stack is still…
-
Parsing real-world JSON file and saving it to MySQL in Rust
This is the first application that we truly used Rust. The real application includes HTTP request, but for simplicity we will just parse the output file, a JSON file, and save it to a database, MySQL database. We are using Cargo to organize the project dependencies as well as compiling and execution. So will start…
-
Creating Angular Frontend to interact with Terra Blockchain.
It is an exciting time to be a developer in the Blockchain space. There are now more options to write your tokens whether it be fungible, non-fungible or just a typical plain-old-protocol contract. With the new technology like COSMWASM (https://cosmwasm.com/) we can soon do interoperability between chains, how cool is that. My favorite new COSMWASM…