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

    Given internally consistent transactions, compute their consumed contract ids.

  10. def contractId(node: LfActionNode): Option[LfContractId]
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. 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()
  14. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  16. 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

  17. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  18. 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.

  19. def metadataFromCreate(node: LfNodeCreate): ContractMetadata
  20. def metadataFromExercise(node: LfNodeExercises): ContractMetadata
  21. def metadataFromFetch(node: LfNodeFetch): ContractMetadata
  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() @IntrinsicCandidate()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  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 usedContractId(node: LfActionNode): Option[LfContractId]
  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
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped