Object/Class

sigmastate

VersionContext

Related Docs: class VersionContext | package sigmastate

Permalink

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

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

    Permalink

    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

    Permalink

    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

    Permalink
    Definition Classes
    Any
  7. def checkVersions(activatedVersion: Byte, ergoTreeVersion: Byte): Unit

    Permalink

    Checks the version context has the given versions

  8. def clone(): AnyRef

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

    Permalink

    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

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

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def withVersions[T](activatedVersion: Byte, ergoTreeVersion: Byte)(block: ⇒ T): T

    Permalink

    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