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

Enable withdrawals #691

Merged
merged 23 commits into from
Oct 26, 2022
Merged

Enable withdrawals #691

merged 23 commits into from
Oct 26, 2022

Conversation

freesig
Copy link
Contributor

@freesig freesig commented Oct 11, 2022

resolves #567

@freesig freesig force-pushed the freesig/enable-withdrawals branch from 3b38959 to 0df2081 Compare October 11, 2022 22:34
@freesig freesig self-assigned this Oct 17, 2022
@freesig freesig marked this pull request as ready for review October 19, 2022 10:20
@ControlCplusControlV ControlCplusControlV added the graphql-api Affects API of the GraphQL label Oct 19, 2022
@ControlCplusControlV ControlCplusControlV requested a review from a team October 19, 2022 19:44
fuel-core/src/lib.rs Show resolved Hide resolved
use crate::tx_pool::TransactionStatus;

#[cfg(test)]
mod test;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why does query have its own mod with a specific test file? I would rather unit tests be attached directly to the associated functions than breaking out into a test.rs

Copy link
Member

Choose a reason for hiding this comment

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

Structurally it's basically the same as if the tests were in this file, since they need to be enclosed in a test module anyways. Personally, I prefer splitting modules into smaller files to reduce the amount of scrolling when working on something and make it easier to split related code across multiple windows.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeh definitely a fan of breaking into a file. Keeping the tests inline only really works with very small tests.

fuel-client/src/client.rs Outdated Show resolved Hide resolved
fuel-core/src/query.rs Outdated Show resolved Hide resolved
Copy link
Contributor

@ControlCplusControlV ControlCplusControlV left a comment

Choose a reason for hiding this comment

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

Test is failing but other than that didn't notice anything

.gitignore Show resolved Hide resolved
@freesig freesig enabled auto-merge (squash) October 21, 2022 01:07
@freesig freesig requested a review from Voxelot October 26, 2022 02:12
@freesig freesig merged commit b4a613d into master Oct 26, 2022
@freesig freesig deleted the freesig/enable-withdrawals branch October 26, 2022 09:31
MujkicA pushed a commit that referenced this pull request Oct 26, 2022
* building query

* add merkle proof

* Add root and proof set to OutputProof

* added mocks

* assert message id

* added signature and block

* finish integration test and wire up graph api

* handle results

* add comments

* move to mod

* fix bug

Co-authored-by: Brandon Vrooman <brandon.vrooman@gmail.com>
Co-authored-by: ControlCplusControlV <44706811+ControlCplusControlV@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
graphql-api Affects API of the GraphQL
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add GraphQL API for getting merkle proofs of output messages
4 participants