package canton
- Alphabetic
- By Inheritance
- canton
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- package admin
- package buildinfo
- package cli
- package common
- package concurrent
- package config
- package console
General
console
utilities - package crypto
- package data
- package demo
- package domain
- package environment
- package error
- package examples
- package external
- package health
- package ledger
- package lifecycle
- package logging
- package metrics
- package networking
- package participant
- package performance
- package protobuf
- package protocol
Provides shorthands for general purpose types.
Provides shorthands for general purpose types.
Most notably, it provides a facade for Daml-LF transactions and nodes. By default, code should access Daml-LF transaction and nodes types through this facade.
- package pruning
- package replica
- package resource
- package sequencing
- package serialization
- package store
- package time
- package topology
- package tracing
- package util
- package v0
- package version
Type Members
- case class ApplicationId(id: LedgerApplicationId) extends PrettyPrinting with Product with Serializable
Application identifier for identifying customer applications in the ledger api
Application identifier for identifying customer applications in the ledger api
- id
ledger string representing application
- abstract class CantonAppDriver[E <: Environment] extends App with NamedLogging with NoTracing
The Canton main application.
The Canton main application.
Starts a set of domains and participant nodes.
- class CantonResearchApp extends CantonAppDriver[ResearchEnvironment]
- sealed trait CantonScript extends AnyRef
- case class CantonScriptFromCode(scriptCode: String) extends CantonScript with Product with Serializable
- case class CantonScriptFromFile(scriptPath: File) extends CantonScript with Product with Serializable
- case class CommandId(id: LfLedgerString) extends PrettyPrinting with Product with Serializable
Command identifier for tracking ledger commands
Command identifier for tracking ledger commands
- id
ledger string representing command
- class ConsoleInteractiveRunner[E <: Environment] extends Runner[E]
- class ConsoleScriptRunner[E <: Environment] extends Runner[E]
- implicit class DiscardOps[A] extends AnyRef
Evaluate the expression and discard the result.
- case class DomainAlias(str: String255) extends LengthLimitedStringWrapper with PrettyPrinting with Product with Serializable
Participant local identifier used to refer to a Domain without the need to fetch identifying information from a domain.
Participant local identifier used to refer to a Domain without the need to fetch identifying information from a domain. This does not need to be globally unique. Only unique for the participant using it.
- str
String with given alias
- class DomainManager extends CantonNode with NamedLogging with HasUptime with NoTracing
A domain manager in the system.
A domain manager in the system.
The domain manager offers: - identity providing service. - distributed domain bootstrapping.
- type LedgerApplicationId = daml.lf.data.IdString.ApplicationId
- type LedgerConfiguration = Configuration
- type LedgerParticipantId = ParticipantId
- type LedgerSubmissionId = LedgerString
- type LedgerTransactionId = LedgerString
- type LfChoiceName = Name
- type LfCommand = ReplayCommand
- type LfCreateCommand = Create
- type LfExerciseByKeyCommand = ExerciseByKey
- type LfExerciseCommand = LenientExercise
- Annotations
- @nowarn()
- type LfFetchByKeyCommand = FetchByKey
- type LfFetchCommand = Fetch
- type LfKeyResolver = Map[GlobalKey, KeyMapping]
- type LfLedgerString = LedgerString
- type LfLookupByKeyCommand = LookupByKey
- type LfPackageId = PackageId
- type LfPartyId = Party
- type LfTimestamp = Timestamp
- type LfValue = Value
- type LfVersioned[T] = Versioned[T]
- type LfWorkflowId = LedgerString
- sealed trait ProtoDeserializationError extends Product with Serializable
- trait Runner[E <: Environment] extends NamedLogging
Result for exposing the process exit code.
Result for exposing the process exit code. All logging is expected to take place inside of the runner.
- type SequencerCounter = Long
The counter assigned by the sequencer to messages sent to the participant.
The counter assigned by the sequencer to messages sent to the participant. The counter is specific to every participant.
- class ServerRunner[E <: Environment] extends Runner[E] with NoTracing
- case class TimedValue[A](timestamp: Instant, value: A) extends Product with Serializable
- case class WorkflowId(id: LfWorkflowId) extends PrettyPrinting with Product with Serializable
Workflow identifier for identifying customer workflows, i.e.
Workflow identifier for identifying customer workflows, i.e. individual requests, in the ledger api
- id
ledger string representing workflow
Value Members
- val GenesisSequencerCounter: SequencerCounter
The SequencerCounter used for the first message from a sequencer to a participant
- val LedgerApplicationId: daml.lf.data.Ref.ApplicationId.type
- val LedgerConfiguration: Configuration.type
- val LedgerParticipantId: ParticipantId.type
- val LedgerSubmissionId: SubmissionId.type
- val LedgerTransactionId: TransactionId.type
- val LfChoiceName: ChoiceName.type
- val LfCommand: ReplayCommand.type
- val LfCreateCommand: Create.type
- val LfExerciseByKeyCommand: ExerciseByKey.type
- val LfExerciseCommand: LenientExercise.type
- val LfFetchByKeyCommand: FetchByKey.type
- val LfFetchCommand: Fetch.type
- val LfLedgerString: LedgerString.type
- val LfLookupByKeyCommand: LookupByKey.type
- val LfPackageId: PackageId.type
- val LfPartyId: Party.type
- val LfTimestamp: Timestamp.type
- val LfValue: Value.type
- val LfVersioned: Versioned.type
- val LfWorkflowId: daml.lf.data.Ref.WorkflowId.type
- def checked[A](x: => A): A
Wrap a method call with this method to document that the caller is sure that the callee's preconditions are met.
- val lfKeyResolver: Map.type
- implicit val lfPartyOrdering: Ordering[LfPartyId]
- object ApplicationId extends Serializable
- object CantonCommunityApp extends CantonAppDriver[CommunityEnvironment]
- object CantonEnterpriseApp extends CantonAppDriver[EnterpriseEnvironment]
- object CommandId extends Serializable
- object ConsoleScriptRunner extends NoTracing
- object DiscardedFuture extends WartTraverser
Flags statements that return a scala.concurrent.Future.
Flags statements that return a scala.concurrent.Future. Typically, we should not discard scala.concurrent.Future because exceptions inside the future may not get logged. Use
FutureUtil.doNotAwait
to log exceptions and discard the future where necessary.Does not (yet) detect discarded
FutureUnlessShutdown
norEitherT[Future, _, _]
norOptionT[Future, _]
. - object DomainAlias extends LengthLimitedStringWrapperCompanion[String255, DomainAlias] with Serializable
- object ProtoDeserializationError extends ProtoDeserializationErrorGroup with Serializable
- object RequireBlocking extends WartTraverser
All blocking method calls should be wrapped in scala.concurrent.blocking so that the execution context knows that it may have to spawn a new process.
All blocking method calls should be wrapped in scala.concurrent.blocking so that the execution context knows that it may have to spawn a new process.
This wart checks that all @{code synchronized} calls are surrounded immediately by a scala.concurrent.blocking call. It also complains about calls to java.lang.Thread
.sleep
asThreading.sleep
should be used instead.The logic can currently be fooled by renaming
synchronized
andsleep
. - object SlickString extends WartTraverser
The DB may truncate strings of unbounded length.
The DB may truncate strings of unbounded length. Therefore, this wart flags the following:
- Calls to slick.jdbc.PositionedParameters.setString
- Calls to slick.jdbc.PositionedParameters.setStringOption
- References to slick.jdbc.SetParameter.SetString
- References to slick.jdbc.SetParameter.SetStringOption
This includes references generated by the string interpolators
sql
andsqlu
- object WorkflowId extends Serializable