urbit/pkg/arvo/lib/skeleton.hoon
Philip Monk 7c4316fce4
mall: refactor gift/sign/task types
+on-agent now takes a +sign:agent:mall, which doesn't include spurious
options.  Similarly, +task:agent:mall is smaller.
2019-11-08 17:35:24 -08:00

52 lines
792 B
Plaintext

:: Similar to default-agent except crashes everywhere
^- agent:mall
|_ bowl:mall
++ on-init
^- (quip card:agent:mall agent:mall)
!!
::
++ on-save
^- vase
!!
::
++ on-load
|~ old-state=vase
^- (quip card:agent:mall agent:mall)
!!
::
++ on-poke
|~ in-poke-data=cage
^- (quip card:agent:mall agent:mall)
!!
::
++ on-watch
|~ path
^- (quip card:agent:mall agent:mall)
!!
::
++ on-leave
|~ path
^- (quip card:agent:mall agent:mall)
!!
::
++ on-peek
|~ path
^- (unit (unit cage))
!!
::
++ on-agent
|~ [wire sign:agent:mall]
^- (quip card:agent:mall agent:mall)
!!
::
++ on-arvo
|~ [wire =sign-arvo]
^- (quip card:agent:mall agent:mall)
!!
::
++ on-fail
|~ [term tang]
^- (quip card:agent:mall agent:mall)
!!
--