urbit/pkg/arvo/mar/graph/validator/dm.hoon

25 lines
473 B
Plaintext
Raw Normal View History

2021-04-23 04:39:29 +03:00
/- *post, met=metadata-store, graph=graph-store, hark=hark-graph-hook
|_ i=indexed-post
++ grow
|%
++ noun i
++ notification-kind
^- (unit notif-kind:hark)
?+ index.p.i ~
[@ @ ~] `[%message [1 2] %count %none]
2021-04-23 04:39:29 +03:00
==
::
--
++ grab
|%
++ noun
2021-05-20 07:21:23 +03:00
|: p=`*`%*(. *indexed-post index.p [0 0 ~])
2021-04-23 04:39:29 +03:00
=/ ip ;;(indexed-post p)
?> ?=(?([@ ~] [@ @ ~]) index.p.ip)
?> (lth i.index.p.ip (bex 128))
2021-04-23 04:39:29 +03:00
ip
--
::
++ grad %noun
--