* [LF] make Timestamp parsing consistent between Java 11 and Java 17
Between Java 11 and Java 17 there is one bug fix on Instant.parse
that expands the range of values that can be parsed into an
Instant. See https://bugs.openjdk.org/browse/JDK-8166138
Daml-LF happened to uses Instant.parse to parse a string into a
Daml-LF timestamp and we observe a different behavior when running
Daml on Java 11 and Java 17
additionally make explicit that conversion form java Instant and
string may drop nanoseconds, i.e. we create a lenient version that may
drop the significant nanoseconds (legacy or) and a strict
version that reject instant/string that cannot be converted without
loss of precision.
* 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>
According to current documentation, only one of these may be set, but we can currently return both.
Also in this case we currently return a status code of 501, which is not one of the documented status codes. This PR switches that to 500 instead.
https://docs.daml.com/json-api/index.html#http-status-codes
First draw of Multi Domain Ledger API V2
[CHANGELOG_BEGIN]
introducing Ledger API V2 in a backwards compatible fashion.
For change-log and migration hints please read v2/package.proto.
[CHANGELOG_END]
* Add test case
* Add ImmArray#drop
* SBPromoteAnyContract extends values of pred template types
* fmt
* Revert "Add ImmArray#drop"
This reverts commit 9f7ea3a9d73289aaec179eb47928b2ee22a31c76.
* TODO
* Refactor SBPromoteAnyContract suffix construction
* Lookup DataRecord using pkgInterface
* coin-upgrade-v1-v2-new-field now tests that new field works with get/set
* remove sandbox-on-x project
update bazel readme
update release artifacts
comment out last remaining SoX test
remove ledger-runner-common
remove participant-state-kv-errors
remove recovering-indexer-integration-tests
remove participant-integration-api
update doc pages
cleanup ledger-api-auth usage
remove participant-state
fix build
fix build
clean up ledger-api-common part I
clean up ledger-api-comon part II
clean up ledger-api-common part III
remove ledger/metrics
clean up ledger-api-health and ledger-api-domain
* remove ledger-configuration ad ledger-offset
* remove ledger-grpc and clean up participant-local-store
* reshuffle few more classes
* format
* reduce the usage of sandbox-on-x
* fix broken build
* fix build
* drop tests of very old compilers that are not supported by canton
* stop building sandbox-on-postgres when it is not used anyway
* drop tests of very old triggers that are not supported by canton
* Refactor PackageMetadata construction
* Package Metadata now can include an upgraded package id
* define PackageInterface#lookupPredecessors
* Add SoftFetch in Daml LF
* Add softFetch function in Daml
* Add USoftFetch LFConversion primitive
* Define SoftFetch in terms of SBPromoteAnyContract
* daml_compile rule now takes upgrades arg
* Add script test for softFetch
* TODOs
* Check LF >= 1.dev when decoding 'upgradedPackageId' and 'softFetch' in DecodeV1.scala
* Check that softFetch is not called on templates with contract keys
* Seq=>List
* ModParser todo
* Extract PackageUpgradesIT from AbstractFuncIT
* Update docstring for SBPromoteAnyContract
* Fix build errors
* Fix build error
* DecodeV1Spec case for softFetch
* DecodeV1Spec case for upgradedPackageId
* EncodeV1 case for upgradedPackageId
* Fix build error
* Disable test due to cyclic dependency with canton
* Add transitive case to PackageUpgradesIT
* Clean up PackageUpgradesIT
* Fix build error
* Error if 'upgrades' field is present before featurePackageUpgrades
* Update doc on compileSoftFetchTemplate
* Reword WronglyTypedContractSoft error
- force logging when debug is one (overring logbak conf)
- inherit SuiteResourceManagementAroundAll
- minor cleanup
- add default value for CantonFixture parameter
* Begin work on cancellable scenarios
* Stubs that pass typechecking, for bidirectional streams
* Place default value in running handlers
* Support start/stop requests
* switch script to scenario
* ScenarioServiceMain lint
* Fix nonexhaustive check
* Working but ugly
* Remove ugliness / print debugging
* lint
* Distinguish cancellation by timeout vs request, refactor ior
* lint
* Implement automatic cancellation of outdated scripts, and test
* lint
* Fix boolean blindness in script cancellation signal
* Add timeout & steps to script interrupt test case
* Add test case for hover resetting script progress
* Remove unused ReplacedByOtherThread datatype
* remove dead debugging print statements
* Improve semaphore code
* Turn handler structure into a Semigroup, handle multiple response error
* enable correct behaviour expectation in daml-script with-authority example
* add testing for daml-lf examples with sequenced WITH_AUTHORITY, and extend testing for nested exammples
* _tryCatch sig
* CatchPayload now only continues via 'continue' field
* fmt
* Add test cases
* update docs for CatchPayload
* fix type of CatchPayload.continue
* Add x type parameter to CatchPayload, drop toLedgerValue
* Accept uppercase English alphabet letters in user IDs
changelog_begin
Accept uppercase English alphabet letters in user IDs
changelog_end
* Fix title case in docs change
Co-authored-by: Sergey Kisel <98825453+skisel-da@users.noreply.github.com>
Co-authored-by: Sergey Kisel <98825453+skisel-da@users.noreply.github.com>
* Move datatype DA.Action.State.State into a stable package
* Move datatype DA.Stack.SrcLoc into a stable package
* Move datatype DA.Random.Minstd into a stable package
* Skip doctest for DA.Action.State.Type
* Don't use magic numbers in CodeGenRunnerTests.scala
* Update comment in StablePackageTest.scala
* update reference doc (doc-comments in Script.daml) for daml-script/interfaces
* small english fixes
* update user doc and example for daml-script/interfaces
* build/test ScriptExample.daml at 1.15
* dont show party in interface info message
* fix for: //daml-script/export/integration-tests/golden:matches-docs-test
* disable failing integration test
* daml_ledger_export_test is now defined in terms of client_server_test
* daml_ledger_export_test now has timeout=short by default
Co-authored-by: Remy <remy.haemmerle@daml.com>