mirror of
https://github.com/digital-asset/daml.git
synced 2024-11-10 10:46:11 +03:00
0a8c1eba4e
This integrates the time service into DAML script thereby covering the main piece of scenarios that was missing from DAML script. This PR does two things (they are very related and doing them together makes it much easier to test): 1. It “fixes” `getTime` to return the ledger time in static mode by querying the ledger time service instead of defaulting to the Unix epoch which is pretty useless and I would consider the old behavior a bug. We keep the old behavior via the JSON API since there is no time service. 2. It adds `setTime` to set the ledger time via the time service. This is only supported in static time mode (sadbonx and other ledgers do not expose the time service in wallclock mode because changing time makes it not wallclock) or via the JSON API (no time service). fixes #6220 changelog_begin - [DAML Script] DAML Script’s `getTime` now correctly handles time changes in static time mode and returns the current time by querying the time service rather than defaulting to the Unix epoch. Note that when run via the JSON API, it still returns the Unix epoch. - [DAML Script] Add `setTime` to DAML Script which sets the ledger time via the ledger API time service. Note that this is only supported when running over gRPC in static time mode. changelog_end |
||
---|---|---|
.. | ||
daml-extension | ||
daml-lf-ast | ||
daml-lf-proto | ||
daml-lf-reader | ||
daml-lf-tools | ||
daml-lf-verify | ||
daml-licenses | ||
damlc | ||
ghcide | ||
hie-core | ||
lsp-tests | ||
repl-service | ||
scenario-service | ||
README.md |
DAML Compiler
This directory contains several libraries used by and the executable for the DAML compiler.
Libraries
daml-lf-ast
: The DAML-LF AST and type checker.