erigon-pulse/rpc
Kris Shinn f91312dbdb GraphQL master FF for review (#18445)
* Initial work on a graphql API

* Added receipts, and more transaction fields.

* Finish receipts, add logs

* Add transactionCount to block

* Add types  and .

* Update Block type to be compatible with ethql

* Rename nonce to transactionCount in Account, to be compatible with ethql

* Update transaction, receipt and log to match ethql

* Add  query operator, for a range of blocks

* Added ommerCount to Block

* Add transactionAt and ommerAt to Block

* Added sendRawTransaction mutation

* Add Call and EstimateGas to graphQL API

* Refactored to use hexutil.Bytes instead of HexBytes

* Replace BigNum with hexutil.Big

* Refactor call and estimateGas to use ethapi struct type

* Replace ethgraphql.Address with common.Address

* Replace ethgraphql.Hash with common.Hash

* Converted most quantities to Long instead of Int

* Add support for logs

* Fix bug in runFilter

* Restructured Transaction to work primarily with headers, so uncle data is reported properly

* Add gasPrice API

* Add protocolVersion API

* Add syncing API

* Moved schema into its own source file

* Move some single use args types into anonymous structs

* Add doc-comments

* Fixed backend fetching to use context

* Added (very) basic tests

* Add documentation to the graphql schema

* Fix reversion for formatting of big numbers

* Correct spelling error

* s/BigInt/Long/

* Update common/types.go

* Fixes in response to review

* Fix lint error

* Updated calls on private functions

* Fix typo in graphql.go

* Rollback ethapi breaking changes for graphql support
Co-Authored-By: Arachnid <arachnid@notdot.net>
2019-01-21 15:38:13 +01:00
..
client_example_test.go rpc: fix example typo (#18100) 2018-11-14 12:21:10 +02:00
client_test.go rpc: fix client shutdown hang when Close races with Unsubscribe (#17894) 2018-10-15 10:56:04 +02:00
client.go rpc: fix client shutdown hang when Close races with Unsubscribe (#17894) 2018-10-15 10:56:04 +02:00
doc.go rpc: fix package doc typo (#18101) 2018-11-14 12:21:52 +02:00
endpoints.go rpc: make HTTP RPC timeouts configurable, raise defaults (#17240) 2018-07-31 12:16:14 +03:00
errors.go rpc: add new client, use it everywhere 2016-07-22 23:21:27 +02:00
http_test.go rpc: enforce the 128KB request limits on websockets too 2018-03-13 13:55:26 +02:00
http.go GraphQL master FF for review (#18445) 2019-01-21 15:38:13 +01:00
inproc.go rpc: golint error with context as last parameter (#16657) 2018-05-03 11:41:22 +03:00
ipc_js.go ethdb, rpc: support building on js/wasm (#17709) 2018-10-16 00:47:25 +02:00
ipc_unix.go rpc: Warn the user when the path name is too long for the Unix ipc endpoint (#18330) 2019-01-02 17:33:17 +01:00
ipc_windows.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00
ipc.go remove unrelated code 2018-11-28 22:42:07 +08:00
json_test.go all: fix go vet warnings 2016-04-15 11:17:27 +02:00
json.go rpc: support returning nil pointer big.Ints (null) 2018-06-11 13:56:22 +03:00
server_test.go all: import "context" instead of "golang.org/x/net/context" 2017-03-22 20:49:15 +01:00
server.go rpc: clean up check for missing methods/subscriptions on handler (#17145) 2018-07-24 02:00:55 +02:00
stdio.go rpc: fix client shutdown hang when Close races with Unsubscribe (#17894) 2018-10-15 10:56:04 +02:00
subscription_test.go rpc: fix subscription corner case and speed up tests (#17874) 2018-10-09 16:34:24 +02:00
subscription.go rpc: fix subscription corner case and speed up tests (#17874) 2018-10-09 16:34:24 +02:00
types_test.go all: update license information (#16089) 2018-02-14 13:49:11 +01:00
types.go all: switch out defunct set library to different one (#16873) 2018-07-16 10:54:19 +03:00
utils_test.go rpc: format filter ID according to spec for quantities 2016-09-01 11:50:13 +02:00
utils.go rpc: support returning nil pointer big.Ints (null) 2018-06-11 13:56:22 +03:00
websocket_test.go rpc: enable basic auth for websocket client (#17699) 2018-09-19 18:09:03 +02:00
websocket.go rpc: enable basic auth for websocket client (#17699) 2018-09-19 18:09:03 +02:00