🚧 Stagnant
Standards Track: Interface
SIP-1803: Rename opcodes for clarity
SIP-1803: Rename opcodes for clarity
| Authors | Alex Beregszaszi (@axic) |
|---|---|
| Created | 2017-07-28 |
| Discussion Link | https://sila-magicians.org/t/sip-1803-rename-opcodes-for-clarity/3345 |
| Requires | SIP-141 |
Table of Contents
Abstract
Rename the BALANCE, SHA3, NUMBER, GASLIMIT, GAS and INVALID opcodes to reflect their true meaning.
Specification
Rename the opcodes as follows:
BALANCE(0x31) toEXTBALANCEto be in line withEXTCODESIZE,EXTCODECOPYandEXTCODEHASHSHA3(0x20) toKECCAK256NUMBER(0x43) toBLOCKNUMBERGASLIMIT(0x45) toBLOCKGASLIMITto avoid confusion with the gas limit of the transactionGAS(0x5a) toGASLEFTto be clear what it refers toINVALID(0xfe) toABORTto clearly articulate when someone refers this opcode as opposed to “any invalid opcode”
Backwards Compatibility
This has no effect on any code. It can influence what mnemonics assemblers will use.
Implementation
Not applicable.
References
SIP-6 previously renamed SUICIDE (0xff) to SELFDESTRUCT.
Renaming SHA3 was previously proposed by SIP-59.
Copyright
Copyright and related rights waived via CC0.
Citation
Please cite this document as:
Alex Beregszaszi (@axic), "SIP-1803: Rename opcodes for clarity [STAGNANT]," Sila Improvement Proposals, no. 1803, July 2017. Available: https://sips.sila.org/SIPS/sip-1803.