corda / net.corda.core.contracts / CommandData

CommandData

interface CommandData

Marker interface for classes that represent commands

Extension Functions

contextLogger

fun Any.contextLogger(): <ERROR CLASS>

When called from a companion object, returns the logger for the enclosing class.

Inheritors

Commands

interface Commands : CommandData

Commands

interface Commands : CommandData

Commands

interface Commands : CommandData

Exit

data class Exit : CommandData

A command stating that money has been withdrawn from the shared ledger and is now accounted for in some other way.

Exit

data class Exit<P : Any> : CommandData

A command stating that the debt is being released by the beneficiary. Normally would indicate either settlement outside of the ledger, or that the obligor is unable to pay.

Fix

data class Fix : CommandData

A Fix represents a named interest rate, on a given day, for a given duration. It can be embedded in a tx.

MoveCommand

interface MoveCommand : CommandData

A common move command for contract states which can change owner.

NetCommand

interface NetCommand : CommandData

A common netting command for contracts whose states can be netted.

SetLifecycle

data class SetLifecycle : CommandData

A command stating that the beneficiary is moving the contract into the defaulted state as it has not been settled by the due date, or resetting a defaulted contract back to the issued state.

Settle

data class Settle<P : Any> : CommandData

A command stating that the obligor is settling some or all of the amount owed by transferring a suitable state object to the beneficiary. If this reduces the balance to zero, the state object is destroyed.

TypeOnlyCommandData

abstract class TypeOnlyCommandData : CommandData

Commands that inherit from this are intended to have no data items: it's only their presence that matters.