Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 4.7 KB

evm-version-information.md

File metadata and controls

11 lines (6 loc) · 4.7 KB

EVM Version Information

You are asked to provide the EVM version the contract uses during the verification process. If the bytecode does not match the version, we try to verify using the latest EVM version.

For more information, see the Solidity docs on specifying the EVM version when compiling a contract. Note that backward compatibility is not guaranteed between each version.

NameDateMainnet Block #Relevant changes / opcode specsEIP details
NameDateMainnet Block #Relevant changes / opcode specsEIP details
Homestead14 Mar 20161,150,000Oldest versionhttp://eips.ethereum.org/EIPS/eip-606
Tangerine Whistle18 Oct 20162,463,000Gas cost to access other accounts increased, impacts gas estimation and optimization.

All gas sent by default for external calls, previously a certain amount had to be retained.
http://eips.ethereum.org/EIPS/eip-608
Spurious Dragon22 Nov 20162,675,000Gas cost for the exp opcode increased, impacts gas estimation and optimization.http://eips.ethereum.org/EIPS/eip-607
Byzantium16 Oct 20174,370,000Opcodes returndatacopy, returndatasize and staticcall available in assembly.

staticcall opcode used when calling non-library view or pure functions, which prevents the functions from modifying state at the EVM level, this even applies to invalid type conversions.

Ability to access dynamic data returned from function calls.

revert opcode introduced, revert() will not waste gas.
http://eips.ethereum.org/EIPS/eip-609
Constantinople / Petersburg28 Feb 20197,280,000Opcodes create2, extcodehash, shl, shr and sar are available in assembly.

Bitwise shifting operators use shifting opcodes (shl,shr,sar), requiring less gas.
http://eips.ethereum.org/EIPS/eip-1013
Istanbul08 Dec 20199,069,000Opcodes chainid and selfbalance are available in assembly.https://eips.ethereum.org/EIPS/eip-1679
Berlin 14 Apr 202112,244,000Gas costs for SLOAD, *CALL, BALANCE, EXT* and SELFDESTRUCT increased. The compiler assumes cold gas costs for such operations. This is relevant for gas estimation and the optimizer.https://eips.ethereum.org/EIPS/eip-2070
London05 Aug 202112,965,000The block’s base fee (EIP-3198 and EIP-1559) can be accessed via the global block.basefee or basefee() in inline assembly.

Arrow Glacier*09 Aug 2021 13,773,000Delays the difficulty bomb until June 2022.https://eips.ethereum.org/EIPS/eip-4345
Gray Glacier*30 June 2022 15,050,000Delays the difficulty bomb by an additional 3 months to September 2022.https://eips.ethereum.org/EIPS/eip-5133

*Does not impact version for contract verification.