Merge pull request #1092 from urbit/eth-rpc-blockbynumber

Support eth_getBlockByNumber Ethereum RPC call
This commit is contained in:
Fang 2019-03-05 01:10:21 +01:00 committed by GitHub
commit b3e4604255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7894,6 +7894,7 @@
adr=(list address) adr=(list address)
top=(list ?(@ux (list @ux))) top=(list ?(@ux (list @ux)))
== ==
[%eth-get-block-by-number bon=@ud txs=?]
[%eth-get-filter-logs fid=@ud] [%eth-get-filter-logs fid=@ud]
$: %eth-get-logs $: %eth-get-logs
fro=(unit block) fro=(unit block)
@ -8050,6 +8051,12 @@
:+ ~ 'topics' :+ ~ 'topics'
(topics-to-json top.req) (topics-to-json top.req)
== ==
::
%eth-get-block-by-number
:- 'eth_getBlockByNumber'
:~ (tape (num-to-hex bon.req))
b+txs.req
==
:: ::
%eth-get-filter-logs %eth-get-filter-logs
['eth_getFilterLogs' (tape (num-to-hex fid.req)) ~] ['eth_getFilterLogs' (tape (num-to-hex fid.req)) ~]