InOutGroup

data class InOutGroup<out T : ContractState, out K : Any>(val inputs: List<T>, val outputs: List<T>, val groupingKey: K)

A set of related inputs and outputs that are connected by some common attributes. An InOutGroup is calculated using groupStates and is useful for handling cases where a transaction may contain similar but unrelated state evolutions, for example, a transaction that moves cash in two different currencies. The numbers must add up on both sides of the transaction, but the values must be summed independently per currency. Grouping can be used to simplify this logic.

Constructors

Link copied to clipboard
constructor(inputs: List<T>, outputs: List<T>, groupingKey: K)

Properties

Link copied to clipboard
Link copied to clipboard
val inputs: List<T>
Link copied to clipboard
val outputs: List<T>