Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to current limits. #1136

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions components/Starknet/modules/tools/pages/limits_and_triggers.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Starknet currently has a number of limits in place in order to keep the network
These are subject to revisions and change on a regular basis
====

.Starknet current limits
.Starknet current limits and triggers
[%header, stripes=even]
[%autowidth.stretch]
|===
Expand All @@ -28,15 +28,20 @@ This limit is important for ensuring the efficient execution of transactions and

|Max Cairo steps for `validate`| The maximum number of computational steps, measured in Cairo steps, for a `validate` function. | 1,000,000 | 1,000,000 |1,000,000

|Max contract bytecode size (No of felts in the program)| The maximum size of the bytecode or program that a smart contract can have on Starknet.
|Max contract bytecode size (Number of felts in the program)| The maximum size of the bytecode or program that a smart contract can have on Starknet.

Bytecode is the low-level code that comprises smart contracts. Limiting this size helps manage the complexity of contracts and the overall efficiency of the network.
| 61,440 | 61,440 | 61,440
| 81,290 | 81,290 | 81,290
|Max contract class size|The maximum size for a contract class within Starknet.

Contract classes are a fundamental building block for smart contracts, and limiting their size can have implications for the network's scalability and security.
| 20MB | 20MB | 20MB
| 4,089,446 bytes
| 4,089,446 bytes
| 4,089,446 bytes

|IP address limits (read/write)| In order to reduce network spam, Starknet limits the amount of contract reads and writes that a single IP
address can make. | 200 per min per IP address| 200 per min per IP address|200 per min per IP address
| Signature length (felts) | | 4,000 | 4,000 | 4,000
| Calldata length (felts) | | 4,000 | 4,000 | 4,000
|===

Loading