mirror of
https://github.com/urbit/shrub.git
synced 2024-12-14 20:02:51 +03:00
Move generic JSON RPC logic into its own files.
This commit is contained in:
parent
d8ddcbf386
commit
de116bbb2a
@ -1,7 +1,7 @@
|
|||||||
::
|
::
|
||||||
/- ethereum
|
/- json-rpc
|
||||||
/+ httr-to-json
|
/+ httr-to-json
|
||||||
=, json-rpc:ethereum
|
=, json-rpc
|
||||||
::
|
::
|
||||||
|_ res=response
|
|_ res=response
|
||||||
::
|
::
|
@ -39,25 +39,4 @@
|
|||||||
[%label l=?(%earliest %latest %pending)]
|
[%label l=?(%earliest %latest %pending)]
|
||||||
==
|
==
|
||||||
--
|
--
|
||||||
::
|
|
||||||
:: json-rpc
|
|
||||||
::
|
|
||||||
++ json-rpc
|
|
||||||
|%
|
|
||||||
++ response
|
|
||||||
$% [%result res=@t]
|
|
||||||
[%error code=@t message=@t] ::TODO data?
|
|
||||||
==
|
|
||||||
::
|
|
||||||
++ request
|
|
||||||
$: method=@t
|
|
||||||
params=parameters
|
|
||||||
id=(unit @t) ::TODO ?
|
|
||||||
==
|
|
||||||
::
|
|
||||||
++ parameters
|
|
||||||
$% [%array (list @t)]
|
|
||||||
[%object (map @t @t)]
|
|
||||||
==
|
|
||||||
--
|
|
||||||
--
|
--
|
||||||
|
6
sur/json/rpc.hoon
Normal file
6
sur/json/rpc.hoon
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|%
|
||||||
|
++ response ::TODO id and jsonrpc fields?
|
||||||
|
$% [%result res=@t]
|
||||||
|
[%error code=@t message=@t] ::TODO data?
|
||||||
|
==
|
||||||
|
--
|
Loading…
Reference in New Issue
Block a user