sumCash |
fun Iterable<ContractState>.sumCash(): <ERROR CLASS> Sums the cash states in the list, throwing an exception if there are none, or if any of the cash states cannot be added together (i.e. are different currencies). |
sumCashBy |
fun Iterable<ContractState>.sumCashBy(owner: PublicKey): <ERROR CLASS> Sums the cash states in the list belonging to a single owner, throwing an exception if there are none, or if any of the cash states cannot be added together (i.e. are different currencies). |
sumCashOrNull |
fun Iterable<ContractState>.sumCashOrNull(): <ERROR CLASS> Sums the cash states in the list, returning null if there are none. |
sumCashOrZero |
fun Iterable<ContractState>.sumCashOrZero(currency: Issued<Currency>): <ERROR CLASS> Sums the cash states in the list, returning zero of the given currency if there are none. |
sumFungible |
fun <T> Iterable<ContractState>.sumFungible(): <ERROR CLASS> Sums the asset states in the list, throwing an exception if there are none, or if any of the asset states cannot be added together (i.e. are different tokens). |
sumFungibleBy |
fun <T> Iterable<ContractState>.sumFungibleBy(owner: PublicKey): <ERROR CLASS> Sums the asset states in the list belonging to a single owner, throwing an exception if there are none, or if any of the asset states cannot be added together (i.e. are different tokens). |
sumFungibleOrNull |
fun <T> Iterable<ContractState>.sumFungibleOrNull(): <ERROR CLASS> Sums the asset states in the list, returning null if there are none. |
sumFungibleOrZero |
fun <T> Iterable<ContractState>.sumFungibleOrZero(token: Issued<T>): <ERROR CLASS> Sums the asset states in the list, returning zero of the given token if there are none. |
sumObligations |
fun <P> Iterable<ContractState>.sumObligations(): Amount<P> Sums the obligation states in the list, throwing an exception if there are none. All state objects in the list are presumed to be nettable. |
sumObligationsOrNull |
fun <P> Iterable<ContractState>.sumObligationsOrNull(): Amount<P>? Sums the obligation states in the list, returning null if there are none. |
sumObligationsOrZero |
fun <P> Iterable<ContractState>.sumObligationsOrZero(product: P): Amount<P> Sums the obligation states in the list, returning zero of the given product if there are none. |