2019-10-29 22:51:58 +03:00
|
|
|
:: eth-watcher: ethereum event log collector
|
|
|
|
::
|
|
|
|
=, able:jael
|
|
|
|
|%
|
|
|
|
+$ config
|
|
|
|
$: url=@ta
|
|
|
|
from=number:block
|
|
|
|
contracts=(list address:ethereum)
|
|
|
|
=topics
|
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ loglist (list event-log:rpc:ethereum)
|
|
|
|
+$ topics (list ?(@ux (list @ux)))
|
|
|
|
::
|
|
|
|
+$ poke
|
|
|
|
$% :: %watch: configure a watchdog and fetch initial logs
|
|
|
|
::
|
|
|
|
[%watch =path =config]
|
|
|
|
:: %clear: remove a watchdog
|
|
|
|
::
|
|
|
|
[%clear =path]
|
|
|
|
==
|
|
|
|
::
|
|
|
|
+$ diff
|
2019-10-30 20:44:34 +03:00
|
|
|
$% :: %history: full event log history, oldest first
|
2019-10-29 22:51:58 +03:00
|
|
|
::
|
|
|
|
[%history =loglist]
|
|
|
|
:: %log: newly added log
|
|
|
|
::
|
|
|
|
[%log =event-log:rpc:ethereum]
|
|
|
|
:: %disavow: forget logs
|
|
|
|
::
|
|
|
|
:: this is sent when a reorg happens that invalidates
|
|
|
|
:: previously-sent logs
|
|
|
|
::
|
|
|
|
[%disavow =id:block]
|
|
|
|
==
|
|
|
|
--
|