naive: get point data from aggregator

This commit is contained in:
yosoyubik 2021-06-22 15:00:24 +02:00
parent c715ef59fd
commit 2c2c7db981
3 changed files with 11 additions and 12 deletions

View File

@ -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

View File

@ -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

View File

@ -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