Solidity
Browse all Solidity articles.
12 min read
Coding a Solidity rebase token
A “rebase token” (sometimes “rebasing token”) is an ERC-20 token where the total supply, and the balances of token holders, can change without transfers…
13 min read
Q Number Format (Qm.n) Explained for Solidity
Q numbers store fractions as binary fixed-point integers in Qm.n format. Learn to convert to and from Q numbers, their max value, and how to do math on them.
22 min read
Storage Slots of Dynamic Types (Mappings, Arrays, Strings, Bytes)
Dynamic-sized types in Solidity (sometimes referred to as complex types) are data types with variable size.
16 min read
Assembly revert
Reverting transactions using inline assembly can be more gas-efficient than using the high-level Solidity revert or require statement.
16 min read
20 Common Solidity Beginner Mistakes
Our intent is not to be patronizing towards developers early in their journey with this article.
4 min read
Creating "mappings" and "nested mapping" in Solana
In the previous tutorials, the seeds=[] parameter was always empty. If we put data into it, it behaves like a key or keys in a Solidity mapping.
4 min read
Function modifiers (view, pure, payable) and fallback functions in Solana: why they don't exist
A Solana transaction must specify in advance the accounts it will modify or read as part of a transaction.
7 min read
Modifying accounts using different signers
In our Solana tutorials thus far, we've only had one account initialize and write to the account. In practice, this is very restrictive.
5 min read
The Solana clock and other "block" variables
Today we will cover the analogs of all the block variables from Solidity. Not all of them have 1-1 analogs.
17 min read
Try Catch and all the ways Solidity can revert
This article describes all the kinds of errors that can happen when a smart contract is called, and how the Solidity Try / Catch block responds (or fails…
12 min read
Storage Slots in Solidity: Storage Allocation and Low-level assembly storage operations
This article examines the storage architecture of the Ethereum Smart Contracts.
10 min read
Over 150 interview questions for Ethereum Developers
All of these questions can be answered in three sentences or less. What changed with block.timestamp before and after proof of stake?