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.
- Alphabetic
- By Inheritance
- LfTransactionUtil
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- 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.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val children: (LfNode) => Seq[LfNodeId]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def consumedContractId(node: LfActionNode): Option[LfContractId]
- def consumedContractIds(transactions: Iterable[LfVersionedTransaction]): Set[LfContractId]
Given internally consistent transactions, compute their consumed contract ids.
- def contractId(node: LfActionNode): Option[LfContractId]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- 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()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- 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
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
ifnode
is a rollback.
- def metadataFromCreate(node: LfNodeCreate): ContractMetadata
- def metadataFromExercise(node: LfNodeExercises): ContractMetadata
- def metadataFromFetch(node: LfNodeFetch): ContractMetadata
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def nodeHasSeed(node: LfNode): Boolean
Whether or not a node has a random seed
- 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.
- def nodeTemplates(node: LfActionNode): Seq[LfTemplateId]
Return the templates associated to a node.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- implicit val orderTransactionVersion: Order[TransactionVersion]
- def referencedContractIds(value: Value): Set[LfContractId]
All contract IDs referenced with a Daml
com.daml.lf.value.Value
- val signatoriesOrMaintainers: (LfActionNode) => Set[LfPartyId]
Yields the signatories of the node's contract, or key maintainers for nodes without signatories.
- def stateKnownTo(node: LfActionNode): Set[LfPartyId]
- def suffixContractInst(unicumOfDiscriminator: (LfHash) => Option[Unicum], cantonContractId: CantonContractIdVersion)(contractInst: LfContractInst): Either[String, LfContractInst]
- def suffixNode(unicumOfDiscriminator: (LfHash) => Option[Unicum], cantonContractId: CantonContractIdVersion)(node: LfActionNode): Either[String, LfActionNode]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def usedContractId(node: LfActionNode): Option[LfContractId]
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])