TextUI

interface TextUI

Contracts have a UI; they need to display stuff and solicit user input. This defines a text-based interface into contracts. You can ask the WalletContract for a particular UI bu class via the WalletContract.ui function.

Inheritors

Functions

Link copied to clipboard
abstract fun details(): String
Link copied to clipboard

Provide information to the user when sending to some foreign destination (but of this contract)

Link copied to clipboard

Provide information to the user when signing a tx consuming this contract

Link copied to clipboard
abstract fun status(): String

Gives 1 line of status about this contract. Maybe balance and an indicator of whether input is needed?