DappActivity

data class DappActivity(val peerId: String, val peerName: String, val at: Instant, val kind: DappActivity.Kind, val transfer: DappTransferSummary? = null, val detail: String? = null)

One thing a dApp did or tried to do, as the wallet's owner should see it.

The spend policy's hard caps refuse without asking the approver, and auto-approval executes without one; both are invisible at the moment they happen. This feed is the counterweight: the session reports every notable event to the host, approver asked or not, so the app can render an activity log and notify on the silent outcomes. Nothing here feeds back into what gets signed; it is a record, not a control.

Constructors

Link copied to clipboard
constructor(peerId: String, peerName: String, at: Instant, kind: DappActivity.Kind, transfer: DappTransferSummary? = null, detail: String? = null)

Types

Link copied to clipboard

What happened. The kinds that never reach the approver — TRANSACTION_AUTO_APPROVED, TRANSACTION_REFUSED, TRANSACTION_RATE_LIMITED — are the ones a host should notify on.

Properties

Link copied to clipboard
val at: Instant
Link copied to clipboard

Refusal reason, decline reason, update id, or error detail.

Link copied to clipboard
Link copied to clipboard

DappPeer.id of the session the activity belongs to.

Link copied to clipboard

DappPeer.name, for display without a lookup.

Link copied to clipboard

The parsed transfer, when the activity concerns one.