mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 09:17:43 +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 |
||
---|---|---|
.. | ||
ErrorTrigger.daml | ||
LowLevelErrorTrigger.daml | ||
TestTrigger.daml |