Readonly
valuesReturns the element at the top of the stack without removing it.
Swaps the element at position
with the top element of the stack.
the position of the element to be swapped.
Error
when secondPosition
is not in the range [1, 16) or the element at secondPosition
does not exist in this Stack
.
Generated using TypeDoc v0.25.2
Represents the EVM stack of expressions
E
. The stack is a list of expressionsE
elements used to store smart contract instruction inputs and outputs.E
represents the type of the symbolic elements in the stack.There is one stack created per call context, and it is destroyed when the call context ends. When a new value is put on the stack, it is put on top, and only the top values are used by the instructions. The stack currently has a maximum limit of 1024 values. All instructions interact with the stack, but it can be directly manipulated with instructions like
PUSH1
,POP
,DUP1
, orSWAP1
.^1