Category: Ethereum smart contracts
-
Solidity tips and tricks #2: Avoid storage data mutations and operations
EVM has three types of data storage locations: Storage Memory Calldata Each data location has a different purpose and using them appropriately will save us gas and money. Keep in mind that, in some situations, Solidity strictly enforces a default location. Storage When placed in storage, a variable is written on the blockchain. Everything that…
-
Solidity tips and tricks #1: Unchecked arithmetic trick
In my attempt to use my twitter and linkedIn to share interesting things and insights in Web3 on Ethereum, EVM, smart contracts, which I come across in my daily work as a web3 dev. Here we go:Announcing – “Solidity Tips and Tricks Series”. Solidity Tips and Tricks #1: Unchecked Arithmetic trick Before solidity compiler version…
-
Basic overview of data types in solidity
Solidity is a high-level, object-oriented programming language that is used to write smart contracts and build D-apps. It also supports inheritance, libraries, and sophisticated user-defined types. Solidity is a statically typed language. That means, you will have to declare the type of variables in advance unlike javascript. Any programming language has basic data types and…
-
Understanding NFT Staking and how it works
Staking has been prominent in the crypto circles and has been a key component of various protocols. NFT staking follows a similar approach and should sound quite familiar to the folks who understand ERC20 staking / yield farming conceptually. Before we dive deep into NFT staking, do follow me on twitter for more such informative…
-
Introduction to Truffle: Sweet tool for smart contract development
One of the most exciting features that the Ethereum blockchain brings to the table is the ability to write smart contracts! This has revolutionized the use of blockchain as a technology and has opened new doors for its adaptation. Typically, platforms like ethereum, hyperledger, eos, and few others now let you build smart contracts however,…