Cip30SubmitterServer

fmgp.did.method.prism.cli.Cip30SubmitterServer

ZIO-http server that drives the CIP-30 browser-wallet submission flow.

The CIP-30 webapp is bundled by sbt and embedded in this jar as a classpath resource at cip30/bundle.js. To rebuild from source:

sbt cardanoPrismCip30Webapp/cip30Bundle

For development without rebuilding the whole jar, set CIP30_WEBAPP_BUNDLE to a filesystem path and the server will load that file instead of the embedded resource.

The page reads the events from the injected window.PRISM_CIP30_EVENTS global. When the wallet reports a tx hash, the page POSTs /done and the server completes the Promise[TxResult] so the CLI can exit.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

final case class TxResult(txHash: String, networkId: Int)

Attributes

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

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
TxResult.type

Value members

Concrete methods

def run(events: Seq[SignedPrismEvent], port: Int): ZIO[Any, Throwable, TxResult]