State

data class State(val issuance: PartyAndReference, val owner: AbstractParty, val faceValue: Amount<Issued<Currency>>, val maturityDate: Instant) : OwnableState, QueryableState

Constructors

Link copied to clipboard
constructor(issuance: PartyAndReference, owner: AbstractParty, faceValue: Amount<Issued<Currency>>, maturityDate: Instant)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val owner: AbstractParty

There must be a MoveCommand signed by this key to claim the amount.

Link copied to clipboard
open override val participants: <Error class: unknown class>

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

Link copied to clipboard

Obtain the typename of the required ContractClass associated with the target ContractState, using the BelongsToContract annotation by default, but falling through to checking the state's enclosing class if there is one and it inherits from Contract.

Functions

Link copied to clipboard

Object Relational Mapping support.

Link copied to clipboard

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

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

Link copied to clipboard
open override fun supportedSchemas(): Iterable<MappedSchema>

Object Relational Mapping support.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard
open fun withFaceValue(newFaceValue: Amount<Issued<Currency>>): <Error class: unknown class>
Link copied to clipboard
open fun withMaturityDate(newMaturityDate: Instant): <Error class: unknown class>
Link copied to clipboard
open override fun withNewOwner(newOwner: AbstractParty): CommandAndState

Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone.

Link copied to clipboard
Link copied to clipboard
open fun withOwner(newOwner: AbstractParty): <Error class: unknown class>