mirror of
https://github.com/urbit/shrub.git
synced 2024-12-18 15:55:00 +03:00
naive: get point data from aggregator
This commit is contained in:
parent
c715ef59fd
commit
2c2c7db981
@ -151,6 +151,7 @@
|
||||
[%x %nonce @ @ ~] (nonce i.t.t.path i.t.t.t.path)
|
||||
[%x %spawned @ ~] (spawned i.t.t.path)
|
||||
[%x %next-batch ~] ``noun+!>(next-batch)
|
||||
[%x %point @ ~] (point i.t.t.path)
|
||||
==
|
||||
::
|
||||
++ pending-by
|
||||
@ -230,6 +231,12 @@
|
||||
^- [=^ship =address:ethereum]
|
||||
:- ship
|
||||
address:(proxy-from-point:naive %own point)
|
||||
::
|
||||
++ point
|
||||
|= wat=@t
|
||||
?~ ship=(rush wat ;~(pfix sig fed:ag))
|
||||
``noun+!>(*(unit point:naive))
|
||||
``noun+!>((get:orm:naive points.pre u.ship))
|
||||
--
|
||||
::
|
||||
++ on-arvo
|
||||
|
@ -125,7 +125,7 @@
|
||||
=, azimuth-rpc
|
||||
?. ?=([%map *] params)
|
||||
[~ ~(parse error:json-rpc id)]
|
||||
?+ method [~ ~(method error:json-rpc id)]
|
||||
?+ method [~ ~(method error:json-rpc id)]
|
||||
%get-point [~ (get-point id +.params point:scry)]
|
||||
%transfer-point (transfer-point id +.params)
|
||||
%cancel-tx (cancel-tx id +.params)
|
||||
@ -155,7 +155,7 @@
|
||||
|= =ship
|
||||
.^ (unit point:naive)
|
||||
%gx
|
||||
(~(scry agentio bowl) %azimuth /nas/(scot %p ship)/noun)
|
||||
(~(scry agentio bowl) %aggregator /point/(scot %p ship)/noun)
|
||||
==
|
||||
::
|
||||
++ spawned
|
||||
|
@ -288,16 +288,8 @@
|
||||
|= =path
|
||||
^- (unit (unit cage))
|
||||
?+ path (on-peek:def path)
|
||||
[%x %logs ~]
|
||||
``logs+!>(logs.state)
|
||||
::
|
||||
[%x %nas ~]
|
||||
``nas+!>(nas.state)
|
||||
::
|
||||
[%x %nas @t ~]
|
||||
?~ ship=(rush i.t.t.path ;~(pfix sig fed:ag))
|
||||
``noun+!>(*(unit point:naive))
|
||||
``noun+!>((~(get by points.nas.state) u.ship))
|
||||
[%x %logs ~] ``logs+!>(logs.state)
|
||||
[%x %nas ~] ``nas+!>(nas.state)
|
||||
==
|
||||
::
|
||||
++ on-agent
|
||||
|
Loading…
Reference in New Issue
Block a user