Packages

package console

General console utilities

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

Package Members

  1. package commands

Type Members

  1. trait AdminCommandRunner extends AnyRef

    Support for running an admin command

  2. trait AmmoniteCacheLock extends AnyRef
  3. case class AmmoniteConsoleConfig(cacheDir: Option[File] = AmmoniteConsoleConfig.defaultCacheDir, workingDir: Option[File] = None, colors: Boolean = true, verbose: Boolean = false) extends Product with Serializable

    Configure behaviour of ammonite

    Configure behaviour of ammonite

    cacheDir

    cache dir, defaults to ~/.ammonite. If none is given, in-memory is used. If you specify a cache dir, the Canton repl will startup faster. In our tests, we have very rarely observed unexpected compile errors when the cache was enabled; if you want to avoid that, set the cache dir to None (i.e. cache-dir = null in the config file).

    workingDir

    working directory. if none is given, we'll use the working directory of the Canton process

    colors

    if true (default), we'll use color output

    verbose

    if true (not default), we'll emit verbose ammonite output

  4. trait BaseInspection[I <: CantonNode] extends AnyRef

    Support for inspecting the instance

  5. trait BaseLedgerApiClient extends AnyRef
  6. case class BindingsHolder(bindings: IndexedSeq[Bind[_]]) extends Product with Serializable

    ammonite requires a ApiHolder in this pattern to make items through bindings available within the dynamic Console environment.

  7. class BootstrapScriptException extends RuntimeException

    Thrown when the bootstrap script fails to execute

  8. trait CantonHealthAdministration[Status <: CantonStatus] extends Helpful
  9. class CantonInternalError extends Throwable with NoStackTrace with CommandExecutionFailedException
  10. class CommandFailure extends Throwable with NoStackTrace with CommandExecutionFailedException
  11. final case class CommandSuccessful[+A](value: A) extends ConsoleCommandResult[A] with Product with Serializable

    Successful command result

    Successful command result

    value

    The value returned from the command

  12. class CommunityCantonHealthAdministration extends CantonHealthAdministration[CommunityCantonStatus]
    Annotations
    @nowarn()
  13. trait CommunityDomainReference extends AnyRef
  14. class CommunityLocalDomainReference extends DomainReference with CommunityDomainReference with LocalDomainReference
  15. class CommunityRemoteDomainReference extends DomainReference with CommunityDomainReference with RemoteDomainReference
  16. sealed trait ConsoleCommandResult[+A] extends AnyRef

    Response from a console command.

  17. trait ConsoleEnvironment extends NamedLogging with AutoCloseable with NoTracing

    The environment in which console commands are evaluated.

    The environment in which console commands are evaluated.

    Annotations
    @SuppressWarnings()
  18. trait ConsoleErrorHandler extends AnyRef

    Handle an error from a console.

    Handle an error from a console. We expect this implementation will either throw or exit, hence the scala.Nothing return type.

  19. class ConsoleGrpcAdminCommandRunner extends NamedLogging with AutoCloseable with Spanning

    Attempt to run a grpc admin-api command against whatever is pointed at in the config

  20. class ConsoleHttpAdminCommandRunner extends NamedLogging with AutoCloseable with Spanning

    Attempt to run an http admin-api command against whatever is pointed at in the config

  21. trait ConsoleMacros extends NamedLogging with NoTracing
  22. trait ConsoleOutput extends AnyRef

    Interface for output to the Console user.

  23. abstract class DomainManagerNodeReference extends InstanceReference with DomainAdministration with SetupAdministration
  24. trait DomainReference extends InstanceReference with DomainAdministration with InstanceReferenceWithSequencerConnection
  25. implicit class EitherToCommandResultExtensions[A, B] extends AnyRef

    Turn a either into a command result.

    Turn a either into a command result. Left is considered an error, Right is successful.

  26. class EnterpriseConsoleEnvironment extends ConsoleEnvironment
  27. trait EnterpriseDomainReference extends DomainReference
  28. class EnterpriseLocalDomainReference extends EnterpriseDomainReference with LocalDomainReference
  29. class EnterpriseRemoteDomainReference extends EnterpriseDomainReference with RemoteDomainReference
  30. case class EthereumCommands(config: Ethereum)(implicit elc: ErrorLoggingContext) extends Helpful with Product with Serializable
  31. class ExternalLedgerApiClient extends BaseLedgerApiAdministration with LedgerApiCommandRunner with BaseLedgerApiClient with FeatureFlagFilter with NamedLogging

    Bare, Canton agnostic parts of the ledger-api client

    Bare, Canton agnostic parts of the ledger-api client

    This implementation allows to access any kind of ledger-api client, which does not need to be Canton based. However, this comes at some cost, as some of the synchronization between nodes during transaction submission is not supported

  32. sealed trait FeatureFlag extends AnyRef
  33. trait FeatureFlagFilter extends NamedLogging with NoTracing
  34. trait GrpcRemoteInstanceReference extends RemoteInstanceReference
  35. class HeadlessConsole extends AutoCloseable
  36. trait Helpful extends AnyRef

    Implementors will have a help method available that will be callable from the Console.

    Implementors will have a help method available that will be callable from the Console. Implementors should annotate appropriate methods with @Help.Summary to have them included.

  37. trait InstanceReference extends AdminCommandRunner with Helpful with NamedLogging with FeatureFlagFilter with PrettyPrinting with CertificateAdministration
  38. trait InstanceReferenceWithSequencerConnection extends InstanceReference
  39. trait LedgerApiCommandRunner extends AnyRef

    Support for running an ledgerApi commands

  40. class LocalDomainManagerReference extends DomainManagerNodeReference with BaseInspection[DomainManager] with LocalInstanceReference
  41. trait LocalDomainReference extends DomainReference with BaseInspection[Domain] with LocalInstanceReference
  42. class LocalDomainReferencesExtensions extends LocalInstancesExtensions
  43. trait LocalInstanceReference extends InstanceReference

    Pointer for a potentially running instance by instance type (domain/participant) and its id.

    Pointer for a potentially running instance by instance type (domain/participant) and its id. These methods define the REPL interface for these instances (e.g. participant1 start)

  44. trait LocalInstancesExtensions extends Helpful

    Aliases to manage a sequence of instances in a REPL environment

  45. class LocalMediatorReference extends MediatorReference with BaseInspection[MediatorNode] with LocalInstanceReference
  46. class LocalParticipantReference extends ParticipantReference with LocalInstanceReference with BaseInspection[ParticipantNode]
  47. class LocalParticipantReferencesExtensions extends ParticipantReferencesExtensions with LocalInstancesExtensions
  48. class LocalSequencerNodeReference extends SequencerNodeReference with LocalInstanceReference with BaseInspection[SequencerNode]
  49. abstract class MediatorReference extends InstanceReference
  50. case class NodeReferences[A, R <: A, L <: A](local: Seq[L], remote: Seq[R]) extends Product with Serializable
  51. abstract class ParticipantReference extends InstanceReference with ParticipantAdministration with BaseLedgerApiClient with LedgerApiAdministration with LedgerApiCommandRunner
  52. class ParticipantReferencesExtensions extends Helpful with NamedLogging with FeatureFlagFilter
  53. class RemoteDomainManagerReference extends DomainManagerNodeReference with GrpcRemoteInstanceReference
  54. trait RemoteDomainReference extends DomainReference with GrpcRemoteInstanceReference
  55. trait RemoteInstanceReference extends InstanceReference
  56. class RemoteMediatorReference extends MediatorReference with GrpcRemoteInstanceReference
  57. class RemoteParticipantReference extends ParticipantReference with GrpcRemoteInstanceReference
  58. class RemoteSequencerNodeReference extends SequencerNodeReference with RemoteInstanceReference
  59. abstract class SequencerNodeReference extends InstanceReference with SequencerNodeAdministration with InstanceReferenceWithSequencerConnection
  60. class SimClockCommand extends AnyRef
  61. implicit class StringErrorEitherToCommandResultExtensions[A] extends AnyRef

    Turn an either where Left is a error message into a ConsoleCommandResult.

Deprecated Type Members

  1. trait CommandExecutionFailedException extends Throwable

    Deprecated

    use CommandFailure or CantonInternalError instead.

Value Members

  1. def objectClassNameWithoutSuffix(c: Class[_]): String

    Strip the Object suffix from the name of the provided class

  2. object AdminCommandRunner
  3. object AmmoniteCacheLock
  4. object AmmoniteConsoleConfig extends LazyLogging with Serializable
  5. object BindingsBridge extends APIHolder[BindingsHolder]
  6. object CantonHealthAdministrationEncoders
  7. object CommandErrors extends CommandErrorGroup
  8. object CommandSuccessful extends Serializable
  9. object ConsoleCommandResult
  10. object ConsoleEnvironment

    Expose a Canton environment.Environment in a way that's easy to deal with from a REPL.

  11. object ConsoleEnvironmentBinding

    To make the ConsoleEnvironment functionality conveniently available in ammonite we stash it in a implicit variable included as a predef before any script or REPL commands are run.

  12. object ConsoleMacros extends ConsoleMacros with NamedLogging
  13. object DebuggingHelpers extends LazyLogging
  14. object ExternalLedgerApiClient
  15. object FeatureFlag
  16. object HeadlessConsole extends NoTracing

    Creates an interpreter but with matching bindings to the InteractiveConsole for running scripts non-interactively

    Creates an interpreter but with matching bindings to the InteractiveConsole for running scripts non-interactively

    Annotations
    @SuppressWarnings()
  17. object Help

    User friendly help messages generator.

  18. object InteractiveConsole extends NoTracing

    Will create a real REPL for interactive entry and evaluation of commands

    Will create a real REPL for interactive entry and evaluation of commands

    Annotations
    @SuppressWarnings()
  19. object LocalInstancesExtensions
  20. object StandardConsoleOutput extends ConsoleOutput

    Logs directly to stdout and stderr.

  21. object ThrowErrorHandler extends ConsoleErrorHandler

    Throws a CommandFailure or CantonInternalError when a command fails.

    Throws a CommandFailure or CantonInternalError when a command fails. The throwables do not have a stacktraces, to avoid noise in the interactive console.

Inherited from AnyRef

Inherited from Any

Ungrouped