The highest tagged major version is
v3.
package
Version:
v2.3.7
Opens a new window with list of versions in this module.
Published: Nov 7, 2024
License: Apache-2.0, Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
MaxOpCodesCount = 256
)
const (
STOP OpCode = iota + 0x00
ADD
MUL
SUB
DIV
SDIV
MOD
SMOD
ADDMOD
MULMOD
EXP
SIGNEXTEND
)
const (
LT OpCode = iota + 0x10
GT
SLT
SGT
EQ
ISZERO
)
const (
AND OpCode = iota + 0x16
OR
XOR
NOT
BYTE
SHL
SHR
SAR
)
const (
ADDRESS OpCode = iota + 0x30
BALANCE
ORIGIN
CALLER
CALLVALUE
CALLDATALOAD
CALLDATASIZE
CALLDATACOPY
CODESIZE
CODECOPY
GASPRICE
EXTCODESIZE
EXTCODECOPY
RETURNDATASIZE
RETURNDATACOPY
EXTCODEHASH
BLOCKHASH
COINBASE
TIMESTAMP
NUMBER
DIFFICULTY
GASLIMIT
)
const (
CHAINID OpCode = iota + 0x46
SELFBALANCE
BASEFEE
)
const (
POP OpCode = iota + 0x50
MLOAD
MSTORE
MSTORE8
SLOAD
SSTORE
JUMP
JUMPI
PC
MSIZE
GAS
JUMPDEST
)
const (
PUSH1 OpCode = iota + 0x60
PUSH2
PUSH3
PUSH4
PUSH5
PUSH6
PUSH7
PUSH8
PUSH9
PUSH10
PUSH11
PUSH12
PUSH13
PUSH14
PUSH15
PUSH16
PUSH17
PUSH18
PUSH19
PUSH20
PUSH21
PUSH22
PUSH23
PUSH24
PUSH25
PUSH26
PUSH27
PUSH28
PUSH29
PUSH30
PUSH31
PUSH32
)
const (
DUP1 OpCode = iota + 0x80
DUP2
DUP3
DUP4
DUP5
DUP6
DUP7
DUP8
DUP9
DUP10
DUP11
DUP12
DUP13
DUP14
DUP15
DUP16
)
const (
SWAP1 OpCode = iota + 0x90
SWAP2
SWAP3
SWAP4
SWAP5
SWAP6
SWAP7
SWAP8
SWAP9
SWAP10
SWAP11
SWAP12
SWAP13
SWAP14
SWAP15
SWAP16
)
const (
LOG0 OpCode = iota + 0xA0
LOG1
LOG2
LOG3
LOG4
)
const (
TLOAD OpCode
TSTORE
)
const (
CREATE OpCode = iota + 0xF0
CALL
CALLCODE
RETURN
DELEGATECALL
CREATE2
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.