mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Docs for block.basefee and basefee() in Yul.
This commit is contained in:
		
							parent
							
								
									af1dabb555
								
							
						
					
					
						commit
						cb9b52c242
					
				| @ -84,6 +84,7 @@ Global Variables | |||||||
|   to ``abi.encodeWithSelector(bytes4(keccak256(bytes(signature)), ...)``` |   to ``abi.encodeWithSelector(bytes4(keccak256(bytes(signature)), ...)``` | ||||||
| - ``bytes.concat(...) returns (bytes memory)``: :ref:`Concatenates variable number of | - ``bytes.concat(...) returns (bytes memory)``: :ref:`Concatenates variable number of | ||||||
|   arguments to one byte array<bytes-concat>` |   arguments to one byte array<bytes-concat>` | ||||||
|  | - ``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>`_) | ||||||
| - ``block.chainid`` (``uint``): current chain id | - ``block.chainid`` (``uint``): current chain id | ||||||
| - ``block.coinbase`` (``address payable``): current block miner's address | - ``block.coinbase`` (``address payable``): current block miner's address | ||||||
| - ``block.difficulty`` (``uint``): current block difficulty | - ``block.difficulty`` (``uint``): current block difficulty | ||||||
|  | |||||||
| @ -72,6 +72,7 @@ Block and Transaction Properties | |||||||
| -------------------------------- | -------------------------------- | ||||||
| 
 | 
 | ||||||
| - ``blockhash(uint blockNumber) returns (bytes32)``: hash of the given block when ``blocknumber`` is one of the 256 most recent blocks; otherwise returns zero | - ``blockhash(uint blockNumber) returns (bytes32)``: hash of the given block when ``blocknumber`` is one of the 256 most recent blocks; otherwise returns zero | ||||||
|  | - ``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>`_) | ||||||
| - ``block.chainid`` (``uint``): current chain id | - ``block.chainid`` (``uint``): current chain id | ||||||
| - ``block.coinbase`` (``address payable``): current block miner's address | - ``block.coinbase`` (``address payable``): current block miner's address | ||||||
| - ``block.difficulty`` (``uint``): current block difficulty | - ``block.difficulty`` (``uint``): current block difficulty | ||||||
|  | |||||||
| @ -717,8 +717,8 @@ This document does not want to be a full description of the Ethereum virtual mac | |||||||
| Please refer to a different document if you are interested in the precise semantics. | Please refer to a different document if you are interested in the precise semantics. | ||||||
| 
 | 
 | ||||||
| Opcodes marked with ``-`` do not return a result and all others return exactly one value. | Opcodes marked with ``-`` do not return a result and all others return exactly one value. | ||||||
| Opcodes marked with ``F``, ``H``, ``B``, ``C`` or ``I`` are present since Frontier, Homestead, | Opcodes marked with ``F``, ``H``, ``B``, ``C``, ``I`` and ``L`` are present since Frontier, Homestead, | ||||||
| Byzantium, Constantinople or Istanbul, respectively. | Byzantium, Constantinople, Istanbul or London respectively. | ||||||
| 
 | 
 | ||||||
| In the following, ``mem[a...b)`` signifies the bytes of memory starting at position ``a`` up to | In the following, ``mem[a...b)`` signifies the bytes of memory starting at position ``a`` up to | ||||||
| but not including position ``b`` and ``storage[p]`` signifies the storage contents at slot ``p``. | 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 | |||||||
| | log4(p, s, t1, t2, t3,  | `-` | F | log with topics t1, t2, t3, t4 and data mem[p...(p+s))          | | | log4(p, s, t1, t2, t3,  | `-` | F | log with topics t1, t2, t3, t4 and data mem[p...(p+s))          | | ||||||
| | t4)                     |     |   |                                                                 | | | t4)                     |     |   |                                                                 | | ||||||
| +-------------------------+-----+---+-----------------------------------------------------------------+ | +-------------------------+-----+---+-----------------------------------------------------------------+ | ||||||
| | chainid()               |     | I | ID of the executing chain (EIP 1344)                            | | | chainid()               |     | I | ID of the executing chain (EIP-1344)                            | | ||||||
|  | +-------------------------+-----+---+-----------------------------------------------------------------+ | ||||||
|  | | basefee()               |     | L | current block's base fee (EIP-3198 and EIP-1559)                | | ||||||
| +-------------------------+-----+---+-----------------------------------------------------------------+ | +-------------------------+-----+---+-----------------------------------------------------------------+ | ||||||
| | origin()                |     | F | transaction sender                                              | | | origin()                |     | F | transaction sender                                              | | ||||||
| +-------------------------+-----+---+-----------------------------------------------------------------+ | +-------------------------+-----+---+-----------------------------------------------------------------+ | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user