abstract class TransactionTreeFactoryImpl extends TransactionTreeFactory with NamedLogging

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TransactionTreeFactoryImpl
  2. NamedLogging
  3. TransactionTreeFactory
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new TransactionTreeFactoryImpl(submitterParticipant: ParticipantId, domainId: DomainId, protocolVersion: ProtocolVersion, contractSerializer: (LfContractInst) => SerializableRawContractInstance, packageInfoService: PackageInfoService, cryptoOps: HashOps with HmacOps, loggerFactory: NamedLoggerFactory)(implicit ec: ExecutionContext)

    contractSerializer

    used to serialize contract instances for contract ids Will only be used to serialize contract instances contained in well-formed transactions.

    cryptoOps

    is used to derive Merkle hashes and contract ids com.digitalasset.canton.crypto.HashOps as well as salts and contract ids com.digitalasset.canton.crypto.HmacOps

Type Members

  1. abstract type State <: TransactionTreeFactoryImpl.State
    Attributes
    protected

Abstract Value Members

  1. abstract def createView(view: NewView, viewPosition: ViewPosition, state: State, contractOfId: SerializableContractOfId)(implicit traceContext: TraceContext): EitherT[Future, TransactionTreeConversionError, TransactionView]
    Attributes
    protected
  2. abstract def stateForSubmission(transactionSeed: SaltSeed, mediatorId: MediatorId, transactionUUID: UUID, ledgerTime: CantonTimestamp, nextSaltIndex: Int, keyResolver: LfKeyResolver): State
    Attributes
    protected
  3. abstract def stateForValidation(mediatorId: MediatorId, transactionUUID: UUID, ledgerTime: CantonTimestamp, salts: Iterable[Salt], keyResolver: LfKeyResolver): State
    Attributes
    protected

Concrete 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. def createActionDescription(actionNode: LfActionNode, seed: Option[LfHash]): ActionDescription
    Attributes
    protected
  7. def createTransactionTree(transaction: WellFormedTransaction[WithoutSuffixes], submitterInfo: SubmitterInfo, confirmationPolicy: ConfirmationPolicy, workflowId: Option[WorkflowId], mediatorId: MediatorId, transactionSeed: SaltSeed, transactionUuid: UUID, topologySnapshot: TopologySnapshot, contractOfId: SerializableContractOfId, keyResolver: LfKeyResolver)(implicit traceContext: TraceContext): EitherT[Future, TransactionTreeConversionError, GenTransactionTree]

    Converts a transaction: LfTransaction to the corresponding transaction tree, if possible.

    Converts a transaction: LfTransaction to the corresponding transaction tree, if possible.

    keyResolver

    The key resolutions recorded while interpreting the transaction. Ignored for protocol version com.digitalasset.canton.version.ProtocolVersion.v2_0_0.

    Definition Classes
    TransactionTreeFactoryImplTransactionTreeFactory
    See also

    TransactionTreeConversionError for error cases

  8. def createViewCommonData(rootView: NewView, salt: Salt): ViewCommonData
    Attributes
    protected
  9. def createViewParticipantData(coreCreatedNodes: List[(LfNodeCreate, RollbackScope)], coreOtherNodes: List[(LfActionNode, RollbackScope)], childViews: Seq[TransactionView], createdContractInfo: Map[LfContractId, SerializableContract], resolvedKeys: Map[LfGlobalKey, SerializableKeyResolution], actionDescription: ActionDescription, salt: Salt, contractOfId: SerializableContractOfId, rbContextCore: RollbackContext): EitherT[Future, TransactionTreeConversionError, ViewParticipantData]
    Attributes
    protected
  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  12. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. def logger: TracedLogger
    Attributes
    protected
    Definition Classes
    NamedLogging
  16. val loggerFactory: NamedLoggerFactory
    Attributes
    protected
    Definition Classes
    TransactionTreeFactoryImplNamedLogging
  17. implicit def loggingContext(implicit traceContext: TraceContext): ErrorLoggingContext
    Attributes
    protected
    Definition Classes
    NamedLogging
  18. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def noTracingLogger: Logger
    Attributes
    protected
    Definition Classes
    NamedLogging
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def saltsFromView(view: TransactionViewTree): Iterable[Salt]

    Extracts the salts for the view from a transaction view tree.

    Extracts the salts for the view from a transaction view tree. The salts appear in the same order as they are needed by tryReconstruct.

    Definition Classes
    TransactionTreeFactoryImplTransactionTreeFactory
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def tryReconstruct(subaction: WellFormedTransaction[WithoutSuffixes], rootPosition: ViewPosition, confirmationPolicy: ConfirmationPolicy, mediatorId: MediatorId, viewSalts: Iterable[Salt], transactionUuid: UUID, topologySnapshot: TopologySnapshot, contractOfId: SerializableContractOfId, rbContext: RollbackContext, keyResolver: LfKeyResolver)(implicit traceContext: TraceContext): EitherT[Future, TransactionTreeConversionError, (TransactionView, WellFormedTransaction[WithSuffixes])]

    Reconstructs a transaction view from a reinterpreted action description, using the supplied salts.

    Reconstructs a transaction view from a reinterpreted action description, using the supplied salts.

    keyResolver

    The key resolutions recorded while re-interpreting the subaction. Ignored for protocol version com.digitalasset.canton.version.ProtocolVersion.v2_0_0.

    Definition Classes
    TransactionTreeFactoryImplTransactionTreeFactory
    Annotations
    @SuppressWarnings()
    Exceptions thrown

    java.lang.IllegalArgumentException if subaction does not contain exactly one root node

  26. def trySuffixNode(state: State)(idAndNode: (LfNodeId, LfActionNode)): LfActionNode
    Attributes
    protected
  27. def updateStateWithContractCreation(nodeId: LfNodeId, createNode: LfNodeCreate, viewParticipantDataSalt: Salt, viewPosition: ViewPosition, createIndex: Int, state: State)(implicit traceContext: TraceContext): LfNodeCreate
    Attributes
    protected
  28. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  29. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  30. 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 NamedLogging

Inherited from TransactionTreeFactory

Inherited from AnyRef

Inherited from Any

Ungrouped