mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
parent
d8b92b7c99
commit
6c45f099bb
@ -150,7 +150,6 @@ The Java codegen generates three classes for a Daml template:
|
||||
|
||||
**TemplateName.ContractId**
|
||||
Used whenever a contract ID of the corresponding template is used in another template or record, for example: ``data Foo = Foo (ContractId Bar)``. This class also provides methods to generate an ``ExerciseCommand`` for each choice that can be sent to the ledger with the Java Bindings.
|
||||
.. TODO: refer to another section explaining exactly that, when we have it.
|
||||
|
||||
**TemplateName.Contract**
|
||||
Represents an actual contract on the ledger. It contains a field for the contract ID (of type ``TemplateName.ContractId``) and a field for the template data (of type ``TemplateName``). With the static method ``TemplateName.Contract.fromCreatedEvent``, you can deserialize a `CreatedEvent <https://docs.daml.com/app-dev/bindings-java/javadocs/com/daml/ledger/javaapi/data/CreatedEvent.html>`__ to an instance of ``TemplateName.Contract``.
|
||||
|
Loading…
Reference in New Issue
Block a user