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

cosmwasm: add support for json schemas for all contracts #4118

Conversation

kakucodes
Copy link
Collaborator

The purpose of this pull request is to update the cosmwasm contracts with the ability to export json schemas. These schemas are useful not only for frontend consumption (Typescript codegeneration) but also for Go and Interchain Test.

By and large the changes make all of the existing cosmwasm contracts a bit more homogeneous and fix some style differences between them. I added cosmwasm-schema where it didn't already exist and annotated query return types where they were not already specified. Additionally I swapped out the older style trait derives for serializable data types to use the cw_serde macro again for the sake of homogeneity in the workspace.

Copy link

@jtieri jtieri left a comment

Choose a reason for hiding this comment

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

The Strangelove team reviewed this as part of a live coding review session and concluded that the changes look fine and should not affect core functionality, the changes just add the ability to export JSON schemas which are useful when interacting with the contracts from other programming languages.

@nik-suri nik-suri merged commit c35940a into wormhole-foundation:main Oct 28, 2024
24 checks passed
@nik-suri nik-suri deleted the chore/enable-cw-json-schema-generation branch October 28, 2024 15:00
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.

4 participants