mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 18:12:47 +03:00
555eae6e25
For easier "this happened, then that happened" on the client side.
39 lines
804 B
Plaintext
39 lines
804 B
Plaintext
:: 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
|
|
$% :: %history: full event log history, oldest first
|
|
::
|
|
[%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]
|
|
==
|
|
--
|