header image
avatar

Naveen

Naveen

shadowy super coder
Subscribe to Naveen
Receive the latest updates directly to your inbox.
Card Header

Disambiguating Clone and Copy traits in Rust

Publisher
Naveen
June 27
If you've been dipping your toes in the awesome Rust language, you must've encountered the clone() method which is present in almost every object out there to make a deep copy of it. It comes from the implementation of Clone trait for a struct.
Card Header

A Practical Introduction To Solidity Assembly: Part 2

Publisher
Naveen
April 29
In the previous part (Part 1) we understood some facts about solidity compiler and wrote the Box contract's functions using inline assembly i.e. in Yul. This part would guide you to writing the Box contract in pure assembly. As a reminder here is the Box contract with inline assembly from previous part:
Card Header

A Practical Introduction To Solidity Assembly: Part 1

Publisher
Naveen
April 28
In the previous part (Part 0) we covered some pre-requisite knowledge of EVM. In this part, we will write the Box contract partially in assembly - the function bodies of retrieve() and store(). Here is our Box contract in Solidity:
Card Header

A Practical Introduction To Solidity Assembly: Part 0

Publisher
Naveen
April 27
Solidity is by far the most used language for smart contracts on Ethereum blockchain. It is a high-level language that abstracts away various underlying nitty-gritty details (like several important safety checks) - and that is for good!
Card Header

Proxy Patterns For Upgradeability Of Solidity Contracts: Transparent vs UUPS Proxies

Publisher
Naveen
March 22
Before you move further I assume you already of some Solidity experience and know how storage slots work in any contract.
Card Header

The Graph Tutorial: Creating a Subgraph

Publisher
Naveen
February 15
Before you continue, I'm assuming you know what The Graph is and what problems it tackles. If you haven't, I highly recommend checking out - Why The Graph.
Card Header

The Graph Tutorial: Why The Graph?

Publisher
Naveen
February 12
I'm assuming the reader of this article has prior experience in writing basic smart contracts, at minimum. If not, it's a great time to start.

A Case On How Smart Contracts Drive Token Economy

Publisher
Naveen
February 12
Tokens are arguably one of the most powerful tools in the blockchain right now. A token can be a representation of anything on-chain — be it voting weight, shares in the company, or virtual assets (aka NFTs). A smart contract stores who has what token and how much of it. It also takes care of the business logic of transfers, trades, loans, etc. Tokens are nothing but a mapping of what token belongs to what address (or account) inside the smart contract. So, when you transfer your token to someone else, that mapping changes so that the traded token maps to the receiver’s address.