mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 04:41:37 +03:00
naive: add when %next-batch to rpc-api
This commit is contained in:
parent
60ba0f81dd
commit
749f8e93f9
@ -143,6 +143,7 @@
|
||||
%pending-by-ship [~ (ship:pending id +.params ship:pending:scry)]
|
||||
%pending-by-address [~ (addr:pending id +.params addr:pending:scry)]
|
||||
%status [~ (status id +.params tx-status:scry)]
|
||||
%next-batch [~ (next-batch id +.params next-batch:scry)]
|
||||
:: %history [~ (history id +.params all:history:scry)]
|
||||
==
|
||||
::
|
||||
@ -222,6 +223,12 @@
|
||||
(~(scry agentio bowl) %aggregator /tx/(scot %ux keccak)/status/noun)
|
||||
==
|
||||
::
|
||||
++ next-batch
|
||||
.^ time
|
||||
%gx
|
||||
(~(scry agentio bowl) %aggregator /next-batch/noun)
|
||||
==
|
||||
::
|
||||
++ nonce
|
||||
|= [=ship =address:naive]
|
||||
:: FIXME: use proper type from aggregator/index
|
||||
|
@ -482,6 +482,13 @@
|
||||
~(parse error:json-rpc id)
|
||||
[%result id (tx-status:to-json (scry u.keccak))]
|
||||
::
|
||||
++ next-batch
|
||||
|= [id=@t params=(map @t json) when=time]
|
||||
^- response:rpc
|
||||
?. =((lent ~(tap by params)) 0)
|
||||
~(params error:json-rpc id)
|
||||
[%result id (time:enjs:format when)]
|
||||
::
|
||||
:: ++ history
|
||||
:: |= $: id=@t
|
||||
:: params=(map @t json)
|
||||
|
Loading…
Reference in New Issue
Block a user