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

asset: allow image URIs in asset metadata #3702

Merged
merged 2 commits into from
Jan 31, 2024
Merged

asset: allow image URIs in asset metadata #3702

merged 2 commits into from
Jan 31, 2024

Conversation

hdevalence
Copy link
Member

This commit expands the DenomMetadata proto message to support the images field defined in the cosmos asset registry extensions.

Per discussion on Telegram, the logo_URIs and images fields overlap in functionality, but images is more forward-compatible and extensible. It also has a proto-compatible name, so seems like a win to only use it.

It also adds a test that we can parse metadata defined in the registry. To enable this, we need to configure pbjson-build to ignore unknown fields, which is the normal proto behavior.

This commit expands the `DenomMetadata` proto message to support the `images`
field defined in the cosmos asset registry extensions.

Per discussion on Telegram, the `logo_URIs` and `images` fields overlap in
functionality, but `images` is more forward-compatible and extensible. It also
has a proto-compatible name, so seems like a win to only use it.

It also adds a test that we can parse metadata defined in the registry. To
enable this, we need to configure pbjson-build to ignore unknown fields, which
is the normal proto behavior.
@hdevalence hdevalence merged commit e5f11a8 into main Jan 31, 2024
7 checks passed
@hdevalence hdevalence deleted the uris-in-metadata branch January 31, 2024 02:24
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.

1 participant