Trait/Object

org.ergoplatform.dsl

ContractSyntax

Related Docs: object ContractSyntax | package dsl

Permalink

trait ContractSyntax extends AnyRef

Defines methods to be used in contract implementations based on SigmaContract.

Self Type
ContractSyntax with SigmaContract
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContractSyntax
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def contractEnv: ScriptEnv

    Permalink

    A contract environment which defines named constants used in the contract.

    A contract environment which defines named constants used in the contract. Should be defined in SigmaContract implementations.

  2. abstract val spec: ContractSpec

    Permalink

    Instance of contract specification DSL, which can be imported in the body of SigmaContract implementations.

Concrete 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. def Coll[T](items: T*)(implicit cT: RType[T]): Coll[T]

    Permalink

    Helper method to support Scala <-> ErgoScript equivalence.

  5. def Env(entries: (String, Any)*): ScriptEnv

    Permalink

    Creates new environment with the given named constants.

  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def builder: SigmaDslBuilder

    Permalink
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  18. def proposition(name: String, dslSpec: Proposition, scriptCode: String, scriptVersion: Option[Byte] = None): PropositionSpec

    Permalink

    Call this function in SigmaContract implementations to define propositions.

    Call this function in SigmaContract implementations to define propositions.

    name

    name of the proposition (aka contract name)

    dslSpec

    Scala lambda of type Proposition which defines contract semantics and can be executed directly.

    scriptCode

    ErgoScript representation of the contract.

    scriptVersion

    optional script version to be used in ErgoTree. If None then ergoTreeVersionInTests is used.

    returns

    proposition specification with compiled ErgoTree.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. lazy val verifier: VerifyingParty

    Permalink

    The default verifier which represents miner's role in verification of transactions.

    The default verifier which represents miner's role in verification of transactions. It can be overriden in derived classes.

  22. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped