DappApprovalRequest

sealed interface DappApprovalRequest

What the user is being asked to approve.

Inheritors

Types

Link copied to clipboard
data class Connection(val peer: DappPeer, val network: DappNetwork, val available: List<DappWallet>) : DappApprovalRequest

Connect, and share accounts. available is what the wallet could offer; the user chooses a subset.

Link copied to clipboard
data class Message(val peer: DappPeer, val signWith: DappWallet, val message: String) : DappApprovalRequest

Sign an arbitrary message with the account's key.

Link copied to clipboard
data class Transaction(val peer: DappPeer, val actAs: DappWallet, val network: DappNetwork, val submission: PrepareSubmission) : DappApprovalRequest

Sign and submit a transaction.

Properties

Link copied to clipboard
abstract val peer: DappPeer

Who is asking, as attested by the transport — what the approver shows.