Packages

trait ContractStore extends ContractLookup

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContractStore
  2. ContractLookup
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def contractCount()(implicit traceContext: TraceContext): Future[Int]
  2. abstract def deleteContract(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, Unit]

    Removes the contract from the contract store.

  3. abstract def deleteDivulged(upTo: RequestCounter)(implicit traceContext: TraceContext): Future[Unit]

    Deletes all divulged contracts up to a given request counter.

  4. abstract def deleteIgnoringUnknown(contractIds: Iterable[LfContractId])(implicit traceContext: TraceContext): Future[Unit]

    Deletes multiple contracts from the contract store.

    Deletes multiple contracts from the contract store.

    Ignores errors due to a contract not being present in the store, fails on other errors.

  5. implicit abstract def ec: ExecutionContext
    Attributes
    protected
    Definition Classes
    ContractLookup
  6. abstract def find(filterId: Option[String], filterPackage: Option[String], filterTemplate: Option[String], limit: Int)(implicit traceContext: TraceContext): Future[List[SerializableContract]]

    Debug find utility to search pcs

  7. abstract def lookup(id: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, StoredContract]
    Definition Classes
    ContractLookup
  8. abstract def lookupStakeholders(ids: Set[LfContractId])(implicit traceContext: TraceContext): EitherT[Future, UnknownContracts, Map[LfContractId, Set[LfPartyId]]]
    Definition Classes
    ContractLookup
  9. abstract def storeCreatedContracts(requestCounter: RequestCounter, creations: Seq[WithTransactionId[SerializableContract]])(implicit traceContext: TraceContext): Future[Unit]

    Stores contracts created by a request.

    Stores contracts created by a request. Assumes the contract data has been authenticated against the contract id using com.digitalasset.canton.participant.protocol.SerializableContractAuthenticator. If the same contract instance has been stored before, the fields not covered by the contract id authentication will be updated.

    requestCounter

    The request counter of the transaction creating the contracts.

    creations

    The contracts to be created together with the transaction id

  10. abstract def storeDivulgedContracts(requestCounter: RequestCounter, divulgences: Seq[SerializableContract])(implicit traceContext: TraceContext): Future[Unit]

    Store divulged contracts.

    Store divulged contracts. Assumes the contract data has been authenticated against the contract id using com.digitalasset.canton.participant.protocol.SerializableContractAuthenticator.

    If the same contract instance has been stored before, the fields not covered by the contract id authentication will be updated. The method will however not override a contract that has previously been stored as created contract.

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() @IntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  9. def hasActiveContracts(partyId: PartyId, contractIds: Iterator[LfContractId], batchSize: Int = 10)(implicit traceContext: TraceContext): Future[Boolean]
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def lookupContract(id: LfContractId)(implicit traceContext: TraceContext): OptionT[Future, SerializableContract]
    Definition Classes
    ContractLookup
  13. def lookupContractE(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, SerializableContract]
    Definition Classes
    ContractLookup
  14. def lookupE(id: LfContractId)(implicit traceContext: TraceContext): EitherT[Future, UnknownContract, StoredContract]
    Definition Classes
    ContractLookup
  15. 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
  16. def lookupManyUncached(ids: Seq[LfContractId])(implicit traceContext: TraceContext): EitherT[Future, LfContractId, List[StoredContract]]
    Definition Classes
    ContractLookup
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  20. def storeCreatedContract(requestCounter: RequestCounter, transactionId: TransactionId, contract: SerializableContract)(implicit traceContext: TraceContext): Future[Unit]
  21. def storeDivulgedContract(requestCounter: RequestCounter, contract: SerializableContract)(implicit traceContext: TraceContext): Future[Unit]
  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString(): String
    Definition Classes
    AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. 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 ContractLookup

Inherited from AnyRef

Inherited from Any

Ungrouped