interface DealState : LinearState
Interface representing an agreement that exposes various attributes that are common. Implementing it simplifies implementation of general flows that manipulate many agreement types.
abstract 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. |
abstract 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. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |
|
fun ContractState.hash(): SecureHash
Returns the SHA-256 hash of the serialised contents of this state (not cached!) fun ContractState.hash(algorithm: String): SecureHash
Returns the hash of the serialised contents of this state (not cached!) |
interface FixableDealState : DealState
Interface adding fixing specific methods. |