daml/triggers
Stephen Compall 6d39ac6984
allow updating user state from high-level trigger rule (#7674)
* allow updating user state from high-level trigger rule

* fix tests and examples for new rule signature

* fix doc for new rule signature

* add changelog

CHANGELOG_BEGIN
- [Triggers] ``rule`` can now ``get`` and ``put`` the user-defined state just
  like ``updateState`` does.  It no longer accepts the state as an argument.
  You can port your rule function types by replacing ``s -> TriggerA`` with
  ``TriggerA s``, removing the last argument from the function, and using
  ``get`` to retrieve the state at the beginning of the ``rule``'s ``do`` block,
  if needed.
  See `issue #7674 <https://github.com/digital-asset/daml/pull/7674>`__.
CHANGELOG_END

* test that rule userState changes propagate all the way out

* adapt compatibility filtering to #7681
2020-10-14 14:51:25 +00:00
..
daml allow updating user state from high-level trigger rule (#7674) 2020-10-14 14:51:25 +00:00
runner LF: add PackageInterface a lightweigh Package (#7577) 2020-10-13 12:41:22 +02:00
service allow updating user state from high-level trigger rule (#7674) 2020-10-14 14:51:25 +00:00
tests allow updating user state from high-level trigger rule (#7674) 2020-10-14 14:51:25 +00:00