class Vault
A vault (name may be temporary) wraps a set of states that are useful for us to keep track of, for instance, because we own them. This class represents an immutable, stable state of a vault: it is guaranteed not to change out from underneath you, even though the canonical currently-best-known vault may change as we learn about new transactions from our peers and generate new transactions that consume states ourselves.
This abstract class has no references to Cash contracts.
states Holds the states that are
Update |
data class Update Represents an update observed by the vault that will be notified to observers. Include the StateRefs of transaction outputs that were consumed (inputs) and the ContractStates produced (outputs) to/by the transaction or transactions observed and the vault. |
<init> |
Vault(states: Iterable<StateAndRef<ContractState>>, transactionNotes: Map<SecureHash, Set<String>> = emptyMap()) A vault (name may be temporary) wraps a set of states that are useful for us to keep track of, for instance, because we own them. This class represents an immutable, stable state of a vault: it is guaranteed not to change out from underneath you, even though the canonical currently-best-known vault may change as we learn about new transactions from our peers and generate new transactions that consume states ourselves. |
states |
val states: Iterable<StateAndRef<ContractState>> |
transactionNotes |
val transactionNotes: Map<SecureHash, Set<String>> |
statesOfType |
fun <T : ContractState> statesOfType(): List<StateAndRef<T>> |
NoUpdate |
val NoUpdate: Update |