Commit Graph

3 Commits

Author SHA1 Message Date
Samuel Williams
95dd64bc02
Script package vetting (#17035)
* Version the script runner

* Fix import

* Add v2 files

* Add v1/v2 switching logic

* Add -- @ SCRIPT-V2 flag to integration tests

* Fix daml-v2 docs gen, refactor withDamlScriptDep

* Fix package name for daml-script2

* Fix polymorphic script warning for daml-script2

* Address review comments

* Scala, not haskell

* Add warnings to template files

* Rename daml-v2 to daml3, daml-script-v2 to daml3-script

* Fix polymorphic warning again

* Switch try catch to a command

* Use free properly, make all continues identity

* Split up DamlScript, implement Questions logic

* Fix most of the issues

* Drop internal callstack frames

* Minor fixes

* Prevent Catch being treated as an old-style typeclass

* Fix catch parsing

* Implement package vetting and unvetting

* Add no such template error to scenario service proto

* Notes for updateCompiledPackages in IdeLedgerClient

* Improve script src copying

* Add package vetting test, and framework for extra packages in integration tests

* Fix daml script dar rule mistake

* Apply suggestions from code review

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

* Convert PureCompiledPackages to case class

* Generalise Lookup error over scenario proto

* Address review

---------

Co-authored-by: Remy <remy.haemmerle@daml.com>
2023-06-29 15:42:34 +01:00
Samuel Williams
6640c6fbd8
Daml3 script refactoring (#17028)
* Version the script runner

* Fix import

* Add v2 files

* Add v1/v2 switching logic

* Add -- @ SCRIPT-V2 flag to integration tests

* Fix daml-v2 docs gen, refactor withDamlScriptDep

* Fix package name for daml-script2

* Fix polymorphic script warning for daml-script2

* Address review comments

* Scala, not haskell

* Add warnings to template files

* Rename daml-v2 to daml3, daml-script-v2 to daml3-script

* Fix polymorphic warning again

* Switch try catch to a command

* Use free properly, make all continues identity

* Split up DamlScript, implement Questions logic

* Fix most of the issues

* Drop internal callstack frames

* Minor fixes

* Prevent Catch being treated as an old-style typeclass

* Fix catch parsing

* Improve script src copying

* Fix daml script dar rule mistake

* Address review comments

* Address deep dive comments

* Update daml-script/runner/src/main/scala/com/digitalasset/daml/lf/engine/script/v2/Runner.scala

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

* Small fix

* Add some information to Internal.daml

---------

Co-authored-by: Remy <remy.haemmerle@daml.com>
2023-06-28 09:15:21 +01:00
Samuel Williams
d813fbbdc3
Add daml-script v2 (#16934)
* Version the script runner

* Fix import

* Add v2 files

* Add v1/v2 switching logic

* Add -- @ SCRIPT-V2 flag to integration tests

* Fix daml-v2 docs gen, refactor withDamlScriptDep

* Fix package name for daml-script2

* Fix polymorphic script warning for daml-script2

* Address review comments

* Scala, not haskell

* Add warnings to template files

* Rename daml-v2 to daml3, daml-script-v2 to daml3-script

* Fix polymorphic warning again
2023-06-20 14:26:45 +01:00