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>
Showing
- cmd/geth/config.go 8 additions, 0 deletionscmd/geth/config.go
- cmd/geth/main.go 5 additions, 0 deletionscmd/geth/main.go
- cmd/utils/flags.go 43 additions, 0 deletionscmd/utils/flags.go
- common/hexutil/json.go 55 additions, 0 deletionscommon/hexutil/json.go
- common/types.go 30 additions, 0 deletionscommon/types.go
- graphql/grahpql.go 1104 additions, 0 deletionsgraphql/grahpql.go
- graphql/graphiql.go 95 additions, 0 deletionsgraphql/graphiql.go
- graphql/graphql_test.go 29 additions, 0 deletionsgraphql/graphql_test.go
- graphql/schema.go 305 additions, 0 deletionsgraphql/schema.go
- internal/ethapi/api.go 50 additions, 33 deletionsinternal/ethapi/api.go
- node/config.go 32 additions, 0 deletionsnode/config.go
- node/defaults.go 6 additions, 4 deletionsnode/defaults.go
- rpc/http.go 2 additions, 2 deletionsrpc/http.go
- vendor/github.com/graph-gophers/graphql-go/Gopkg.lock 25 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/Gopkg.lock
- vendor/github.com/graph-gophers/graphql-go/Gopkg.toml 10 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/Gopkg.toml
- vendor/github.com/graph-gophers/graphql-go/LICENSE 24 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/LICENSE
- vendor/github.com/graph-gophers/graphql-go/README.md 100 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/README.md
- vendor/github.com/graph-gophers/graphql-go/errors/errors.go 41 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/errors/errors.go
- vendor/github.com/graph-gophers/graphql-go/graphql.go 205 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/graphql.go
- vendor/github.com/graph-gophers/graphql-go/id.go 30 additions, 0 deletionsvendor/github.com/graph-gophers/graphql-go/id.go
Loading
Please register or sign in to comment