Cairo Smart Contracts
Browse all Cairo Smart Contracts articles.
10 min read
Viem React Js Example: Transfer, Mint, and View Blockchain State
In this tutorial, we’ll build a fully functional Dapp with the Viem typescript library + React (Next.js).
6 min read
Three ways to detect if an address is a smart contract
This article describes three methods in Solidity for determining if an address is a smart contract. We discuss each method in this tutorial.
9 min read
Uniswap V2 Architecture: An Introduction to Automated Market Makers
Uniswap is a DeFi app that enables traders to swap one token for another in a trustless manner.
15 min read
Getting a smart contract audit: what you need to know
A smart contract audit is a review by blockchain security experts to ensure that users will not lose funds due to a malfunction or security vulnerability.
2 min read
OpenZeppelin Ownable: Use Ownable2Step Instead
The onlyOwner modifier is probably one of the most common patterns in Solidity.
3 min read
Solidity Staticcall EIP 214
Staticcall is like a regular Ethereum call except that it reverts if a state change happens. It cannot be used to transfer Ether.
5 min read
Understanding smart contract metadata
When Solidity generates the bytecode for the smart contract to be deployed, it appends metadata about the compilation at the end of the bytecode.
4 min read
Solana programs are upgradeable and do not have constructors
In this tutorial we will peek behind the scenes of anchor to see how a Solana program gets deployed.
6 min read
Solidity Mutation Testing
Mutation testing is a method to check the quality of the test suite by intentionally introducing bugs into the code and ensuring the tests catch the bug.
6 min read
Ethereum precompiled contracts
Ethereum precompiles behave like smart contracts built into the Ethereum protocol. The nine precompiles live in addresses 0x01 to 0x09.
11 min read
How ERC721 Enumerable Works
An Enumerable ERC721 is an ERC721 with added functionality that enables a smart contract to list all the NFTs an address owns.
4 min read
How Chainlink Price Feeds Work
Chainlink price oracles are smart contracts with public view functions that return the price of a particular asset denominated in USD.