interface OwnableState : ContractStateA contract state that can have a single owner.
| owner |
abstract val owner: PublicKeyThere must be a MoveCommand signed by this key to claim the amount |
| contract |
abstract val contract: ContractAn instance of the contract class that will verify this state. |
| participants |
abstract val participants: List<PublicKey>A |
| withNewOwner |
abstract fun withNewOwner(newOwner: PublicKey): <ERROR CLASS><CommandData, OwnableState>Copies the underlying data structure, replacing the owner field with this new value and leaving the rest alone |
| hash |
fun ContractState.hash(): SecureHashReturns the SHA-256 hash of the serialised contents of this state (not cached) |
| with notary |
infix fun ContractState.with notary(notary: Party): TransactionState<ContractState> |
| FungibleAssetState |
interface FungibleAssetState<T, I> : OwnableStateCommon elements of cash contract states. |
| SingleOwnerState |
data class SingleOwnerState : OwnableState, State |
| State |
data class State : OwnableState |