State

data class State(val participants: List<AbstractParty>, val linearId: UniqueIdentifier) : DealState, QueryableState

Constructors

Link copied to clipboard
constructor(participants: List<AbstractParty> = listOf(), ref: String)
constructor(participants: List<AbstractParty>, linearId: UniqueIdentifier)

Properties

Link copied to clipboard
open override val linearId: UniqueIdentifier

Unique id shared by all LinearState states throughout history within the vaults of all parties. Verify methods should check that one input and one output share the id in a transaction, except at issuance/termination.

Link copied to clipboard
open override val participants: List<AbstractParty>

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
open override fun generateAgreement(notary: Party): TransactionBuilder

Generate a partial transaction representing an agreement (command) to this deal, allowing a general deal/agreement flow to generate the necessary transaction for potential implementations.

Link copied to clipboard

Export a representation for the given schema.

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>

Enumerate the schemas this state can export representations of itself as.