Skip to content

Commit

Permalink
fix: Minor edit in fee-mechanism.adoc (#1206)
Browse files Browse the repository at this point in the history
* Minor edit in fee-mechanism.adoc

* Fix list indentation
  • Loading branch information
stoobie authored Mar 28, 2024
1 parent e5dc420 commit 493452d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,16 @@ For more information see xref:#calculation_of_computation_costs[Calculation of c
* stem:[$t$] is the number of L2->L1 messages sent, where the corresponding payload sizes are denoted by stem:[$q_1,...,q_t$].
* stem:[$\ell$] is the number of contracts whose class was changed, which happens on contract deployment and when applying the `replace_class` syscall.
* stem:[$D$] is 1 if the transaction is of type `DECLARE` and 0 otherwise. Declare transactions need to post on L1 the new class hash and compiled class hash which are added to the state.
* L2->L1 messages related constants (for more details, see xref:#l_2-l_1_messages[]):
* L2->L1 messaging constants:
+
--
** stem:[$\text{message_calldata_cost}$] is 1124 gas per 32-byte word.
** stem:[$\text{l1_log_data_cost}$] is 256 gas.
** stem:[$\text{l1_storage_write_cost}$] is the cost of writing to a new storage slot on Ethereum, which is 20,000 gas.
** stem:[$\text{log_message_to_l1_cost}$] is 1637 gas.
--
+
For more information, see xref:#l_2-l_1_messages[].
* stem:[$\text{l2_payload_costs}$] is the gas cost of data sent over L2. This includes calldata, code, and event emission. For more details see xref:#l2_calldata[].
* stem:[$\text{felt_size_in_bytes}$] is 32, which is the number of bytes required to encode a single STARK field element.

Expand Down

0 comments on commit 493452d

Please sign in to comment.