PrepareExecuteContext

data class PrepareExecuteContext(val commandId: String, val actAs: DappWallet, val submission: PrepareSubmission, val network: DappNetworkConfig, val emitEvent: suspend (TxChangedEvent) -> Unit = {})

Everything the prepare→verify→sign→execute pipeline needs for one submission.

actAs is the account DappSession resolved and the user approved — not whatever the dApp put in PrepareSubmission.actAs. Implementations must build the ledger envelope from this field, which is the point at which a dApp is prevented from acting as a party it merely named.

Constructors

Link copied to clipboard
constructor(commandId: String, actAs: DappWallet, submission: PrepareSubmission, network: DappNetworkConfig, emitEvent: suspend (TxChangedEvent) -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val emitEvent: suspend (TxChangedEvent) -> Unit

Publishes intermediate lifecycle events — in practice the signed step, between approval and execution. pending and the terminal states are emitted by DappSession itself, so an implementation that ignores this still produces a correct event stream, just a coarser one.

Link copied to clipboard
Link copied to clipboard