| 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: 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: T): <ERROR CLASS>Sums the asset states in the list, returning zero of the given token if there are none. |