mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-19 16:57:40 +03:00
664a0c0076
* add ActionState to the standard library * use 1 ActionState, 1 get, 1 put in low-level trigger library * introduce TriggerStateA for updateState * fix tests and examples for new updateState signature CHANGELOG_BEGIN - [Triggers] The ``updateState`` function now returns a ``TriggerStateA``. This is an action like ``TriggerA``, but doesn't permit emitting commands. Instead of taking the state as an argument and returning a new state, you can manipulate the state with ``get``, ``put``, and ``modify``. Any existing ``updateState`` can be ported by replacing ``s -> expr`` in the lambda expression with ``-> modify $ \s ->``, and then made to look nicer from there as desired. See `issue #7621 <https://github.com/digital-asset/daml/pull/7621>`__. CHANGELOG_END * some DAML docs for updateState and TriggerStateA |
||
---|---|---|
.. | ||
client_server | ||
create-daml-app | ||
daml_ledger | ||
daml_script | ||
daml_trigger | ||
data_dependencies | ||
test_utils | ||
BUILD | ||
create_daml_app_test.sh | ||
daml_ledger_test.sh | ||
daml_sdk.bzl | ||
daml.cc.tpl | ||
sandbox-with-postgres.sh | ||
testing.bzl | ||
versions.bzl |