Packages

c

com.digitalasset.canton.participant.store

ExtendedContractLookup

class ExtendedContractLookup extends ContractLookupAndVerification

A contract lookup that adds a fixed set of contracts to a backingContractLookup.

Exceptions thrown

java.lang.IllegalArgumentException if additionalContracts stores a contract under a wrong id

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ExtendedContractLookup
  2. ContractLookupAndVerification
  3. ContractAndKeyLookup
  4. ContractLookup
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new ExtendedContractLookup(backingContractLookup: ContractLookup, additionalContracts: Map[LfContractId, StoredContract], keys: Map[LfGlobalKey, Option[LfContractId]], authenticator: SerializableContractAuthenticator)(implicit ec: ExecutionContext)

    backingContractLookup

    The ContractLookup to default to if no overwrite is given in additionalContracts

    additionalContracts

    Contracts in this map take precedence over contracts in backingContractLookup

    Exceptions thrown

    java.lang.IllegalArgumentException if additionalContracts stores a contract under a wrong id

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. implicit val ec: ExecutionContext
    Attributes
    protected
    Definition Classes
    ExtendedContractLookupContractLookup
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def lookup(id: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, StoredContract]
  13. def lookupContract(id: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, SerializableContract]
    Definition Classes
    ContractLookup
  14. def lookupContractE(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, SerializableContract]
    Definition Classes
    ContractLookup
  15. def lookupE(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, StoredContract]
    Definition Classes
    ContractLookup
  16. def lookupKey(key: LfGlobalKey)(implicit traceContext: TraceContext): OptionT[Future, Option[LfContractId]]

    Find a contract with the given key.

    Find a contract with the given key. Typically used for Daml interpretation in Phase 3, where the key resolution is provided by the submitter. Returns scala.None$ if the key is not supposed to be resolved, e.g., during reinterpretation by Daml Engine. Returns scala.Some$(scala.None$) if no contract with the given key can be found.

    Definition Classes
    ExtendedContractLookupContractAndKeyLookup
  17. def lookupLfInstance(lfId: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, LfContractInst]

    Yields None (embedded in a Future) if the contract instance has not been stored or the id cannot be parsed.

    Yields None (embedded in a Future) if the contract instance has not been stored or the id cannot be parsed.

    Discards the serialization.

    Definition Classes
    ContractLookup
  18. def lookupManyUncached(ids: Seq[LfContractId])(implicit traceContext: TraceContext): EitherT[Future, LfContractId, List[StoredContract]]
    Definition Classes
    ContractLookup
  19. def lookupStakeholders(ids: Set[LfContractId])(implicit traceContext: TraceContext): EitherT[Future, UnknownContracts, Map[LfContractId, Set[LfPartyId]]]
  20. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  24. def toString(): String
    Definition Classes
    AnyRef → Any
  25. def verifyMetadata(coid: LfContractId, metadata: ContractMetadata)(implicit traceContext: TraceContext): OptionT[Future, String]

    Verify that the contract metadata associated with the contract id is consistent with the provided metadata

    Verify that the contract metadata associated with the contract id is consistent with the provided metadata

    Definition Classes
    ExtendedContractLookupContractLookupAndVerification
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  28. 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 ContractAndKeyLookup

Inherited from ContractLookup

Inherited from AnyRef

Inherited from Any

Ungrouped