fmgp.did.method.prism.cli

Members list

Type members

Classlikes

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object BrowserOpener

Best-effort cross-platform browser launcher. Failures are logged and swallowed — the URL is always also printed to the console so the user can fall back to a manual click.

Best-effort cross-platform browser launcher. Failures are logged and swallowed — the URL is always also printed to the console so the user can fall back to a manual click.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case object BuildInfo

This object was generated by sbt-buildinfo.

This object was generated by sbt-buildinfo.

Attributes

Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
BuildInfo.type
sealed trait CMD extends Product, Serializable

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Known subtypes
object CMD

Attributes

Companion
trait
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
CMD.type
object CliCompletio extends ZIOAppDefault

Attributes

Supertypes
trait ZIOAppDefault
trait ZIOApp
class Object
trait Matchable
class Any
Self type
object CliHelp extends ZIOAppDefault

Attributes

Supertypes
trait ZIOAppDefault
trait ZIOApp
class Object
trait Matchable
class Any
Self type
CliHelp.type
object CliVersion extends ZIOAppDefault

Attributes

Supertypes
trait ZIOAppDefault
trait ZIOApp
class Object
trait Matchable
class Any
Self type
CliVersion.type
object CliWizard extends ZIOAppDefault

Attributes

Supertypes
trait ZIOAppDefault
trait ZIOApp
class Object
trait Matchable
class Any
Self type
CliWizard.type
object CommCommand

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object ConfigCommand

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object DIDCommand

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
DIDCommand.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object KeyCommand

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
KeyCommand.type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object PrismCli extends ZIOCliDefault

cardano-prism CLI

cardano-prism CLI

sbt "didResolverPrismJVM/assembly"
java -jar did-method-prism/jvm/target/scala-3.3.7/cardano-prism.jar indexer ../prism-vdr/preprod
shasum -a 256 did-method-prism/jvm/target/scala-3.3.7/cardano-prism.jar

cardanoPrismCli/runMain fmgp.did.method.prism.cli.PrismCli

cat ~/.cardano-prism-config.json

Attributes

Supertypes
trait ZIOCliDefault
trait ZIOAppDefault
trait ZIOCli
trait ZIOApp
class Object
trait Matchable
class Any
Show all
Self type
PrismCli.type
case class PrismCliError(fail: String) extends Exception

Attributes

Supertypes
trait Product
trait Equals
class Exception
class Throwable
trait Serializable
class Object
trait Matchable
class Any
Show all

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
case class Setup(stagingPath: Path, updateStateFile: Boolean, staging: Either[String, StagingState])

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object Setup

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
Setup.type
case class StagingState(loadStateFileByDefault: Boolean = ..., updateStateFileByDefault: Boolean = ..., ssiWallet: Option[CardanoWalletConfig] = ..., cardanoWallet: Option[CardanoWalletConfig] = ..., ssiPrivateKeys: Map[String, DerivedKey | PrivateKey] = ..., blockfrostMainnet: Option[BlockfrostConfig] = ..., blockfrostTestnet: Option[BlockfrostConfig] = ..., blockfrostPreprod: Option[BlockfrostConfig] = ..., blockfrostPreview: Option[BlockfrostConfig] = ...)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object StagingState

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
object VDRCommand

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
VDRCommand.type
enum WalletType

Attributes

Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Commands that drive a local website to interact with the user's browser.

Commands that drive a local website to interact with the user's browser.

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type
object WebsiteServer

ZIO-http server that serves the cardano-prism CIP-30 webapp.

ZIO-http server that serves the cardano-prism CIP-30 webapp.

The webapp bundle is built by sbt (sbt cardanoPrismCip30Webapp/cip30Bundle) and embedded in this jar as cip30/bundle.js. Set CIP30_WEBAPP_BUNDLE to a filesystem path to override the embedded copy during development.

Two modes:

  • runUntilDone: one-shot. Injects events as window.PRISM_CIP30_EVENTS, registers a /done handler, and completes when the page POSTs the tx hash. Used by submit-cip30.
  • runForever: long-running. No events injected, no /done handler. Used by open and simulate. Runs until interrupted (Ctrl-C).

Attributes

Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

def forceStateUpdateAtEnd: ZIO[Ref[Setup], Nothing, Unit]
def stateLen[T](f: StagingState => Option[T]): ZIO[Ref[Setup], Nothing, Option[T]]
def updateState(f: StagingState => StagingState): ZIO[Ref[Setup], Nothing, Unit]

Concrete fields

val didArg: Args[DID]
val didPrismArg: Args[DIDPrism]
val exportFolderArg: Args[Path]
val fromScratchFlag: Options[Boolean]
val indexerDBConnectionAgr: Args[String]
val indexerWorkDirAgr: Args[Path]
val indexerWorkDirOpt: Options[Path]
val keysLabels: Args[List[(String, PrismKeyUsage)]]
val mnemonicPass: Options[String]
val networkMainnePreprodFlag: Options[Mainnet.type | Preprod.type]
val walletTypeOpt: Options[WalletType]