Skip to content

Commit cb9b52c

Browse files
committed
Docs for block.basefee and basefee() in Yul.
1 parent af1dabb commit cb9b52c

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

docs/cheatsheet.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Global Variables
8484
to ``abi.encodeWithSelector(bytes4(keccak256(bytes(signature)), ...)```
8585
- ``bytes.concat(...) returns (bytes memory)``: :ref:`Concatenates variable number of
8686
arguments to one byte array<bytes-concat>`
87+
- ``block.basefee`` (``uint``): current block's base fee (`EIP-3198 <https://eips.ethereum.org/EIPS/eip-3198>`_ and `EIP-1559 <https://eips.ethereum.org/EIPS/eip-1559>`_)
8788
- ``block.chainid`` (``uint``): current chain id
8889
- ``block.coinbase`` (``address payable``): current block miner's address
8990
- ``block.difficulty`` (``uint``): current block difficulty

docs/units-and-global-variables.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ Block and Transaction Properties
7272
--------------------------------
7373

7474
- ``blockhash(uint blockNumber) returns (bytes32)``: hash of the given block when ``blocknumber`` is one of the 256 most recent blocks; otherwise returns zero
75+
- ``block.basefee`` (``uint``): current block's base fee (`EIP-3198 <https://eips.ethereum.org/EIPS/eip-3198>`_ and `EIP-1559 <https://eips.ethereum.org/EIPS/eip-1559>`_)
7576
- ``block.chainid`` (``uint``): current chain id
7677
- ``block.coinbase`` (``address payable``): current block miner's address
7778
- ``block.difficulty`` (``uint``): current block difficulty

docs/yul.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -717,8 +717,8 @@ This document does not want to be a full description of the Ethereum virtual mac
717717
Please refer to a different document if you are interested in the precise semantics.
718718

719719
Opcodes marked with ``-`` do not return a result and all others return exactly one value.
720-
Opcodes marked with ``F``, ``H``, ``B``, ``C`` or ``I`` are present since Frontier, Homestead,
721-
Byzantium, Constantinople or Istanbul, respectively.
720+
Opcodes marked with ``F``, ``H``, ``B``, ``C``, ``I`` and ``L`` are present since Frontier, Homestead,
721+
Byzantium, Constantinople, Istanbul or London respectively.
722722

723723
In the following, ``mem[a...b)`` signifies the bytes of memory starting at position ``a`` up to
724724
but not including position ``b`` and ``storage[p]`` signifies the storage contents at slot ``p``.
@@ -879,7 +879,9 @@ the ``dup`` and ``swap`` instructions as well as ``jump`` instructions, labels a
879879
| log4(p, s, t1, t2, t3, | `-` | F | log with topics t1, t2, t3, t4 and data mem[p...(p+s)) |
880880
| t4) | | | |
881881
+-------------------------+-----+---+-----------------------------------------------------------------+
882-
| chainid() | | I | ID of the executing chain (EIP 1344) |
882+
| chainid() | | I | ID of the executing chain (EIP-1344) |
883+
+-------------------------+-----+---+-----------------------------------------------------------------+
884+
| basefee() | | L | current block's base fee (EIP-3198 and EIP-1559) |
883885
+-------------------------+-----+---+-----------------------------------------------------------------+
884886
| origin() | | F | transaction sender |
885887
+-------------------------+-----+---+-----------------------------------------------------------------+

0 commit comments

Comments
 (0)