object TwoPartyTradeFlow
This asset trading flow implements a "delivery vs payment" type swap. It has two parties (B and S for buyer and seller) and the following steps:
Assuming no malicious termination, they both end the flow being in possession of a valid, signed transaction that represents an atomic asset swap.
Note that it's the seller who initiates contact with the buyer, not vice-versa as you might imagine.
class Buyer : FlowLogic<SignedTransaction> |
|
class Seller : FlowLogic<SignedTransaction> |
|
data class SellerTradeInfo
This object is serialised to the network and is the first flow message the seller sends to the buyer. |
class AssetMismatchException : FlowException |
|
class UnacceptablePriceException : FlowException |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |