class ErgoLikeContext extends InterpreterContext
TODO lastBlockUtxoRoot should be calculated from headers if it is nonEmpty
- Alphabetic
- By Inheritance
- ErgoLikeContext
- InterpreterContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- val boxesToSpend: IndexedSeq[ErgoBox]
- def canEqual(other: Any): Boolean
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
val
costLimit: Long
- Definition Classes
- ErgoLikeContext → InterpreterContext
- val dataBoxes: IndexedSeq[ErgoBox]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(other: Any): Boolean
- Definition Classes
- ErgoLikeContext → AnyRef → Any
-
val
extension: ContextExtension
- Definition Classes
- ErgoLikeContext → InterpreterContext
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- ErgoLikeContext → AnyRef → Any
- val headers: Coll[Header]
-
val
initCost: Long
- Definition Classes
- ErgoLikeContext → InterpreterContext
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val lastBlockUtxoRoot: AvlTreeData
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- val preHeader: PreHeader
- val self: ErgoBox
- val selfIndex: Int
- val spendingTransaction: ErgoLikeTransactionTemplate[_ <: UnsignedInput]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
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
- ErgoLikeContext → InterpreterContext
-
def
toString(): String
- Definition Classes
- ErgoLikeContext → AnyRef → Any
-
val
validationSettings: SigmaValidationSettings
- Definition Classes
- ErgoLikeContext → InterpreterContext
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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
-
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
- ErgoLikeContext → InterpreterContext
-
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
- ErgoLikeContext → InterpreterContext
-
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
- ErgoLikeContext → InterpreterContext
- def withTransaction(newSpendingTransaction: ErgoLikeTransactionTemplate[_ <: UnsignedInput]): ErgoLikeContext
-
def
withValidationSettings(newVs: SigmaValidationSettings): ErgoLikeContext
Creates a new instance with given validation settings.
Creates a new instance with given validation settings.
- Definition Classes
- ErgoLikeContext → InterpreterContext