Solidity
Browse all Solidity articles.
11 min read
Integers in Cairo
Cairo doesn’t offer the full range of integer sizes found in Solidity.
10 min read
Type Casting
Type casting in Cairo is the process of converting values from one data type to another.
9 min read
Cairo for Solidity Developers
Cairo is a Rust-inspired language that compiles to bytecode, which runs on the Cairo Virtual Machine.
8 min read
Cairo Components Part 1
Components in Cairo behave like abstract contracts in Solidity. They can define and work with storage, events, and functions, but they can’t be deployed…
3 min read
Access Control in Cairo
Access control defines who can call specific functions or modify contract behavior.
20 min read
Events in Starknet
Events emit data from contract execution into the transaction receipt.
7 min read
Function Visibility in Cairo
Cairo does not have "internal" and "pure" modifiers (or any other modifiers for that matter) like Solidity does.
11 min read
Structure of a Basic Contract
This article shows how to build a deployable Cairo contract for Starknet.
11 min read
How Ethereum address are derived (EOAs, CREATE, and CREATE2)
On Ethereum, smart contracts can be deployed in one of three ways. In this article, we will explore how to predict the address of the contract that will…
8 min read
Tickmath getSqrtRatioAtTick
This article explains how the getSqrtRatioAtTick() function in Uniswap V3 TickMath library works.
4 min read
MD5 Hash In Circom
In this tutorial, we will implement the MD5 hash in Circom both to compute the hash and to constrain in Circom that it was computed correctly.
11 min read
Introduction to ZK Circuits with Circom
Circom is a programming language for creating Rank 1 Constraint Systems (R1CS) and populating the witness vector of the R1CS.