package stack
- Alphabetic
- Public
- Protected
Type Members
- sealed abstract class StackInterpreter extends AnyRef
Created by chris on 1/6/16.
Created by chris on 1/6/16. Stack operations implemented in the script programming language https://en.bitcoin.it/wiki/Script#Stack
- sealed trait StackOperation extends constant.ScriptOperation
Created by chris on 1/6/16.
Value Members
- case object OP_2DROP extends StackOperation with Product with Serializable
Removes the top two stack items.
- case object OP_2DUP extends StackOperation with Product with Serializable
Duplicates the top two stack items
- case object OP_2OVER extends StackOperation with Product with Serializable
Copies the pair of items two spaces back in the stack to the front.
- case object OP_2ROT extends StackOperation with Product with Serializable
The fifth and sixth items back are moved to the top of the stack.
- case object OP_2SWAP extends StackOperation with Product with Serializable
Swaps the top two pairs of items.
- case object OP_3DUP extends StackOperation with Product with Serializable
Duplicates the top 3 stack items
- case object OP_DEPTH extends StackOperation with Product with Serializable
Puts the number of stack items onto the stack.
- case object OP_DROP extends StackOperation with Product with Serializable
Removes the top stack item
- case object OP_DUP extends StackOperation with Product with Serializable
Duplicates the top stack item.
- case object OP_FROMALTSTACK extends StackOperation with Product with Serializable
Puts the input onto the top of the main stack.
Puts the input onto the top of the main stack. Removes it from the alt stack.
- case object OP_IFDUP extends StackOperation with Product with Serializable
If the top stack value is not 0, duplicate it.
- case object OP_NIP extends StackOperation with Product with Serializable
Removes the second-to-top stack item.
- case object OP_OVER extends StackOperation with Product with Serializable
Copies the second-to-top stack item to the top.
- case object OP_PICK extends StackOperation with Product with Serializable
The item n back in the stack is copied to the top.
- case object OP_ROLL extends StackOperation with Product with Serializable
The item n back in the stack is moved to the top.
- case object OP_ROT extends StackOperation with Product with Serializable
The top three items on the stack are rotated to the left.
- case object OP_SWAP extends StackOperation with Product with Serializable
The top two items on the stack are swapped.
- case object OP_TOALTSTACK extends StackOperation with Product with Serializable
Puts the input onto the top of the alt stack.
Puts the input onto the top of the alt stack. Removes it from the main stack.
- case object OP_TUCK extends StackOperation with Product with Serializable
The item at the top of the stack is copied and inserted before the second-to-top item.
- object StackInterpreter extends StackInterpreter
- object StackOperation extends ScriptOperationFactory[StackOperation]