Introduction
Getting Started
1.
Basics of a Starknet contract
❱
1.1.
Storage
1.2.
Constructor
1.3.
Variables
1.4.
Visibility and Mutability
1.5.
Counter Example
1.6.
Mappings
1.7.
Errors
1.8.
Events
1.9.
Syscalls
1.10.
Strings and ByteArrays
1.11.
Storing Custom Types
1.12.
Custom types in entrypoints
1.13.
Documentation
2.
Deploy and interact with contracts
❱
2.1.
Contract interfaces and Traits generation
2.2.
Calling other contracts
2.3.
Factory pattern
3.
Testing contracts
4.
Cairo cheatsheet
❱
4.1.
Felt
4.2.
LegacyMap
4.3.
Arrays
4.4.
loop
4.5.
while
4.6.
if let
4.7.
while let
4.8.
Match
4.9.
Tuples
4.10.
Struct
4.11.
Type casting
Components
5.
Components How-To
6.
Components Dependencies
7.
Storage Collisions
8.
Ownable
Applications
9.
Upgradeable Contract
10.
Defi Vault
11.
ERC20 Token
12.
Constant Product AMM
Advanced concepts
13.
Writing to any storage slot
14.
Storing Arrays
15.
Struct as mapping key
16.
Hashing
17.
Optimisations
❱
17.1.
Storage Optimisations
18.
List
19.
Plugins
20.
Signature Verification
Light
Rust
Coal
Navy
Ayu
Latte
Frappé
Macchiato
Mocha
Starknet by Example
English
Español
简体中文
Deploy and interact with contracts
In this chapter, we will see how to deploy and interact with contracts.