Cosmos Modules, Part I : staking, distribution and slashing
By Arnab Ghose on 2022-04-13
Staking The x/staking module handles operations related to staking. Let’s undestand Staking modules with an account being made as a validator and then perform operations related to modules. Creating a validator hid-noded tx staking create-validator --amount=5000000uhid --from=node1 --pubkey=$(hid-noded tendermint show-validator --home=$HOME/.hid-node) --moniker="node1" --chain-id="hidnode" --commission-rate="0.1" --commission-max-rate="0.2" --commission-max-change-rate="0.05" --min-self-delegation="5000" --keyring-backend=test --home=$HOME/.hid-node --yes Here, we have user with account name node1. The user becomes the validator by staking 5000000uhid in the chain. We can the node1 being created as a validator
Paying transaction fee on behalf of someone else!
By Arnab Ghose on 2022-04-13
Building a UX where a User feels comfortable in interacting with the blockchain is much needed. In this blog, we will be looking at how the authz and feegrant Cosmos SDK modules aim to build a similar User Experience. The authz module grants and revokes permissions to accounts for performation certain transactions. This could be token trasnfer, staking. The generic authorization is where we can explicitly pass the TypeURL of the transaction, which is going to be our focus for this blog.
Inflation in the Cosmos Ecosystem
By Arnab Ghose on 2022-04-11
We are quite familiar with what inflation is in real life. When the supply falls short of demand, the cost of goods and services increase, thus inflation. You can read more about inflation here. But what does it really mean in the world of Cosmos? Unlike real world, Inflation in Cosmos refers to the increase in minted tokens for each block, which are used to incentivize the stakeholders. Cosmos SDK allows us to set the parameters for initial inflation rate and the paramters related to it.