DummyLinearContract

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
data class State(val linearId: UniqueIdentifier = UniqueIdentifier(), val participants: List<AbstractParty> = listOf(), val linearString: String = "ABC", val linearNumber: Long = 123, val linearTimestamp: Instant = LocalDateTime.now().toInstant(UTC), val linearBoolean: Boolean = true, val nonce: SecureHash = SecureHash.randomSHA256()) : LinearState, QueryableState

Functions

Link copied to clipboard
open override fun verify(tx: LedgerTransaction)

Takes an object that represents a state transition, and ensures the inputs/outputs/commands make sense. Must throw an exception if there's a problem that should prevent state transition. Takes a single object rather than an argument so that additional data can be added without breaking binary compatibility with existing contract code.