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

Refactor Denom to DenomMetadata for compatibility with Cosmos SDK #2520

Merged
merged 1 commit into from
May 16, 2023

Conversation

aubrika
Copy link
Contributor

@aubrika aubrika commented May 9, 2023

Closes #2310

@aubrika aubrika force-pushed the 2310-denom-rename branch from 6c1d58b to 06e9216 Compare May 10, 2023 00:02
@aubrika aubrika force-pushed the 2310-denom-rename branch 4 times, most recently from a056691 to 8ee9e16 Compare May 11, 2023 22:07
@aubrika aubrika force-pushed the 2310-denom-rename branch from 8ee9e16 to 0d8ba48 Compare May 11, 2023 22:15
@aubrika aubrika force-pushed the 2310-denom-rename branch from 0d8ba48 to 951f815 Compare May 11, 2023 22:38
@aubrika aubrika force-pushed the 2310-denom-rename branch from 951f815 to 50543f9 Compare May 11, 2023 23:28
@aubrika aubrika temporarily deployed to smoke-test May 11, 2023 23:28 — with GitHub Actions Inactive
@aubrika aubrika force-pushed the 2310-denom-rename branch from 50543f9 to 0816a2e Compare May 12, 2023 23:46
@aubrika aubrika force-pushed the 2310-denom-rename branch from 0816a2e to 9c3cb80 Compare May 16, 2023 01:43
@aubrika aubrika force-pushed the 2310-denom-rename branch from 9c3cb80 to cb4827a Compare May 16, 2023 03:07
Comment on lines 23 to 27
#[serde(try_from = "pb::Asset", into = "pb::Asset")]
pub struct Asset {
pub id: Id,
pub denom: Denom,
pub denom: DenomMetadata,
}
Copy link
Member

Choose a reason for hiding this comment

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

What's the point of the Asset proto message, now that we have DenomMetadata ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hmm, yes, seems redundant. Should I add removing Asset and replacing with DenomMetadata to this refactor?

Copy link
Member

Choose a reason for hiding this comment

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

I don't know. This PR is already terrifyingly large, maybe we should try to land it and then do the Asset removal in another step?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was hoping you would suggest that :) sounds great

crypto/src/asset.rs Outdated Show resolved Hide resolved
@aubrika aubrika force-pushed the 2310-denom-rename branch from cb4827a to 7e25939 Compare May 16, 2023 03:57
@aubrika aubrika temporarily deployed to smoke-test May 16, 2023 03:57 — with GitHub Actions Inactive
@aubrika aubrika marked this pull request as ready for review May 16, 2023 04:26
@hdevalence
Copy link
Member

This looks like a move in the right direction -- there are probably further things we'll want to do, but we should merge this now to avoid generating conflicts (cc @plaidfinch )

@hdevalence hdevalence merged commit 9387190 into main May 16, 2023
@hdevalence hdevalence deleted the 2310-denom-rename branch May 16, 2023 17:34
conorsch added a commit to penumbra-zone/osiris that referenced this pull request May 18, 2023
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.

Represent denom metadata compatibly with Cosmos SDK
2 participants