data class State : FungibleAsset<Commodity>A state representing a commodity claim against some party
| <init> |
State(deposit: PartyAndReference, amount: Amount<Commodity>, owner: PublicKey)State(amount: Amount<Issued<Commodity>>, owner: PublicKey)A state representing a commodity claim against some party |
| amount |
val amount: Amount<Issued<Commodity>> |
| contract |
val contract: CommodityContractAn instance of the contract class that will verify this state. |
| deposit |
val deposit: PartyAndReferenceWhere the underlying asset backing this ledger entry can be found. The reference is only intended for use by the issuer, and is not intended to be meaningful to others. |
| exitKeys |
val exitKeys: MutableSet<PublicKey>There must be an ExitCommand signed by these keys to destroy the amount. While all states require their owner to sign, some (i.e. cash) also require the issuer. |
| issuanceDef |
val issuanceDef: Issued<Commodity> |
| owner |
val owner: PublicKeyThere must be a MoveCommand signed by this key to claim the amount |
| participants |
val participants: <ERROR CLASS>A |
| move |
fun move(newAmount: Amount<Issued<Commodity>>, newOwner: PublicKey): FungibleAsset<Commodity> |
| 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 |