From 5fe573cb043ca141a110bc8870ebeb1e6ac62f50 Mon Sep 17 00:00:00 2001 From: Steve Goodman Date: Mon, 19 Feb 2024 10:48:18 +0200 Subject: [PATCH] Updates to current limits. --- .../modules/tools/pages/limits_and_triggers.adoc | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/components/Starknet/modules/tools/pages/limits_and_triggers.adoc b/components/Starknet/modules/tools/pages/limits_and_triggers.adoc index 26d7f283b5..359f811a56 100644 --- a/components/Starknet/modules/tools/pages/limits_and_triggers.adoc +++ b/components/Starknet/modules/tools/pages/limits_and_triggers.adoc @@ -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] |=== @@ -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 |===