class ErgoLikeContext extends InterpreterContext

TODO lastBlockUtxoRoot should be calculated from headers if it is nonEmpty

Linear Supertypes
InterpreterContext, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ErgoLikeContext
  2. InterpreterContext
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ErgoLikeContext(lastBlockUtxoRoot: AvlTreeData, headers: Coll[Header], preHeader: PreHeader, dataBoxes: IndexedSeq[ErgoBox], boxesToSpend: IndexedSeq[ErgoBox], spendingTransaction: ErgoLikeTransactionTemplate[_ <: UnsignedInput], selfIndex: Int, extension: ContextExtension, validationSettings: SigmaValidationSettings, costLimit: Long, initCost: Long)

    lastBlockUtxoRoot

    - state root before current block application

    headers

    - fixed number of last block headers in descending order (first header is the newest one)

    preHeader

    - fields of block header with the current spendingTransaction, that can be predicted by a miner before it's formation

    dataBoxes

    - boxes, that corresponds to id's of spendingTransaction.dataInputs

    boxesToSpend

    - boxes, that corresponds to id's of spendingTransaction.inputs

    spendingTransaction

    - transaction that contains self box

    selfIndex

    - index of the box in boxesToSpend that contains the script we're evaluating

    extension

    - prover-defined key-value pairs, that may be used inside a script

    validationSettings

    validataion parameters passed to Interpreter.verify to detect soft-fork conditions

    costLimit

    hard limit on accumulated execution cost, if exceeded lead to CostLimitException to be thrown

    initCost

    initial value of execution cost already accumulated before Interpreter.verify is called

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. val boxesToSpend: IndexedSeq[ErgoBox]
  6. def canEqual(other: Any): Boolean
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. val costLimit: Long
    Definition Classes
    ErgoLikeContextInterpreterContext
  9. val dataBoxes: IndexedSeq[ErgoBox]
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean
    Definition Classes
    ErgoLikeContext → AnyRef → Any
  12. val extension: ContextExtension
    Definition Classes
    ErgoLikeContextInterpreterContext
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. def hashCode(): Int
    Definition Classes
    ErgoLikeContext → AnyRef → Any
  16. val headers: Coll[Header]
  17. val initCost: Long
    Definition Classes
    ErgoLikeContextInterpreterContext
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. val lastBlockUtxoRoot: AvlTreeData
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. val preHeader: PreHeader
  24. val self: ErgoBox
  25. val selfIndex: Int
  26. val spendingTransaction: ErgoLikeTransactionTemplate[_ <: UnsignedInput]
  27. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  28. def toSigmaContext(IR: Evaluation, isCost: Boolean, extensions: Map[Byte, AnyValue] = Map()): Context

    Creates special.sigma.Context instance based on this context.

    Creates special.sigma.Context instance based on this context.

    Definition Classes
    ErgoLikeContextInterpreterContext
  29. def toString(): String
    Definition Classes
    ErgoLikeContext → AnyRef → Any
  30. val validationSettings: SigmaValidationSettings
    Definition Classes
    ErgoLikeContextInterpreterContext
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  34. def withBindings(bindings: (Byte, EvaluatedValue[_ <: SType])*): InterpreterContext

    Creates a new instance with given bindings added to extension.

    Creates a new instance with given bindings added to extension.

    Definition Classes
    InterpreterContext
  35. def withCostLimit(newCostLimit: Long): ErgoLikeContext

    Creates a new instance with costLimit updated with given value.

    Creates a new instance with costLimit updated with given value.

    Definition Classes
    ErgoLikeContextInterpreterContext
  36. def withExtension(newExtension: ContextExtension): ErgoLikeContext

    Creates a new instance with extension updated with given value.

    Creates a new instance with extension updated with given value.

    Definition Classes
    ErgoLikeContextInterpreterContext
  37. def withInitCost(newCost: Long): ErgoLikeContext

    Creates a new instance with initCost updated with given value.

    Creates a new instance with initCost updated with given value.

    Definition Classes
    ErgoLikeContextInterpreterContext
  38. def withTransaction(newSpendingTransaction: ErgoLikeTransactionTemplate[_ <: UnsignedInput]): ErgoLikeContext
  39. def withValidationSettings(newVs: SigmaValidationSettings): ErgoLikeContext

    Creates a new instance with given validation settings.

    Creates a new instance with given validation settings.

    Definition Classes
    ErgoLikeContextInterpreterContext

Inherited from InterpreterContext

Inherited from AnyRef

Inherited from Any

Ungrouped