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

use prost::Name trait instead of TypeUrl #3422

Merged
merged 13 commits into from
Nov 29, 2023
Merged

use prost::Name trait instead of TypeUrl #3422

merged 13 commits into from
Nov 29, 2023

Conversation

redshiftzero
Copy link
Member

@redshiftzero redshiftzero commented Nov 21, 2023

Closes #3330
Closes #3380

@erwanor flagged that we also need cosmos/ibc-proto-rs#163 to completely migrate away from TypeUrl

Remaining TODOs:

  • update effect hash docs
  • update remaining IBC protos after ibc_types is updated

@erwanor
Copy link
Member

erwanor commented Nov 27, 2023

ibc-types@0.10 is released and removes the TypeUrl bound from DomainType, replacing it with prost::Name

@redshiftzero redshiftzero force-pushed the prost-name branch 2 times, most recently from c1366d9 to d0e4fc7 Compare November 28, 2023 16:50
@redshiftzero redshiftzero changed the title wip: use prost::Name trait instead of TypeUrl use prost::Name trait instead of TypeUrl Nov 28, 2023
@redshiftzero redshiftzero marked this pull request as ready for review November 28, 2023 17:27
Copy link
Contributor

@cronokirby cronokirby left a comment

Choose a reason for hiding this comment

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

One thing to note is that I think this is breaking because we lose the leading slash on the name.

Also, I haven't literally looked at every file, but it seems that the process here was just removing impl TypeUrl everywhere, and then using the prost::Name trait instead, so that seems fine.

@hdevalence
Copy link
Member

One thing to note is that I think this is breaking because we lose the leading slash on the name.

Yes, also because a bunch of our URLs were outdated since I didn't fix them while rearranging all the protos.

@redshiftzero redshiftzero merged commit e1a0056 into main Nov 29, 2023
5 checks passed
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.

Audit effect hash constants Use prost's Name trait instead of our TypeUrl trait
4 participants