🚧 本 EIP 至少有6个月没有活动。
EIP-1803: Rename opcodes for clarity
作者 | Alex Beregszaszi |
---|---|
讨论-To | https://ethereum-magicians.org/t/eip-1803-rename-opcodes-for-clarity/3345 |
状态 | Stagnant |
类型 | Standards Track |
分类 | Interface |
创建日期 | 2017-07-28 |
依赖 | 141 |
英文版 | https://eips.ethereum.org/EIPS/eip-1803 |
Abstract
Rename the BALANCE
, SHA3
, NUMBER
, GASLIMIT
, GAS
and INVALID
opcodes to reflect their true meaning.
Specification
Rename the opcodes as follows:
BALANCE
(0x31
) toEXTBALANCE
to be in line withEXTCODESIZE
,EXTCODECOPY
andEXTCODEHASH
SHA3
(0x20
) toKECCAK256
NUMBER
(0x43
) toBLOCKNUMBER
GASLIMIT
(0x45
) toBLOCKGASLIMIT
to avoid confusion with the gas limit of the transactionGAS
(0x5a
) toGASLEFT
to be clear what it refers toINVALID
(0xfe
) toABORT
to clearly articulate when someone refers this opcode as opposed to “any invalid opcode”
向后兼容性
This has no effect on any code. It can influence what mnemonics assemblers will use.
Implementation
Not applicable.
References
EIP-6 previously renamed SUICIDE
(0xff
) to SELFDESTRUCT
. Renaming SHA3
was previously proposed by EIP-59.
Copyright
Copyright and related rights waived via CC0.
参考文献
Please cite this document as:
Alex Beregszaszi, "EIP-1803: Rename opcodes for clarity [DRAFT]," Ethereum Improvement Proposals, no. 1803, July 2017. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-1803.