Packages

object WellFormedTransaction extends Serializable

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

Type Members

  1. sealed trait InvalidInput extends AnyRef
  2. sealed trait Stage extends Product with Serializable

    Determines whether the IDs of created contracts in a transaction are suffixed and whether the suffix must be absolute, and whether the transactions have been merged.

  3. type WithAbsoluteSuffixes = WithAbsoluteSuffixes.type
  4. type WithSuffixes = WithSuffixes.type
  5. type WithSuffixesAndMerged = WithSuffixesAndMerged.type
  6. type WithoutSuffixes = WithoutSuffixes.type

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def check[S <: Stage](tx: LfVersionedTransaction, metadata: TransactionMetadata, stage: S): Either[String, WellFormedTransaction[S]]

    Creates a WellFormedTransaction if possible or an error message otherwise.

  6. def checkOrThrow[S <: Stage](lfTransaction: LfVersionedTransaction, metadata: TransactionMetadata, state: S): WellFormedTransaction[S]

    Creates a WellFormedTransaction

    Exceptions thrown

    java.lang.IllegalArgumentException if the given transaction is malformed

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. def merge(transactionsWithRollbackScope: NonEmpty[Seq[WithRollbackScope[WellFormedTransaction[WithAbsoluteSuffixes]]]]): Either[String, WellFormedTransaction[WithSuffixesAndMerged]]

    Merges a list of well-formed transactions into one, adjusting node IDs as necessary.

    Merges a list of well-formed transactions into one, adjusting node IDs as necessary. All transactions must have the same version.

    Root-level LfActionNodes with an associated rollback scope are embedded in rollback node ancestors according to this scheme:

    1. Every root node is embedded in as many rollback nodes as level appear in its rollback scope.
    2. Nodes with shared, non-empty rollback scope prefixes (or full matches) share the same rollback nodes (or all on fully matching rollback scopes).
    3. While the lf-engine "collapses" away some rollback nodes as part of normalization, merging does not perform any normalization as the daml indexer/ReadService-consumer does not require rollback-normalized lf-transactions.
  14. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  17. def sanityCheckInputs(tx: LfVersionedTransaction): Either[InvalidInput, Unit]

    Sanity check the transaction before submission for any invalid input values

    Sanity check the transaction before submission for any invalid input values

    Generally, the well-formedness check is used to detect faulty or malicious behaviour. This method here can be used as a pre-check during submission to filter out any user input errors.

  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString(): String
    Definition Classes
    AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. object InvalidInput
  24. case object WithAbsoluteSuffixes extends Stage with Product with Serializable

    All IDs of created contracts must have non-empty absolute suffixes.

    All IDs of created contracts must have non-empty absolute suffixes. The transaction not yet merged.

  25. case object WithSuffixes extends Stage with Product with Serializable

    All IDs of created contracts must have non-empty suffixes, possibly relative.

    All IDs of created contracts must have non-empty suffixes, possibly relative. The transaction not yet merged.

  26. case object WithSuffixesAndMerged extends Stage with Product with Serializable

    All IDs of created contracts must have non-empty absolute suffixes and transaction has been "merged".

  27. case object WithoutSuffixes extends Stage with Product with Serializable

    All IDs of created contracts must have empty suffixes.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped