com.r3corda.contracts.clause / NoZeroSizedOutputs

NoZeroSizedOutputs

open class NoZeroSizedOutputs<in S : FungibleAsset<T>, T : Any> : GroupClause<S, Issued<T>>

Clause for fungible asset contracts, which enforces that no output state should have a balance of zero.



Constructors

<init> NoZeroSizedOutputs()

Clause for fungible asset contracts, which enforces that no output state should have a balance of zero.

Properties

ifMatched open val ifMatched: MatchBehaviour

Behaviour if this clause is not matches

ifNotMatched open val ifNotMatched: MatchBehaviour

Behaviour if this clause is matched

requiredCommands open val requiredCommands: Set<Class<CommandData>>

Classes for commands which must ALL be present in transaction for this clause to be triggered

Functions

verify open fun verify(tx: TransactionForContract, inputs: List<S>, outputs: List<S>, commands: Collection<AuthenticatedObject<CommandData>>, token: Issued<T>): Set<CommandData>