data class State : State<Currency>A state representing a cash claim against some party
| <init> |
State(deposit: PartyAndReference, amount: Amount<Currency>, owner: PublicKey)State(amount: Amount<Issued<Currency>>, owner: PublicKey)A state representing a cash claim against some party |
| amount |
val amount: Amount<Issued<Currency>> |
| contract |
val contract: CashAn instance of the contract class that will verify this state. |
| deposit |
val deposit: PartyAndReferenceWhere the underlying currency backing this ledger entry can be found (propagated) |
| issuanceDef |
val issuanceDef: Issued<Currency> |
| owner |
val owner: PublicKeyThere must be a MoveCommand signed by this key to claim the amount |
| participants |
val participants: List<PublicKey>A |
| productAmount |
val productAmount: Amount<Currency> |
| move |
fun move(newAmount: Amount<Currency>, newOwner: PublicKey): State<Currency> |
| toString |
fun toString(): String |
| withNewOwner |
fun withNewOwner(newOwner: PublicKey): <ERROR CLASS>Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone |
| issued by |
infix fun State.issued by(party: Party): Stateinfix fun State.issued by(deposit: PartyAndReference): State |
| owned by |
infix fun State.owned by(owner: PublicKey): <ERROR CLASS> |
| with deposit |
infix fun State.with deposit(deposit: PartyAndReference): State |
| with notary |
infix fun State.with notary(notary: Party): TransactionState<State> |