TwoPartyDealFlow

Classes for manipulating a two party deal or agreement.

Types

Link copied to clipboard
open class Acceptor(val otherSideSession: FlowSession, val progressTracker: ProgressTracker = Secondary.tracker()) : TwoPartyDealFlow.Secondary<TwoPartyDealFlow.AutoOffer>

One side of the flow for inserting a pre-agreed deal.

Link copied to clipboard
data class AutoOffer(val notary: Party, val dealBeingOffered: DealState)
Link copied to clipboard
data class Handshake<out T>(val payload: T, val primaryIdentity: AnonymousParty, val secondaryIdentity: AnonymousParty)

This object is serialised to the network and is the first flow message the seller sends to the buyer.

Link copied to clipboard
open class Instigator(val otherSideSession: FlowSession, val payload: TwoPartyDealFlow.AutoOffer, val progressTracker: ProgressTracker = Primary.tracker()) : TwoPartyDealFlow.Primary

One side of the flow for inserting a pre-agreed deal.

Link copied to clipboard
abstract class Primary(val progressTracker: ProgressTracker = Primary.tracker()) : FlowLogic<SignedTransaction>

Abstracted bilateral deal flow participant that initiates communication/handshake.

Link copied to clipboard
abstract class Secondary<U>(val progressTracker: ProgressTracker = Secondary.tracker()) : FlowLogic<SignedTransaction>

Abstracted bilateral deal flow participant that is recipient of initial communication.