Blog
The technical content top engineers rely on to level up.
15 min read
Smart Contract Foundry Upgrades with the OpenZeppelin Plugin
Upgrading a smart contract is a multistep and error-prone process, so to minimize the chances of human error, it is desirable to use a tool that…
12 min read
UUPS: Universal Upgradeable Proxy Standard (ERC-1822)
The UUPS pattern is a proxy pattern where the upgrade function resides in the implementation contract, but changes the implementation address stored in…
16 min read
20 Common Solidity Beginner Mistakes
Our intent is not to be patronizing towards developers early in their journey with this article.
22 min read
The intuition behind elliptic curve digital signatures (ECDSA)
This article explains how the ECDSA (Elliptic Curve Digital Signature Algorithm) works as well as why it works.
4 min read
UniswapV2Library Code Walkthrough
The Uniswap V2 Library simplifies some interactions with pair contracts and is used heavily by the Router contracts.
5 min read
Read account data with Solana web3 js and Anchor
This tutorial shows how to read account data directly from the Solana web3 Javascript client so that a web app could read it on the frontend.
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.
3 min read
Multicall in Solana: Batching Transactions and Transaction Size Limit
In Ethereum, we use the multicall pattern if we want to batch multiple transactions together atomically. If one fails, the rest fails.
5 min read
Solana counter tutorial: reading and writing data to accounts
In our previous tutorial, we discussed how to initialize an account so that we could persist data in storage.
6 min read
Cost of storage, maximum storage size, and account resizing in Solana
When allocating storage space, the payer must pay a certain number of SOL per byte allocated. Solana calls this the "rent".
10 min read
Initializing Accounts in Solana and Anchor
Up until this point, none of our tutorials have used "storage variables" or stored anything permanent.
4 min read
#[derive(Accounts)] in Anchor: different kinds of accounts
#[derive(Accounts)] in Solana Anchor is an attribute-like macro for structs that holds references to all the accounts the function will access during its…