final case class Contract[+T](contractId: ContractId[T], value: T with Template[T], agreementText: Option[String], signatories: Seq[String], observers: Seq[String], key: Option[api.v1.value.Value]) extends Product with Serializable
A class representing a Daml contract of specific type (Daml template) with assigned contract ID and agreement text.
- T
Contract template type parameter.
- contractId
Contract ID.
- value
Contract instance as defined in Daml template (without
contractId
andagreementText
).- agreementText
Agreement text.
None
means that we did not receive theagreementText
from the server.Some("")
is a valid case, this means that the contract hasagreementText
set to an empty string or agreement was not defined in Daml, which defaults to an empty string.- signatories
Signatories of the contract as defined in the Daml template
- observers
Observers of the contract, both explicitly as defined in the Daml template and implicitly as choice controllers.
- key
The value of the key of this contract, if defined by the template.
- Alphabetic
- By Inheritance
- Contract
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Contract(contractId: ContractId[T], value: T with Template[T], agreementText: Option[String], signatories: Seq[String], observers: Seq[String], key: Option[api.v1.value.Value])
- contractId
Contract ID.
- value
Contract instance as defined in Daml template (without
contractId
andagreementText
).- agreementText
Agreement text.
None
means that we did not receive theagreementText
from the server.Some("")
is a valid case, this means that the contract hasagreementText
set to an empty string or agreement was not defined in Daml, which defaults to an empty string.- signatories
Signatories of the contract as defined in the Daml template
- observers
Observers of the contract, both explicitly as defined in the Daml template and implicitly as choice controllers.
- key
The value of the key of this contract, if defined by the template.
Value Members
- 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
- val agreementText: Option[String]
- def arguments: Record
- 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 contractId: ContractId[T]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val key: Option[api.v1.value.Value]
- 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()
- val observers: Seq[String]
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val signatories: Seq[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val value: T with Template[T]
- 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