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

feat: re-structure basecoin-rs #156

Merged
merged 14 commits into from
Feb 21, 2024
Merged

feat: re-structure basecoin-rs #156

merged 14 commits into from
Feb 21, 2024

Conversation

Farhad-Shabani
Copy link
Member

@Farhad-Shabani Farhad-Shabani commented Feb 11, 2024

Closes: #155

Along with this PR

  • Incorporate rustfmt.toml to leverage the Rust nightly formatter for easier imports' organization.
  • Update Hermes to v1.8.0

@Farhad-Shabani Farhad-Shabani marked this pull request as ready for review February 11, 2024 03:22
Copy link
Member

@rnbguy rnbguy left a comment

Choose a reason for hiding this comment

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

Thanks @Farhad-Shabani for this PR ! 👏

Very helpful to maintain cross-project dependencies.

basecoin/src/lib.rs Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
basecoin/app/src/abci/v0_38/tendermint.rs Outdated Show resolved Hide resolved
basecoin/app/src/service.rs Outdated Show resolved Hide resolved
basecoin/app/src/service.rs Outdated Show resolved Hide resolved
basecoin/Cargo.toml Outdated Show resolved Hide resolved
basecoin/app/Cargo.toml Outdated Show resolved Hide resolved
basecoin/modules/Cargo.toml Outdated Show resolved Hide resolved
basecoin/app/Cargo.toml Outdated Show resolved Hide resolved
basecoin/src/helper.rs Show resolved Hide resolved
@rnbguy
Copy link
Member

rnbguy commented Feb 20, 2024

The integration test fails because the client upgrade case has failed.

},
};
println!("{:?}", query_res);
let _ = write!(std::io::stdout(), "{:#?}", query_res);
Copy link
Member

Choose a reason for hiding this comment

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

@Farhad-Shabani can you please explain why you removed println! and writing to stdout directly?

Copy link
Member Author

Choose a reason for hiding this comment

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

To address the upgrade_client issue, I initially suspected that the problem might stem from the way we were parsing the output. In an attempt to gain better control over the output, I used this. However, it turned out that the issue was something else.

Copy link
Member

Choose a reason for hiding this comment

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

ah. should we remove this in future PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

I didn't perceive much distinction between these two methods here, so I kept this. We can consider it in a later PR, if you find the println! to be more effective?

Copy link
Member

Choose a reason for hiding this comment

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

they are almost the same. except println! takes a lock on stdout. for normal purposes, it's okay to use println!.

but my main concern was whether this was a logging statement - and if you forgot to remove it.

Copy link
Member

@rnbguy rnbguy left a comment

Choose a reason for hiding this comment

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

I added one last comment. After that, go ahead with the merge.

Also I updated the GAIA version on CI at 11bb6af

Great work ! 🙌

@Farhad-Shabani Farhad-Shabani merged commit 57f47f2 into main Feb 21, 2024
10 checks passed
@Farhad-Shabani Farhad-Shabani deleted the farhad/re-organize branch February 21, 2024 14:16
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.

Re-organize basecoin-rs with focus on ibc-testkit integration
2 participants