corda / net.corda.testing.contracts / DummyState

DummyState

data class DummyState : ContractState

Dummy state for use in testing. Not part of any contract, not even the DummyContract.

Constructors

<init>

DummyState(magicNumber: Int = 0, participants: List<AbstractParty> = listOf())

Dummy state for use in testing. Not part of any contract, not even the DummyContract.

Properties

magicNumber

val magicNumber: Int

Some information that the state represents for test purposes.

participants

val participants: List<AbstractParty>

A participant is any party that should be notified when the state is created or consumed.

Functions

copy

fun copy(magicNumber: Int = this.magicNumber): DummyState

Extension Functions

contextLogger

fun Any.contextLogger(): Logger

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

hash

fun ContractState.hash(): SecureHash

Returns the SHA-256 hash of the serialised contents of this state (not cached!)