urbit/pkg/arvo/mar/group/action.hoon

34 lines
668 B
Plaintext
Raw Normal View History

2020-05-15 01:50:04 +03:00
/+ *group-store
=, dejs:format
2020-05-15 01:50:04 +03:00
|_ act=action
++ grab
|%
2020-05-15 01:50:04 +03:00
++ noun action
:: ++ json
:: |= jon=^json
:: =< (parse-group-action jon)
:: |%
:: ++ parse-group-action
:: %- of
:: :~
:: [%add add-action]
:: [%remove remove-action]
:: [%bundle pa]
:: [%unbundle pa]
:: ==
:: ::
:: ++ add-action
:: %- ot
:: :~ [%members (as (su ;~(pfix sig fed:ag)))]
:: [%path pa]
:: ==
:: ::
:: ++ remove-action
:: %- ot
:: :~ [%members (as (su ;~(pfix sig fed:ag)))]
:: [%path pa]
:: ==
:: --
--
--