daml/compiler/scenario-service
Jussi Mäki 95ddb65483
DAML Engine: accurate package dependency annotations (#3726)
* Track used packages during whole of engine submit

- Introduce MutableCompiledPackages interface
- Add TrackingCompiledPackages that tracks fetched packages
- Make used packages in transaction optional to distinguish between
  missing dependencies and empty set of dependencies.

* Reimplement package dependency tracking

- Compute direct dependencies of a package during decoding
- Compute transitive dependencies of a package when adding a package
  to engine.
- Annotate the resulting transaction with package dependencies
  in Engine.submit.

* Create Ast.Package with proper direct deps in scenario service

While we don't have use for direct dependencies of a package in
scenario service (only Engine.submit needs it), it's better to be
accurate.

This of course overapproximates the direct dependencies.

* Compile a each new package once in ConcurrentCompiledPackages
2019-12-04 15:01:21 +01:00
..
client Don't break long party names in scenario view weirdly (#3669) 2019-11-29 08:10:44 +00:00
protos Replace Hazel by stack_snapshot (#2743) 2019-11-22 14:24:08 +00:00
server DAML Engine: accurate package dependency annotations (#3726) 2019-12-04 15:01:21 +01:00