object Transaction extends Serializable
- Alphabetic
- By Inheritance
- Transaction
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class AuthFailureDuringExecution(nid: NodeId, fa: FailedAuthorization) extends TransactionError with Product with Serializable
- sealed abstract class ChildrenRecursion extends AnyRef
- final case class DuplicateContractKey(key: GlobalKey) extends TransactionError with Product with Serializable
Signals that within the transaction we got to a point where two contracts with the same key were active.
Signals that within the transaction we got to a point where two contracts with the same key were active.
Note that speedy only detects duplicate key collisions if both contracts are used in the transaction in by-key operations meaning lookup, fetch or exercise-by-key or local creates.
Two notable cases that will never produce duplicate key errors is a standalone create or a create and a fetch (but not fetch-by-key) with the same key.
For ledger implementors this means that (for contract key uniqueness) it is sufficient to only look at the inputs and the outputs of the transaction whlie leaving all internal checks within the transaction to the engine.
- final case class DuplicateKeys(key: GlobalKey) extends KeyInputError with Product with Serializable
A create failed because there was already an active contract with the same key.
- final case class InconsistentKeys(key: GlobalKey) extends KeyInputError with Product with Serializable
An exercise, fetch or lookupByKey failed because the mapping of key -> contract id was inconsistent with earlier nodes (in execution order).
- final case class KeyActive(cid: ContractId) extends KeyInput with Product with Serializable
Key must be mapped to this active contract.
- sealed trait KeyInactive extends KeyInput
No active contract with the given key.
- sealed trait KeyInput extends Product with Serializable
The state of a key at the beginning of the transaction.
- sealed abstract class KeyInputError extends AnyRef
contractKeyInputs failed to produce an input due to an error for the given key.
- final case class Metadata(submissionSeed: Option[Hash], submissionTime: Timestamp, usedPackages: Set[PackageId], dependsOnTime: Boolean, nodeSeeds: ImmArray[(NodeId, Hash)]) extends Product with Serializable
Transaction meta data
Transaction meta data
- submissionSeed
: the submission seed used to derive the contract IDs. If undefined no seed has been used (the legacy contract ID scheme have been used) or it is unknown (output of partial reinterpretation).
- submissionTime
: the submission time
- usedPackages
The set of packages used during command processing. This is a hint for what packages are required to validate the transaction using the current interpreter. If set to
empty
the package dependency have not be computed.- dependsOnTime
: indicate the transaction computation depends on ledger time.
- nodeSeeds
: An association list that maps to each ID of create and exercise nodes its seeds.
- sealed abstract class TransactionError extends Product with Serializable
Errors that can happen during building transactions.
Deprecated Type Members
- type ActionNode = Action
- Annotations
- @deprecated
- Deprecated
(Since version 1.18.0) use com.daml.transaction.Node.Action directly
- type ContractInstance = Versioned[value.Value.ContractInstance]
- Annotations
- @deprecated
- Deprecated
(Since version 1.18.0) use com.daml.value.Value.VersionedContractInstance
- type LeafNode = LeafOnlyAction
- Annotations
- @deprecated
- Deprecated
(Since version 1.18.0) use com.daml.transaction.Node.LeafOnlyAction directly
- type WithTxValue = Transaction
- Annotations
- @deprecated
- Deprecated
(Since version 1.18.0) use com.daml.transaction.GenTransaction directly
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def commitTransaction(submittedTransaction: SubmittedTransaction, f: (Hash) => Bytes): Either[String, CommittedTransaction]
- def commitTransaction(submittedTransaction: SubmittedTransaction): CommittedTransaction
- def duplicatedContractKeys(tx: VersionedTransaction): Set[GlobalKey]
- Annotations
- @throws(scala.this.throws.<init>$default$1[IllegalArgumentException])
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])
- object ChildrenRecursion
- case object KeyCreate extends KeyInactive with Product with Serializable
A contract with the key will be created so the key must be inactive.
- case object NegativeKeyLookup extends KeyInactive with Product with Serializable
Negative key lookup so the key mus tbe inactive.
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated