Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GraphQL master FF for review #18445

Merged
merged 42 commits into from
Jan 21, 2019
Merged

GraphQL master FF for review #18445

merged 42 commits into from
Jan 21, 2019

Conversation

kshinn
Copy link
Contributor

@kshinn kshinn commented Jan 15, 2019

@Arachnid Here is your PR with master merged in. There are some updates to internal/ethapi/api.go that I made in the last commit to match other design changes I was seeing in when I merged in master. Those changes should be isolated to the last commit in case they need to be peeled off.

@Arachnid Arachnid mentioned this pull request Jan 15, 2019
func (s *PublicBlockChainAPI) EstimateGas(ctx context.Context, args CallArgs) (hexutil.Uint64, error) {
return DoEstimateGas(ctx, s.b, args, rpc.PendingBlockNumber)
return s.doEstimateGas(ctx, s.b, args, rpc.PendingBlockNumber)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Arachnid I would like you to confirm this change. My understanding reading your PR was that you wanted to make DoCall and DoEstimate independent. And in fact, this is what is currently breaking the build. Could you and @kshinn clarify what you want to do here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was one of the changes I made to bring this inline with the direction of the design of the rest of the calls (delegating to a private method). If the intent was to move away from that direction, then the changes I made in the last commit can be omitted.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kshinn This breaks existing code (per the build):

# github.com/ethereum/go-ethereum/graphql
graphql/grahpql.go:894:30: undefined: ethapi.DoCall
graphql/grahpql.go:915:14: undefined: ethapi.DoEstimateGas

Would you mind either reverting the change or fixing that code? I'm okay with either if @gballet is.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't mind at all. I'll play with getting this working and push and update to this branch.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine either way, as long as it works.

@Arachnid
Copy link
Contributor

@gballet I think we're ready to go here!

Copy link
Member

@gballet gballet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gballet gballet added this to the 1.9.0 milestone Jan 21, 2019
@gballet gballet merged commit f91312d into ethereum:master Jan 21, 2019
@gballet
Copy link
Member

gballet commented Jan 21, 2019

Done, thanks for your impressive work and patience!

@Arachnid
Copy link
Contributor

I've written up a draft EIP for standardising this functionality here: https://github.com/Arachnid/EIPs/blob/graphql/EIPS/eip-draft-graphql.md

Copy link

@momaee momaee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants