urbit/pkg/arvo/age/first.hoon

23 lines
835 B
Plaintext
Raw Normal View History

2019-09-10 23:12:38 +03:00
/+ default-agent
^- agent:mall
=| state=@
2019-09-10 23:12:38 +03:00
|_ =bowl:mall
+* this .
++ handle-init ~(handle-init default-agent bowl this)
++ handle-extract-state ~(handle-extract-state default-agent bowl this)
++ handle-upgrade-state ~(handle-upgrade-state default-agent bowl this)
++ handle-poke
|= in-poke-data=cage
~& > state=state
2019-09-10 23:12:38 +03:00
~& > in-poke-data
=. state +(state)
2019-09-10 23:12:38 +03:00
`this
::
++ handle-subscribe ~(handle-subscribe default-agent bowl this)
++ handle-unsubscribe ~(handle-unsubscribe default-agent bowl this)
++ handle-peek ~(handle-peek default-agent bowl this)
++ handle-agent-response ~(handle-agent-response default-agent bowl this)
++ handle-arvo-response ~(handle-arvo-response default-agent bowl this)
++ handle-error ~(handle-error default-agent bowl this)
--