Packages

package stack

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. 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

  2. sealed trait StackOperation extends constant.ScriptOperation

    Created by chris on 1/6/16.

Value Members

  1. case object OP_2DROP extends StackOperation with Product with Serializable

    Removes the top two stack items.

  2. case object OP_2DUP extends StackOperation with Product with Serializable

    Duplicates the top two stack items

  3. case object OP_2OVER extends StackOperation with Product with Serializable

    Copies the pair of items two spaces back in the stack to the front.

  4. case object OP_2ROT extends StackOperation with Product with Serializable

    The fifth and sixth items back are moved to the top of the stack.

  5. case object OP_2SWAP extends StackOperation with Product with Serializable

    Swaps the top two pairs of items.

  6. case object OP_3DUP extends StackOperation with Product with Serializable

    Duplicates the top 3 stack items

  7. case object OP_DEPTH extends StackOperation with Product with Serializable

    Puts the number of stack items onto the stack.

  8. case object OP_DROP extends StackOperation with Product with Serializable

    Removes the top stack item

  9. case object OP_DUP extends StackOperation with Product with Serializable

    Duplicates the top stack item.

  10. 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.

  11. case object OP_IFDUP extends StackOperation with Product with Serializable

    If the top stack value is not 0, duplicate it.

  12. case object OP_NIP extends StackOperation with Product with Serializable

    Removes the second-to-top stack item.

  13. case object OP_OVER extends StackOperation with Product with Serializable

    Copies the second-to-top stack item to the top.

  14. case object OP_PICK extends StackOperation with Product with Serializable

    The item n back in the stack is copied to the top.

  15. case object OP_ROLL extends StackOperation with Product with Serializable

    The item n back in the stack is moved to the top.

  16. case object OP_ROT extends StackOperation with Product with Serializable

    The top three items on the stack are rotated to the left.

  17. case object OP_SWAP extends StackOperation with Product with Serializable

    The top two items on the stack are swapped.

  18. 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.

  19. 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.

  20. object StackInterpreter extends StackInterpreter
  21. object StackOperation extends ScriptOperationFactory[StackOperation]

Ungrouped