data class SourceAndAmount<T : Any, out P : Any>
Simple data class to associate the origin, owner, or holder of a particular Amount object.
P
- Any class type that can disambiguate where the amount came from.
T
- The token type of the underlying Amount.
SourceAndAmount(source: P, amount: Amount<T>, ref: Any? = null)
Simple data class to associate the origin, owner, or holder of a particular Amount object. |
val amount: Amount<T>
the Amount of asset available. |
|
val ref: Any?
is an optional field used for housekeeping in the caller. e.g. to point back at the original Vault state objects. |
|
val source: P
the holder of the Amount. |
fun Any.contextLogger(): <ERROR CLASS>
When called from a companion object, returns the logger for the enclosing class. |