Class/Object

org.ergoplatform

ErgoLikeContext

Related Docs: object ErgoLikeContext | package ergoplatform

Permalink

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. val boxesToSpend: IndexedSeq[ErgoBox]

    Permalink

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

  6. def canEqual(other: Any): Boolean

    Permalink
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. val costLimit: Long

    Permalink

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

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

    Definition Classes
    ErgoLikeContextInterpreterContext
  9. val dataBoxes: IndexedSeq[ErgoBox]

    Permalink

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

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(other: Any): Boolean

    Permalink
    Definition Classes
    ErgoLikeContext → AnyRef → Any
  12. val extension: ContextExtension

    Permalink

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

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

    Definition Classes
    ErgoLikeContextInterpreterContext
  13. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Permalink
    Definition Classes
    ErgoLikeContext → AnyRef → Any
  16. val headers: Coll[Header]

    Permalink

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

  17. val initCost: Long

    Permalink

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

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

    Definition Classes
    ErgoLikeContextInterpreterContext
  18. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  19. val lastBlockUtxoRoot: AvlTreeData

    Permalink

    - state root before current block application

  20. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  21. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  23. val preHeader: PreHeader

    Permalink

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

  24. val self: ErgoBox

    Permalink
  25. val selfIndex: Int

    Permalink

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

  26. val spendingTransaction: ErgoLikeTransactionTemplate[_ <: UnsignedInput]

    Permalink

    - transaction that contains self box

  27. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  28. def toSigmaContext(IR: Evaluation, isCost: Boolean, extensions: Map[Byte, AnyValue] = Map()): Context

    Permalink

    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

    Permalink
    Definition Classes
    ErgoLikeContext → AnyRef → Any
  30. val validationSettings: SigmaValidationSettings

    Permalink

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

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

    Definition Classes
    ErgoLikeContextInterpreterContext
  31. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. def withBindings(bindings: (Byte, EvaluatedValue[_ <: SType])*): InterpreterContext

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink

    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

    Permalink
  39. def withValidationSettings(newVs: SigmaValidationSettings): ErgoLikeContext

    Permalink

    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