mirror of
https://github.com/urbit/shrub.git
synced 2024-12-26 05:23:35 +03:00
btc-provider: add jet hints
This commit is contained in:
parent
515372d319
commit
97ee25d7e1
@ -53,6 +53,7 @@
|
|||||||
`this(state !<(versioned-state old-state))
|
`this(state !<(versioned-state old-state))
|
||||||
::
|
::
|
||||||
++ on-poke
|
++ on-poke
|
||||||
|
~/ %on-poke
|
||||||
|= [=mark =vase]
|
|= [=mark =vase]
|
||||||
^- (quip card _this)
|
^- (quip card _this)
|
||||||
|^
|
|^
|
||||||
@ -62,6 +63,7 @@
|
|||||||
%btc-provider-command
|
%btc-provider-command
|
||||||
?> (team:title our.bowl src.bowl)
|
?> (team:title our.bowl src.bowl)
|
||||||
(handle-command !<(command vase))
|
(handle-command !<(command vase))
|
||||||
|
::
|
||||||
%btc-provider-action
|
%btc-provider-action
|
||||||
(handle-action !<(action vase))
|
(handle-action !<(action vase))
|
||||||
==
|
==
|
||||||
@ -161,6 +163,7 @@
|
|||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ on-watch
|
++ on-watch
|
||||||
|
~/ %on-watch
|
||||||
|= pax=path
|
|= pax=path
|
||||||
^- (quip card _this)
|
^- (quip card _this)
|
||||||
:: checking provider permissions before trying to subscribe
|
:: checking provider permissions before trying to subscribe
|
||||||
@ -185,6 +188,7 @@
|
|||||||
this(clients.host-info (~(put in clients.host-info) src.bowl))
|
this(clients.host-info (~(put in clients.host-info) src.bowl))
|
||||||
::
|
::
|
||||||
++ on-arvo
|
++ on-arvo
|
||||||
|
~/ %on-arvo
|
||||||
|= [=wire =sign-arvo]
|
|= [=wire =sign-arvo]
|
||||||
|^
|
|^
|
||||||
^- (quip card _this)
|
^- (quip card _this)
|
||||||
@ -277,6 +281,7 @@
|
|||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ on-peek
|
++ on-peek
|
||||||
|
~/ %on-peek
|
||||||
|= pax=path
|
|= pax=path
|
||||||
^- (unit (unit cage))
|
^- (unit (unit cage))
|
||||||
?+ pax (on-peek:def pax)
|
?+ pax (on-peek:def pax)
|
||||||
@ -306,13 +311,14 @@
|
|||||||
^- card
|
^- card
|
||||||
=+ c=[%give %fact ~[/clients] %btc-provider-update !>(update)]
|
=+ c=[%give %fact ~[/clients] %btc-provider-update !>(update)]
|
||||||
?: ?=(%.y -.update)
|
?: ?=(%.y -.update)
|
||||||
:: ~& >> "prov. update: {<p.update>}"
|
|
||||||
c
|
c
|
||||||
~& >> "prov. err: {<p.update>}"
|
~& >> "prov. err: {<p.update>}"
|
||||||
c
|
c
|
||||||
::
|
::
|
||||||
++ is-whitelisted
|
++ is-whitelisted
|
||||||
|= user=ship ^- ?
|
~/ %is-whitelisted
|
||||||
|
|= user=ship
|
||||||
|
^- ?
|
||||||
|^
|
|^
|
||||||
?| public.whitelist
|
?| public.whitelist
|
||||||
=(our.bowl user)
|
=(our.bowl user)
|
||||||
@ -333,11 +339,13 @@
|
|||||||
--
|
--
|
||||||
::
|
::
|
||||||
++ is-client
|
++ is-client
|
||||||
|= user=ship ^- ?
|
|= user=ship
|
||||||
|
^- ?
|
||||||
(~(has in clients.host-info) user)
|
(~(has in clients.host-info) user)
|
||||||
::
|
::
|
||||||
++ start-ping-timer
|
++ start-ping-timer
|
||||||
|= interval=@dr ^- card
|
|= interval=@dr
|
||||||
|
^- card
|
||||||
[%pass /ping-timer %arvo %b %wait (add now.bowl interval)]
|
[%pass /ping-timer %arvo %b %wait (add now.bowl interval)]
|
||||||
::
|
::
|
||||||
++ do-ping
|
++ do-ping
|
||||||
|
Loading…
Reference in New Issue
Block a user