o

com.digitalasset.canton.util

LfTransactionUtil

object LfTransactionUtil

Helper functions to work with com.digitalasset.daml.lf.transaction.GenTransaction. Using these helper functions is useful to provide a buffer from upstream changes.

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

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 actingParties: (LfActionNode) => Set[LfPartyId]

    Yields the the acting parties of the node, if applicable

    Yields the the acting parties of the node, if applicable

    Exceptions thrown

    java.lang.IllegalArgumentException if a Fetch node does not contain the acting parties.

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def checkNoContractIdInKey(key: Value): Either[LfContractId, Value]

    Check that the com.daml.lf.value.Value key does not contain a contract ID.

    Check that the com.daml.lf.value.Value key does not contain a contract ID. If the key does contain a contract ID then it will be returned in a Left. Valid contract keys cannot contain contract IDs.

  7. val children: (LfNode) => Seq[LfNodeId]
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  9. def consumedContractId(node: LfActionNode): Option[LfContractId]
  10. def consumedContractIds(transactions: Iterable[LfVersionedTransaction]): Set[LfContractId]

    Given internally consistent transactions, compute their consumed contract ids.

  11. def createdContractIdWithMetadata(node: LfNode): Option[WithContractMetadata[LfContractId]]

    Get the IDs and metadata of all the created contracts of a single com.digitalasset.canton.protocol.package.LfNode.

  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  14. def foldExecutionOrderM[F[_], A](tx: LfTransaction, initial: A)(exerciseBegin: (LfNodeId, LfNodeExercises, A) => F[A])(leaf: (LfNodeId, LfLeafOnlyActionNode, A) => F[A])(exerciseEnd: (LfNodeId, LfNodeExercises, A) => F[A])(rollbackBegin: (LfNodeId, LfNodeRollback, A) => F[A])(rollbackEnd: (LfNodeId, LfNodeRollback, A) => F[A])(implicit F: Monad[F]): F[A]

    Monadic visit to all nodes of the transaction in execution order.

    Monadic visit to all nodes of the transaction in execution order. Exercise nodes are visited twice: when execution reaches them and when execution leaves their body. Crashes on malformed transactions (see com.daml.lf.transaction.GenTransaction.isWellFormed)

    Annotations
    @nowarn()
  15. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. def informees(transaction: LfVersionedTransaction): Set[LfPartyId]

    Compute the informees of a transaction based on the ledger model definition.

    Compute the informees of a transaction based on the ledger model definition.

    Refer to https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#projections

  18. def informees(node: LfActionNode): Set[LfPartyId]

    Compute the informees of a node based on the ledger model definition.

    Compute the informees of a node based on the ledger model definition.

    Refer to https://docs.daml.com/concepts/ledger-model/ledger-privacy.html#projections

    Exceptions thrown

    java.lang.IllegalStateException if a Fetch node does not contain the acting parties.

  19. def inputContractIdsWithMetadata(tx: LfVersionedTransaction): Set[WithContractMetadata[LfContractId]]

    Get the IDs and metadata of all input contracts of a com.digitalasset.canton.protocol.package.LfVersionedTransaction.

    Get the IDs and metadata of all input contracts of a com.digitalasset.canton.protocol.package.LfVersionedTransaction. Input contracts are those that are used, but are not transient.

  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. def lightWeight(node: LfActionNode): LfActionNode

    Yields the light-weight version (i.e.

    Yields the light-weight version (i.e. without exercise children and result) of this node.

    Exceptions thrown

    java.lang.UnsupportedOperationException if node is a rollback.

  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def nodeHasSeed(node: LfNode): Boolean

    Whether or not a node has a random seed

  24. def nodeTemplate(node: LfActionNode): LfTemplateId

    Return the template associated to a node.

    Return the template associated to a node. Note: unlike nodeTemplates below, it does not return the interface package for exercise by interface nodes.

  25. def nodeTemplates(node: LfActionNode): Seq[LfTemplateId]

    Return the templates associated to a node.

  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  28. implicit val orderTransactionVersion: Order[TransactionVersion]
  29. def referencedContractIds(value: Value): Set[LfContractId]

    All contract IDs referenced with a Daml com.daml.lf.value.Value

  30. val signatoriesOrMaintainers: (LfActionNode) => Set[LfPartyId]

    Yields the signatories of the node's contract, or key maintainers for nodes without signatories.

  31. def stateKnownTo(node: LfActionNode): Set[LfPartyId]
  32. def suffixContractInst(unicumOfDiscriminator: (LfHash) => Option[Unicum], cantonContractId: CantonContractIdVersion)(contractInst: LfContractInst): Either[String, LfContractInst]
  33. def suffixNode(unicumOfDiscriminator: (LfHash) => Option[Unicum], cantonContractId: CantonContractIdVersion)(node: LfActionNode): Either[String, LfActionNode]
  34. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  35. def toString(): String
    Definition Classes
    AnyRef → Any
  36. def usedContractIdWithMetadata(node: LfActionNode): Option[WithContractMetadata[LfContractId]]

    Get the IDs and metadata of contracts used within a single com.digitalasset.canton.protocol.package.LfActionNode

  37. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  38. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from AnyRef

Inherited from Any

Ungrouped