Cairo Smart Contracts
Browse all Cairo Smart Contracts articles.
8 min read
Layer 2 Calldata Gas Optimization
When developing applications on an L2, the majority of gas costs come from calldata. Therefore, gas optimization for L2 emphasizes minimizing that cost.
6 min read
ERC20 Snapshot
ERC20 Snapshot solves the problem of double voting. If votes are weighed by the number of tokens someone holds, then a malicious actor can use their…
7 min read
Solidity Gasleft
The purpose of this article is to describe the behavior of the Solidity gasleft() function and its uses.
21 min read
Mastering Solidity: Master the Computer Science Fundamentals First
I'll spare you the traditional arguments for why you should study and practice what is considered "the fundamentals."
4 min read
Convert gas to USD (Ethereum)
Understanding gas cost can be tricky because there are three components at play: the gas price, the price of ether, and the units of gas.
4 min read
Smart contract creation cost
Smart contract creation cost can be anywhere from $10 to $2,000 assuming ETH costs between $1,500 to $2,000.
13 min read
Flash Loans and how to hack them: a walk through of ERC 3156
Flash loans are loans between smart contracts that must be repaid in the same transaction.
10 min read
Solidity RSA signatures for airdrops and presales: Beating ECDSA and Merkle Trees in Gas Efficiency
Creating a contract that gives certain addresses permissions goes by several names: airdrops, presale, whitelist, allowlist, and so forth.
7 min read
Solana Smart Contract Programming Language
The primary Solana programming language is Rust, but C, C++, and even Python are supported. Solana coding language uses Rust, C, and C++ in a similar way.
10 min read
Zero knowledge programming languages
Zero knowledge proofs demonstrate you executed a computation correctly without revealing the inputs to the computation.
7 min read
Solidity vs Rust
A common misconception is that learning blockchain is about learning a new programming language. It isn't.
5 min read
Learn Solidity: Easy to Learn, Hard to Master?
Learning solidity as a language is arguably one of the easier languages to learn. However, learning the Ethereum environment is hard.