daml/ledger-service
Victor Peter Rouven Müller cc06073333
Java bindings/interface support (#13366)
* WIP

* First working version of java codegen daml interface support

* Update language-support/java/codegen/BUILD.bazel

Co-authored-by: Remy <remy.haemmerle@daml.com>

* Fix compile errors

* Simplify code massivly, enjoy less duplication

changelog_begin

- The Java codegen now has basic support for daml interface definitions. Converting a contract id of a template implementing an interface to a contract id of the interface is possible and both executing interface choices is possible on the contract id of the interface and implementing template.

changelog_end

* Rename the test file to reflect it is a test file & enhance the inner test name & extend it further

* Fix test

* Refactor parts of TemplateClass.scala into multiple files

* Format that files!

* Minimize duplication further

* Remove unused comment

* Simplify code
Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Update language-support/java/codegen/src/main/scala/com/digitalasset/daml/lf/codegen/CodeGenRunner.scala

Co-authored-by: Stephen Compall <stephen.compall@daml.com>

* Further refactoring and renaming of the TemplateClassSpec to ContractIdClassBuilderSpec

* Fix formatting

* Add interface docs

* Remove unnecessary code generation of the Contract class for interface types

* Use less bool flags and more good function names :)

* Fix build

Co-authored-by: Remy <remy.haemmerle@daml.com>
Co-authored-by: Stephen Compall <stephen.compall@daml.com>
2022-03-29 12:38:00 +02:00
..
cli-opts update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
db-backend move nonempty code to new nonempty library (#13350) 2022-03-21 17:14:17 +00:00
fetch-contracts move nonempty code to new nonempty library (#13350) 2022-03-21 17:14:17 +00:00
http-json Java bindings/interface support (#13366) 2022-03-29 12:38:00 +02:00
http-json-cli Replace silencer plugin with built-in warning configuration (#12543) 2022-01-24 15:01:35 +00:00
http-json-ledger-client Split channel configuration from LedgerClientConfiguration (#12433) 2022-01-18 10:03:33 +00:00
http-json-oracle interface choices in json-api (#13301) 2022-03-18 17:47:30 +00:00
http-json-perf [JSON-API] Remove dependency on user provided tokens for the perf runner & refactor main (#13114) 2022-03-03 16:12:40 +00:00
http-json-testing nonempty-cats refactoring (#13282) 2022-03-14 20:48:41 -04:00
jwt update copyright headers (#12240) 2022-01-03 16:36:51 +00:00
lf-value-json Upgrade to Scala 2.13.8 (#12506) 2022-02-03 09:05:31 +00:00
pureconfig-utils Replace silencer plugin with built-in warning configuration (#12543) 2022-01-24 15:01:35 +00:00
utils interface choices in json-api (#13301) 2022-03-18 17:47:30 +00:00