abstract class TemplateCompanion[T] extends ContractTypeCompanion[T] with ViaFields[T]
Common superclass of template classes' companions.
- T
The companion class's type. We can get away with this here, but not for ValueRefCompanion, because templates' associated types are guaranteed to have zero tparams.
- Alphabetic
- By Inheritance
- TemplateCompanion
- ViaFields
- ContractTypeCompanion
- ValueRefCompanion
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type ContractId = Primitive.ContractId[T]
Alias for contract IDs for this template or interface.
Alias for contract IDs for this template or interface. Can be used interchangeably with its expansion.
- Definition Classes
- ContractTypeCompanion
- abstract type key
The template's key type, or Nothing if there is no key type.
- abstract type view[C[_]] <: RecordView[C[_], view]
The fields of
T
's associated record type, each in some type constructorC
.The fields of
T
's associated record type, each in some type constructorC
.- Definition Classes
- ViaFields
- Note
Lowercase because
T.View
is a valid Daml type name, and this trait describes codegen output.
- abstract class Value ValueRef[A] extends Value[A]
- Attributes
- protected
- Definition Classes
- ValueRefCompanion
- Annotations
- @SuppressWarnings()
Abstract Value Members
- abstract val consumingChoices: Set[Choice]
- abstract def encoding(lte: LfTypeEncoding)(view: view[Field]): Out[T]
- Definition Classes
- ViaFields
- abstract def fieldEncoding(lte: LfTypeEncoding): view[Field]
- Definition Classes
- ViaFields
- abstract def fromNamedArguments(namedArguments: Record): Option[T]
- abstract val id: TemplateId[T]
- Definition Classes
- ContractTypeCompanion
- abstract def toNamedArguments(associatedType: T): Record
Concrete Value Members
- final def arguments(elems: (String, api.v1.value.Value)*): Record
- Attributes
- protected
- final def createVariantOfSynthRecord(k: String, o: (String, api.v1.value.Value)*): Variant
- Attributes
- protected
- Definition Classes
- ValueRefCompanion
- lazy val dataTypeId: Identifier
- Attributes
- protected
- Definition Classes
- ContractTypeCompanion → ValueRefCompanion
- final def enum(constructor: String): Enum
- Attributes
- protected
- Definition Classes
- ValueRefCompanion
- final def exercise[ExOn, Out](receiver: ExOn, choiceId: String, arguments: Option[api.v1.value.Value])(implicit exon: ExerciseOn[ExOn, T]): Update[Out]
- Attributes
- protected
- Definition Classes
- ContractTypeCompanion
- final def mkDataTypeId(packageId: String, moduleName: String, entityName: String): Identifier
- Attributes
- protected
- Definition Classes
- ValueRefCompanion
- final def record(elements: (String, api.v1.value.Value)*): Record
- Attributes
- protected
- Definition Classes
- ValueRefCompanion
- final def templateId(packageId: String, moduleName: String, entityName: String): TemplateId[T]
- Attributes
- protected
- Definition Classes
- ContractTypeCompanion
- final def variant(constructor: String, value: api.v1.value.Value): Variant
- Attributes
- protected
- Definition Classes
- ValueRefCompanion
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- val describesTemplate: <:<[T, Template[T]]
Proof that T <: Template[T].
Proof that T <: Template[T]. Expressed here instead of as a type parameter bound because the latter is much more inconvenient in practice.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def key(k: key)(implicit enc: ValueEncoder[key]): Key[T]
Prepare an exercise-by-key Update.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit final def the TemplateCompanion: TemplateCompanion.this.type
Permits TemplateCompanion to be optionally treated as a typeclass for template types.
- implicit val the template LfEncodable: LfEncodable[T]
- implicit val the template Value: Value[T]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated