interface FungibleAssetState<T, I> : OwnableStateCommon elements of cash contract states.
| issuanceDef |
abstract val issuanceDef: I |
| productAmount |
abstract val productAmount: Amount<T> |
| owner |
abstract val owner: PublicKeyThere must be a MoveCommand signed by this key to claim the amount |
| move |
abstract fun move(newAmount: Amount<T>, newOwner: PublicKey): FungibleAssetState<T, I> |
| 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) |
| State |
interface State<T> : FungibleAssetState<T, Issued<T>>A state representing a cash claim against some party |
| State |
data class State<P> : FungibleAssetState<P, IssuanceDefinition<P>>, BilateralNettableState<State<P>>A state representing the obligation of one party (obligor) to deliver a specified number of units of an underlying asset (described as issuanceDef.acceptableIssuedProducts) to the beneficiary no later than the specified time. |