class ModelConformanceChecker extends NamedLogging

Allows for checking model conformance of a list of transaction view trees. If successful, outputs the received transaction as LfVersionedTransaction along with TransactionMetadata.

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

Instance Constructors

  1. new ModelConformanceChecker(reinterpret: (ContractAndKeyLookup, Set[LfPartyId], LfCommand, CantonTimestamp, CantonTimestamp, Option[LfHash], Boolean, TraceContext) => EitherT[Future, DAMLeError, (LfVersionedTransaction, TransactionMetadata, LfKeyResolver)], transactionTreeFactory: TransactionTreeFactory, loggerFactory: NamedLoggerFactory)(implicit executionContext: ExecutionContext)

    reinterpret

    reinterprets the lf command to a transaction.

    transactionTreeFactory

    reconstructs a transaction view from the reinterpreted action description.

Value Members

  1. def check(rootViewsWithInputKeys: NonEmpty[Seq[(TransactionViewTree, LfKeyResolver)]], requestCounter: RequestCounter, topologySnapshot: TopologySnapshot, commonData: CommonData)(implicit traceContext: TraceContext): EitherT[Future, Error, Result]

    Reinterprets the transaction resulting from the received transaction view trees.

    Reinterprets the transaction resulting from the received transaction view trees.

    rootViewsWithInputKeys

    all received transaction view trees contained in a confirmation request that have the same transaction id and represent a top-most view

    commonData

    the common data of all the (rootViewTree : TransactionViewTree) trees in rootViewsWithInputKeys

    returns

    the resulting LfTransaction with com.digitalasset.canton.protocol.LfContractIds only

  2. val reinterpret: (ContractAndKeyLookup, Set[LfPartyId], LfCommand, CantonTimestamp, CantonTimestamp, Option[LfHash], Boolean, TraceContext) => EitherT[Future, DAMLeError, (LfVersionedTransaction, TransactionMetadata, LfKeyResolver)]
  3. val transactionTreeFactory: TransactionTreeFactory