DealState - corda

corda / net.corda.finance.contracts / DealState

# DealState

`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.

### Functions

#### generateAgreement | 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. `abstract fun generateAgreement(notary: Party): TransactionBuilder`

### Extension Functions

#### hash | Returns the SHA-256 hash of the serialised contents of this state (not cached!) `fun ContractState.hash(): SecureHash` Returns the hash of the serialised contents of this state (not cached!) `fun ContractState.hash(algorithm: String): SecureHash`

### Inheritors

#### FixableDealState | Interface adding fixing specific methods. `interface FixableDealState : DealState`