Packages

object VersionContext extends Serializable

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

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. val JitActivationVersion: Byte

    The first version of ErgoTree starting from which the JIT costing interpreter must be used.

    The first version of ErgoTree starting from which the JIT costing interpreter must be used. It must also be used for all subsequent versions (3, 4, etc).

  5. val MaxSupportedScriptVersion: Byte

    Maximum version of ErgoTree supported by this interpreter release.

    Maximum version of ErgoTree supported by this interpreter release. See version bits in ErgoTree.header for more details. This value should be increased with each new protocol update via soft-fork. The following values are used for current and upcoming forks: - version 3.x this value must be 0 - in v4.0 must be 1 - in v5.x must be 2 etc.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def checkVersions(activatedVersion: Byte, ergoTreeVersion: Byte): Unit

    Checks the version context has the given versions

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  9. def current: VersionContext

    Returns the current VersionContext attached to the current thread.

    Returns the current VersionContext attached to the current thread. Each thread can have only one current version context at any time, which can be changed using withVersions method.

    See also

    withVersions()

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. def withVersions[T](activatedVersion: Byte, ergoTreeVersion: Byte)(block: ⇒ T): T

    Executes the given block under the given version context attached to the current thread.

    Executes the given block under the given version context attached to the current thread.

    The typical usage is to use VersionContext.withVersions(activatedVersion, treeVersion) {...} when the block of code needs to be executed with the given versions.

    For example, sigmastate.Interpreter uses it to execute operations according to the necessary versions of Ergo protocol and ErgoTree.

    activatedVersion

    Currently activated script version == Block.headerVersion - 1

    ergoTreeVersion

    ErgoTree version to be set on the current thread

    block

    block of code to execute

    returns

    result of block execution

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped