daml/docs/source
Moisés Ackerman 6ef040743f
Support interface choices in daml ledger export (#15189)
* Rename test //daml-script/export/integration-tests/golden:{export-=>}values

* Switch 'daml_ledger_export_test' to use 'run' instead of 'run-legacy-cli-config'

* Extract 'encodeImports' from 'encodeModuleHeader'

* Sort import list in 'daml ledger export'

* Add 'dev' argument to 'daml_ledger_export_test'

* Add interfaceId to ExercisedSelector

* Extract 'encodeExercisedEvent' from 'encodeCmd'

* Split 'encodeCid' into 'encodeCid{Expr,Pat}'

* 'CreatedContract' field 'tplId' now has type 'TemplateId'

* Specialize CreatedContract{=>WithPath}

* 'treeEventCreatedConsumedCids' returns Seq[SimpleCreatedContract] instead of Set[ContractId]

* Change type of 'SimpleCommand' field 'contractId' to 'SimpleCreatedContract'

* Coerce ContractIds to underlying template type

* Use interface ContractId in encodeExercisedEvent if present

* Add test //daml-script/export/integration-tests/golden:interface-choices

* Fix encoding of getAnyChoiceTemplateTypeRep in daml-script converter

* Set getAnyChoiceTemplateTypeRep to interfaceId if available

* fromExercised uses choice instead of templateId to find subtree

fromExercised uses exercised.argument.templateTypeRep instead of exercised.contractId.templateId

Previously it used exercised.contractId.templateId, but now it uses
exercised.argument.getAnyChoiceTemplateTypeRep, which corresponds
to the TemplateTypeRep of the {template,interface} that defined the choice.

* TestData.Exercised now takes a more flexible TestData.Choice argument

* Add unit tests for encoding of exercise of interface choice

* Apply code review suggestions

* sealed {trait=>abstract class} CreatedContract

* Use List instead of Seq

* Use ::= instead of :+= and ++=

changelog_begin
- [Daml export] Added support for interface choices (#15189)
- [Daml export] Export.daml imports are now sorted alphabetically
changelog_end

Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-10-19 10:43:04 +02:00
..
app-dev [DPP-1233] Update UM/UP docs (#15237) 2022-10-18 17:11:10 +02:00
concepts Fix doc typos (#14933) 2022-09-06 18:15:27 +02:00
daml review daml-intro-10 (#15268) 2022-10-18 17:10:50 +02:00
daml-repl Updating Titles and Headings (#13592) 2022-05-02 15:22:51 -04:00
daml-script Fix doc typos (#14933) 2022-09-06 18:15:27 +02:00
deploy Updating Titles and Headings (#13592) 2022-05-02 15:22:51 -04:00
getting-started [Doc] Getting started: use node v16 (#15025) 2022-09-26 15:08:26 +00:00
json-api Documentation for ledgerApiError in json api (#15089) 2022-09-26 17:37:42 +01:00
ops Add metering report check section documentation (#15095) 2022-09-28 08:25:52 +01:00
support Add link to support page (and indirectly to the support portal) (#15167) 2022-10-06 10:03:10 +00:00
tools Support interface choices in daml ledger export (#15189) 2022-10-19 10:43:04 +02:00
triggers Fix doc typos (#14933) 2022-09-06 18:15:27 +02:00
upgrade Updating Titles and Headings (#13592) 2022-05-02 15:22:51 -04:00
building-applications.rst TOC update for the Java Bindings tutorial (#13688) 2022-04-26 16:50:34 -04:00
operating-daml.rst Add system architecture (Canton) FAQ to docs (#14088) 2022-06-06 08:47:02 +00:00
tools.rst Add new toctrees in daml docs (#12880) 2022-02-15 07:34:29 +00:00
writing-daml.rst docs: fix intro project names (#13562) 2022-04-12 10:47:52 +00:00