daml/ledger-service
dylant-da 8e8e0dabdf
Convert viewtype and view methods to LF (#14456)
* Add DA_Internal_Interface to convertTypeDef exclusion check

* Move desugared types/values for interface views into DA.Internal.Desugar

* Convert viewtype and view method declarations

* Typecheck view types and view declarations

* Add unit viewtypes to InterfaceChoiceCollision tests

* Add unit viewtypes to more compiler/damlc tests

* Modify empty interfaces/implements to have viewtypes/views

* Add unit viewtypes to remaining Interface tests

* Test for error thrown when viewtype not specified

* Fix daml-lf/ interface tests to use new syntax / unit views

* Add placeholder view of type Unit to TestInterfaces

CHANGELOG_BEGIN
CHANGELOG_END

* Fix typescript interface tests with unit viewtype

* Add unit viewtype to Java & Scala codegen

* Add unit viewtype to triggers tests interface

* Add unit viewtypes to ledger/test-common

* Add unit viewtypes to ledger-service/http-json

* Fix some damlc tests

* Use viewtype syntax in InterfaceViewNonSerializable test

* Remove HasInferfaceView instances in convertBind

* Add unit view to QualifiedInterface.daml test

* Generate HasInterfaceView instances in DataDependencies

* Add unit viewtypes and views to compiler/damlc/tests

* Document reconstruction of HasInterfaceView

* Move desugared types/values for interface views into DA.Internal.Desugar

* Add desugarable function view w/ EViewInterface desugaring

* Remove templateName and viewtype from generated EViewInterface

* Update desugared-daml

* Proof of concept: use _view -> EViewInterface prim via HasInterfaceView

* Move view, HasInterfaceView to DA.Internal.Interface

* Update desugared-daml tests

* Stop removing and re-generating HasInterfaceView instances

* Do not generate docs for generated "_view_" methods

* Report errors with interface TypeConNames prettily

* Fix InterfaceViewNotSpecified @ERROR to reflect new error text

* Don't import magic `view` method from Prelude to avoid name clash

* Update shake interface goto definition test locations

* Temp disable view spec tests, will re-implement views in speedy

* Add unit viewtype to Java code snippet docs

* Update Interface syntax docs for views

* Add unit viewtype to Transferrable.daml

* Add back "empty" interface implementation to interfaces.rst

* Re-enable view tests by having _view methods on InterfaceViews.daml file

* Remove deprecated commented-out view desugaring code
2022-08-03 16:23:38 +01:00
..
cli-opts Unify TlsConfiguration between SDK and canton [DPP-1113] (#14349) 2022-07-14 16:58:59 +02:00
db-backend Update scalafmt to 3.5.1. (#13584) 2022-04-28 09:57:04 +00:00
fetch-contracts overloaded choices in json-api (#14410) 2022-07-27 15:40:58 +00:00
http-json Convert viewtype and view methods to LF (#14456) 2022-08-03 16:23:38 +01:00
http-json-cli Update scalafmt to 3.5.1. (#13584) 2022-04-28 09:57:04 +00:00
http-json-ledger-client Split channel configuration from LedgerClientConfiguration (#12433) 2022-01-18 10:03:33 +00:00
http-json-oracle Removal of sandbox-classic module and binary (#14201) 2022-06-21 11:09:51 +02:00
http-json-perf Sandbox Classic Removal in Tests (#13934) 2022-06-07 19:54:52 +00:00
http-json-testing overloaded choices in json-api (#14410) 2022-07-27 15:40:58 +00:00
jwt DPP-1047 Added leeway options for JWT-based authorization. (#14375) 2022-07-13 14:57:54 +02:00
lf-value-json replace remaining RNil usages with shapeless.record.Record (#14275) 2022-06-28 19:16:25 +00:00
pureconfig-utils DPP-1047 Added leeway options for JWT-based authorization. (#14375) 2022-07-13 14:57:54 +02:00
utils better errors when querying by interface ID (#13406) 2022-03-31 15:53:39 +00:00