corda / net.corda.finance.contracts / FixableDealState

FixableDealState

interface FixableDealState : DealState

Interface adding fixing specific methods.

Properties

oracle

What oracle service to use for the fixing

abstract val oracle: Party

Functions

generateFix

Generate a fixing command for this deal and fix.

abstract fun generateFix(ptx: TransactionBuilder, oldState: StateAndRef<*>, fix: Fix): Unit

nextFixingOf

When is the next fixing and what is the fixing for?

abstract fun nextFixingOf(): FixOf?

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