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 State extends Product with Serializable

    Determines whether the IDs of created contracts in a transaction are suffixed

  3. type WithSuffixes = WithSuffixes.type
  4. type WithSuffixesAndMerged = WithSuffixesAndMerged.type
  5. 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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. def merge(transactionsWithRollbackScope: NonEmpty[Seq[WithRollbackScope[WellFormedTransaction[WithSuffixes]]]]): 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.

  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def normalizeAndAssert[S <: State](lfTransaction: LfVersionedTransaction, metadata: TransactionMetadata, state: S): WellFormedTransaction[S]

    Creates a WellFormedTransaction, with the fields optLocation set to scala.None$ (because these fields are not preserved on serialization/deserialization).

    Creates a WellFormedTransaction, with the fields optLocation set to scala.None$ (because these fields are not preserved on serialization/deserialization).

    Exceptions thrown

    java.lang.IllegalArgumentException if the given transaction is malformed after the optLocation have been removed.

  14. def normalizeAndCheck[S <: State](lfTransaction: LfVersionedTransaction, metadata: TransactionMetadata, state: S): Either[String, WellFormedTransaction[S]]

    Creates a WellFormedTransaction, with the fields optLocation set to scala.None$ (because these fields are not preserved on serialization/deserialization).

    Creates a WellFormedTransaction, with the fields optLocation set to scala.None$ (because these fields are not preserved on serialization/deserialization).

    returns

    A well-formed transaction, or an error message if the transaction is not well-formed after the optLocation have been removed.

  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  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]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  23. object InvalidInput
  24. case object WithSuffixes extends State with Product with Serializable

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

  25. case object WithSuffixesAndMerged extends State with Product with Serializable

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

  26. case object WithoutSuffixes extends State 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
    Deprecated

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped