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

ChainId should serialize itself without using tendermint::chain::Id #729

Closed
plafer opened this issue Jun 22, 2023 · 0 comments · Fixed by #732
Closed

ChainId should serialize itself without using tendermint::chain::Id #729

plafer opened this issue Jun 22, 2023 · 0 comments · Fixed by #732
Labels
O: decoupling Objective: aims to separate concerns and cause to independent, reusable components
Milestone

Comments

@plafer
Copy link
Contributor

plafer commented Jun 22, 2023

Currently, the serde::Serialization is achieved by first converting to tendermint::chain::Id, and then serializing from there. We should instead implement Serialize and Deserialize manually by first converting to a String, then serializing that String, and vice-versa, as we do with the tendermint::chain::Id type.

This is part of the effort to completely remove the dependency on Tendermint from core IBC.

@plafer plafer added the O: decoupling Objective: aims to separate concerns and cause to independent, reusable components label Jun 22, 2023
@DaviRain-Su DaviRain-Su mentioned this issue Jun 26, 2023
7 tasks
Farhad-Shabani pushed a commit that referenced this issue Jun 27, 2023
* Refactor chain_id to avoid cloning to chain_id.to_string(). Convert chain_id from a raw string slice to a chain identifier type in several code locations.

* feat(ibc): remove `tendermint::chain::Id` dependency and use `FromStr` to construct `ClientType` in `ics07_tendermint` and `ics02_client` module (#729 and #731).
@Farhad-Shabani Farhad-Shabani moved this from 📥 To Do to ✅ Done in ibc-rs Jun 27, 2023
@github-project-automation github-project-automation bot moved this to 📥 To Do in ibc-rs Jun 27, 2023
@Farhad-Shabani Farhad-Shabani added this to the v0.42.0 milestone Jun 27, 2023
Farhad-Shabani pushed a commit that referenced this issue Sep 9, 2024
* Refactor chain_id to avoid cloning to chain_id.to_string(). Convert chain_id from a raw string slice to a chain identifier type in several code locations.

* feat(ibc): remove `tendermint::chain::Id` dependency and use `FromStr` to construct `ClientType` in `ics07_tendermint` and `ics02_client` module (#729 and #731).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O: decoupling Objective: aims to separate concerns and cause to independent, reusable components
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants