Skip to main content

Module opcodes

Module opcodes 

Source
Expand description

EVM Module

Enums§

Opcode
EVM Opcodes References https://evm.codes and https://github.com/ethereum/execution-specs/blob/master/lists/evm/proposed-opcodes.md

Constants§

OPCODES
All the EVM opcodes as a static array They are arranged in a particular order such that all the opcodes that have common prefixes are ordered alphabetically by decreasing length to avoid mismatch when lexing. Example : [origin, or] or [push32, …, push3]
STACK_IMMEDIATE_MAX_N
Largest stack depth reachable by DUPN and SWAPN
STACK_IMMEDIATE_MIN_N
Smallest stack depth reachable by DUPN and SWAPN

Statics§

OPCODES_MAP
Hashmap of all the EVM opcodes

Functions§

decode_pair_immediate 🔒
Decodes an EXCHANGE immediate byte into its (n, m) pair as defined by EIP-8024
decode_single_immediate 🔒
Decodes a DUPN/SWAPN immediate byte as defined by EIP-8024